| CPC G06F 11/1076 (2013.01) [G06F 11/1004 (2013.01)] | 19 Claims |

|
1. A method for generating checking data comprising:
acquiring a store-status matrix corresponding to a redundant array of independent disks, wherein the store-status matrix comprises a plurality of magnetic-disk vectors and a plurality of data vectors, and the magnetic-disk vectors and the data vectors are orthogonal;
determining non-reference vectors among the magnetic-disk vectors, and performing data-vector-element evenly dividing processing to an initial data region formed by the non-reference vectors, to obtain a first data region and a second data region;
performing data-exchange processing to the first data region and the second data region in the store-status matrix, to obtain a first matrix;
determining a plurality of second-order matrixes in the first data region and the second data region of the first matrix, and performing position-exchange processing to target magnetic-disk elements in the second-order matrixes, to obtain a second matrix;
performing single-error-correction encoding generating processing based on the second matrix, to obtain first checking data, and saving the first checking data into a first checking magnetic disk; and
performing double-error-correction encoding generating processing based on the second matrix, to obtain second checking data, and saving the second checking data into a second checking magnetic disk,
wherein the method further comprises:
in response to that a failure of a target magnetic disk is detected, acquiring error-recovery data from non-target magnetic disks in the redundant array of independent disks;
acquiring target first checking data from the first checking magnetic disk, and acquiring target second checking data from the second checking magnetic disk; and
by using the error-recovery data, the target first checking data and the target second checking data, performing data recovery to the target magnetic disk.
|