Redundant storage device and method
The redundant storage device uses a matrix-based parity system to detect and correct data errors in RAID systems, enhancing data reliability by regenerating data with low reliability, addressing the limitations of existing RAID error detection methods.
Patent Information
- Application Number
- JP2021047491
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-03-22
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-03-22
AI Technical Summary
Existing RAID systems struggle to detect data errors in arbitrary sectors of multiple storage devices effectively.
A redundant storage device and method that generates and stores multiple parity values in a matrix arrangement, performing matching and collation processes to identify and correct data errors using a RAID device with components like a control processor, RAID calculation engine, and storage units.
Enables accurate detection and correction of data errors in RAID systems, ensuring high data reliability by identifying and regenerating data with low reliability, even in the absence of error reports from storage devices.
Smart Images

Figure 0007558857000001 
Figure 0007558857000002 
Figure 0007558857000003
Abstract
Description
[Technical field]
[0001] FIELD OF THE DISCLOSURE Embodiments of the present invention relate to a redundant storage device and method. [Background technology]
[0002] There is a system called RAID (Redundant Arrays of Inexpensive Disks) that links multiple storage devices. RAID distributes and stores data across multiple storage devices, so if one storage device fails, it is possible to restore the data or replace the failed storage device.
[0003] A technique for detecting data errors in a plurality of storage devices configured in a RAID has been disclosed. For example, Patent Document 1 describes a method for identifying a magnetic storage disk device in a disk array device in which a write error has occurred. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2020-98489 A Summary of the Invention [Problem to be solved by the invention]
[0005] The problem to be solved by the present invention is to provide a redundant storage device and method capable of detecting a data error in any sector in a RAID mechanism that stores data in a plurality of storage devices. [Means for solving the problem]
[0006] According to one embodiment, the redundant storage device has a storage control means for storing in the storage unit first to n-th parity values generated from a first to n-th real data group in a row direction when real data selected and read from an arbitrary sector of a storage unit is arranged in a matrix, an n+1-th parity value generated from the generated first to n-th parity values, and further, first to m-th parity values generated from a first to m-th real data group in a column direction in the matrix arrangement, and an m+1-th parity value generated from the generated first to m-th parity values, and the storage control means performs a first comparison process of comparing the n+1 parity value generated by reading the first to n-th parity values from the storage unit with the n+1 parity value read from the storage unit, and a second comparison process of comparing the n+1 parity value generated by reading the first to m-th parity values from the storage unit with the n+1 parity value read from the storage unit. a second matching process for matching a parity value of m+1 with the m+1 parity value read from the storage unit, a third matching process for matching a parity value generated by reading from the storage unit an actual data group including the actual data to be inspected among the first actual data group to the nth actual data group in the row direction, with the parity value of the actual data group read from the storage unit, and a fourth matching process for matching a parity value generated by reading from the storage unit an actual data group including the actual data to be inspected among the first actual data group to the mth actual data group in the column direction, with the parity value of the actual data group read from the storage unit; and a processing means for processing actual data selected from any sector of the storage unit and used as the inspection target, whose values do not match in the first to fourth matching processes, as having low reliability. [Brief description of the drawings]
[0007] [Figure 1] FIG. 1 is a diagram illustrating an example of a configuration of a redundant storage device according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating a method for checking data stored in a storage device. [Diagram 3]FIG. 3 is a diagram showing an example of the arrangement of the actual data and the inspection data shown in FIG. 2 in a storage device. [Figure 4] FIG. 4 is a diagram showing an example of a write flow when the RAID device writes actual data to a storage device. [Diagram 5] FIG. 5 is a diagram illustrating an example of a read flow of Data0. [Figure 6] FIG. 6 is a diagram illustrating an example of a verification flow of verification 1. [Figure 7] FIG. 7 is a diagram illustrating an example of a verification flow of the verification 2. In FIG. [Figure 8] FIG. 8 is a diagram showing an example of a reproduction flow of procedure 1. [Figure 9] FIG. 9 is a diagram showing an example of a reproduction flow of procedure 2. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] Non-limiting exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which: FIG.
[0009] 1 is a diagram showing an example of the configuration of a redundant storage device according to an embodiment of the present invention, which illustrates the configuration of a RAID device 1 as an example of a redundant storage device.
[0010] The RAID device 1 communicates with a host computer 20 , and writes data to and reads data from a storage device 18 in response to commands from the host computer 20 .
[0011] The RAID device 1 of the example has a host communication unit 11, a control processor 12, a RAID calculation engine 13, a hash calculation engine 14, a non-volatile memory 15, a cache memory 16, a storage device interface 17, and a storage device 18. The arrows in Fig. 1 indicate the transfer of data. Here, the control processor 12, the RAID calculation engine 13, the non-volatile memory 15, the cache memory 16, the storage device interface 17, etc. correspond to the "storage control means", the "collation processing means", the "calculation means", the "processing means", the "writing means", etc. The storage device 18, etc. correspond to the "storage unit".
[0012] The host communication unit 11 communicates with the host computer 20 using a predetermined communication standard, receives commands from the host computer 20, and transmits execution results based on the commands from the host computer 20 to the host computer 20. The communication path between the host communication unit 11 and the host computer 20 may be, for example, PCI express, IEEE (Institute of Electrical and Electronics Engineers) 1285, USB (Universal Serial Bus), or iSCSI (Internet Small Computer System Interface).
[0013] The control processor 12 comprehensively controls each part of the RAID device 1, and stores the actual data received by the host communication unit 11 in the storage device 18, for example. In a RAID level (RAID6) that generally has high fault tolerance, the control processor 12 distributes and stores the actual data and two parity values in the storage device 18. In this embodiment, the control processor 12 performs an inspection process by reading and executing a predetermined program from the non-volatile memory 15, adding the two parity values and a parity value that further increases fault tolerance, and detects data errors in any sector. A specific inspection method will be described later.
[0014] The non-volatile memory 15 stores control programs (including a predetermined program), fixed data, etc. Here, the predetermined program is a program for performing various processes such as writing data to the storage unit, reading data from the storage unit, calculating a parity value, reproducing data, and writing back data.
[0015] The RAID calculation engine 13 is, for example, an XOR (exclusive OR) engine. The RAID calculation engine 13 generates a parity value and restores data using the XOR method in response to an instruction from the control processor 12. The hash calculation engine 14 performs hash calculation.
[0016] The cache memory 16 transfers data between the storage device interface 17 by direct memory access (DMA) and temporarily stores system information of the storage device 18, data stored in the storage device 18, calculation results used to check the actual data of the sectors, etc. The system information includes, for example, an identification number for identifying the multiple storage devices 18-1 to 18-8 that constitute the storage device 18, and management information (management table) for managing the sectors of the disks (magnetic disks, etc.) of the storage devices 18-1 to 18-8. Depending on the disk usage status, sector failures, etc., the storage destination of data is redistributed to other sectors as appropriate, and the management table is updated each time.
[0017] The storage device interface 17 controls each of the storage devices 18-1 to 18-8 based on the management information, and writes data to each of the storage devices 18-1 to 18-8 and reads data from each of the storage devices 18-1 to 18-8. Here, the data is actual data and parity values. The actual data is data in units of sectors.
[0018] The storage device 18 is a plurality of storage devices, and in this example, storage devices 18-1 to 18-8 are installed. Note that the number of storage devices is not limited to eight.
[0019] In order to guarantee the accuracy of data, the RAID device 1 checks for errors in data stored in the storage device 18, sector failures, etc. For this check, the RAID device 1 according to this embodiment generates first to n-th parity values based on the first to n-th (n is an integer ≧2) real data groups for each check unit (a unit selected as a check target) of any real data, and first to m-th parity values based on the first to m-th (m is an integer ≧2) real data groups for a different combination of real data of the same check unit, and stores them in the storage device 18.
[0020] For example, when real data selected and read from any sector of the memory device 18 is arranged in a matrix, the first through n-th parity values generated from the first through n-th real data groups in the row direction, respectively, and the first through m-th parity values generated from the first through m-th real data groups in the column direction in the matrix arrangement are stored in the memory device 18.
[0021] Moreover, the RAID device 1 according to this embodiment further generates an (n+1)th parity value based on each of the first to nth parity values and stores it in the storage device 18. Also, the RAID device 1 generates an (m+1)th parity value based on each of the first to mth parity values and stores it in the storage device 18.
[0022] When the parity values 1 to k+1 are to be added in addition to the parity values 1 to n+1 and 1 to m+1, the parity values are generated by a different combination of real data for each inspection unit. Here, k corresponds to a dimension indicating the arrangement direction of real data when the real data is arranged. For example, in the configuration in which the real data is arranged in a matrix on a two-dimensional plane, which will be described later, the arrangement becomes two-dimensional with k=2 in the row and column directions. The arrangement direction of the real data is not limited to the matrix on a two-dimensional plane, and may be multidimensional, more than two dimensions. An example will be shown in FIG. 2 for further detailed explanation.
[0023] FIG. 2 is a diagram for explaining a method of inspecting data stored in the storage device 18. In FIG. 2, data included as an inspection unit is arranged in a logical arrangement in order to make the inspection unit easy to understand. Of these, the actual data is shown in a logical arrangement in which the actual data selected and read from any sector of the storage device 18 is arranged in a matrix. FIG. 2 shows a logical configuration in which nine sectors of actual data (Data0 to Data8) are used as an inspection unit as an example. Also, parity values (ParityVx, ParityV0, ParityV1, ParityV2, ParityHx, ParityH0, ParityH3, ParityH6) are shown as parity values. The parity value is an example of an error correction code, and in this embodiment, it is generated by the RAID calculation engine 13 using the XOR method.
[0024] The data (actual data and test data) shown in the logical configuration in Fig. 2 differs from the physical arrangement in the actual storage device 18. In the actual storage device 18, the data is stored (distributed) across different disks. The logical arrangement shown in Fig. 2 is managed by management information (management table, etc.). This logical configuration is an example assuming RAID6, so each piece of data is distributed across four or more storage devices 18 and stored on the disk in units of one sector.
[0025] In the example shown in FIG. 2, three columns (first vertical column 101, second vertical column 102, third vertical column 103) in which data are arranged vertically correspond to the first actual data group, the second actual data group, and the third actual data group, from the left. Therefore, a parity value (ParityV0) generated based on three pieces of data, Data0, Data3, and Data6, in the first vertical column 101, is stored in a sector (inspection-compatible sector) for inspecting the first vertical column 101. Furthermore, a parity value (ParityV1) generated based on Data1, Data4, and Data7 in the second vertical column 102 is stored in an inspection-compatible sector for inspecting the second vertical column 102. Moreover, a parity value (ParityV2) generated based on Data2, Data5, and Data8, which are the remaining third vertical column 103, is stored in an inspection-compatible sector for inspecting the third vertical column 103.
[0026] Then, a parity value (ParityVx) generated based on the parity values (ParityV0, ParityV1, and ParityV2) arranged horizontally in FIG. 2 is stored in a check-compatible sector for checking the horizontal parity values.
[0027] So far, the generation of parity values for the vertical columns as the first set has been described for the nine data arrays shown in FIG. 2. When generating a second set to increase the parity value, the parity values are generated in the same manner for the three columns in which data are arranged horizontally (first horizontal column 201, second horizontal column 202, and third horizontal column 203). From the top, they correspond to the first actual data group, the second actual data group, and the third actual data group. A parity value (ParityH0) generated based on the data of Data0, Data1, and Data2 of the first horizontal column 201 is stored in the inspection-compatible sector for inspecting the first horizontal column 201. Furthermore, a parity value (ParityH3) generated based on the data of Data3, Data4, and Data5 of the second horizontal column 202 is stored in the inspection-compatible sector for inspecting the second horizontal column 202. Also, a parity value (ParityH6) generated based on the data of Data6, Data7, and Data8 in the third horizontal column 203 is stored in a check-compatible sector for checking the third horizontal column 203. Then, a parity value (ParityHx) generated based on the parity values in the horizontal direction in FIG. 2 (ParityH0, ParityH3, and ParityH6) is stored in a check-compatible sector for checking the parity values in the vertical direction.
[0028] In this example, nine pieces of data (nine sectors) are one unit, but the number of pieces of data per unit is not limited to 9. The number of pieces of data per unit is an integer n (n≧2)×an integer m (m=n, or m≠n and m≧2), and the number may be determined appropriately.
[0029] FIG. 3 is a diagram showing an example of the arrangement of the actual data and the parity values shown in FIG. 2 in the storage device 18. FIG. 3 shows an example of the arrangement when the data is distributed and stored in five storage devices (Disk0, Disk1, Disk2, Disk3, and Disk4). For example, Disk0 is the storage device 18-1, Disk1 is the storage device 18-2, Disk2 is the storage device 18-3, Disk3 is the storage device 18-4, and Disk4 is the storage device 18-5. In this example, Data0, Data4, ParityV1, and ParityVx are stored in the sectors of Disk0. Data1, ParityV2, and Data8 are stored in the sectors of Disk1. ParityHx, ParityH3, Data7, and ParityH6 are stored in the sectors of Disk2. ParityH0, Data6, and Data2 are stored in the sectors of Disk3. Data3, ParityV0, and Data5 are stored in the sectors of Disk4.
[0030] The method of distributing data to Disk 0 to Disk 4 is not limited to this. The arrangement of data to Disk 0 to Disk 4 may be changed as appropriate. In addition, although an example of distributing data to Disk 0 to Disk 4 is shown, the number of disks is not limited to five. The number of disks may be changed as appropriate.
[0031] (Inspection processing) (Write flow) Next, the flow of writing Data to a disk will be described. Here, the flow of writing Data as the first actual data will be described using the case of writing Data0 as an example, but the same applies to other data. In the following, the inspection unit of Data0 will be described using the logical configuration shown in FIG. 2 as a unit. Note that it is assumed that other data (Data1 to Data8 and their parity values, etc.) that do not affect the value of Data0 have already been written to the disk by the RAID device 1.
[0032] Fig. 4 is a diagram showing an example of a write flow when the RAID device 1 writes actual data to the storage device 18. As an example, the flow of writing Data0 to a disk will be described with reference to the logical configuration shown in Fig. 2. The storage device 18 appropriately selects one of the disks from the storage devices 18-1 to 18-5, distributes and writes data, and reads the written data from the target sector by referring to a management table.
[0033] First, the RAID device 1 receives Data0 from the host computer 20 (S1). Next, the RAID device 1 reads Data1 and Data2 (data aligned horizontally of Data0 in the logical configuration of FIG. 2) and Data3 and Data6 (data aligned vertically of Data0 in the logical configuration of FIG. 2) included in the check unit of Data0 from the storage device 18 (S2).
[0034] The RAID device 1 calculates ParityH0 based on Data0 and the read Data1 and Data2 (S3). The calculation is the same below, but the RAID calculation engine 13 performs an XOR calculation to generate a parity value.
[0035] Furthermore, the RAID device 1 calculates ParityV0 based on Data0 and the read Data3 and Data6 (S4).
[0036] Next, the RAID device 1 reads out the already stored ParityV1 and ParityV2 from the storage device 18 (S5). Similarly, the RAID device 1 reads out the already stored ParityH3 and ParityH6 from the storage device 18 (S6). The RAID device 1 calculates ParityHx based on the calculated ParityH0 and the read ParityH3 and ParityH6 (S7). The RAID device 1 also calculates ParityVx based on the calculated ParityV0 and the read ParityV1 and ParityV2 (S8).
[0037] Then, the RAID device 1 manages Data0 and each calculated value (parity value) as an arrangement of the logical configuration shown in Fig. 2 using management information or the like, and distributes and writes each of them to the storage devices 18 (S9). At this time, the parity value is written to a sector set in the management table as an inspection-compatible sector.
[0038] As described above, when writing actual data, RAID device 1 generates ParityV0 and ParityH0 for the vertical and horizontal arrangements, respectively, and further generates ParityVx and ParityHx to check each parity value in the vertical and horizontal arrangements, and stores these in the specified sectors along with writing Data0 to the disk.
[0039] (Read flow) Next, the flow when reading Data from the disk will be explained, taking the case of reading Data0 as an example.
[0040] 5 is a diagram showing an example of a read flow of Data0. When the RAID device 1 is instructed to read Data0 from the host computer 20, for example, it reads all data (actual data and parity values) included in the check unit of Data0 from the storage device 18 (S11). That is, it reads the actual data (Data0 to Data8) and parity values (ParityV0, ParityV1, ParityV2, ParityH0, ParityH3, ParityH6, ParityVx, and ParityHx) shown in FIG. 2. If an I / O error occurs from the storage device 18 during reading, the sector may be faulty, and so the sector is stored in the management table.
[0041] Next, the RAID device 1 performs verification using the parity value to check the reliability (likelihood) of Data0 (S12). The verification involves performing verification 1 and verification 2, which will be described later, using various parity values included in the inspection unit.
[0042] If the RAID device 1 determines through verification 1 and verification 2 that the reliability of Data0 has not decreased, it returns Data0 to the host computer 20 (S13). On the other hand, if it determines that the reliability of Data0 or the parity value has decreased, it regenerates Data0 or the parity value through a prescribed regeneration procedure (S14), as an example of processing assuming that reliability has decreased. Here, regeneration means regenerating data from highly reliable data.
[0043] (Verification Procedure) In verification 1 and verification 2, we assign reliability to data and detect data with low reliability. First, we will explain verification 1.
[0044] 6 is a diagram showing an example of a verification flow of verification 1. The RAID device 1 checks the report of an I / O error received when reading data from the storage device 18 (S21), and allocates the reliability of each data item based on the report (S22).
[0045] For example, if an I / O error of the storage device 18 is reported for any of ParityV0, ParityV1, ParityV2, and ParityVx, ParityV0 is assigned to the lower reliability because its reliability is reduced. Also, if an I / O error of the storage device 18 is reported for any of ParityH0, ParityH3, ParityH6, and ParityHx, ParityH0 is assigned to the lower reliability because its reliability is reduced. Also, if an I / O error is reported when reading Data0, Data3, Data6, and ParityV0, ParityV0 and Data0 are assigned to the lower reliability because their reliability is reduced. Also, if an I / O error is reported when reading Data0, Data1, Data2, and ParityH0, ParityH0 and Data0 are assigned to the lower reliability because their reliability is reduced.
[0046] Next, verification 2 will be explained. In verification 2, the RAID device 1 checks the reliability of data using the parity value stored in the storage device 18. As an example, the verification flow of verification 2 for checking the reliability of Data0 is shown. In this example, Data0 (see FIG. 2) corresponds to the "data to be verified", and the first vertical column 101 (see FIG. 2) including Data0 corresponds to the "kth (k=1, 2, 3) multiple actual data". In this example, k=1. Furthermore, the first horizontal column 201 (see FIG. 2) including Data0 corresponds to the "jth (j=1, 2, 3) multiple actual data". In this example, j=1.
[0047] 7 is a diagram showing an example of a verification flow of verification 2. The RAID device 1 first calculates ParityHx from ParityH0, ParityH3, and ParityH6 (S31), and determines whether the calculated ParityHx matches the ParityHx read from the storage device 18 (S32).
[0048] If the RAID device 1 determines that they do not match (S32: No), ParityH0 is less reliable and so is assigned to the one with low reliability (S33).
[0049] Furthermore, the RAID device 1 calculates ParityVx from ParityV0, ParityV1, and ParityV2 (S34), and determines whether the calculated ParityVx matches the ParityVx read from the storage device 18 (S35).
[0050] If the RAID device 1 determines that they do not match (S35: No), ParityV0 is less reliable and so is assigned to the one with low reliability (S36).
[0051] On the other hand, if the RAID device 1 determines that ParityHx matches (S32: Yes), the reliability of ParityH0 has not decreased. Therefore, the RAID device 1 calculates ParityH0 from Data0, Data1, and Data2 (S37), and determines whether the calculation result matches the value of ParityH0 read from the storage device 18 (S38).
[0052] If the RAID device 1 determines that they do not match (S38: No), Data0 is less reliable and is therefore assigned to the less reliable type (S39).
[0053] Furthermore, if the RAID device 1 determines that ParityVx matches (S35: Yes), this means that the reliability of ParityV0 has not decreased. Therefore, the RAID device 1 calculates ParityV0 from Data0, Data3, and Data6 (S40), and determines whether the calculation result matches the value of ParityV0 read from the storage device 18 (S41).
[0054] If the RAID device 1 determines that there is no match (S41: No), Data0 is less reliable and is therefore assigned to the less reliable one (S42).
[0055] On the other hand, if the RAID device 1 determines that ParityV0 matches (S41: Yes), it assigns Data0 to the one with high reliability (S43).
[0056] If the RAID device 1 determines through the above-described verification 1 and verification 2 that the reliability has not decreased, it returns the read Data0 to the host computer 20. On the other hand, if the reliability has decreased, the next reproduction procedure is started.
[0057] (Rehabilitation proceedings) Next, the recovery procedures of the RAID device 1 will be described. Here, two recovery procedures, procedure 1 and procedure 2, will be described as an example. Procedure 1 is a procedure for recovering Data0 when Data0 is unreliable. In the next procedure 1, the RAID device 1 performs a process of recovering Data0 and writing it back to the storage device 18.
[0058] FIG. 8 is a diagram showing an example of the recovery flow of procedure 1. First, if ParityV0 is reliable, the RAID device 1 recalculates Data0 from Data3, Data6, and ParityV0 (S51). If ParityH0 is reliable, the RAID device 1 recalculates Data0 from Data1, Data2, and ParityH0 (S52). The RAID device 1 determines whether the recalculated Data0 matches (S53), and if they match (S53: Yes), writes Data0 back to the storage device and returns Data0 to the host with "reserved" (S54). If Data0 does not match (S53: No), it notifies the host that "the data is corrupted" (S55).
[0059] Next, procedure 2 will be described. Procedure 2 is a procedure for regenerating the parity value when the reliability of the parity value has decreased while the reliability of Data0 has not decreased. In the next procedure 2, the RAID device 1 performs a process of regenerating the parity value and writing it back to the storage device 18.
[0060] 9 is a diagram showing an example of the recovery flow of procedure 2. First, the RAID device 1 recalculates ParityV0 (S61). The RAID device 1 also calculates ParityVx from ParityV1, ParityV2 and the recalculated ParityV0 of the storage device 18 (S62). Next, the RAID device 1 determines whether the calculated ParityV0 matches the ParityV0 read from the storage device 18 (S63), and if they do not match (S63: No), writes the calculated ParityV0 back to the storage device 18 (S64).
[0061] Furthermore, the RAID device 1 recalculates ParityH0 (S65). The RAID device 1 calculates ParityHx from ParityH3, ParityH6 of the storage device 18 and the recalculated ParityH0 (S66). The RAID device 1 determines whether the calculated ParityH0 matches the ParityH0 read from the storage device 18 (S67), and if they do not match (S67: No), writes the calculated ParityH0 back to the storage device 18 (S68).
[0062] In this example, the inspection unit is considered as two-dimensional (x-y) as shown in FIG. 2, but the inspection unit is not limited to a two-dimensional array. It may be a k-dimensional (k=2, 3, 4, etc.) array, such as three-dimensional or four-dimensional. That is, the RAID device 1 generates a plurality of sets (n sets) of the first parity value to the i-th parity value, and generates the i+1th parity value from the first parity value to the i-th parity value for each set. Each set is generated under the condition that the combination of different real data in the inspection unit and i is an arbitrary integer of 2 or more. Note that the value of i in each set does not have to be the same. Then, the RAID device 1 writes each parity value into a plurality of storage means. For example, in the case of three dimensions, the logical configuration of the inspection unit is also set in the z direction perpendicular to the xy plane in FIG. 2. That is, the two-dimensional logical configuration shown in FIG. 2 is also set in the z direction in a plurality of (arbitrarily set number), and the inspection unit includes a plurality of two-dimensional logical configurations in the z direction. In the three-dimensional case, the parity value of Data0 is set in the z direction as well as in the x and y directions. The inspection of the actual data is performed in the x, y, and z directions using the parity values in each direction as in the inspection of the x direction described above.
[0063] In addition, the above-mentioned inspection methods may be appropriately combined with inspection methods using RAIDp+α (for example, RAID6+1, RAID6+2), RAID6 (diagonal parity), CRC (Cyclic Redundancy Check), etc. In this way, it is possible to further increase the reliability of data.
[0064] As described above, when writing and reading one piece of actual data, a part or all of the data in the inspection unit of the actual data is read from the storage device, and the actual data and the parity value are inspected. This makes it possible to detect data errors in any sector with high accuracy. Also, there are cases where the storage device does not report an error when data is not written correctly, but even in such cases, it is possible to detect an abnormality.
[0065] In the embodiments, several configurations of the redundant storage device are shown, but these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be embodied in various other forms, and various omissions, substitutions, and modifications can be made without departing from the gist of the invention. These embodiments and their modifications are included in the scope and gist of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]
[0066] 1 RAID device 11 Host Communication Unit 12 Control Processor 13 RAID Calculation Engine 14 Hash Calculation Engine 15 Non-volatile memory 16 Cache Memory 17 Storage Interfaces 18 Storage device
Claims
1. a storage control means for storing in said storage unit first through n-th parity values generated from a first through n-th real data group in a row direction, respectively, when real data selected and read from any sector of the storage unit is arranged in a matrix, and an n+1-th parity value generated from the generated first through n-th parity values, and further first through m-th parity values generated from a first through m-th real data group in a column direction in the matrix arrangement, respectively, and an m+1-th parity value generated from the generated first through m-th parity values, The storage control means a first comparison process for comparing the n+1 parity value generated by reading each of the first to n-th parity values from the storage unit with the n+1 parity value read from the storage unit; a second verification process for verifying the (m+1)th parity value generated by reading each of the first to m-th parity values from the storage unit with the (m+1)th parity value read from the storage unit; a third verification process for verifying a parity value generated by reading from the storage unit an actual data group including actual data to be inspected among the first actual data group to the n-th actual data group in the row direction, with a parity value of the actual data group read from the storage unit; a fourth verification process for verifying a parity value generated by reading an actual data group including the actual data to be inspected from the first actual data group to the m-th actual data group in the column direction from the storage unit, against the parity value of the actual data group read from the storage unit; a processing means for processing, as low reliability, the actual data selected from any sector of the storage unit and subjected to the inspection, whose values do not match in the first to fourth collation processes; 1. A redundant storage device comprising:
2. The storage control means a calculation process of calculating a parity value of a row-oriented real data group including the first real data received from the host, from the first real data received from the host and each piece of real data other than the first real data that is read from the storage unit and that is in the same row as the first real data in the matrix arrangement, and calculating a parity value of a column-oriented real data group including the first real data received from the host, from the first real data received from the host and each piece of real data other than the first real data that is read from the storage unit and that is in the same column as the first real data in the matrix arrangement; a calculation processing means for performing a calculation process of calculating the n+1 parity value from the parity value of the actual data group of the row including the first actual data calculated by the calculation process and each parity value of the actual data group of each row different from the first actual data read from the storage unit, and calculating the m+1 parity value from the parity value of the actual data group of the column including the first actual data calculated by the calculation process and each parity value of the actual data group of each column different from the first actual data read from the storage unit; a writing means for writing, when writing first actual data received from the host to the storage unit, a parity value of an actual data group of a row of the first actual data, a parity value of an actual data group of a column of the first actual data, the (n+1)th parity value, and the (m+1)th parity value, which are calculated by the calculation processing means, into the storage unit; 2. The redundant storage device according to claim 1, further comprising:
3. The storage control means regenerating the actual data with low reliability in the storage unit using the actual data with high reliability in the storage unit and writing the regenerated data back to the storage unit.
2. The redundant storage device according to claim 1.
4. a storage control means for generating first through n-th parity values in each direction of the k dimension, the first through n-th parity values being generated from the first through n-th real data groups in one dimension in a k-dimensional array of a plurality of real data selected and read from any sector of the storage means, and storing the first through n-th parity values in each direction of the k dimension in the storage means, and storing an n+1-th parity value in the storage means, the first through n-th parity values being generated from the first through n-th real data groups in each direction of the k dimension; The storage control means a comparison process of comparing the n+1 parity value generated by reading each of the first to n-th parity values from the storage unit with the n+1 parity value read from the storage unit; a verification process for verifying a parity value generated by reading from the storage unit an actual data group including actual data to be inspected among the first actual data group to the n-th actual data group in the k-dimensional direction, with a parity value of the actual data group read from the storage unit; a processing means for processing, among the real data selected from any sector of the storage unit and subjected to the inspection, real data whose values do not match in each of the collation processes as being low in reliability; 1. A redundant storage device comprising:
5. A method for inspecting the reliability of actual data stored in a storage unit, comprising the steps of: storing in the storage unit first through n-th parity values generated from the first through n-th real data groups in the row direction, respectively, when real data selected and read from any sector of the storage unit is arranged in a matrix, and an n+1-th parity value generated from the first through n-th parity values generated, and further storing first through m-th parity values generated from the first through m-th real data groups in the column direction in the matrix arrangement, respectively, and an m+1-th parity value generated from the first through m-th parity values generated, a first comparison is performed between the n+1 parity value generated by reading each of the first to n-th parity values from the storage unit and the n+1 parity value read from the storage unit; a second comparison is performed between the m+1 parity value generated by reading each of the first to m-th parity values from the storage unit and the m+1 parity value read from the storage unit; a third comparison is made between a parity value generated by reading from the storage unit an actual data group including an actual data to be inspected, among the first actual data group to the n-th actual data group in the row direction, and the parity value of the actual data group read from the storage unit; A fourth comparison is made between a parity value generated by reading from the storage unit an actual data group including the actual data to be inspected, among the first actual data group to the mth actual data group in the column direction, and the parity value of the actual data group read from the storage unit; selecting an arbitrary sector of the storage unit and processing the actual data whose values do not match in the first to fourth comparisons among the actual data to be inspected as being low in reliability; method.
Citation Information
Patent Citations
Random access memory
JP1989060899A
Memory
JP1993144287A
Improved mirrored array disk and its data input output system
JP1994059823A
Redundant storage device
JP2000148409A
Disk array unit and control method therefor
JP2006107311A
