Patent ID: 11899533
Assignee: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 8:
9. A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores a computer program that comprises a computer instruction, the computer program is used in a storage system, the storage system comprises N data storage nodes that store data chunks and M parity storage nodes that store parity chunks; R stripes are distributed on N+M storage nodes, each stripe Si comprises N data chunks, Dix, and M parity chunks, Piy, a data chunk Dix is distributed on an xth storage node in the N data storage nodes, and a parity chunk Piy is distributed on a yth storage node in the M parity storage nodes; N, M, and R are positive integers, R is not less than 2, i is an integer ranging from 1 to R, x is an integer ranging from 1 to N, and y is an integer ranging from 1 to M; and a stripe server that is used in the storage system executes the computer instruction, to perform the following operations:
selecting the R stripes, wherein a maximum of one data chunk among data chunks Dix that are in the R stripes and that are distributed on a same data storage node comprises valid data;
generating parity data of a parity chunk PKy of a new stripe SK for data of the data chunk comprising valid data in the R stripes, wherein the new stripe SK comprises the data chunk comprising valid data in the R stripes and the parity chunk PKy, and K is an integer different from 1 to R; and
storing the parity data of the parity chunk PKy on the yth storage node in the M parity storage nodes.