Abstract:
According to the method for determining a redundant array of independent disks provided in the present invention, for an actual physical disk including n disk groups in which each disk group includes m disks, the n disk groups include m2*(m*n) logical blocks, and a logical block matrix corresponding to m distributed RAIDs can be generated. Therefore, a correspondence between the actual physical disk and the distributed RAIDs can be obtained. In a scenario of data storage or the like, a mapping relationship table of the physical disk and the RAIDs does not need to be stored.
Abstract:
Embodiments of the present invention provide a capacity expansion method and device, so as to reduce the time needed by capacity expansion of a hard disk. The method specifically includes: dividing, in a distributed redundant array of independent disks RAID system, each hard disk into virtual hard disks of equal size equally; dividing an original hard disk into X groups equally; selecting m virtual hard disks from each hard disk in sequence to form one original hard disk; selecting m virtual hard disks from each added hard disk and inserting the m virtual hard disks into the virtual hard disk group; moving, in the virtual hard disk group, data in virtual hard disks of the original hard disk to the virtual hard disks of the added hard disk. The present invention is applied to capacity expansion of a hard disk.
Abstract:
A data recovery method, a data recovery device and a distributed storage system are provided, where the method includes: in a case that a distributed storage system loses data of three nodes, recovering data on a target data storage node of the data on the three nodes according to data of a parity node and a data storage node without data loss; and performing degraded recovery on the remaining lost data according to the recovered data of the target data storage node. According to the embodiments of the present invention, a target data storage node first recovered is determined according to the symmetry of lost data, and the lost data of three nodes is recovered according to parity data and data that is not lost, which can improve the data recovery performance of the distributed storage system in a case that the data of three nodes is lost.
Abstract:
A data recovery method, a data recovery device and a distributed storage system are provided, where the method includes: in a case that a distributed storage system loses data of three nodes, recovering data on a target data storage node of the data on the three nodes according to data of a parity node and a data storage node without data loss; and performing degraded recovery on the remaining lost data according to the recovered data of the target data storage node. According to the embodiments of the present invention, a target data storage node first recovered is determined according to the symmetry of lost data, and the lost data of three nodes is recovered according to parity data and data that is not lost, which can improve the data recovery performance of the distributed storage system in a case that the data of three nodes is lost.
Abstract:
Embodiments of the present invention provide a capacity expansion method and device, so as to reduce the time needed by capacity expansion of a hard disk. The method specifically includes: dividing, in a distributed redundant array of independent disks RAID system, each hard disk into virtual hard disks of equal size equally; dividing an original hard disk into X groups equally; selecting m virtual hard disks from each hard disk in sequence to form one original hard disk; selecting m virtual hard disks from each added hard disk and inserting the m virtual hard disks into the virtual hard disk group; moving, in the virtual hard disk group, data in virtual hard disks of the original hard disk to the virtual hard disks of the added hard disk. The present invention is applied to capacity expansion of a hard disk.