Abstract:
The storage method according to the present invention includes: partitioning raw data into several data blocks; calculating, according to a preset mapping algorithm, three consecutive virtual storage partitions to which a first data block is mapped, where a virtual storage partition is a partition obtained by dividing a virtual storage area, each of the virtual storage partitions is mapped to one physical disk, physical disks have consecutive sequence numbers, and sequence numbers of three physical disks that are mapped to the three consecutive virtual storage partitions are in an arithmetic sequence with a non-zero common difference; and storing, according to the calculated three consecutive virtual storage partitions and the three physical disks that are mapped to the three consecutive virtual storage partitions, the first data block and a first copy and a second copy of the first data block in the three physical disks in sequence.
Abstract:
The storage method according to the present invention includes: partitioning raw data into several data blocks; calculating, according to a preset mapping algorithm, three consecutive virtual storage partitions to which a first data block is mapped, where a virtual storage partition is a partition obtained by dividing a virtual storage area, each of the virtual storage partitions is mapped to one physical disk, physical disks have consecutive sequence numbers, and sequence numbers of three physical disks that are mapped to the three consecutive virtual storage partitions are in an arithmetic sequence with a non-zero common difference; and storing, according to the calculated three consecutive virtual storage partitions and the three physical disks that are mapped to the three consecutive virtual storage partitions, the first data block and a first copy and a second copy of the first data block in the three physical disks in sequence.