CN109375876A - RAID storage method, device, equipment and medium based on SSD - Google Patents

RAID storage method, device, equipment and medium based on SSD Download PDF

Info

Publication number
CN109375876A
CN109375876A CN201811208899.0A CN201811208899A CN109375876A CN 109375876 A CN109375876 A CN 109375876A CN 201811208899 A CN201811208899 A CN 201811208899A CN 109375876 A CN109375876 A CN 109375876A
Authority
CN
China
Prior art keywords
block
ssd
raid
capacity
data
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.)
Pending
Application number
CN201811208899.0A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811208899.0A priority Critical patent/CN109375876A/en
Publication of CN109375876A publication Critical patent/CN109375876A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0659Command handling arrangements, e.g. command buffers, queues, command scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0658Controller construction arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of RAID storage method, device, equipment and medium based on SSD.The step of this method includes: the band capacity for obtaining the RAID being made of SSD;N times of band capacity is set by the block capacity of SSD, to carry out the division of block block to the memory space of SSD according to block capacity;Wherein, N is positive integer;Unit is written using band capacity as data by control RAID, and each target data is stored to the corresponding block block of SSD.This method is the integral multiple for setting the block capacity of SSD to band capacity, avoids the generation of " write-in amplification " phenomenon, improves the working performance and service life of SSD, and then the opposite reliability that ensure that RAID.In addition, the present invention also provides a kind of RAID storage device based on SSD, equipment and medium, beneficial effect are same as above.

Description

RAID storage method, device, equipment and medium based on SSD
Technical field
The present invention relates to field of data storage, more particularly to a kind of RAID storage method, device, equipment based on SSD And medium.
Background technique
SSD (Solid State Drives, solid state hard disk) be solid-state electronic storage chip array and made of hard disk, Compared with traditional mechanical hard disk, there is faster reading and writing data speed, smaller volume, and can be to a greater extent Corrupted data caused by avoiding because of external force factor, loss and so on.
RAID (Redundant Arrays of Independent Drives, disk array) is usually by many performances Data are carried out redundancy encoding, and be cut into many areas when carrying out data storage by the disk group that lower disk combination generates Section, is stored on each disk respectively, even if the loss of data stored in a certain disk, can also ensure that the number in remaining disk Initial data is generated according to that can restore.
With the continuous improvement that the use cost of current SSD reduces and user requires data storage efficiency, utilize It is a kind of current gradually adopted RAID building mode that SSD, which constitutes RAID, by means of the high read or write speed of SSD and storage Safety can further increase the data storage performance of RAID, and the opposite occupancy reduced to physical space.
SSD is with block block when data store for the smallest write-in unit, when writing data into SSD, the data of write-in Amount is inevitable consistent with block capacity;And it is that unit carries out data write-in that RAID, which is with band (strip) when data store, i.e., The data volume for carrying out disk write-in every time is consistent with band capacity.
And in the case where establishing RAID based on SSD, the band capacity of RAID and the block capacity of SSD exist partially Difference causes the data volume that SSD is written as unit of band capacity to exceed the block capacity of SSD itself, or is not up to itself Block capacity, that is to say, that when meeting the data write conditions of RAID, do not meet the data write conditions of SSD.Upper In the case of stating two kinds, the master devices in SSD will determine that current data volume can not be filled with complete block block, and then voluntarily Extraneous data is generated, or reads extraneous data in SSD to be filled with complete block block, and then again by data with block block Form specification is written in SSD, but can be related to read-write of the SSD to extraneous data in above process, produces that " write-in is put Phenomenon greatly ", affect the working performance and service life of SSD, and then the relative reduction reliability of RAID.
It can be seen that a kind of RAID storage method based on SSD is provided, with the working performance and use of opposite raising SSD Service life, and then guarantee the reliability of RAID, it is those skilled in the art's urgent problem to be solved.
Summary of the invention
The object of the present invention is to provide a kind of RAID storage method, device, equipment and medium based on SSD is mentioned with opposite The working performance and service life of high SSD, and then guarantee the reliability of RAID.
In order to solve the above technical problems, the present invention provides a kind of RAID storage method based on SSD, comprising:
Obtain the band capacity for the RAID being made of SSD;
Set N times of band capacity for the block capacity of SSD, with according to block capacity to the memory space of SSD into The division of row block block;Wherein, N is positive integer;
Unit is written using band capacity as data by control RAID, and each target data is stored to the corresponding block of SSD Block.
Preferably, the disk array quantity of RAID is M;Wherein, M is the positive integer greater than 1;
Correspondingly, this method is further after carrying out the division of block block according to memory space of the block capacity to SSD Include:
Unique number is arranged to each block block;
Correspondingly, storing each target data to the corresponding block block of SSD specifically:
According to the default corresponding relationship between target data and number, each target data is stored to the corresponding block of SSD Block.
Preferably, after carrying out the division of block block according to memory space of the block capacity to SSD, this method is further Include:
Obtain the physical address section of each block block corresponding logical address section in RAID, and correspondence establishment physics The mapping relations of address section and logical address section;
Correspondingly, storing each target data to the corresponding block block of SSD specifically:
Each target data is stored to the corresponding block block of SSD according to mapping relations.
Preferably, the mapping relations in correspondence establishment physical address section and logical address section specifically:
Mapping relations are established by chart or Bitmap or B+tree.
Preferably, unit is written using band capacity as data by control RAID, and each target data is stored to the phase of SSD Answer block block specifically:
Unit is written using band capacity as data by control RAID, and respectively by each number of targets in a manner of multi-threaded parallel According to storing to the corresponding block block of SSD.
Preferably, SSD is specially full flash array.
In addition, the present invention also provides a kind of RAID storage devices based on SSD, comprising:
Procurement of reserve capacity module, for obtaining the band capacity for the RAID being made of SSD;
Space partitioning module, for setting N times of band capacity for the block capacity of SSD, according to block capacity The division of block block is carried out to the memory space of SSD;Wherein, N is positive integer;
Unit is written using band capacity as data for controlling RAID, and each target data is deposited for data memory module It stores up to the corresponding block block of SSD.
In addition, the present invention also provides a kind of raid storage devices based on SSD, comprising:
Memory, for storing computer program;
Processor is realized when for executing computer program such as the step of the above-mentioned RAID storage method based on SSD.
In addition, being stored with meter on computer readable storage medium the present invention also provides a kind of computer readable storage medium Calculation machine program is realized when computer program is executed by processor such as the step of the above-mentioned RAID storage method based on SSD.
RAID storage method provided by the present invention based on SSD obtains and structure basic as physical store by SSD first At RAID band capacity, and then the block capacity of the SSD is set according to the value of the integral multiple of band capacity, and then basis Block capacity carries out the division of block block to the memory space of SSD, after division, by RAID using band capacity as Target data is written with this and is stored into the block block of SSD by the write-in unit of data.Since this method is by SSD Block capacity is set as the integral multiple of band capacity, therefore when target data is written into SSD as unit of band capacity by RAID When, the target data being written can be filled with the block block of complete number, therefore when being written target data to SSD, be not necessarily to It voluntarily generates extraneous data or reads extraneous data in SSD to be filled with complete block block, then by extraneous data and number of targets In block block according to packing write-in SSD, therefore it will not relate to read-write of the SSD to extraneous data, " write-in is put with respect to avoiding The generation of phenomenon greatly " improves the working performance and service life of SSD, and then the opposite reliability that ensure that RAID.This Outside, the present invention also provides a kind of RAID storage device based on SSD, equipment and medium, beneficial effect are same as above.
Detailed description of the invention
In order to illustrate the embodiments of the present invention more clearly, attached drawing needed in the embodiment will be done simply below It introduces, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ordinary skill people For member, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the RAID storage method based on SSD provided in an embodiment of the present invention;
Fig. 2 .1 is RAID logic structural schematic diagram provided in an embodiment of the present invention;
Fig. 2 .2 is SSD logical construction schematic diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of structure chart of the RAID storage device based on SSD provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole embodiments.Based on this Embodiment in invention, those of ordinary skill in the art are without making creative work, obtained every other Embodiment belongs to the scope of the present invention.
Core of the invention is to provide a kind of RAID storage method based on SSD, with the working performance of opposite raising SSD and Service life, and then guarantee the reliability of RAID.Another core of the invention is to provide a kind of RAID storage dress based on SSD It sets, equipment and medium.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.
Embodiment one
Fig. 1 is a kind of flow chart of the RAID storage method based on SSD provided in an embodiment of the present invention.Referring to FIG. 1, base Include: in the specific steps of the RAID storage method of SSD
Step S10: the band capacity for the RAID being made of SSD is obtained.
It should be noted that the signified RAID being made of SSD in this step, is using SSD as physical storage device Basis, and the RAID of layer building on it.Often contain multiple logically relatively independent disk arrays, each magnetic in RAID Disk array be usually all physically by composed by one or more SSD, and under different RAID modes (RAID1, RAID4, RAID6 etc.) disk array quantity it is also different, the emphasis of the application and the topology for not lying in RAID disk array Relationship, but the RAID based on SSD building, therefore it is suitable for the various RAID that disk array is formed with SSD.In addition, band holds Amount refer to RAID when carrying out data storage, the spatial content for the data block that continuous data are divided into, according to the band Every segment data is respectively written into the different disk of disk array by capacity, RAID.
Step S11: N times of band capacity is set by the block capacity of SSD, to deposit according to block capacity to SSD Store up the division that space carries out block block.
Wherein, N is positive integer.
Since RAID is the disk array established based on SSD for physical equipment, data storage is being carried out as RAID When, essence is to need to store data into SSD according to the data storage mechanism of SSD, and SSD is using block block as data Storage unit is to realize data storage, if block block can not be filled with by the data volume of write-in, SSD can read itself Extraneous data is stored the data content for meeting block capacity into block, this mistake with filling up the data volume of vacancy Journey increases additional read-write of the SSD to data, this step is in order to avoid because the band capacity of block capacity and RAID exists partially Difference, and cause RAID that the block block that SSD data volume can not be filled with SSD itself is written every time, therefore be by the block capacity of SSD It is set as N times of band capacity, that is to say, that the block block of SSD can be filled with just by the data of RAID write-in SSD every time, Thus SSD is without reading and writing additional data.
Step S12: unit is written using band capacity as data by control RAID, and each target data is stored to SSD's Corresponding block block.
It is understood that this step is to carry out the data storage of RAID after the block capacity of setting SSD, RAID exists The specific steps carried out in data storage procedure are same as the prior art, and details are not described herein.
RAID storage method provided by the present invention based on SSD obtains and structure basic as physical store by SSD first At RAID band capacity, and then the block capacity of the SSD is set according to the value of the integral multiple of band capacity, and then basis Block capacity carries out the division of block block to the memory space of SSD, after division, by RAID using band capacity as Target data is written with this and is stored into the block block of SSD by the write-in unit of data.Since this method is by SSD Block capacity is set as the integral multiple of band capacity, therefore when target data is written into SSD as unit of band capacity by RAID When, the target data being written can be filled with the block block of complete number, therefore when being written target data to SSD, be not necessarily to It voluntarily generates extraneous data or reads extraneous data in SSD to be filled with complete block block, then by extraneous data and number of targets In block block according to packing write-in SSD, therefore it will not relate to read-write of the SSD to extraneous data, " write-in is put with respect to avoiding The generation of phenomenon greatly " improves the working performance and service life of SSD, and then the opposite reliability that ensure that RAID.
Embodiment two
On the basis of the above embodiments, the present invention also provides a series of preferred embodiments.
As a preferred embodiment, the disk array quantity of RAID is M;Wherein, M is the positive integer greater than 1;
Correspondingly, this method is further after carrying out the division of block block according to memory space of the block capacity to SSD Include:
Unique number is arranged to each block block;
Correspondingly, storing each target data to the corresponding block block of SSD specifically:
According to the default corresponding relationship between target data and number, each target data is stored to the corresponding block of SSD Block.
It should be noted that the disk array quantity for forming RAID is greater than 1, and then each disk battle array in present embodiment The SSD of column is required to carry out the division of block block, due to consideration that should be avoided when carrying out data storage different data are same When the case where storing to same block block generation, and then ensure the safety and reliability of data storage, therefore in this reality It applies in mode, unique identity is provided with to the block block of each division, i.e., unique number is arranged to each block block, in turn When storing target data to SSD, according to the default corresponding relationship between target data and number, each target data is stored To the corresponding block block of SSD, is realized with this and store target data to the purpose of corresponding block block, avoid different targets The case where data are stored simultaneously to same block block generation, therefore the opposite safety for improving data storage of present embodiment And reliability.
Mode for block block setting number can be specially strip-type number and two kinds of sequential number, but unlimited In both.Strip-type number is that block block setting number is successively taken from different disk arrays, until whole disk arrays In block block be numbered;Sequential arrangement refers to first takes block block setting number from a disk array of RAID, Until all block blocks in the disk array are numbered, then the block block in next disk array is taken to be numbered, Number until completing block block in all disk arrays.
In addition, as a preferred embodiment, carrying out block block according to memory space of the block capacity to SSD Division after, this method further comprises:
Obtain the physical address section of each block block corresponding logical address section in RAID, and correspondence establishment physics The mapping relations of address section and logical address section;
Correspondingly, storing each target data to the corresponding block block of SSD specifically:
Each target data is stored to the corresponding block block of SSD according to mapping relations.
It should be noted that since RAID is made of SSD, through RAID when carrying out data storage, essence be according to Target data is written in the actual physical address section SSD in the logical address section of RAID, and represents same memory space Logical address section and physical address section are often inconsistent, therefore in order to ensure being stored target data to SSD by RAID When order, present embodiment obtains the physical address section of each block block corresponding logical address section in RAID, and The mapping relations in correspondence establishment physical address section and logical address section, and then store each target data according to mapping relations To the corresponding block block of SSD.Present embodiment is opposite to improve order when storing target data to SSD by RAID And reliability.
In addition, on the basis of the above embodiment, as a preferred embodiment, correspondence establishment physical address area Between mapping relations with logical address section specifically:
Mapping relations are established by chart or Bitmap or B+tree.
It should be noted that the chart in present embodiment refers to Excel chart, has the characteristics that relative straightforward, just It is checked in technical staff;Bitmap is the index indicated with bitmap, establishes mapping relations using Bitmap, specifically will be corresponding The physical address section of SSD and the logical address section of RAID between establish bitmap, and with this indicate physics address section with The mapping relations in logical address section, entirety are smaller for the occupancy in space;B+tree is a kind of common data structure, is led to The mapping relations that B+tree is established between the physical address section of SSD and the logical address section of RAID are crossed, can be substantially reduced The time overhead of required consumption when retrieving mapping relations.User can choose the tool for establishing mapping relations according to actual needs Body mode, is not specifically limited herein.
In addition, as a preferred embodiment, unit is written using band capacity as data by control RAID, and it will be each Target data is stored to the corresponding block block of SSD specifically:
Unit is written using band capacity as data by control RAID, and respectively by each number of targets in a manner of multi-threaded parallel According to storing to the corresponding block block of SSD.
It should be noted that target data is stored to the storage efficiency of SSD, this implementation within the unit time in order to improve Mode be control RAID target data is stored to SSD with the parallel mode of multithreading, it is emphasized that, with multithreading simultaneously When capable mode stores target data, the action of each thread should be mutually indepedent, and action does not repeat, that is to say, that The case where multiple threads store same target data should not occur, with this ensure multi-threaded parallel work order with And reliability.Present embodiment improves for storing target data in a manner of single thread for the whole of target data Body storage efficiency.
In addition, as a preferred embodiment, SSD is specially full flash array.
It should be noted that full flash array is the independence being made of completely solid storage medium (usually nand flash memory) Storage equipment, it can be understood as be the storage medium with scale being made of SSD, therefore it can have higher expansion Malleability.In addition, compared with conventional store, full flash array has outside absolute predominance in performance, Method of Data Organization it is main Difference is that the data location mode of conventional storage media is covering WriteMode, i.e., when data are written to the same logical address, It is to write on the same place, and cover legacy data, and full flash array is patrolled then using additional WriteMode to same every time When collecting address write-in data, a new place is write on every time, and legacy data will not be capped, but wait subsequent by as rubbish Rubbish is recycled, and due to avoiding the operation of the covering to former data in data writing process, is situated between compared to conventional store For matter, full flash array is also capable of providing the data storage efficiency of relative efficiency.
This programme is illustrated below by specific usage scenario, please refers to the RAID logic knot as shown in Fig. 2 .1 SSD logical construction schematic diagram shown in structure schematic diagram and Fig. 2 .2.
RAID shown in Fig. 2 .1 is corresponding with SSD shown in Fig. 2 .2, that is to say, that in Fig. 2 .1 and Fig. 2 .2 Block block and band (Stripe) are under the Different Logic divided based on identical physical storage medium (storage pool, Pool) Storage unit, DISK1, DISK2 and DISK3 indicate that the disk array constituted with SSD, each disk array are logically mutual It is independent, it can be physically made of single or multiple SSD.Different disk arrays can deposit the division of block block It is 3 times of band capacity in difference, such as the block capacity in DISK1 and DISK2, and the block capacity in DISK3 is band 2 times of capacity, for block block divide can depending on the SSD performance of the actual demand of user and composition DISK, This is not specifically limited.After dividing block block, each block block can be numbered, used herein is that strip-type is compiled Number, block block setting number is successively taken from different disk arrays, until the block block in whole disk arrays is compiled Number, and then when the subsequent sequence according to number stores target data to each block block, the data write-in of each disk array Frequency being capable of relative equilibrium.
Embodiment three
Hereinbefore the embodiment of the RAID storage method based on SSD is described in detail, the present invention also mentions For a kind of RAID storage device based on SSD corresponding with this method, due to the embodiment of device part and the reality of method part Example reciprocal correspondence is applied, therefore the embodiment of device part refers to the description of the embodiment of method part, wouldn't repeat here.
Fig. 3 is a kind of structure chart of the RAID storage device based on SSD provided in an embodiment of the present invention.The embodiment of the present invention The RAID storage device based on SSD provided, comprising:
Procurement of reserve capacity module 10, for obtaining the band capacity for the RAID being made of SSD.
Space partitioning module 11, for setting N times of band capacity for the block capacity of SSD, to be held according to block Measure the division that block block is carried out to the memory space of SSD;Wherein, N is positive integer.
Unit is written using band capacity as data for controlling RAID in data memory module 12, and by each target data It stores to the corresponding block block of SSD.
RAID storage device provided by the present invention based on SSD obtains and structure basic as physical store by SSD first At RAID band capacity, and then the block capacity of the SSD is set according to the value of the integral multiple of band capacity, and then basis Block capacity carries out the division of block block to the memory space of SSD, after division, by RAID using band capacity as Target data is written with this and is stored into the block block of SSD by the write-in unit of data.Since the present apparatus is by SSD Block capacity is set as the integral multiple of band capacity, therefore when target data is written into SSD as unit of band capacity by RAID When, the target data being written can be filled with the block block of complete number, therefore when being written target data to SSD, be not necessarily to It voluntarily generates extraneous data or reads extraneous data in SSD to be filled with complete block block, then by extraneous data and number of targets In block block according to packing write-in SSD, therefore it will not relate to read-write of the SSD to extraneous data, " write-in is put with respect to avoiding The generation of phenomenon greatly " improves the working performance and service life of SSD, and then the opposite reliability that ensure that RAID.
Example IV
The present invention also provides a kind of raid storage devices based on SSD, comprising:
Memory, for storing computer program;
Processor is realized when for executing computer program such as the step of the above-mentioned RAID storage method based on SSD.
Raid storage devices provided by the present invention based on SSD obtain and structure basic as physical store by SSD first At RAID band capacity, and then the block capacity of the SSD is set according to the value of the integral multiple of band capacity, and then basis Block capacity carries out the division of block block to the memory space of SSD, after division, by RAID using band capacity as Target data is written with this and is stored into the block block of SSD by the write-in unit of data.Since this equipment is by SSD Block capacity is set as the integral multiple of band capacity, therefore when target data is written into SSD as unit of band capacity by RAID When, the target data being written can be filled with the block block of complete number, therefore when being written target data to SSD, be not necessarily to It voluntarily generates extraneous data or reads extraneous data in SSD to be filled with complete block block, then by extraneous data and number of targets In block block according to packing write-in SSD, therefore it will not relate to read-write of the SSD to extraneous data, " write-in is put with respect to avoiding The generation of phenomenon greatly " improves the working performance and service life of SSD, and then the opposite reliability that ensure that RAID.
In addition, being stored with meter on computer readable storage medium the present invention also provides a kind of computer readable storage medium Calculation machine program is realized when computer program is executed by processor such as the step of the above-mentioned RAID storage method based on SSD.
Computer readable storage medium provided by the present invention is obtained basic as physical store by SSD first and is constituted RAID band capacity, and then the block capacity of the SSD is set according to the value of the integral multiple of band capacity, and then basis Block capacity carries out the division of block block to the memory space of SSD, after division, by RAID using band capacity as Target data is written with this and is stored into the block block of SSD by the write-in unit of data.Due to this computer-readable storage Medium is the integral multiple for setting the block capacity of SSD to band capacity, therefore works as RAID as unit of band capacity to SSD When middle write-in target data, the target data being written can be filled with the block block of complete number, therefore write by target data When entering to SSD, without voluntarily generating extraneous data or in SSD read extraneous data to be filled with complete block block, then by nothing It closes data and target data is packaged in the block block of write-in SSD, therefore will not relate to read-write of the SSD to extraneous data, relatively The generation for avoiding " write-in amplification " phenomenon, improves the working performance and service life of SSD, and then ensure that RAID relatively Reliability.
A kind of RAID storage method, device, equipment and medium based on SSD provided by the present invention has been carried out in detail above It is thin to introduce.Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment, set For standby and medium, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to side Method part explanation.It should be pointed out that for those skilled in the art, not departing from the principle of the invention Under the premise of, it can be with several improvements and modifications are made to the present invention, these improvement and modification also fall into the claims in the present invention In protection scope.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.

Claims (9)

1. a kind of RAID storage method based on SSD characterized by comprising
Obtain the band capacity for the RAID being made of SSD;
Set N times of the band capacity for the block capacity of the SSD, with according to the block capacity to the SSD Memory space carry out block block division;Wherein, N is positive integer;
It controls the RAID and unit is written using the band capacity as data, each target data is stored to the phase of the SSD It answers block block and stores each target data to the corresponding block block of the corresponding block block of the SSD.
2. the method according to claim 1, wherein the disk array quantity of the RAID is M;Wherein, M is big In 1 positive integer;
Correspondingly, after the division for carrying out block block to the memory space of the SSD according to the block capacity, the party Method further comprises:
To each unique number of block block setting;
Correspondingly, described store each target data to the corresponding block block of the SSD specifically:
According to the default corresponding relationship between the target data and the number, each target data is stored to described The corresponding block block of SSD.
3. the method according to claim 1, wherein being deposited according to the block capacity to the SSD described After storing up the division that space carries out block block, this method further comprises:
Obtain the physical address section of each block block corresponding logical address section in the RAID, and correspondence establishment The mapping relations in the physical address section and the logical address section;
Correspondingly, described store each target data to the corresponding block block of the SSD specifically:
Each target data is stored to the corresponding block block of the SSD according to the mapping relations.
4. according to the method described in claim 3, it is characterized in that, physical address section described in the correspondence establishment is patrolled with described Collect the mapping relations of address section specifically:
The mapping relations are established by chart or Bitmap or B+tree.
5. the method according to claim 1, wherein the control RAID is using the band capacity as number According to write-in unit, each target data is stored to the corresponding block block of the SSD and stores each target data to the SSD Corresponding block block corresponding block block specifically:
It controls the RAID and unit is written using the band capacity as data, and respectively by each institute in a manner of multi-threaded parallel Target data is stated to store to the corresponding block block of the SSD.
6. according to claim 1 to method described in 5 any one, which is characterized in that the SSD is specially full flash array.
7. a kind of RAID storage device based on SSD characterized by comprising
Procurement of reserve capacity module, for obtaining the band capacity for the RAID being made of SSD;
Space partitioning module, for setting N times of the band capacity for the block capacity of the SSD, according to Block capacity carries out the division of block block to the memory space of the SSD;Wherein, N is positive integer;
Data memory module unit is written using the band capacity as data for controlling the RAID, by each target data It stores to the corresponding block block of the SSD and stores each target data to the corresponding block of the corresponding block block of the SSD Block.
8. a kind of raid storage devices based on SSD characterized by comprising
Memory, for storing computer program;
Processor, when for executing the computer program realize as it is as claimed in any one of claims 1 to 6 based on SSD The step of RAID storage method.
9. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes such as the RAID as claimed in any one of claims 1 to 6 based on SSD when the computer program is executed by processor The step of storage method.
CN201811208899.0A 2018-10-17 2018-10-17 RAID storage method, device, equipment and medium based on SSD Pending CN109375876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811208899.0A CN109375876A (en) 2018-10-17 2018-10-17 RAID storage method, device, equipment and medium based on SSD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811208899.0A CN109375876A (en) 2018-10-17 2018-10-17 RAID storage method, device, equipment and medium based on SSD

Publications (1)

Publication Number Publication Date
CN109375876A true CN109375876A (en) 2019-02-22

Family

ID=65399999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811208899.0A Pending CN109375876A (en) 2018-10-17 2018-10-17 RAID storage method, device, equipment and medium based on SSD

Country Status (1)

Country Link
CN (1) CN109375876A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110297601A (en) * 2019-06-06 2019-10-01 清华大学 Solid state hard disk array construction method, electronic equipment and storage medium
CN111290711A (en) * 2020-01-21 2020-06-16 苏州浪潮智能科技有限公司 IO processing method and related device of RAID system
CN113608681A (en) * 2021-06-30 2021-11-05 苏州浪潮智能科技有限公司 Data storage method, system, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080282128A1 (en) * 1999-08-04 2008-11-13 Super Talent Electronics, Inc. Method of Error Correction Code on Solid State Disk to Gain Data Security and Higher Performance
US20130290608A1 (en) * 2012-04-30 2013-10-31 Dell Products, Lp System and Method to Keep Parity Consistent in an Array of Solid State Drives when Data Blocks are De-Allocated
CN104881244A (en) * 2014-05-28 2015-09-02 陈杰 Storage system and data protection method thereof
CN105573862A (en) * 2015-12-11 2016-05-11 浙江大华技术股份有限公司 Method and equipment for recovering file systems

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080282128A1 (en) * 1999-08-04 2008-11-13 Super Talent Electronics, Inc. Method of Error Correction Code on Solid State Disk to Gain Data Security and Higher Performance
US20130290608A1 (en) * 2012-04-30 2013-10-31 Dell Products, Lp System and Method to Keep Parity Consistent in an Array of Solid State Drives when Data Blocks are De-Allocated
CN104881244A (en) * 2014-05-28 2015-09-02 陈杰 Storage system and data protection method thereof
CN105573862A (en) * 2015-12-11 2016-05-11 浙江大华技术股份有限公司 Method and equipment for recovering file systems

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110297601A (en) * 2019-06-06 2019-10-01 清华大学 Solid state hard disk array construction method, electronic equipment and storage medium
CN111290711A (en) * 2020-01-21 2020-06-16 苏州浪潮智能科技有限公司 IO processing method and related device of RAID system
CN113608681A (en) * 2021-06-30 2021-11-05 苏州浪潮智能科技有限公司 Data storage method, system, equipment and medium
CN113608681B (en) * 2021-06-30 2023-03-21 苏州浪潮智能科技有限公司 Data storage method, system, equipment and medium

Similar Documents

Publication Publication Date Title
US11941255B2 (en) Storage system and data management method
CN102880428B (en) The creation method of distributed Redundant Array of Independent Disks (RAID) and device
CN102622189B (en) The device of Storage Virtualization, date storage method and system
CN111158587B (en) Distributed storage system based on storage pool virtualization management and data read-write method
US6647460B2 (en) Storage device with I/O counter for partial data reallocation
US20220107729A1 (en) Reorganizing disks and raid members to split a disk array during capacity expansion
WO2013157032A1 (en) Storage subsystem and data management method of storage subsystem
EP0521630A2 (en) DASD array hierarchies
CN111679795B (en) Lock-free concurrent IO processing method and device
CN109375876A (en) RAID storage method, device, equipment and medium based on SSD
CN104182176B (en) A kind of rapid volume-expanding method of RAID RAID5
CN103688248A (en) Management method for storage arrays, device and controller
US10678470B2 (en) Computer system,control method for physical storage device,and recording medium
CN101556802B (en) RAID array transposing method and device thereof
US10705907B1 (en) Data protection in a heterogeneous random access storage array
US20120260035A1 (en) Zero rebuild extensions for raid
US10579540B2 (en) Raid data migration through stripe swapping
CN104679442A (en) Method and device for improving performance of disk array
US10409682B1 (en) Distributed RAID system
CN110413454A (en) Data re-establishing method, device and storage medium based on storage array
CN104375784A (en) Method and device for lowering complexity of virtual disk management
CN107678690A (en) A kind of implementation method of solid state hard disc and its RAID array
CN101901115B (en) Method for constructing redundant array of inexpensive disks (RAID) 6 level
CN102880430B (en) A kind of management system of raid-array and method
CN104572374B (en) Processing method, device and the storage device of storage

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190222

RJ01 Rejection of invention patent application after publication