IP Library Granted Patent US 11,914,881
Granted Patent B2
US 11,914,881 · App. 17/144,999 · Granted Feb 27, 2024

Data migration method and apparatus

Inventors: Feng Xu (Chengdu, CN); Yu Zhang (Chengdu, CN); Ling Lin (Chengdu, CN); Chen Ling (Shenzhen, CN); Lei Huang (Shenzhen, CN)
Assignee: Huawei Cloud Computing Technologies Co., Ltd.
G06F3/0647G06F3/0604G06F3/067
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,914,881
App. No.
17/144,999
Granted
Feb 27, 2024
Kind
B2
Abstract

A data migration method and an apparatus are provided. The method is as follows: sending, by a first storage system, a location update request to a location server, where the location update request is used to indicate the location server to update location information of a first bucket from being located in a second storage system to being located in the first storage system; migrating data in a first bucket from the second storage system; receiving a data access request, where the data access request is used to access the data in the first bucket; and determining based on a type of the data access request and a migration status of the data, that the first storage system or the second storage system processes the data access request.

Claims (58)

1. A data migration method comprising:

sending, by a first storage system, a location update request to a location server,

wherein the location update request prompts the location server to update location information of a first bucket in a migrated second storage system from a location in the second storage system to a second bucket at a location in a first storage system, and

wherein creation of the second bucket is based on metadata of the first bucket;

migrating, by the first storage system, data in the first bucket from the second storage system, and storing the data in the second bucket in the first storage system;

receiving, by the first storage system, a data download request used to access the data in the first bucket; and

determining, by the first storage system and based on a type of the data requested by the data download request and a migration status of the data, which one of the first storage system or the second storage system processes the data download request, wherein the determination includes

determining the type of the data requested by the data download request, wherein the type of the data is either metadata or not metadata,

determining that the migration status of the data requested by the download request is that the migration of the data has started but is not yet completed,

obtaining the requested data from the first bucket and sending the requested data to a client, based on determining that the type of the requested data is not metadata and the status of the migration is that the migration of the data has started but is not yet completed, and

obtaining the requested data from the second bucket and sending the requested data to the client, based on determining that the type of the requested data is metadata and the status of the migration is that the migration of the data has started but is not yet completed.

2. The data migration method according to claim 1 , wherein migrating the data in the first bucket from the second storage system comprises:

first migrating, by the first storage system, the metadata of an object in the first bucket, and then migrating remaining data other than the metadata in the first bucket.

3. The data migration method according to claim 1 , wherein receiving the data download request comprises:

receiving, by the first storage system, the data access download from the second storage system, wherein the data download request comprises an identifier of the first bucket.

4. The data migration method according to claim 1 , wherein receiving the data download request comprises:

receiving, by the first storage system, the data download request sent by a virtual host, wherein the data download request comprises an identifier of the first bucket.

5. The data migration method according to claim 1 , wherein obtaining the requested data from the second bucket and sending the requested data to the client, based on the type of the requested data being metadata and the status of the migration is the migration of the data has started but is not yet completed includes first sending the metadata to the client and then migrating data other than the metadata from the first bucket to the second bucket.

6. A first storage system comprising a processor and an interface, wherein the processor communicates with the interface, and the processor is configured to perform operations including:

sending a location update request to a location server,

wherein the location update request prompts the location server to update location information of a first bucket in a migrated second storage system from a location in the second storage system to a second bucket at a location in a first storage system, and

wherein creation of the second bucket is based on metadata of the first bucket;

migrating data in the first bucket from the second storage system, and storing the data in the second bucket in the first storage system;

receiving a data access request used to download the data in the first bucket; and

determining which one of the first storage system or the second storage system processes the data download request,

wherein the determination is based on a type of the data requested by the data download request and a migration status of the data and includes

determining the type of the data requested by the data download request, wherein the type of the data is either metadata or not metadata,

obtaining the data from the second bucket and sending the data to the client, based on determining that the migration status of the data requested by the download request is that the migration to the second bucket is complete,

obtaining the requested data from the first bucket and sending the requested data to a client, based on determining that the requested data is not metadata and the status of the migration is that the migration of the data has started but is not yet completed, and

obtaining the requested data from the second bucket and sending the requested data to the client, based on determining that the type of the requested data is metadata and the status of the migration is that the migration of the data has started but is not yet completed.

7. The storage system according to claim 6 , wherein the processor is further configured to perform operations including:

first migrating the metadata of an object in the first bucket, and then migrating remaining data other than the metadata in the first bucket.

8. The storage system according to claim 6 , wherein the processor is further configured to perform operations including:

receiving the data download request from the second storage system, wherein the data download request comprises an identifier of the first bucket.

9. The storage system according to claim 6 , wherein the processor is further configured to perform operations including:

receiving the data download request sent by a virtual host, wherein the data download request comprises an identifier of the first bucket.

10. The storage system according to claim 6 , wherein the processor operation of obtaining the requested data from the second bucket and sending the requested data to the client, based on the type of the requested data being metadata and the status of the migration is the migration of the data has started but is not yet completed includes:

first sending the metadata to the client and then migrating data other than the metadata from the first bucket to the second bucket.

11. A non-transitory computer storage medium storing one or more computer instructions and, when the one or more computer instructions is executed by a computer, the computer is caused to perform operations including:

sending a location update request to a location server,

wherein the location update request prompts the location server to update location information of a first bucket in a migrated second storage system from a location in the second storage system to a second bucket located in the first storage system, and

wherein creation of the second bucket is based on metadata of the first bucket;

migrating data in the first bucket from the second storage system, and storing the data in the second bucket in the first storage system;

receiving a data download request used to access the data in the first bucket; and

determining which one of the first storage system or the second storage system processes the data download request,

wherein the determination is based on a type of the data requested by the data download request and a migration status of the data and includes

determining the type of the data requested by the data download request, wherein the type of the data is either metadata or not metadata,

obtaining the data from the second bucket and sending the data to the client, based on determining that the migration status of the data requested by the download request is that the migration to the second bucket is complete,

obtaining the requested data from the first bucket and sending the requested data to a client, based on determining that the requested data is not metadata and the status of the migration is that the migration of the data has started but is not yet completed, and

obtaining the requested data from the second bucket and sending the requested data to the client, based on determining that the type of the requested data is metadata and the status of the migration is that the migration of the data has started but is not yet completed.

12. The non-transitory computer storage medium according to claim 11 , wherein the operations further include:

first migrating the metadata of an object in the first bucket, and then migrating remaining data other than the metadata in the first bucket.

13. The non-transitory computer storage medium according to claim 11 , wherein the operations further include:

receiving the data download request from the second storage system, wherein the data download request comprises an identifier of the first bucket.

14. The non-transitory computer storage medium according to claim 11 , wherein the operations further include:

receiving the data download request sent by a virtual host, wherein the data download request comprises an identifier of the first bucket.

15. The non-transitory computer storage medium according to claim 11 , wherein the operation of obtaining the requested data from the second bucket and sending the requested data to the client based on the type of the requested data being metadata and the status of the migration is the migration of the data has started but is not yet completed includes:

first sending the metadata to the client and then migrating data other than the metadata from the first bucket to the second bucket.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 28, 2023
From: XU, FENG; ZHANG, YU; LIN, LING; HUANG, LEI
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 065971/0020 →
EMPLOYMENT AGREEMENT Recorded Dec 28, 2023
From: LING, CHEN
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 066143/0001 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 1, 2022
From: HUAWEI TECHNOLOGIES CO., LTD.
To: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
Reel/Frame 059267/0088 →
Priority Claims (1)
CN 201810748632.4 · Jul 9, 2018 · national
Continuity (2)
Continuation PCTCN2019094110 · Jul 1, 2019
Related Publication 20210132849A1 · May 6, 2021