Storing data based on disk redundant array protection mechanism
AssigneeZhongshan Longsys Electronics Co., Ltd.
InventorsQiming Bao, Hui Yin
Life of this patent
Estimating the term…
Abstract
A data storage method includes: binding storage blocks, which are corresponding to each plane of each of a plurality of logical units in a storage device, to each other to form a superblock; performing, using a corresponding disk redundancy array protection mechanism, data storage operations based on a type of the superblock and a data type of to-be-written data.
Claims17
A data storage method, comprising:
- binding a plurality of storage blocks to each other to form one superblock, wherein, each plane of each of a plurality of logical units in a storage device provides one storage block to form the plurality of storage blocks;
- performing, using a corresponding disk redundancy array protection mechanism, data storage operations based on a type of the superblock and a data type of to-be-written data;
- wherein, the type of the superblock is a user data SLC block or a user data XLC block;
- the performing, using the corresponding disk redundancy array protection mechanism, data storage operations based on the type of the superblock and the data type of to-be-written data, comprises:
- dividing the superblock into a plurality of disk redundancy array groups, wherein the number of the plurality of disk redundancy array groups is determined based on the number of pages contained in the predetermined number of WordLines in the storage block;
- writing the to-be-written data are written into the plurality of the disk redundant array groups when receiving a request of writing the to-be-written data;
- obtaining parity data corresponding to each of the plurality of disk redundant array groups;
- writing the parity data corresponding to each of the plurality of disk redundancy array groups into a last plane of a last logical unit in the corresponding one of the plurality of disk redundancy array groups;
- and
- restoring, when an error occurring in the data in one plane, the data by performing an XOR operation on the data that is in a same disk redundancy array group as the plane having the error.
A storage device, comprising a processor and a memory connected to the processor, wherein the memory is configured to store program instructions, the processor is configured to execute the program instructions to implement operations of:
- binding a plurality of storage blocks, to each other to form one superblock, wherein, each plane of each of a plurality of logical units in a storage device provides one storage block to form the plurality of storage blocks;
- performing, using a corresponding disk redundancy array protection mechanism, data storage operations based on a type of the superblock and a data type of to-be-written data;
- wherein, the type of the superblock is a first class private data SLC block;
- the performing, using the corresponding disk redundancy array protection mechanism, data storage operations based on the type of the superblock and the data type of to-be-written data, comprises:
- writing the to-be-written data into both a first logical unit of the superblock and a second logical unit of the superblock when receiving a request of writing the to-be-written data, wherein, the first logical unit and the second logical unit are two of the plurality of logical units providing two of the plurality of storage blocks for forming the superblock;
- and the second logical unit is mirrored with the first logical unit;
- restoring, when an error occurring in the data in the first logical unit, the data by mirroring the data in the second logical unit.
A non-transitory computer-readable storage medium, storing program instructions, wherein the program instructions, when being executed by a processor, are configured to implement operations of:
- binding a plurality of storage blocks, to each other to form one superblock;
- wherein, each plane of each of a plurality of logical units in a storage device provides one storage block to form the plurality of storage blocks;
- performing, using a corresponding disk redundancy array protection mechanism, data storage operations based on a type of the superblock and a data type of to-be-written data;
- wherein, the type of the superblock is a second class private data SLC block, the performing, using the corresponding disk redundancy array protection mechanism, data storage operations based on the type of the superblock and the data type of to-be-written data, comprises:
- when receiving a request of writing the to-be-written data, writing the to-be-written data sequentially into more than one logical units of the plurality of logical units, which provide storage blocks for forming the superblock;
- and performing an exclusive-OR (XOR) operation on the to-be-written data to obtain parity data;
- writing the parity data into a last plane of a last logical unit of the plurality of logical units;
- restoring, when an error occurring in the data in any plane of any one of the plurality of logical units, the data by performing the XOR operation on the data in the plurality of logical units.
Dependencies are inferred from the claim text.