# US 2021/0173579 A1 · Data migration method and apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0173579 A1
- Document ID: US20210173579A1
- Status: Published application
- Kind: A1
- Application number: 17/183,045
- Filed: 2021-02-23
- Published: 2021-06-10
- Earliest claimed: 2018-08-24
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Yu LIN
- Web page: https://patentgrep.com/patent/US20210173579A1

## CPC

- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0647: {Migration mechanisms}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0616: {in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0649: {Lifecycle management}
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/0683: {Plurality of storage devices}
- G06F 3/0685: {Hybrid storage combining heterogeneous device types, e.g. hierarchical storage, hybrid arrays}
- G06F 3/065: {Replication mechanisms}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A storage device obtains data access temperature of a first storage unit group The data access temperature of the first storage unit group is determined by data access temperature of each storage unit, and the data access temperature of each storage unit is determined by a logical unit in which the storage unit is located. When the data access temperature of the first storage unit group reaches a specified threshold, the storage device migrates data in the first storage unit group to a second storage unit group. Access performance of the second storage unit group is higher than access performance of the first storage unit group. Practicing the implementations of this application, accuracy of collecting statistics about data access temperature can be improved, thereby improving hierarchical storage performance of a storage device.

## Claims

### Claim 1

A data migration method, wherein the method comprises:
obtaining, by a storage device, data access temperature of a first storage unit group, wherein the first storage unit group comprises a plurality of storage units, each storage unit is a composition unit of a block comprised in a logical unit, the logical unit is logical storage space provided by the storage device and accessible by a host, the data access temperature of the first storage unit group is determined by data access temperature of each storage unit, and the data access temperature of each storage unit is determined by a logical unit in which the storage unit is located; and
when the data access temperature of the first storage unit group reaches a specified threshold, migrating, by the storage device, data in the first storage unit group to a second storage unit group, wherein access performance of the second storage unit group is higher than access performance of the first storage unit group.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the storage device collects data access temperature by using the block comprised in the logical unit as a unit.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the first storage unit group comprises a first storage unit, and the method further comprises:
receiving, by the storage device, a data write request, wherein the data write request is used to write data into a second storage unit, and a storage unit group to which the second storage unit belongs is different from the first storage unit group;
writing, by the storage device, the data into the first storage unit, and storing a correspondence between an actual address of the data and a logical address of the first storage unit; and
the obtaining, by a storage device, data access temperature of a first storage unit group comprises:
updating, by the storage device, data access temperature of the first storage unit based on data access temperature of the second storage unit; and
obtaining, by the storage device, the data access temperature of the first storage unit group based on updated data access temperature of the first storage unit.

### Claim 4 (depends on 3)

The method according to claim 3, wherein a third storage unit group comprises the second storage unit, and the method further comprises:
when the second storage unit is released, resetting, by the storage device, the data access temperature of the second storage unit;
obtaining, by the storage device, data access temperature of the third storage unit group based on reset data access temperature of the second storage unit; and
when the data access temperature of the third storage unit group reaches a specified threshold, migrating, by the storage device, data in the third storage unit group to a fourth storage unit group, wherein access performance of the fourth storage unit group is higher than access performance of the third storage unit group.

### Claim 5

A storage device, comprising a processor and a first storage unit group, wherein the first storage unit group comprises a plurality of storage units, each storage unit is a composition unit of a block comprised in a logical unit, the logical unit is logical storage space provided by the storage device and accessible by a host, wherein the processor is configured to:
obtain data access temperature of the first storage unit group, wherein the data access temperature of the first storage unit group is determined by data access temperature of each storage unit, and the data access temperature of each storage unit is determined by a logical unit in which the storage unit is located; and
migrate data in the first storage unit group to a second storage unit group, wherein access performance of the second storage unit group is higher than access performance of the first storage unit group, when the data access temperature of the first storage unit group reaches a specified threshold.

### Claim 6 (depends on 5)

The storage device according to claim 5, wherein the storage device collects data access temperature by using the block comprised in the logical unit as a unit.

### Claim 7 (depends on 5)

The storage device according to claim 5, wherein the first storage unit group comprises a first storage unit, and wherein the processor is further configured to receive a data write request, wherein the data write request is used to write data into a second storage unit, and a storage unit group to which the second storage unit belongs is different from the first storage unit group; and write the data into the first storage unit, and storing a correspondence between an actual address of the data and a logical address of the first storage unit, and wherein the processor is specifically configured to:
update data access temperature of the first storage unit based on data access temperature of the second storage unit; and
obtain the data access temperature of the first storage unit group based on updated data access temperature of the first storage unit.

### Claim 8 (depends on 7)

The storage device according to claim 7, wherein a third storage unit group comprises the second storage unit, and the processor is further configured to:
reset the data access temperature of the second storage unit, when the second storage unit is released;
obtain data access temperature of the third storage unit group based on reset data access temperature of the second storage unit; and
migrate data in the third storage unit group to a fourth storage unit group, when the data access temperature of the third storage unit group reaches a specified threshold, wherein access performance of the fourth storage unit group is higher than access performance of the third storage unit group.

### Claim 9

A computer readable storage medium, wherein the computer readable storage medium stores an instruction, and when the instruction is run on a computer or a processor, the computer or the processor is enabled to perform the method as below:
obtaining data access temperature of a first storage unit group, wherein the first storage unit group comprises a plurality of storage units, each storage unit is a composition unit of a block comprised in a logical unit, the logical unit is logical storage space provided by a storage device and accessible by a host, the data access temperature of the first storage unit group is determined by data access temperature of each storage unit, and the data access temperature of each storage unit is determined by a logical unit in which the storage unit is located; and
when the data access temperature of the first storage unit group reaches a specified threshold, migrating data in the first storage unit group to a second storage unit group, wherein access performance of the second storage unit group is higher than access performance of the first storage unit group.

### Claim 10 (depends on 9)

The computer readable storage medium according to claim 9, wherein the storage device collects data access temperature by using the block comprised in the logical unit as a unit.

### Claim 11 (depends on 9)

The computer readable storage medium according to claim 9, wherein the first storage unit group comprises a first storage unit, and the method further comprises:
receiving a data write request, wherein the data write request is used to write data into a second storage unit, and a storage unit group to which the second storage unit belongs is different from the first storage unit group;
writing the data into the first storage unit, and storing a correspondence between an actual address of the data and a logical address of the first storage unit; and
the obtaining data access temperature of a first storage unit group comprises:
updating data access temperature of the first storage unit based on data access temperature of the second storage unit; and
obtaining the data access temperature of the first storage unit group based on updated data access temperature of the first storage unit.

### Claim 12 (depends on 11)

The computer readable storage medium according to claim 11, wherein a third storage unit group comprises the second storage unit, and the method further comprises:
when the second storage unit is released, resetting the data access temperature of the second storage unit;
obtaining data access temperature of the third storage unit group based on reset data access temperature of the second storage unit; and
when the data access temperature of the third storage unit group reaches a specified threshold, migrating data in the third storage unit group to a fourth storage unit group, wherein access performance of the fourth storage unit group is higher than access performance of the third storage unit group.

### Claim 13

A computer program product comprising an instruction, wherein when the computer program product is run on a computer or a processor, the computer or the processor is enabled to perform the method as below:
obtaining data access temperature of a first storage unit group, wherein the first storage unit group comprises a plurality of storage units, each storage unit is a composition unit of a block comprised in a logical unit, the logical unit is logical storage space provided by a storage device and accessible by a host, the data access temperature of the first storage unit group is determined by data access temperature of each storage unit, and the data access temperature of each storage unit is determined by a logical unit in which the storage unit is located; and
when the data access temperature of the first storage unit group reaches a specified threshold, migrating data in the first storage unit group to a second storage unit group, wherein access performance of the second storage unit group is higher than access performance of the first storage unit group.

### Claim 14 (depends on 13)

The computer program product according to claim 13, wherein the storage device collects data access temperature by using the block comprised in the logical unit as a unit.

### Claim 15 (depends on 13)

The computer program product according to claim 13, wherein the first storage unit group comprises a first storage unit, and the method further comprises:
receiving a data write request, wherein the data write request is used to write data into a second storage unit, and a storage unit group to which the second storage unit belongs is different from the first storage unit group;
writing the data into the first storage unit, and storing a correspondence between an actual address of the data and a logical address of the first storage unit; and
the obtaining data access temperature of a first storage unit group comprises:
updating data access temperature of the first storage unit based on data access temperature of the second storage unit; and
obtaining the data access temperature of the first storage unit group based on updated data access temperature of the first storage unit.

### Claim 16 (depends on 15)

The computer program product according to claim 15, wherein a third storage unit group comprises the second storage unit, and the method further comprises:
when the second storage unit is released, resetting the data access temperature of the second storage unit;
obtaining data access temperature of the third storage unit group based on reset data access temperature of the second storage unit; and
when the data access temperature of the third storage unit group reaches a specified threshold, migrating data in the third storage unit group to a fourth storage unit group, wherein access performance of the fourth storage unit group is higher than access performance of the third storage unit group.
