A storage system and method for pseudo-variable RAID mode
By virtually projecting the RAID group in the RAID controller and performing data verification, it solves the problem of existing storage solutions that are difficult to balance storage performance, data security and cost, achieving efficient writing and security while reducing hardware and construction costs. .
Patent Information
- Application Number
- CN202410824945.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-25
AI Technical Summary
It is difficult for existing storage solutions to balance storage performance, data security and storage costs. In particular, RAID 5/6/50/60 has low write performance due to the parity check method, and the control system is complex and costly.
With pseudo-variable RAID mode, virtual projection creates a pseudo-variable RAID group by recording RAID 0 and base RAID mode or RAID 10 and combined RAID mode in the RAID controller, and when writing, writes in RAID 0 or RAID 10 mode data, perform data verification at low load, and write the verification data into the verification area of the actual RAID mode to achieve efficient data storage.
It improves writing efficiency and storage security, while reducing storage construction costs, providing high reliability close to the same security level and writing speed, and reducing hardware requirements and construction costs.
Smart Images

Figure CN118377441B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of server storage, and in particular relates to a storage system and method of a pseudo-variable RAID mode. Background Art
[0002] In the current environment of rapid technological development, manufacturers have higher and higher requirements for storage devices. Users need storage devices to provide very high reliability and performance to maintain daily production according to their different needs. In traditional storage devices, capacity, reliability, performance, and storage cost are the core indicators for measuring a storage solution, but it is difficult to take all four into account at the same time.
[0003] Current storage solutions include RAID 0 / 1 / 10, among which RAID 0 is the simplest form of disk array construction. It only requires two or more hard disks, is low-cost, and can improve the performance and throughput of the entire disk, but does not provide redundancy or error repair capabilities. RAID 1 is called disk mirroring. The principle is to mirror the data of one disk to another disk. That is to say, when the data is written to one disk, a mirror file will be generated on another idle disk. Without affecting the performance, the reliability and repairability of the system are guaranteed to the maximum extent, and it has good disk redundancy capabilities. RAID 10 is a combination of RAID 0 and RAID 1. In addition to data being distributed on multiple disks, each disk has its own physical mirror disk, providing full redundancy capabilities, allowing one or less disk failures without affecting data availability, and has fast read / write capabilities. However, since it requires the existing disk to be divided into two mirrors, the disk utilization rate is relatively low and the cost is relatively high.
[0004] Currently, there are RAID 5 / 6 / 50 / 60 storage solutions. RAID 5 is a storage solution that takes into account storage performance, data security and storage cost. Data is distributed to each hard disk in blocks. RAID 5 does not back up data, but stores the data and its corresponding parity information on each disk that makes up RAID 5, and the parity information and the corresponding data are stored on different disks. When the data on a disk of RAID 5 is damaged, the damaged data can be restored using the remaining data and the corresponding parity information.
[0005] RAID 6 technology is a RAID method designed on the basis of RAID 5 to further strengthen data protection. It is actually an extended RAID 5 level. The difference from RAID 5 is that in addition to the XOR check area for the same-level data on each hard disk, there is also an XOR check area for each data block. Of course, the check data of the current disk data block cannot exist on the current disk but is stored in an interleaved manner. It is equivalent to having two check protection barriers for each data block, one hierarchical check and the other overall check, so the data redundancy performance of RAID 6 is quite good. However, due to the addition of a check, the writing efficiency is worse than that of RAID 5, and the design of the control system is more complicated. The check area of the second block also reduces the effective storage space.
[0006] RAID 50 is a combination of RAID 5 and RAID 0. This configuration strips data, including parity information, across each disk in the RAID 5 sub-disk group. Each RAID 5 sub-disk group requires at least three hard disks. RAID 50 has higher fault tolerance because it allows a single disk failure within a group without causing data loss. And because the parity bits are distributed across the RAID 5 sub-disk group, the rebuild speed is greatly improved.
[0007] RAID 60 is similar to RAID 50, with data distributed in a mirrored array stripe format, a combination of RAID 6 + RAID 0. Like RAID 0, data is partitioned into stripes and written to multiple hard disks at the same time; like RAID 6, two data check modules are used to ensure data security, and the check stripes are evenly distributed on each hard disk.
[0008] Since RAID 5 / 6 / 50 / 60 uses parity check for data verification, it has relatively low write performance.
[0009] Therefore, how to improve the existing storage solution so that it can take into account various storage performance, data security, and storage costs is a technical problem that urgently needs to be solved. Summary of the invention
[0010] The object of the present invention is to provide a storage system and method of a pseudo-variable RAID mode, so as to solve the technical problem that the prior art cannot take into account various storage performances, data security and storage costs.
[0011] In order to solve the above technical problems, the technical solution adopted by the present invention is as follows:
[0012] On the one hand, a storage method of a pseudo variable RAID mode is provided, including a mode of a basic RAID scenario and a mode of a combined RAID scenario, wherein in the mode of the basic RAID scenario, the following steps are included:
[0013] S1: In the write scenario, the basic RAID mode is used;
[0014] S2: The virtual projection module creates a pseudo variable RAID group: two modes are recorded in the RAID controller, including RAID 0 and a basic RAID mode, wherein the space of the RAID 0 corresponds one-to-one to the actual space of the basic RAID mode, and RAID 0 is a virtual projection object of the pseudo variable RAID group;
[0015] S3: The data writing module writes the data stream to the RAID controller, and the RAID controller determines whether it is data writing. If so, the data is written in RAID 0 mode, and the writing area is marked and the verification data writing thread is started / updated;
[0016] S4: The data verification module performs data verification: The RAID controller verifies the data in the marking area by running the thread at low load, and writes the generated data into the verification data area corresponding to the actual basic RAID mode;
[0017] S5: Complete the writing of verification data to all marked areas, complete the writing of complete data, and achieve successful storage;
[0018] The basic RAID mode is RAID 1, RAID 5 or RAID 6.
[0019] Preferably, in step S2, when the basic RAID mode is RAID 5, the hardware environment is equivalent to RAID 50, and the actual expression is RAID 50.
[0020] Preferably, in the mode of combined RAID scenario, the following steps are included:
[0021] S11: In the write scenario, the combined RAID mode is used;
[0022] S22: the virtual projection module creates a pseudo variable RAID group: two modes are recorded in the RAID controller, including a RAID 10 and a combined RAID mode, the space of the RAID 10 corresponds to the actual space of the combined RAID mode one by one, and the RAID 10 is the virtual projection object of the pseudo variable RAID group;
[0023] S33: The data writing module writes the data stream to the RAID controller, and the RAID controller determines whether it is write data. If so, the data is written in RAID 10 mode, and the write area is marked and the verification data writing thread is started / updated;
[0024] S44: the data verification module performs data verification: the RAID controller verifies the data in the marking area by running the thread at low load, and writes the generated data into the verification data area corresponding to the actual combined RAID mode;
[0025] S55: Complete the writing of verification data to all marked areas, complete the writing of complete data, and achieve successful storage;
[0026] The combined RAID mode includes RAID 50 or RAID 60.
[0027] Preferably, during the process of creating the pseudo variable RAID group in step S2 and step S22, the RAID controller scans the disk, automatically plans the data area according to the existing physical environment, classifies the planned area, and projects the planned area into a new small-scale RAID group with high write performance.
[0028] Preferably, in the verification thread process of steps S4 and S44, the verification thread is started or updated when a write request is initiated, and the priority is set lower than the write or read request. When there is a write or read request, the verification thread function is suspended, and when the write or read request is completed, the verification thread function is started.
[0029] In a second aspect, a storage system in a pseudo variable RAID mode is provided, which is used to implement any one of the storage methods in a pseudo variable RAID mode, and includes a RAID controller, a data writing module, a virtual projection module, and a data verification module, wherein the RAID controller is connected to the data writing module, the RAID controller is connected to the virtual projection module, and the data verification module is connected to the RAID controller;
[0030] The RAID controller is used to manage each disk array so that each disk array performs its own function like a logical component;
[0031] The data writing module is used to write data to the RAID controller;
[0032] The virtual projection module is used to create a pseudo variable RAID group and a virtual projection object of the pseudo variable RAID group;
[0033] The data verification module is used to verify the marked area data.
[0034] The beneficial effects of the present invention include:
[0035] The storage system and method of the pseudo variable RAID mode provided by the present invention creates a pseudo variable RAID group, records two modes in the RAID controller, including RAID 0 and RAID 5, the space of RAID 0 corresponds to the actual space of RAID 5, and RAID 0 is the virtual projection object of the pseudo variable RAID group. Then the data stream is written to the RAID controller, and the RAID controller determines whether it is to write data. If so, the data is written in RAID 0 mode. The RAID controller verifies the data in the marked area by running the thread at low load, and writes the generated data to the verification data area corresponding to the actual RAID 5, completing the writing of the verification data of all marked areas to achieve successful storage. It effectively improves the writing efficiency, improves the storage security, and reduces the storage construction cost.
[0036] 1. In scenarios with nearly the same security level, since the hardware essence is still a RAID group with the same security level, in the same scenario, only a short period of reliability is sacrificed in exchange for the data writing efficiency of the entire writing process, so the data writing efficiency is greatly improved.
[0037] 2. In scenarios with nearly equal write rates, the hardware is essentially a high-reliability RAID group with an actual capacity similar to the level of the virtual RAID group, so it has high security.
[0038] 3. Compared with the current RAID groups that require the same write performance, the number of disks needs to be increased accordingly. Compared with some advanced RAID modes such as RAID7, this method only requires certain logical modifications to the hardware firmware to successfully build, greatly reducing the construction cost.
[0039] 4. Since it is essentially a popular high-reliability RAID group mode, in theory it is applicable to all scenarios that support this high-reliability RAID group mode. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a flowchart of the storage method of the pseudo-variable RAID mode of the present invention. DETAILED DESCRIPTION
[0041] The following is combined with Figure 1 The present invention is further described in detail:
[0042] See attached Figure 1 As shown, a storage system and method of a pseudo variable RAID mode include a mode of a basic RAID scenario and a mode of a combined RAID scenario, wherein in the mode of the basic RAID scenario, the following steps are included:
[0043] S1: In the write scenario, the basic RAID mode is used;
[0044] S2: The virtual projection module creates a pseudo variable RAID group: two modes are recorded in the RAID controller, including RAID 0 and a basic RAID mode, wherein the space of the RAID 0 corresponds one-to-one to the actual space of the basic RAID mode, and RAID 0 is a virtual projection object of the pseudo variable RAID group;
[0045] S3: The data writing module writes the data stream to the RAID controller, and the RAID controller determines whether it is data writing. If so, the data is written in RAID 0 mode, and the writing area is marked and the verification data writing thread is started / updated;
[0046] S4: The data verification module performs data verification: The RAID controller verifies the data in the marking area by running the thread at low load, and writes the generated data into the verification data area corresponding to the actual basic RAID mode;
[0047] S5: Complete the writing of verification data to all marked areas, complete the writing of complete data, and achieve successful storage;
[0048] The basic RAID mode is RAID 1, RAID 5 or RAID 6.
[0049] Among them, in step S2, when the basic RAID mode is RAID 5, the hardware environment is equivalent to RAID 50, and the actual performance is RAID 50. In this basic RAID mode, the write rate of the disk is close to that of RAID 1 with the same capacity, which is significantly improved compared with the original RAID 5 write rate.
[0050] In the above scheme, the actual writing mode is different from the hardware composition mode. By projecting a virtual RAID mode, the written data is written in an efficient writing mode, and the area is marked at the same time, and the data in the marked area is verified in the subsequent low-load period. The RAID controller presents RAID 0 / 10 to the outside through a more complex new logic, maintains the virtual mode to write data, and enables the verification thread internally to verify and write the data.
[0051] On the one hand, since its hardware essence is still a RAID group with the same security level, in the same scenario, it only sacrifices reliability for a short period of time in exchange for the data writing efficiency of the entire writing process, so the data writing efficiency is greatly improved. On the other hand, since its hardware essence is a high-reliability RAID group with an actual capacity similar to the same virtual RAID group level, it has high security. On the other hand, compared with the current RAID group that requires the same writing performance, the number of disks needs to be increased accordingly. Compared with some advanced RAID modes such as RAID7, this method only requires certain logical modifications to the hardware firmware to be successfully built, and the construction cost is greatly reduced. Finally, since its essence is a popular high-reliability RAID group mode, in theory all scenarios that support this high-reliability RAID group mode are applicable.
[0052] In another embodiment, in the mode of combined RAID scenario, the following steps are included:
[0053] S11: In the write scenario, the combined RAID mode is used;
[0054] S22: the virtual projection module creates a pseudo variable RAID group: two modes are recorded in the RAID controller, including a RAID 10 and a combined RAID mode, the space of the RAID 10 corresponds to the actual space of the combined RAID mode one by one, and the RAID 10 is the virtual projection object of the pseudo variable RAID group;
[0055] S33: The data writing module writes the data stream to the RAID controller, and the RAID controller determines whether it is write data. If so, the data is written in RAID 10 mode, and the write area is marked and the verification data writing thread is started / updated;
[0056] S44: the data verification module performs data verification: the RAID controller verifies the data in the marking area by running the thread at low load, and writes the generated data into the verification data area corresponding to the actual combined RAID mode;
[0057] S55: Complete the writing of verification data to all marked areas, complete the writing of complete data, and achieve successful storage;
[0058] The combined RAID mode includes RAID 50 or RAID 60.
[0059] In the process of creating the pseudo variable RAID group in step S2 and step S22, the RAID controller scans the disk, automatically plans the data area according to the existing physical environment, classifies the planned area, and projects the planned area into a new small-scale high-write performance RAID group.
[0060] In the verification thread process of steps S4 and S44, the verification thread is started or updated when a write request is initiated, and the priority setting is lower than the write or read request. When there is a write or read request, the verification thread function is suspended, and when the write or read request is completed, the verification thread function is started.
[0061] In this combined RAID mode, the hard disk write rate is close to that of RAID 10 with the same capacity, which is a significant improvement over the original RAID 50 write rate.
[0062] A storage system in a pseudo-variable RAID mode, used to implement any one of the storage methods in a pseudo-variable RAID mode, comprising a RAID controller, a data writing module, a virtual projection module and a data verification module, wherein the RAID controller is connected to the data writing module, the RAID controller is connected to the virtual projection module, and the data verification module is connected to the RAID controller;
[0063] The RAID controller is used to manage each disk array so that each disk array performs its own function like a logical component;
[0064] The data writing module is used to write data to the RAID controller;
[0065] The virtual projection module is used to create a pseudo variable RAID group and a virtual projection object of the pseudo variable RAID group;
[0066] The data verification module is used to verify the marked area data.
[0067] In summary, the storage system and method of the pseudo-variable RAID mode provided by the present invention, by projecting a virtual RAID mode, writes the write data in an efficient write mode, marks the area at the same time, performs data verification of the marked area in the subsequent low-load period, and RAID control presents RAID 0 / 10 to the outside through a more complex new logic, maintains the virtual mode to write data, and enables the verification thread internally to verify and write the data. In the scenario close to the same security level, since its hardware essence is still a RAID group under the same security level, in the same scenario, only a short period of reliability is sacrificed in exchange for the data writing efficiency of the entire writing process, so the data writing efficiency is greatly improved. In the scenario close to the same write rate, since its hardware essence is a high-reliability RAID group with an actual capacity similar to the level of the same virtual RAID group, it has a very high security. Compared with the current RAID group that requires the same write performance, the number of disks needs to be increased accordingly. Compared with some advanced RAID modes such as RAID7, this method only needs to make certain logical modifications to the hardware firmware to successfully build, and the construction cost is greatly reduced. Since it is essentially a popular high-reliability RAID group mode, in theory all scenarios that support this high-reliability RAID group mode are applicable.
Claims
1. A storage method of pseudo variable RAID mode, It is characterized in that The method includes a mode of a basic RAID scenario and a mode of a combined RAID scenario, wherein the mode of the basic RAID scenario includes the following steps: S1: In the write scenario, the basic RAID mode is used; S2: The virtual projection module creates a pseudo variable RAID group: two modes are recorded in the RAID controller, including RAID 0 and a basic RAID mode, wherein the space of the RAID 0 corresponds one-to-one to the actual space of the basic RAID mode, and RAID 0 is a virtual projection object of the pseudo variable RAID group; S3: The data writing module writes the data stream to the RAID controller, and the RAID controller determines whether it is data writing. If so, the data is written in RAID 0 mode, and the writing area is marked and the verification data writing thread is started / updated; S4: The data verification module performs data verification: The RAID controller verifies the data in the marking area by running the thread at low load, and writes the generated data into the verification data area corresponding to the actual basic RAID mode; S5: Complete the writing of verification data to all marked areas, complete the writing of complete data, and achieve successful storage; The basic RAID mode is RAID 1, RAID 5 or RAID 6.
2. A storage method of a pseudo variable RAID mode according to claim 1, It is characterized in that In step S2, when the basic RAID mode is RAID 5, the hardware environment is equivalent to RAID 50, and the actual expression is RAID 50.
3. A storage method of a pseudo variable RAID mode according to claim 1, It is characterized in that In the combined RAID scenario mode, the following steps are included: S11: In the write scenario, the combined RAID mode is used; S22: The virtual projection module creates a pseudo variable RAID group: two modes are recorded in the RAID controller, including a RAID10 and a combined RAID mode, the space of the RAID 10 corresponds to the actual space of the combined RAID mode one by one, and the RAID 10 is the virtual projection object of the pseudo variable RAID group; S33: The data writing module writes the data stream to the RAID controller, and the RAID controller determines whether it is write data. If so, the data is written in RAID 10 mode, and the write area is marked and the verification data writing thread is started / updated; S44: the data verification module performs data verification: the RAID controller verifies the data in the marking area by running the thread at low load, and writes the generated data into the verification data area corresponding to the actual combined RAID mode; S55: Complete the writing of verification data to all marked areas, complete the writing of complete data, and achieve successful storage; The combined RAID mode includes RAID 50 or RAID 60.
4. A storage method of a pseudo variable RAID mode according to claim 3, It is characterized in that In the process of creating the pseudo variable RAID group in step S2 and step S22, the RAID controller scans the disks, automatically plans the data area according to the existing physical environment, classifies the planned area, and projects the planned area into a new RAID group.
5. A storage method of a pseudo variable RAID mode according to claim 3, It is characterized in that In the verification thread process of steps S4 and S44, the verification thread is started or updated when a write request is initiated, and the priority setting is lower than the write or read request. When there is a write or read request, the verification thread function is suspended, and when the write or read request is completed, the verification thread function is started.
6. A storage system in a pseudo variable RAID mode, used to implement a storage method in a pseudo variable RAID mode as claimed in any one of claims 1 to 5, It is characterized in that It includes a RAID controller, a data writing module, a virtual projection module and a data verification module, wherein the RAID controller is connected to the data writing module, the RAID controller is connected to the virtual projection module, and the data verification module is connected to the RAID controller; The RAID controller is used to manage each disk array; The data writing module is used to write data to the RAID controller; The virtual projection module is used to create a pseudo variable RAID group and a virtual projection object of the pseudo variable RAID group; The data verification module is used to verify the marked area data.
