Method, device, and system for data reconstruction
First Claim
1. A method for data reconstruction in a cluster having a plurality of storage nodes, wherein each storage node includes a plurality of partitions, the method comprising:
- identifying, by a device, first partitions of a plurality of first storage nodes that store backup data of a first faulty storage node based on routing table information, wherein at least two partitions in the cluster store backup data for each partition of the first faulty storage nodeand wherein each first partition stores backup data for a corresponding partition of the first faulty storage node;
generating, by the device, one or more first data migration tasks for migrating backup data from the first partitions of the plurality of first storage nodes to second partitions of a plurality of second storage nodes;
identifying, by the device, a second faulty storage node and that the second faulty storage node is one of the first or second storage nodes in the one or more first data migration tasks;
when the second faulty storage node is one of the first storage nodes in the one or more first data migration tasks, identifying a third partition of a third storage node which stores backup data for a first partition of the first faulty storage node, updating the one or more first data migration tasks by replacing a second partition of the second faulty storage node with the third partition of the third storage node;
when the second faulty storage node is one of the second storage nodes in the one or more first data migration tasks, identifying one or more fourth storage nodes to store backup data for one or more partitions of the first faulty storage node, updating the one or more first data migration tasks by replacing the second faulty storage node with the one or more fourth storage nodes; and
executing, by the device, the updated one or more first data migration tasks.
2 Assignments
0 Petitions
Accused Products
Abstract
A method for data reconstruction includes: obtaining a data migration list, where the data migration list indicates a partition with data to be migrated on a storage node with data to be migrated; generating a data migration task according to the data migration list and routing table information, where the routing table information indicates correspondence between a storage node in a cluster and a partition; and concurrently executing data migration tasks of a storage node in the cluster to reconstruct data. In addition, a device for data reconstruction and a storage system are further provided accordingly.
-
Citations
17 Claims
-
1. A method for data reconstruction in a cluster having a plurality of storage nodes, wherein each storage node includes a plurality of partitions, the method comprising:
-
identifying, by a device, first partitions of a plurality of first storage nodes that store backup data of a first faulty storage node based on routing table information, wherein at least two partitions in the cluster store backup data for each partition of the first faulty storage node and wherein each first partition stores backup data for a corresponding partition of the first faulty storage node; generating, by the device, one or more first data migration tasks for migrating backup data from the first partitions of the plurality of first storage nodes to second partitions of a plurality of second storage nodes; identifying, by the device, a second faulty storage node and that the second faulty storage node is one of the first or second storage nodes in the one or more first data migration tasks; when the second faulty storage node is one of the first storage nodes in the one or more first data migration tasks, identifying a third partition of a third storage node which stores backup data for a first partition of the first faulty storage node, updating the one or more first data migration tasks by replacing a second partition of the second faulty storage node with the third partition of the third storage node; when the second faulty storage node is one of the second storage nodes in the one or more first data migration tasks, identifying one or more fourth storage nodes to store backup data for one or more partitions of the first faulty storage node, updating the one or more first data migration tasks by replacing the second faulty storage node with the one or more fourth storage nodes; and executing, by the device, the updated one or more first data migration tasks. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A device comprising:
-
a memory storage comprising instructions; and one or more processors in communication with the memory, wherein the one or more processors execute the instructions to; identify first partitions of a plurality of first storage nodes that store backup data of a first faulty storage node based on routing table information, wherein at least two partitions in a cluster store backup data for each partition of the first faulty storage node and wherein each first partition stores backup data for a corresponding partition of the first faulty storage node; generate one or more first data migration tasks for migrating backup data from the first partitions of the plurality of first storage nodes to second partitions of a plurality of second storage nodes; identify a second faulty storage node and that the second faulty storage node is one of the first or second storage nodes in the one or more first data migration tasks; when the second faulty storage node is one of the first storage nodes in the one or more first data migration tasks, identify a third partition of a third storage node which stores backup data for a first partition of the first faulty storage node, update the one or more first data migration tasks by replacing a second partition of the second faulty storage node with the third partition of the third storage node; when the second faulty storage node is one of the second storage nodes in the one or more first data migration tasks, identify one or more fourth storage nodes to store backup data for one or more partitions of the first faulty storage node, update the one or more first data migration tasks by replacing the second faulty storage node with the one or more fourth storage nodes; and execute the updated one or more first data migration tasks. - View Dependent Claims (9, 10, 11, 12)
-
-
13. A non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, cause the one or more processors to perform operations including:
-
identifying first partitions of a plurality of first storage nodes that store backup data of a first faulty storage node based on routing table information, wherein at least two partitions in a cluster store backup data for each partition of the first faulty storage node and wherein each first partition stores backup data for a corresponding partition of the first faulty storage node; generating one or more first data migration tasks for migrating backup data from the first partitions of the plurality of first storage nodes to second partitions of a plurality of second storage nodes; identifying a second faulty storage node and that the second faulty storage node is one of the first or second storage nodes in the one or more first data migration tasks; when the second faulty storage node is one of the first storage nodes in the one or more first data migration tasks, identifying a third partition of a third storage node which stores backup data for a first partition of the first faulty storage node, updating the one or more first data migration tasks by replacing a second partition of the second faulty storage node with the third partition of the third storage node; when the second faulty storage node is one of the second storage nodes in the one or more first data migration tasks, identifying one or more fourth storage nodes to store backup data for one or more partitions of the first faulty storage node, updating the one or more first data migration tasks by replacing the second faulty storage node with the one or more fourth storage nodes; and executing, by the device, the updated one or more first data migration tasks. - View Dependent Claims (14, 15, 16, 17)
-
Specification