Summary of the invention
In view of this, the invention provides a kind of RAID data processing equipment, be applied in computer system, this RAID comprises n+m member's disk, and wherein each stick of this RAID is all divided into w subelement, and in this RAID, each band comprises k according to subelement and j syndrome unit, wherein j=wxm, k=wxn, wherein n, m and w are natural number, and w is greater than 1; Each syndrome unit is under the jurisdiction of a verification group, and each verification group also comprises the data sub-element set of multiple data sub-element composition, and in each band, the data sub-element set of each verification group is different; The position of multiple data sub-element in each band in each verification group in band uniquely corresponds to the position of multiple effective mark in the corresponding a line of the RAID generator matrix preset; This device comprises writing process module and reads processing unit; Wherein:
Writing process module, for the treatment of the write order from user side, when fault member number of disks is less than or equal to m, determines the data sub-element of the needs write that this write order is corresponding; Upgrade the user data in the data sub-element needing write, and use default checking algorithm to upgrade in verification group belonging to this data sub-element all the checking data verified in subelement;
Read processing module, for the treatment of the read command from user side, when fault member number of disks is less than or equal to m, determine the data sub-element of the needs reading that this read command is corresponding, if desired the data sub-element read is positioned on member's disk of normal condition, corresponding user data is read from this data sub-element, if desired the data sub-element read is positioned on fault member disk, data then in recovery group belonging to this data sub-element in current addressable data sub-element and syndrome unit use described default checking algorithm to recover user data in this data sub-element.
Further, the concrete formula using default checking algorithm to upgrade checking data is:
Wherein in this formula, the subelement at all data places forms a verification group, and h is the natural number being less than or equal to j; X and y is the natural number being less than or equal to k; c
hrepresent in this band the checking data verified in h verification group in subelement; d
x... d
yfor the user data in the multiple data sub-element in this verification group, wherein in data sub-element set the position of each data sub-element in band correspond respectively to h in described RAID generator matrix capable in the position of multiple effective mark;
represent XOR.
Further, the generator matrix of described RAID is the matrix of the capable k row of j, the wherein capable i-th column element a of h
hii-th data sub-element in corresponding band, if a
hibe effective mark, represent that in band, i-th data sub-element belongs to h verification group; If a
hifor invalidated identification, represent that i-th data sub-element does not belong to h verification group.
Further, between the generator matrix of described RAID and selected m capable n row Galois Field constant matrices, there are mapping relations, its these mapping relations are: the matrix generated after constant each in this constant matrices being converted to the embedded matrix of w capable w row is this RAID generator matrix, and wherein w is this Galois Field constant matrices Galois Field bit wide.
Further, described constant matrices is full rank, and the anyon matrix of this matrix is also full rank.
Further, wherein said n is more than or equal to m, and n and m sum is less than or equal to the w power of 2.
Further, the concrete formula of described default checking algorithm restoring user data is used to be:
Wherein, u is the natural number being less than or equal to j; X is the natural number being less than or equal to k; In this formula, all data form a recovery group, d
wit is the user data in the data sub-element of inaccessible in a recovery group; Cu...... be the checking data in this recovery group in addressable syndrome unit; Dx...... the user data in addressable data sub-element in this recovery group is represented;
represent XOR; In a recovery group, the position of each subelement on disk corresponds to the multiple effective mark in RAID recovery matrix in a line.
Further, described RAID recovers the matrix that matrix is the capable s row of j, wherein s=w × (m+n); Described RAID recovers the capable i-th column element a of h in matrix
hii-th subelement in corresponding band, if a
hibe effective mark, represent that in band, i-th subelement belongs to h recovery group; If a
hifor invalidated identification, represent that i-th subelement does not belong to h verification group.
Further, also comprise matrix disposal module, this matrix disposal module is used for generating described RAID according to the RAID extended matrix preset and recovers matrix, and the process of generation comprises: row corresponding with failed disk in RAID extended matrix are carried out diagonalization process and recover matrix to generate described RAID; The diagonalization check matrix that described RAID extended matrix is arranged by RAID generator matrix and the capable j of j docks and forms; In described check matrix, every a line comprises an effectively mark, and this position be effectively identified in check matrix is corresponding with the position of syndrome unit in band that RAID generator matrix docks row corresponding.
Further, also comprise reconstruction process module, wherein this reconstruction process module uses described default checking algorithm to recover checking data, and concrete formula is:
Wherein, u is the natural number being less than or equal to j; X is the natural number being less than or equal to k; In this formula, all data form a recovery group, c
vit is the checking data in the syndrome unit of inaccessible in a recovery group; c
u... be the checking data in this recovery group in addressable syndrome unit; d
x... represent the user data in addressable data sub-element in this recovery group;
represent XOR; In a recovery group, the position of each subelement on disk corresponds to the multiple effective mark in RAID recovery matrix in a line.
The present invention also provides a kind of RAID data processing method, be applied in computer system, this RAID comprises n+m member's disk, wherein each stick of this RAID is all divided into w subelement, in this RAID, each band comprises k according to subelement and j syndrome unit, wherein j=wxm, k=wxn, wherein n, m and w are natural number, and w is greater than 1; Each syndrome unit is under the jurisdiction of a verification group, and each verification group also comprises the data sub-element set of multiple data sub-element composition, and in each band, the data sub-element set of each verification group is different; The position of multiple data sub-element in each band in each verification group in band uniquely corresponds to the position of multiple effective mark in the corresponding a line of the RAID generator matrix preset; The method comprises the steps:
Steps A, processes the write order from user side, when fault member number of disks is less than or equal to m, determines the data sub-element of the needs write that this write order is corresponding; Upgrade the user data in the data sub-element needing write, and use default checking algorithm to upgrade in verification group belonging to this data sub-element all the checking data verified in subelement;
Step B, process the read command from user side, when fault member number of disks is less than or equal to m, determine the data sub-element of the needs reading that this read command is corresponding, if desired the data sub-element read is positioned on member's disk of normal condition, corresponding user data is read from this data sub-element, if desired the data sub-element read is positioned on fault member disk, data then in recovery group belonging to this data sub-element in current addressable data sub-element and syndrome unit use described default checking algorithm to recover user data in this data sub-element.
Further, the concrete formula using default checking algorithm to upgrade checking data is:
Wherein in this formula, the subelement at all data places forms a verification group, and h is the natural number being less than or equal to j; X and y is the natural number being less than or equal to k; c
hrepresent in this band the checking data verified in h verification group in subelement; d
x... d
yfor the user data in the multiple data sub-element in this verification group, wherein in data sub-element set the position of each data sub-element in band correspond respectively to h in described RAID generator matrix capable in the position of multiple effective mark;
represent XOR.
Further, the generator matrix of described RAID is the matrix of the capable k row of j, the wherein capable i-th column element a of h
hii-th data sub-element in corresponding band, if a
hibe effective mark, represent that in band, i-th data sub-element belongs to h verification group; If a
hifor invalidated identification, represent that i-th data sub-element does not belong to h verification group.
Further, between the generator matrix of described RAID and selected m capable n row Galois Field constant matrices, there are mapping relations, its these mapping relations are: the matrix generated after constant each in this constant matrices being converted to the embedded matrix of w capable w row is this RAID generator matrix, and wherein w is this Galois Field constant matrices Galois Field bit wide.
Further, described constant matrices is full rank, and the anyon matrix of this matrix is also full rank.
Further, wherein said n is more than or equal to m, and n and m sum is less than or equal to the w power of 2.
Further, the concrete formula of described default checking algorithm restoring user data is used to be:
Wherein, u is the natural number being less than or equal to j; X is the natural number being less than or equal to k; In this formula, all data form a recovery group, d
wit is the user data in the data sub-element of inaccessible in a recovery group; Cu...... be the checking data in this recovery group in addressable syndrome unit; Dx...... the user data in addressable data sub-element in this recovery group is represented;
represent XOR; In a recovery group, the position of each subelement on disk corresponds to the multiple effective mark in RAID recovery matrix in a line.
Further, described RAID recovers the matrix that matrix is the capable s row of j, wherein s=w × (m+n); Described RAID recovers the capable i-th column element a of h in matrix
hii-th subelement in corresponding band, if a
hibe effective mark, represent that in band, i-th subelement belongs to h recovery group; If a
hifor invalidated identification, represent that i-th subelement does not belong to h verification group.
Further, also comprise:
Step C, generate described RAID according to the RAID extended matrix preset and recover matrix, the process of generation comprises: row corresponding with failed disk in RAID extended matrix are carried out diagonalization process and recover matrix to generate described RAID; The diagonalization check matrix that described RAID extended matrix is arranged by RAID generator matrix and the capable j of j docks and forms; In described check matrix, every a line comprises an effectively mark, and this position be effectively identified in check matrix is corresponding with the position of syndrome unit in band that RAID generator matrix docks row corresponding.
Further, also comprise: step D, in process of reconstruction, use described default checking algorithm to recover checking data, and concrete formula be:
Wherein, u is the natural number being less than or equal to j; X is the natural number being less than or equal to k; In this formula, all data form a recovery group, c
vit is the checking data in the syndrome unit of inaccessible in a recovery group; c
u... be the checking data in this recovery group in addressable syndrome unit; d
x... represent the user data in addressable data sub-element in this recovery group;
represent XOR; In a recovery group, the position of each subelement on disk corresponds to the multiple effective mark in RAID recovery matrix in a line.
In terms of existing technologies, present invention achieves the RAID that same checking algorithm supports multiple check disk, and verification calculating process is relatively simple, does not need complicated computation process.
Embodiment
For the shortcoming of prior art, the present invention proposes a kind of brand-new RAID implementation, when using single algorithm to support that multiple disk breaks down simultaneously, still can recover data, and to multiple faulty disk without requirement in logic, promote dirigibility and the robustness of RAID use.In realization, relative to using the design of stick in traditional RAID band as data cell or verification unit, stick is further subdivided into less subelement by the present invention, the subelement depositing user data is called data sub-element, in the checking data write syndrome unit that in multiple data sub-element, data XOR obtains, data sub-element and corresponding syndrome unit form a verification group.In the following description, unless otherwise noted, the letter of all expression quantity is natural number.
Please refer to Fig. 2, in a preferred embodiment, the invention provides a kind of enhancement mode RAID data processing equipment be applied in computer system, this RAID comprises n+m member's disk, and wherein each stick of this RAID is all divided into w subelement, and in this RAID, each band comprises k according to subelement and j syndrome unit, wherein j=wxm, k=wxn, wherein n, m and w are natural number, and w is greater than 1; Each syndrome unit is under the jurisdiction of a verification group, and each verification group also comprises the data sub-element set of multiple data sub-element composition, and in each band, the data sub-element set of each verification group is different; This device of position that the position of multiple data sub-element in each band in each verification group in band uniquely corresponds to multiple effective mark in the corresponding a line of the RAID generator matrix preset comprises writing process module and reads processing unit.This RAID treating apparatus comprises: writing process module and read processing module.Described computer system refers to the equipment including several member's disks, and it may be the computing system of arbitrary form, such as workstation, or server, or the special network storage equipment, may be even individual main frame.It should be noted that RAID data processing equipment can use software simulating, also can use hardware implementing, the forms such as such as RAID plug-in card, the mode that even soft or hard can be used to combine realizes.The processing procedure of this device comprises the steps:
Writing process module, for the treatment of the write order from user side, when fault member number of disks is less than or equal to m, determines the data sub-element of the needs write that this write order is corresponding; Upgrade the user data in the data sub-element needing write, and use default checking algorithm to upgrade in verification group belonging to this data sub-element all the checking data verified in subelement;
Read processing module, for the treatment of the read command from user side, when fault member number of disks is less than or equal to m, determine the data sub-element of the needs reading that this read command is corresponding, if desired the data sub-element read is positioned on member's disk of normal condition, corresponding user data is read from this data sub-element, if desired the data sub-element read is positioned on fault member disk, data then in recovery group belonging to this data sub-element in current addressable data sub-element and syndrome unit use described default checking algorithm to recover user data in this data sub-element.
N represents the number of the data disks in a RAID band as previously mentioned, and m represents the verification unit number in a RAID band, i.e. the upper limit of the patient failed disk number of this RAID.Except n and m, also introduce this parameter of Galois Field bit wide w, when being below not particularly illustrated, each parameter characterizing quantity is natural number.The basic constraint condition of the usual demand fulfillment of the above-mentioned parameter in RAID formula (1) and (2):
n≥m (1)
2
w≥n+m (2)
In the present invention, will comprise w × m verification group in a band of RAID, each verification group comprises a syndrome unit.In verification group, the corresponding relation of data sub-element and syndrome unit can be expressed by a RAID generator matrix.In Fig. 4, this RAID generator matrix derives from the original constant matrices that a capable n of m arranges, and the element in this original constant matrices is made up of the element selected in Galois Field, and usually meets following 2 conditions:
Condition one: constant matrices is full rank, namely constant matrices is reversible, each provisional capital is linearly incoherent.
Condition two: the anyon matrix of constant matrices is also full rank, namely any submatrix of constant matrices is reversible, each provisional capital is linearly incoherent.
The original constant matrices meeting above-mentioned condition has multiple, developer can select when realizing wherein a kind of matrix as original constant matrices.In the original constant matrices chosen, each constant can be exchanged into a unique corresponding capable w of w and arranges the embedded matrix be made up of " 0 " and " 1 ", obtains matrix and be called RAID generator matrix after all original constant matrices conversions.This RAID generator matrix is the capable k column matrix of j, wherein, j=(w × m), k=(w × n), as shown in formula (3):
The capable i-th column element a of h in RAID generator matrix
hii-th data sub-element in corresponding band, if a
hibe effective mark, represent that in band, i-th data sub-element belongs to h verification group; If a
hifor invalidated identification, represent that i-th data sub-element does not belong to h verification group; Wherein a in preferred mode
hivalue be 0 or 1 respectively corresponding invalidated identification and effectively mark.In a band of RAID, all data sub-element are numbered in order, and all syndrome unit are numbered in order.The line number of RAID generator matrix represents the numbering of syndrome unit, and in this row, the element of all numerical value 1 constitutes an effective identified group.After having had RAID generator matrix, just can come to verify the checking data of subelement in calculation check group according to formula (4).
Wherein in this formula (4), the subelement at all data places forms a verification group, and h is the natural number being less than or equal to j; X and y is the natural number being less than or equal to k; c
hrepresent in this band the checking data verified in h verification group in subelement; d
x... d
yfor the user data in the multiple data sub-element in this verification group, wherein in data sub-element set the position of each data sub-element in band correspond respectively to h in described RAID generator matrix capable in the position of multiple effective mark;
represent XOR.
Be described for the RAID of 8 dish compositions below.Suppose that this RAID comprises 5 data disks; 3 check disks; Band 3 decile; Now n=5, m=3, w=3, j==m × w=9, k=n × w=15, supposes that original constant matrices is as shown in formula (5):
Please refer to the transformational relation shown in Fig. 3, constant each in original constant matrices is done embedded matrix and transform, this original constant matrices obtains corresponding RAID generator matrix as shown in formula (6) after above-mentioned conversion:
Please refer to shown in Fig. 4, in supposing, de, f represent the user data in data sub-element, and cp, q represent the checking data in syndrome unit.According to above-mentioned RAID generator matrix, the relation in each verification group between checking data and user data can be described by 9 verification groups in formula group (7).
As can be seen from Figure 4, in first verification group, check that the 1st row of RAID generator matrix can be known, 1st, the numerical value of 4,5,9,10,11,12,14 is 1, and these 8 numerical value can be understood as the effective identified group in the RAID generator matrix corresponding with first syndrome unit in the 1st row.So participate in checking data c0 in calculating first verification group in band 1, the user data of 0 is respectively the user data in the 1st, 4,5,9,10,11,12,14 data sub-element, and then can obtain first operation relation in formula group (7).The account form of other checking datas is similar, repeats no more.
In RAID, all disks are all in place and in normal situation, when receiving read command from user's side joint, directly read the user data in corresponding data sub-element.When receiving write order from user's side joint, need according to the first calculation check data of formula (7), can according to step process below:
(1) determine to write the verification group involved by data, determine the data sub-element user data needing in those verification groups to participate in calculating, for the data sub-element without the need to write, the user data in this data sub-element of retaking of a year or grade;
(2) the new checking data of those verification groups is calculated according to formula (7);
(3) data sub-element corresponding for new user data write, checking data is write corresponding syndrome unit.
It should be noted that, in the present invention, the user data upgraded in certain data sub-element may affect multiple verification group, therefore will obtain multiple verification computing formula in formula (7) during calculation check data, calculate the checking data in multiple verification group, and be written to corresponding verification unit.
As previously mentioned, RAID of the present invention supports m check disk, namely 1 arrive m disk failure situation under, user data all can not be lost.Under normal circumstances, read user data and do not relate to checking data; But after disk failure, read write command will relate to checking treatment.When receiving read command from user's side joint, if the data cell that will access of read command may have access to, can direct sense data; If the data cell of read command hit can not be accessed, then need to be recovered by the data of addressable data cell and verification unit.Same reason, if having disk failure in RAID, can have influence on the process of write order equally, and as previously mentioned, write order may relate to the user data in back read data subelement, and this user data cannot may read because of disk failure.No matter be process in read command or write order process, if when the user data in data sub-element cannot read, following manner can be adopted to recover user data.
Continue, with identical example, restoring user data read procedure is described, suppose disk3 fault, correspond to band 1, namely stick D3 loses, and comprises d3, and 0, d3,1 and d3, the user data in 2 three data sub-element.The formula (8) choosing first three the verification group in verification formula group (7) is solved an equation, d3 in equation, and 0, d3,1 and d3,2 is unknown number, and other are given data.
Separate formula (8), the 2nd row is added to other two row, and in fact adding here be exactly xor operation, obtains formula (9):
Again the 3rd row in formula (9) is added on the 1st row, obtains formula (10):
D3 can be calculated, 0, d3,1 and d3, data original in 2 according to formula (10).
Introduce the date restoring under a kind of extreme case below again, suppose m disk failures in RAID.Continue the example presented above, assumed lost be disk1, disk2, disk3 tri-data disks, correspond to band 1, the data of losing comprise d1, and 0, d1,1, d1,2, d2,0, d2,1, d2,2, d3,0, d3,1, d3,2 totally 9 data cells, according to above-mentioned thinking, change verification group formula can obtain formula (11):
Solve an equation can calculate d1 according to formula (11), 0, d1,1, d1,2, d2,0, d2,1, d2,2, d3,0, d3,1, d3, data original in 2.Can be found out by above two kinds of examples, as long as the quantity of failed disk is less than or equal to m, the present invention can go out need based on same checking algorithm Reverse recovery the user data of recovery, only the quantity of failed disk is larger, in computation process, the calculated amount of backwards calculation is corresponding larger, solve formula more complicated, but the algorithm in solution procedure is still the same, just direction oppositely solves.
Furthermore, the problem of calculation of complex is caused when considering that failed disk is more, the present invention provides a kind of more succinct reset mode in a preferred embodiment, and it remains above-mentioned checking algorithm in essence, just introduces RAID recovery matrix and carrys out simplified operation process.Based on above-mentioned RAID generator matrix, be pre-created a RAID extended matrix.In the present embodiment, said apparatus also comprises matrix disposal module, this matrix disposal module is used for generating described RAID according to the RAID extended matrix preset and recovers matrix, and the process of generation comprises: row corresponding with failed disk in RAID extended matrix are carried out diagonalization process and recover matrix to generate described RAID; The diagonalization check matrix that described RAID extended matrix is arranged by RAID generator matrix and the capable j of j docks and forms; In described check matrix, every a line comprises an effectively mark, and this position be effectively identified in check matrix is corresponding with the position of syndrome unit in band that RAID generator matrix docks row corresponding.
As previously mentioned, this RAID extended matrix to be docked with check matrix by RAID generator matrix and forms.This RAID extended matrix is j × r, wherein r=k+j.A RAID extended matrix is created based on example in Fig. 4, this matrix is example as Fig. 5, and suppose now disk1 and disk2 two disk failures, composition graphs 4 is known, in recovery matrix, in 4-9 row, any one effectively identifies and all points to a data sub-element that cannot access, namely d
1,0, d
1,1, d
1,2, d
2,0, d
2,1, d
2,2these six user data place user data subelements cannot be accessed.In the present embodiment, diagonalization of matrix process is carried out around 4-9 row, final target is that realization matrix has 4-9 row in 6 row all to only have an effectively mark, namely only have the user data in a data sub-element to be unknown data, next once verify computing and can solve and obtain this user data.
Please refer to the diagonalization of matrix process shown in Fig. 6, its target is that 4-9 row are carried out diagonalization process, and namely corresponding with failed disk in RAID extended matrix row carry out diagonalization process.For the 4th row, first choose a line, selected line must have criterion and know on the 4th, can find that the 1st row the 4th data are 1 from Fig. 6, has criterion and knows.Now the 4th row can be understood as and treat zero row, and target allows the 4th to arrange the element value of other row except the 1st row all make zero, and namely becomes invalidated identification.Now with the 1st row respectively with the 3rd, 4,7,8,9 row carry out XOR, the newline gone out with XOR replace respectively original 3rd, 4,7,8,9 row, replaced rear formation first intermediary matrix.Next using the 5th row as treating zero row, then choose a line, require that the 4th column data of selected line is 0, the 5th column data is 1, now chooses behavior the 3rd row, with the 3rd row respectively with the 1st, 4,5,8 row carry out XOR, replace rear formation the second intermediary matrix.Circulation like this is gone down until the 9th row are also made zero, and final formation RAID recovers matrix.As can be seen from Figure 6, RAID recover matrix 4-9 arrange this six row in be present diagonalizable, namely wherein any one row on only have an element to be that 1(effectively identifies).This effectively identifies institute and is expert in (computing row), and only have this element to be 1 in 4-9 element, other are all 0(invalidated identification).So because other arrange the disk that corresponding disk is all normal condition, computing row only have a data sub-element that effectively mark is corresponding cannot access, and other effective data identified in corresponding data sub-element or syndrome unit all can be accessed, therefore can quickly move through XOR algorithm and the user data in this data sub-element is recovered.
Can sum up from above process, user data when disk failure on it in any data sub-element can recover according to formula (12).
Wherein, u is the natural number being less than or equal to j; X is the natural number being less than or equal to k; In this formula, all data form a recovery group, d
wit is the user data in the data sub-element of inaccessible in a recovery group; Cu...... be the checking data in this recovery group in addressable syndrome unit; Dx...... the user data in addressable data sub-element in this recovery group is represented;
represent XOR; In a recovery group, the position of each subelement on disk corresponds to the multiple effective mark in RAID recovery matrix in a line.
Please continue to refer to Fig. 6, the 4th element RAID being recovered to the 1st row of matrix is 1, is effective mark, shows the user data d in the 4th data sub-element in band
1,0participate in recovery group verification computing, because it is on failed disk disk1, therefore this user data is exactly the data that will recover.All the other need the data participating in recovery group verification computing to be d successively
0,1, d
3,0, d
3,1, d
3,2, c
0,0, c
0,1, c
1,0, c
2,0, because these data are all on normal disk, be all known, bring in formula 11 and can solve d1,0, please refer to the example of formula 13.
As can be seen from above description, the position of subelement in band participating in the data place of computing in a recovery group is that the effective identified group recovered in matrix a line by RAID determines.And RAID recovery matrix generates according to RAID extended matrix as previously mentioned.As previously mentioned, the process of generation is that row corresponding with failed disk each in RAID extended matrix are carried out diagonalization process, finally makes RAID recover in matrix, any row to only have a data sub-element that effectively mark is corresponding to be inaccessible.It should be noted that RAID extended matrix can substitute RAID generator matrix in fact, because include RAID generator matrix in RAID extended matrix when realization.In aforementioned calculation check group checking data embodiment in also can use RAID extended matrix, and in fact formula (7) has reflected a RAID extended matrix in essence.
Can be found out by above embodiment, the present invention not only can use single algorithm to support that multiple disk breaks down simultaneously, and this algorithm is fairly simple XOR.In general, invention increases dirigibility and the stalwartness row of RAID, and implementation cost is lower.Comprise eight disks for a RAID, in the scene needing high reliability, n can be 4, and m can be 4, if now in RAID the disk of simultaneous faults be no more than 4, so user data can not be lost, and 4 faulty disks can be any disks, without logical requirements.In the scene needing reliability more balanced with volume ratio, n can be 6, and m can be 2; Suppose that all disk sizes are all identical, the useful capacity so can depositing user data can reach 75% of all disk sizes.In the certain reliability of needs, but in the scene of limited consideration capacity, n can be 7, and m can be 1.For the developer of field of storage, it no longer needs because the difference of RAID rank, and algorithm is much overlapped in exploitation and maintenance, significantly can reduce cost of development.And for user, it has broken the inflexible problem of m quantity in prior art, and in RAID, disk is more, and its flexibility problem is more outstanding, and the present invention there is no the restriction of this respect.
Furthermore, the present invention can further include synchronous processing module and reconstruction process module, for RAID synchronizing characteristics, it is calculation check data write syndrome unit, therefore aforementioned formula can be utilized equally to calculate in each verification group the checking data verified in subelement, the syndrome unit that write is corresponding.Certainly, in the present invention, a band exists multiple verification group, need to calculate respectively the data of multiple verification unit and write, in this band, the checking data of all verification unit writes successfully, just thinks that this band synchronously completes.Rebuild for RAID, can calculate data original in the data cell or verification unit that can not access equally with reference to the process of aforementioned recovery data, write reconstruction is coiled.
In a preferred embodiment, the present invention also comprises synchronous processing module and reconstruction process module.Described synchronous processing module, the checking data calculated in each syndrome unit according to above-mentioned same checking algorithm realizes the synchronous of RAID.Described reconstruction process module is suitable for above-mentioned checking algorithm equally and is recovered by the user data in data sub-element each in failed disk and be written in data sub-element corresponding on HotSpare disk.In process of reconstruction, for the checking data in failed disk; This reconstruction process module can use described checking algorithm will verify date restoring out equally, and its concrete formula is formula (13):
Wherein, u is the natural number being less than or equal to j; X is the natural number being less than or equal to k; In this formula, all data form a recovery group, c
vit is the checking data in the syndrome unit of inaccessible in a recovery group; c
u... be the checking data in this recovery group in addressable syndrome unit; d
x... represent the user data in addressable data sub-element in this recovery group;
represent XOR; In a recovery group, the position of each subelement on disk corresponds to the multiple effective mark in RAID recovery matrix in a line.More specifically realize, its principle is consistent with aforementioned restoring user data process, repeats no more.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.