Data recovery method and device for redundant array of independent disks
A technology of independent disk redundancy and recovery method, applied in the field of storage, can solve problems such as large risks, and achieve the effect of improving reliability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] image 3 It is a flowchart of a RAID data recovery method according to Embodiment 1 of the present invention. The method can be implemented in the above-mentioned application system, and can be executed by a management device and a control system in the application system. Such as image 3 As shown, the method includes the following steps:
[0029] Step S302, associating the protection disk with the RAID;
[0030] For example, according to the ID of the RAID to be protected and the ID of the protected disk input by the user, an association between the protected disk and the RAID is established. In the actual application system, the user can input the information of the RAID to be protected in the interface provided by the management device, and then input the information of the free disk to be used as the protected disk, and then notify the control system to combine the RAID with the protected disk by issuing corresponding instructions. Disks are associated, for exam...
Embodiment 2
[0039] Taking the RAID level as RAID5 as an example, the details are as follows: image 3 The specific processing flow of the data recovery method shown includes the following steps:
[0040] Step 1: If Figure 4 As shown, associate the RAID5 to be protected with the free disk as the protected disk; this step corresponds to image 3 Step S302 in.
[0041] Step 2: Obtain the data of each stripe of RAID5 in sequence, and calculate the protection data corresponding to each stripe according to the obtained data of each stripe;
[0042] Wherein, for each stripe, the protection data Q corresponding to the stripe can be calculated according to the Q check algorithm of RAID6, see the following formula (1) for details:
[0043] Q = 2 0 × D 0 ⊕ 2 1 × D 1 ⊕ 2 2...
Embodiment 3
[0069] Compared with RAID5, the only difference between RAID3 and RAID5 is that the P parity data in RAID3 are all stored on the same parity disk, while the P parity data in RAID5 are distributed on each member disk (that is, the disk included in RAID), Therefore, when the above-mentioned data recovery method is applied to RAID3, the specific specific processing flow is the same as that in the second embodiment above, and will not be repeated here.
[0070] Similarly, when the above-mentioned data recovery method is applied to RAID3, the specific specific processing flow is also the same as that in the above-mentioned second embodiment.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 