CN102122235B - RAID4 (redundant array of independent disks) system and data reading and writing method thereof - Google Patents

RAID4 (redundant array of independent disks) system and data reading and writing method thereof Download PDF

Info

Publication number
CN102122235B
CN102122235B CN2011100253497A CN201110025349A CN102122235B CN 102122235 B CN102122235 B CN 102122235B CN 2011100253497 A CN2011100253497 A CN 2011100253497A CN 201110025349 A CN201110025349 A CN 201110025349A CN 102122235 B CN102122235 B CN 102122235B
Authority
CN
China
Prior art keywords
data
raid controller
write
ssd
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2011100253497A
Other languages
Chinese (zh)
Other versions
CN102122235A (en
Inventor
王亚轩
吴非
陈祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WUHAN SOLIWARE STORAGE TECHNOLOGY Co Ltd
Huazhong University of Science and Technology
Original Assignee
WUHAN SOLIWARE STORAGE TECHNOLOGY Co Ltd
Huazhong University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WUHAN SOLIWARE STORAGE TECHNOLOGY Co Ltd, Huazhong University of Science and Technology filed Critical WUHAN SOLIWARE STORAGE TECHNOLOGY Co Ltd
Priority to CN2011100253497A priority Critical patent/CN102122235B/en
Publication of CN102122235A publication Critical patent/CN102122235A/en
Application granted granted Critical
Publication of CN102122235B publication Critical patent/CN102122235B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a RAID4 (redundant array of independent disks) system and a data reading and writing method thereof. The RAID4 system comprises a RAID controller and a disc array, wherein the disk array comprises a disk array composed of a plurality of data disks and a solid hard disc used as a checking disc; the RAID controller is connected to the disk array; the data interaction between the RAID controller and the solid hard disc is realized through a user-defined interface command; a cache module and an exclusive or module are arranged in the controller of the solid hard disc; the cache module is used for storing the data written in the solid hard disc by the RAID controller; and a checking updating module in the RAID controller is replaced by the exclusive or module, thereby achieving the checking information calculation function. The system is improved by using the solid hard disc as the checking disc while the corresponding data reading and writing method is provided, so the IO (input output) operation times of the checking disc when the data is read and written are reduced, the reading and writing bottleneck problem of the checking disc is eliminated, and the property of system is promoted.

Description

A kind of RAID4 system and data read-write method thereof
Technical field
The present invention relates to the Computer Storage field, be specifically related to a kind of RAID4 system and data read-write method thereof.
Background technology
RAID (Redundant Access Independent Disks, raid-array) technology is widely used in the data storage as a kind of proven technique.The RAID technology has seven kinds of basic RAID ranks from RAID0 to 6, and different RAID ranks are being represented different memory properties, data security and carrying cost.Wherein RAID4 grows up on the basis of RAID3.As shown in Figure 1; In the RAID4 pattern; The dish battle array comprises the disk (abbreviation data disks) of N storage data and the disk (abbreviation check disk) that is exclusively used in store parity information, and it is the basis with band (Data striping), after the file data piecemeal, writes in the data disks; To in other data disks with this data block same disc in all data blocks of position calculate their parity values (xor operation is accomplished); Finally form a message block of being made up of parity values, and it is write check disk, this is called as data protection (Data guarding).Its benefit has provided fault-tolerant ability, and promptly any one breaks down in this N+1 disk, can not cause the problem of obliterated data.Because the symmetry of parity checking, can use the content of a remaining N disk, calculate the proper data content that leaves in the failed disk, although more time-consuming of this calculating.
With respect to the mechanical disk technology; Solid-state storage is a kind of file layout that adopts semi-conductor chip as data storage medium and reading mechanism fully; Abandoned the defective of disk physics and mechanical property; It has the characteristic of high IOPS (Input/Output Operations Per Second, promptly per second carries out the number of times of read-write operation) and low-power consumption, and the IOPS of typical solid state hard disc (SSD) can reach more than 20 times of mechanical hard disk.Therefore adopt the check disk of SSD, can significantly improve the responding ability of RAID4 system and reduce system power dissipation as the RAID4 system.Existing employing SSD is as shown in Figure 2 as the RAID4 system of check disk, and it comprises RAID controller 203 and dish battle array, and the dish battle array comprises disk array 204 and SSD 205 as check disk that N data disks (N is the positive integer more than or equal to 2) constitutes.Host side is a server 201,202; It supports optical-fibre channel 206 and iSCSI (Internet Small Computer System Interface simultaneously; Internet Small Computer Systems Interface) passage 207; And is connected with RAID controller 203 through two passages, RAID controller 203 gust is connected with coiling.The flow process of this system's read data is: the RAID controller splits according to band the address space of reading of read request, from the data disks of correspondence, reads each strip data, afterwards these strip data is buffered in the RAID controller, is sent to host side again.The flow process of this system's write data is: strip data and the checking data in the check disk write the needs in the data disks earlier read into buffer memory in the RAID controller; Thereby and to they carry out backwards calculation obtain in other data disks with this strip data same disc in the position all data verification with; This verification and carry out xor operation with new strip data again; The calculating checking data that makes new advances is written to the corresponding data dish to new strip data then, and new checking data is written to check disk.Therefore, write operation need carry out check disk read and write each once, i.e. twice IO operation.
This shows that adopt SSD still to exist as the check disk bottleneck problem of the RAID4 system of check disk, reason is; Simply SSD is replaced traditional mechanical hard disk; Do not change its IO read-write mode, any one data disks generation write operation all need upgrade check disk; Even the read or write speed of SSD is fast than mechanical hard disk, but the responding ability that big data quantity upgrades the functional check dish still determined the IO responding ability of total system.
Summary of the invention
The object of the present invention is to provide a kind of RAID4 system and data read-write method thereof with New type of S SD of simplification IO operating function as check disk; The IO operand of check disk when this system reads and writes data through significantly reducing; Effectively eliminate the read-write bottleneck of check disk, and then improve the performance of system.
RAID4 provided by the invention system comprises RAID controller and dish battle array, and the dish battle array comprises disk array and the SSD as check disk that is made up of a plurality of data disks; The RAID controller is connected with the dish battle array; It is characterized in that the RAID controller is set up cache module and XOR module through the data interaction between self-defining interface command realization of SSD and the SSD in the controller of SSD; Cache module is used to store the data that the RAID controller writes SSD; The XOR module replaces the checksum update module in the controller, realizes the computing function of check information, to realize data write.
System provided by the present invention adopts SSD as check disk, the checksum update module in traditional RAID controller is changed to be put among the SSD realize, makes this SSD have the IO of simplification operating function.Compare system provided by the present invention with traditional SSD as the RAID4 system of check disk, reduced between RAID controller and the check disk because of upgrading the IO operand that checking data produces.Thereby the present invention has the following advantages:
1. owing to adopt SSD, significantly improved the responding ability of RAID4 system, reduced system power dissipation simultaneously as check disk;
2. owing to adopt SSD, significantly reduced the IO operand of check disk when reading and writing data as check disk with simplification IO operating function; 3. owing to adopt SSD, effectively eliminated the read-write bottleneck of check disk as check disk with simplification IO operating function;
3. owing to adopt SSD, improved the performance of system greatly as check disk with simplification IO operating function;
4. owing to adopt the SSD with simplification IO operating function as check disk, the checksum update module realizes in SSD, greatly reduces the design difficulty and the cost of RAID controller.
Description of drawings
Fig. 1 is the topological structure synoptic diagram of existing RAID4 system;
Fig. 2 is the one-piece construction synoptic diagram of existing employing SSD as the RAID4 system of check disk;
Fig. 3 is the one-piece construction synoptic diagram of RAID4 provided by the invention system;
Fig. 4 is for having the one-piece construction synoptic diagram of the SSD that simplifies the IO operating function among the present invention;
Fig. 5 is the read operation synoptic diagram in the system provided by the present invention;
Fig. 6 is the write operation synoptic diagram in the system provided by the present invention;
Embodiment
To combine the accompanying drawing in the embodiment of the present invention below, the technical scheme in the instance of the present invention is carried out clear, complete description, embodiment described herein is a part of instance of the present invention, rather than whole embodiment.Based on embodiments of the invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
RAID4 system provided by the invention (also being referred to as RAID 4+ system) is as shown in Figure 3, and is the same with existing RAID4 system, includes RAID controller 303 and dish battle array, and the dish battle array comprises a disk array 304 and a SSD 305 who is used as check disk.Host side server 301,302 is connected with RAID controller 303 with iSCSI passage 307 through optical-fibre channel 306.Because the needs of RAID4+ system are different as check disk with the common SSD of prior art, that the present invention adopts is a kind of improved SSD, and this SSD has the IO of simplification operating function.As shown in Figure 4; Improved SSD is that the controller at the SSD of existing structure has partly added two functional modules: cache module (Data Buffer) 4093; With XOR module 4091, wherein cache module 4093 is except as the data buffering and since SSD write life problems; Usability is buffer memory hardware and the more excellent strategy of writing preferably; Can reduce to the flash media of SSD write number of times (, can in buffer memory, finally be merged into and operate and send to flash media repeatedly during write operation identical address) at main frame, thereby delay the life-span of writing of SSD.In addition; XOR module 4091 is to change in the field programmable gate array in SSD and realizing originally being arranged on checksum update module in the RAID controller; Handle handling to change in the SSD controller at the data XOR that this layer of RAID controller carries out originally; The benefit of doing like this is to reduce between RAID controller and the SSD because of upgrading the IO operand that checking data produces, to improve the entire system performance.Because in the RAID controller during calculation check; Original check information need read back earlier; And with the data computation that newly is written to data disks to generate new check information; Therefore calculation check can be avoided unnecessary data transmission action in check disk, the maximum capacity of performance IO interface, thus improve the entire system performance.
Improved SSD provided by the invention has realized one group of self-defining interface command, and the RAID controller calls the relevant function of verification calculating through using this to organize self-defining interface command.This organizes self-defining interface command and comprises: " XOR is write " etc., accomplish by the XOR module of SSD.When carrying out write operation, the RAID controller uses " XOR is write " order with the former strip data in the data disks and the disposable SSD of the writing cache module of new strip data that need write data disks, carries out verification by the XOR module of SSD and calculates.
Below, the reading/writing method of setting forth system of the present invention.
The read operation method of RAID4+ of the present invention system is consistent with traditional RAID4 system, and is as shown in Figure 5, is example with SCSI (Small Computer System Interface, small computer system interface) agreement, and read operation may further comprise the steps:
Step 501, the RAID controller is received the read request from server, and response;
Step 502 splits according to band the address space of reading of this command request, and these bands that belong to same read request are with queue management;
Step 503, the processing threads of RAID controller are the read command of communicating by letter between destination disk of each banded structure and the RAID controller buffer module, and order is sent to corresponding data disks;
Step 504, RAID controller are read each strip data from the data disks of correspondence, afterwards these strip data are buffered in the RAID controller;
Step 505 is transmitted data in buffer in the RAID controller to host side.
As shown in Figure 6, the write operation of RAID4+ system may further comprise the steps:
Step 601, RAID controller are received the request of writing from server, and response;
Step 602 splits according to band the write address space of this command request, and these bands that belong to same write order are with queue management.
Step 603, the RAID controller calculates its target data dish for each band, and the pairing check information of target writing position of each band is in the position of check disk.
Step 604, the RAID controller reads in buffer memory in the RAID controller with original strip data, calls the custom command of SSD afterwards: " XOR is write " writes original strip data 1 and the new strip data 1 ' that need write the cache module of SSD simultaneously.
Step 605; The XOR module is carried out XOR
Figure BDA0000044998610000061
(the wherein original checking data in data P position) in SSD, obtains new checking data band P ';
Step 606, P ' writes the relevant position as the SSD of check disk with verification data strip band, simultaneously strip data 1 ' is write in the corresponding data disks.
Can know that by above write operation method a write operation of RAID4+ system has only carried out the IO operation of a check disk, compare, significantly reduce the IO operand of check disk when reading and writing data with RAID4 of the prior art system.
In typical R AID system, in the calculation check data, two kinds of situation are arranged; A kind of is target data and the check disk data computation that will revise with write operation, and another kind is that the data of other data disks of the band at the target data place that will revise with write operation come directly to calculate.Implementation strategy according to the RAID system is different, and write operation general step of the present invention is divided into two kinds of situation.
The step of situation 1 is:
Step 1: read in target data and buffer memory that write operation will be revised.
Step 2: the target data that write operation will be revised and the data of write operation are delivered in the solid state hard disc as check disk, and corresponding command is " XOR is write ".
Step 3: the data of write operation are delivered to the target data dish.
The step of situation 2 is:
Step 1: the data of other data disks of reading in the band at the target data place that write operation will revise.
Step 2: other data of the band that the target data that write operation will be revised belongs to and the data of write operation are delivered in the solid state hard disc as check disk, and corresponding command is " XOR is write ".
Step 3: the data of write operation are delivered to the target data dish.
The present invention not only is confined to above-mentioned embodiment; Persons skilled in the art are according to content disclosed by the invention; Can adopt other multiple embodiment embodiment of the present invention, therefore, every employing project organization of the present invention and thinking; Do some simple designs that change or change, all fall into the scope of the present invention's protection.

Claims (4)

1. RAID4 system; Comprise RAID controller and dish battle array, the dish battle array comprises disk array and the solid-state hard disk SSD as check disk that is made up of a plurality of data disks, and the RAID controller is connected with the dish battle array; It is characterized in that; The RAID controller is set up cache module and XOR module through the data interaction between self-defining interface command realization and the solid state hard disc in the controller of solid state hard disc, cache module is used to store the data that the RAID controller writes solid state hard disc; The XOR module replaces the checksum update module in the RAID controller, realizes the computing function of check information; Said self-defining interface command is " XOR is write " order.
2. system according to claim 1; It is characterized in that; When carrying out write operation; The RAID controller uses " XOR is write " order with the former strip data in the data disks and the disposable solid state hard disc cache module that writes of new strip data that need write data disks, carries out verification by the XOR module of solid state hard disc and calculates.
3. the method for reading of claim 1 or 2 described RAID4 systems is characterized in that this method may further comprise the steps:
Step 501, the RAID controller is received the read request from server, and response;
Step 502 splits according to band the address space of reading of this request, and these bands that belong to same read request are with queue management;
Step 503, the processing threads of RAID controller are the read command of communicating by letter between destination disk of each banded structure and the RAID controller buffer module, and order is sent to corresponding data disks;
Step 504, RAID controller are read each strip data from the data disks of correspondence, afterwards these strip data are buffered in the RAID controller;
Step 505 is transmitted data in buffer in the RAID controller to host side.
4. the write method of claim 1 or 2 described RAID4 systems is characterized in that this method may further comprise the steps:
Step 601, RAID controller are received the request of writing from server, and response;
Step 602 splits according to band the write address space of this request, and these bands that belong to same write order are with queue management;
Step 603, the RAID controller calculates its target data dish for each band, and the pairing check information of target writing position of each band is in the position of check disk;
Step 604, the RAID controller reads in buffer memory in the RAID controller with original strip data, calls the custom command of SSD afterwards: " XOR is write " writes original strip data 1 and the new strip data 1 ' that need write the cache module of SSD simultaneously;
Step 605; In the XOR module of SSD, carry out XOR
Figure FDA0000156735700000021
wherein data P be original checking data, obtain new checking data band P ';
Step 606, P ' writes the relevant position as the SSD of check disk with verification data strip band, simultaneously strip data 1 ' is write in the corresponding data disks.
CN2011100253497A 2011-01-24 2011-01-24 RAID4 (redundant array of independent disks) system and data reading and writing method thereof Active CN102122235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100253497A CN102122235B (en) 2011-01-24 2011-01-24 RAID4 (redundant array of independent disks) system and data reading and writing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100253497A CN102122235B (en) 2011-01-24 2011-01-24 RAID4 (redundant array of independent disks) system and data reading and writing method thereof

Publications (2)

Publication Number Publication Date
CN102122235A CN102122235A (en) 2011-07-13
CN102122235B true CN102122235B (en) 2012-07-25

Family

ID=44250797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100253497A Active CN102122235B (en) 2011-01-24 2011-01-24 RAID4 (redundant array of independent disks) system and data reading and writing method thereof

Country Status (1)

Country Link
CN (1) CN102122235B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8966170B2 (en) * 2012-01-31 2015-02-24 Avago Technologies General Ip (Singapore) Pte. Ltd. Elastic cache of redundant cache data
US9015525B2 (en) * 2012-06-19 2015-04-21 Lsi Corporation Smart active-active high availability DAS systems
CN103019882B (en) * 2012-11-12 2016-02-24 记忆科技(深圳)有限公司 The RAID4 system of solid state hard disc
CN103019893A (en) * 2012-11-16 2013-04-03 华中科技大学 Multi-disk fault-tolerant two-dimensional hybrid disk RAID4 system architecture and read-write method thereof
CN105224237B (en) * 2014-05-26 2018-06-19 华为技术有限公司 A kind of date storage method and device
CN104881244B (en) * 2014-05-28 2018-02-09 陈杰 Storage system and its data guard method
CN104461383B (en) * 2014-11-28 2017-10-10 华为技术有限公司 The implementation method and device of a kind of RAID
CN104991738B (en) * 2015-06-19 2018-04-24 华中科技大学 A kind of solid-state disk and its read-write operation method
CN108304139B (en) * 2017-01-11 2023-02-21 中兴通讯股份有限公司 Method and device for realizing space release in solid-state disk array
CN107885613A (en) * 2017-11-09 2018-04-06 郑州云海信息技术有限公司 A kind of method for writing data based on RAID5, device and medium
CN110658994B (en) * 2019-09-03 2022-08-12 苏州浪潮智能科技有限公司 Data processing method and device based on HDD (hard disk drive) and SSD (solid State disk) hybrid disk array
CN112286447A (en) * 2020-10-14 2021-01-29 天津津航计算技术研究所 Novel software and hardware cooperation RAID improvement system
CN112230851A (en) * 2020-10-14 2021-01-15 天津津航计算技术研究所 Novel software and hardware cooperation RAID improvement method
CN114610245B (en) * 2022-05-09 2022-07-26 深圳佰维存储科技股份有限公司 RAID implementation method and device based on SSD, readable storage medium and electronic equipment
CN115617742B (en) * 2022-12-19 2023-03-28 苏州浪潮智能科技有限公司 Data caching method, system, equipment and storage medium
CN117389481B (en) * 2023-12-08 2024-02-09 鹏钛存储技术(南京)有限公司 Method for realizing XOR acceleration by solid state disk

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7111228B1 (en) * 2002-05-07 2006-09-19 Marvell International Ltd. System and method for performing parity checks in disk storage system
US7971092B2 (en) * 2008-08-06 2011-06-28 Lsi Corporation Methods and devices for high performance consistency check
CN101504625B (en) * 2009-03-04 2010-07-28 成都市华为赛门铁克科技有限公司 Method for implementing independent disk redundancy array, solid state disk and electronic equipment

Also Published As

Publication number Publication date
CN102122235A (en) 2011-07-13

Similar Documents

Publication Publication Date Title
CN102122235B (en) RAID4 (redundant array of independent disks) system and data reading and writing method thereof
US9921912B1 (en) Using spare disk drives to overprovision raid groups
US20190121553A1 (en) Multiprocessor system with independent direct access to bulk solid state memory resources
US8819338B2 (en) Storage system and storage apparatus
JP4634157B2 (en) Storage system
US8806111B2 (en) Apparatus, system, and method for backing data of a non-volatile storage device using a backing store
US9176810B2 (en) Bit error reduction through varied data positioning
US8966170B2 (en) Elastic cache of redundant cache data
US9891989B2 (en) Storage apparatus, storage system, and storage apparatus control method for updating stored data stored in nonvolatile memory
CN102520890B (en) RS (Reed-Solomon) - DRAID( D redundant array of independent disk) system based on GPUs (graphic processing units) and method for controlling data of memory devices
US20140208024A1 (en) System and Methods for Performing Embedded Full-Stripe Write Operations to a Data Volume With Data Elements Distributed Across Multiple Modules
CN103019893A (en) Multi-disk fault-tolerant two-dimensional hybrid disk RAID4 system architecture and read-write method thereof
WO2015134941A1 (en) Multiprocessor system with independent direct access to bulk solid state memory resources
EP2984570A1 (en) Multiprocessor system with independent direct access to bulk solid state memory resources
CN113971104A (en) System and method for parity-based fault protection of storage devices
US20200285551A1 (en) Storage system, data management method, and data management program
CN104679442A (en) Method and device for improving performance of disk array
CN115617742B (en) Data caching method, system, equipment and storage medium
US10802958B2 (en) Storage device, its controlling method, and storage system having the storage device
CN115237342A (en) RAID5 verification method for data verification by array disk
KR102032878B1 (en) Method for correcting error of flash storage controller
US8380926B1 (en) Handling sector edges
Huang et al. Optimizing erasure-coded data archival for replica-based storage clusters
CN101149946B (en) Method for treating stream media data
CN113687978A (en) Data processing method for storage array controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 430074, Wuhan, East Lake hi tech Optics Valley Avenue, No. 58, Optics Valley headquarters, International Building No. 5, 901

Applicant after: Wuhan Soliware Storage Technology Co., Ltd.

Co-applicant after: Huazhong University of Science and Technology

Address before: 430074 Hubei city of Wuhan Province Forest Avenue East Lake Development Zone WITHUB space building 1809

Applicant before: Wuhan Soliware Storage Technology Co., Ltd.

Co-applicant before: Huazhong University of Science and Technology

C14 Grant of patent or utility model
GR01 Patent grant