CN106371950B - Method and device for realizing RAID level conversion - Google Patents

Method and device for realizing RAID level conversion Download PDF

Info

Publication number
CN106371950B
CN106371950B CN201510428541.9A CN201510428541A CN106371950B CN 106371950 B CN106371950 B CN 106371950B CN 201510428541 A CN201510428541 A CN 201510428541A CN 106371950 B CN106371950 B CN 106371950B
Authority
CN
China
Prior art keywords
raid level
disk
service data
address
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.)
Active
Application number
CN201510428541.9A
Other languages
Chinese (zh)
Other versions
CN106371950A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510428541.9A priority Critical patent/CN106371950B/en
Priority to PCT/CN2016/081432 priority patent/WO2017012391A1/en
Publication of CN106371950A publication Critical patent/CN106371950A/en
Application granted granted Critical
Publication of CN106371950B publication Critical patent/CN106371950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware

Abstract

The invention discloses a method and a device for realizing RAID level conversion, comprising the following steps: when an independent Redundant Array of Independent Disks (RAID) level conversion instruction is received, judging whether the remaining available space of the system meets the requirement of RAID level conversion or not according to pre-recorded occupation information of the current RAID level disk and the remaining available space information of the system; and when the requirement of RAID level conversion is met, establishing a new RAID level disk in the residual available space of the system, establishing a mapping incidence relation between the occupied address of the current RAID level disk and the address of the new RAID level disk, and completing the RAID level conversion. The method can realize RAID level conversion without data transfer, thereby avoiding the problem of service interruption caused by data transfer; the new RAID level disk is established quickly, and the time consumption of level conversion is reduced.

Description

Method and device for realizing RAID level conversion
Technical Field
The present invention relates to a disk array technology, and more particularly, to a method and apparatus for implementing Redundant Array of Independent Disks (RAID) level conversion.
Background
A Redundant Array of Independent Disks (RAID) is a technology that combines a plurality of Independent hard disks (physical hard disks) in different ways to form a hard Disk group (logical hard Disk), so as to provide higher storage performance than a single hard Disk and provide data backup capability. The different ways of composing the disk array form the corresponding RAID level. Different RAID levels have corresponding performance in data reliability and read-write performance.
Currently, RAID is generally divided into RAID0, RAID1, RAID3, RAID5, RAID6, RAID10, and the like. To meet storage system availability, and/or performance, and/or capacity requirements, the translation of the RAID levels is selected. For example, to save space, a RAID level of 1 is converted to a RAID level of 5. To improve reliability, RAID level 5 is converted to RAID level 6. Patent application No. CN200910174224.3 discloses "a method and apparatus for RAID level conversion", which specifically discloses: when the level-changing operation is carried out, data moving is carried out in advance, data in the RAID format before changing the level is recalculated according to the data in the RAID format after changing the level, and the level-changing operation of the RAID is completed only after the whole data moving is completed, namely the level conversion of the RAID is completed; the user can only perform new service operation after finishing grade conversion, and the new service operation can not be performed in the grade conversion process, which may cause service interruption and influence the overall service performance. Patent No. US2004133743 discloses a method for exhibition and logic device extension (Raid apparatus and local device extension method), and specifically discloses that stripe is used to process Raid level change, and it takes a lot of time to process level change, and a user needs to wait for completion of level change to perform a service, which may cause service interruption.
Disclosure of Invention
In order to solve the above technical problem, the present invention provides a method and an apparatus for implementing RAID level conversion, which can implement level conversion quickly without interrupting a service.
In order to achieve the object of the present invention, the present invention provides a method for implementing RAID level conversion, when receiving an independent redundant disk array RAID level conversion instruction, the method includes:
judging whether the remaining available space of the system meets the requirement of RAID level conversion or not according to pre-recorded occupation information of the current RAID level disk and the remaining available space information of the system;
and when the requirement of RAID level conversion is met, establishing a new RAID level disk in the residual available space of the system, and establishing a mapping incidence relation between the occupied address of the current RAID level disk and the address of the new RAID level disk to complete RAID level conversion.
Further, when the remaining available space of the system does not meet the requirement of RAID level conversion, the method further includes: determining that the level conversion fails and feeding back information of the level conversion failure to the user.
Further, the method further comprises: when the system is in an idle state, the system is in a standby state,
converting the data on the current RAID level disk according to the data format of the new RAID level;
and transferring the data on the current RAID level disk after completing the data format conversion to a disk space corresponding to the address of the new RAID level disk according to the mapping incidence relation.
Further, the method further comprises:
and recording the address information occupied by the new RAID level disk and the address information of the occupied space of each disk in the system.
Further, when the transfer of the data on the current RAID level disk is not completed, the method further includes:
when reading the service data, inquiring whether the current RAID level disk contains the service data, and if so, reading the service data; if the service data is not contained, reading the service data from the new RAID level disk according to the mapping association relation;
when writing in the service data, judging whether the new RAID level disk contains enough space for writing in the service data according to the initial address and the length of the written service data, and when the space for writing in the service data is enough, writing in the service data and updating the address information occupied by the new RAID level disk and the address mapping association relation; and when the space for writing the service data is not contained enough, the service data writing failure is fed back.
Further, the mapping association specifically includes:
and the incidence relation of the initial addresses of the spaces of the current RAID level and the new RAID level in each disk in the system.
In another aspect, the present application further provides an apparatus for implementing RAID level conversion, including: a judging unit, a level converting unit; wherein the content of the first and second substances,
the judging unit is used for judging whether the remaining available space of the system meets the requirement of RAID level conversion or not according to the pre-recorded occupation information of the current RAID level disk and the remaining available space information of the system when receiving the RAID level conversion instruction;
and the level conversion unit is used for establishing a new RAID level disk in the residual available space of the system and establishing a mapping association relation between the occupied address of the current RAID level disk and the address of the new RAID level disk to complete RAID level conversion when the judgment unit judges that the requirement of RAID level conversion is met.
Further, the device also comprises a feedback unit, which is used for determining the failure of the level conversion and feeding back the information of the failure of the level conversion to the user when the judging unit judges that the remaining available space of the system does not meet the requirement of RAID level conversion.
Further, the device also comprises a data conversion transfer unit used for transferring the data when the system is idle,
converting the data on the current RAID level disk according to the data format of the new RAID level;
and transferring the data on the current RAID level disk after completing the data format conversion to a disk space corresponding to the address of the new RAID level disk according to the mapping incidence relation.
Furthermore, the device also comprises a recording unit, which is used for recording the occupation information of the current RAID level disk, the information of the remaining available space of the system, the address information occupied by the new RAID level disk and the address information of the occupied space of each disk in the system.
Further, the apparatus includes a read and write unit for, when the transfer of data on the current RAID level disk is not completed,
when reading the service data, inquiring whether the current RAID level disk contains the service data, and if so, reading the service data; if the service data is not contained, reading the service data from the new RAID level disk according to the mapping association relationship established by the level conversion unit;
when the service data is written in, judging whether the new RAID level disk comprises enough space for writing in the service data according to the initial address and the length of the written service data, and when the space for writing in the service data is enough, writing in the service data and updating the address information occupied by the new RAID level disk of the recording unit and the address mapping incidence relation established by the level conversion unit; and when the space for writing the service data is not contained enough, the service data writing failure is fed back.
Further, the mapping association specifically includes:
and the incidence relation of the initial addresses of the spaces of the current RAID level and the new RAID level in each disk in the system.
Compared with the prior art, the technical scheme of the application comprises the following steps: when an independent Redundant Array of Independent Disks (RAID) level conversion instruction is received, judging whether the remaining available space of the system meets the requirement of RAID level conversion or not according to pre-recorded occupation information of the current RAID level disk and the remaining available space information of the system; and when the requirement of RAID level conversion is met, establishing a new RAID level disk in the residual available space of the system, establishing a mapping incidence relation between the occupied address of the current RAID level disk and the address of the new RAID level disk, and completing the RAID level conversion. The method can realize RAID level conversion without data transfer, thereby avoiding the problem of service interruption caused by data transfer; the new RAID level disk is established quickly, and the time consumption of level conversion is reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a method of implementing RAID level translation in accordance with the present invention;
FIG. 2 is a block diagram of an apparatus for implementing RAID level translation according to the present invention;
FIG. 3 is a flow chart of a method of the first embodiment of the present invention;
FIG. 4 is a flow chart of a method of a second embodiment of the present invention;
FIG. 5 is a flow chart of a method of a third embodiment of the present invention;
FIG. 6 is a diagram illustrating the composition of a current RAID level disk according to embodiment 4 of the present invention;
FIG. 7 is a diagram illustrating the components of a new RAID level disk according to embodiment 4 of the present invention;
FIG. 8 is a flowchart of a method according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Fig. 1 is a flowchart of a method for implementing RAID level conversion according to the present invention, and as shown in fig. 1, when receiving an RAID level conversion instruction, the method includes:
step 100, judging whether the remaining available space of the system meets the requirement of RAID level conversion or not according to pre-recorded occupation information of the current RAID level disk and the remaining available space information of the system;
it should be noted that it is common knowledge of those skilled in the art to determine whether the remaining available space of the system meets the requirement of RAID level conversion; generally, when the remaining available space of the system is larger than or equal to the size occupied by the current RAID level disk, the requirement for RAID level conversion is met, and details are not described here.
Step 101, when the requirement of RAID level conversion is satisfied, establishing a new RAID level disk in the remaining available space of the system, and establishing a mapping association relationship between the occupied address of the current RAID level disk and the address of the new RAID level disk to complete RAID level conversion.
When the remaining available space of the system does not meet the requirement of RAID level conversion, the method of the invention also comprises the following steps: determining that the level conversion fails and feeding back information of the level conversion failure to the user.
The method of the invention also comprises the following steps: when the system is in an idle state, the system is in a standby state,
converting data on the disk of the current RAID level according to the data format of the new RAID level;
and transferring the data on the current RAID level disk after completing the data format conversion to a disk space corresponding to the address of the new RAID level disk according to the mapping incidence relation.
The method of the invention also comprises the following steps:
and recording the address information occupied by the new RAID level disk and the address information of the occupied space of each disk in the system.
When the data transfer on the current RAID level disk is not finished, the method of the invention also comprises the following steps:
when the service data is read, inquiring whether the current RAID level disk contains the service data, and if so, reading the service data; if the data does not contain the service data, reading the service data from the new RAID level disk according to the mapping association relation;
when the service data is written, judging whether the new RAID level disk contains enough space for writing the service data according to the initial address and the length of the written service data, and when the space for writing the service data is enough, writing the service data and updating the address information and the address mapping incidence relation occupied by the new RAID level disk; and when the space for writing the service data is not contained enough, the service data writing failure is fed back.
It should be noted that whether the new RAID level disk contains enough space for writing of the service data is a routine technical means for those skilled in the art; generally, for example, 4 disks with a capacity of 1T are used to create a RAID5 with a capacity of 600G (where 1 parity disk and the other 3 data disks), then the capacity of RAID5 is 600G, the used space on each disk is 200G, and the remaining space on each disk is 800G. If the rank is to be changed to RAID6 level (2 check disks, and the others are data disks), each disk needs to occupy 300G, and the original remaining space is 800G, so that the operation of RAID level conversion can be performed.
The mapping association relationship specifically includes:
and the incidence relation between the current RAID level and the initial address of the space of the new RAID level in each disk in the system.
The method can realize RAID level conversion without data transfer, thereby avoiding the problem of service interruption caused by data transfer; the new RAID level disk is established quickly, and the time consumption of level conversion is reduced.
Fig. 2 is a structural diagram of an apparatus for implementing RAID level translation according to the present invention, as shown in fig. 2, including: a judging unit, a level converting unit; wherein the content of the first and second substances,
the judging unit is used for judging whether the remaining available space of the system meets the requirement of RAID level conversion or not according to the pre-recorded occupation information of the current RAID level disk and the remaining available space information of the system when receiving the RAID level conversion instruction;
and the level conversion unit is used for establishing a new RAID level disk in the residual available space of the system and establishing a mapping association relation between the occupied address of the current RAID level disk and the address of the new RAID level disk to complete RAID level conversion when the judgment unit judges that the requirement of RAID level conversion is met.
The mapping association relationship specifically includes:
and the incidence relation between the current RAID level and the initial address of the space of the new RAID level in each disk in the system.
The device also comprises a feedback unit which is used for determining the failure of the level conversion and feeding back the information of the failure of the level conversion to the user when the judging unit judges that the remaining available space of the system does not meet the requirement of the RAID level conversion.
The device of the invention also comprises a data conversion transfer unit which is used for transferring the data to the data conversion unit when the system is idle,
converting data on the disk of the current RAID level according to the data format of the new RAID level;
and transferring the data on the current RAID level disk after completing the data format conversion to a disk space corresponding to the address of the new RAID level disk according to the mapping incidence relation.
The device also comprises a recording unit for recording the occupation information of the current RAID level disk, the residual available space information of the system, the address information occupied by the new RAID level disk and the address information of the occupied space of each disk in the system.
The apparatus of the present invention further comprises a read and write unit for, when the transfer of data on the current RAID level disk is not completed,
when the service data is read, inquiring whether the current RAID level disk contains the service data, and if so, reading the service data; if the RAID level disk does not contain the service data, reading the service data from the new RAID level disk according to the mapping association relationship established by the level conversion unit;
when the service data is written, judging whether the new RAID level disk contains enough space for writing the service data according to the initial address and the length of the written service data, and when the space for writing the service data is enough, writing the service data and updating the address information occupied by the new RAID level disk of the recording unit and the address mapping incidence relation established by the level conversion unit; and when the space for writing the service data is not contained enough, the service data writing failure is fed back.
The process of the present invention is illustrated in detail by the following specific examples, which are provided for illustration only and are not intended to limit the scope of the invention.
Example 1
Fig. 3 is a flowchart of a method according to a first embodiment of the present invention, as shown in fig. 3, including:
and 300, reading the pre-recorded system residual available space information when receiving the RAID level conversion instruction.
Step 301, judging whether the remaining available space of the system meets the requirement of RAID level conversion or not according to the occupation information of the current RAID level disk and the remaining available space information of the system;
here, the occupation information of the current RAID level disk and the information of the remaining available space of the system may be recorded through a corresponding list, for example, the maximum supportable number of data disks of one RAID is 16, and the maximum number of check disks is 2, by the following fields
The field "used space" represents the space occupied by the disk at the current RAID level;
the field "available space" represents the space remaining available in the current system, i.e., the disk space remaining available for the system to establish a new RAID level;
the field "current RAID Start" indicates the starting address of disk space on the old RAID level;
the field "end of current RAID" indicates the end address of the disk space at the old RAID level;
the field "new RAID Start" indicates the starting address of disk space at the new RAID level;
the field "new RAID end" indicates the end address of the disk space at the new RAID level;
the field "D0 Start" indicates the starting address of used disk space on disk D0;
the field "D0 end" indicates the end address of used disk space on disk D0;
the field "D1 Start" indicates the starting address of used disk space on disk D1;
the field "D1 end" indicates the end address of used disk space on disk D1;
the field "D2 Start" indicates the starting address of used disk space on disk D2;
the field "D2 end" indicates the end address of used disk space on disk D2;
the field "D3 Start" indicates the starting address of used disk space on disk D3;
the field "D3 end" indicates the end address of used disk space on disk D3;
the field "D4 Start" indicates the starting address of used disk space on disk D4;
the field "D4 end" indicates the end address of used disk space on disk D4;
the field "D5 Start" indicates the starting address of used disk space on disk D5;
the field "D5 end" indicates the end address of used disk space on disk D5;
the field "D6 Start" indicates the starting address of used disk space on disk D6;
the field "D6 end" indicates the end address of used disk space on disk D6;
the field "D7 Start" indicates the starting address of used disk space on disk D7;
the field "D7 end" indicates the end address of used disk space on disk D7;
the field "D8 Start" indicates the starting address of used disk space on disk D8;
the field "D8 end" indicates the end address of used disk space on disk D8;
the field "D9 Start" indicates the starting address of used disk space on disk D9;
the field "D9 end" indicates the end address of used disk space on disk D9;
the field "D10 Start" indicates the starting address of used disk space on disk D10;
the field "D10 end" indicates the end address of used disk space on disk D10;
the field "D11 Start" indicates the starting address of used disk space on disk D11;
the field "D11 end" indicates the end address of used disk space on disk D11;
the field "D12 Start" indicates the starting address of used disk space on disk D12;
the field "D12 end" indicates the end address of used disk space on disk D12;
the field "D13 Start" indicates the starting address of used disk space on disk D13;
the field "D13 end" indicates the end address of used disk space on disk D13;
the field "D14 Start" indicates the starting address of used disk space on disk D14;
the field "D14 end" indicates the end address of used disk space on disk D14;
the field "D15 Start" indicates the starting address of used disk space on disk D15;
the field "D15 end" indicates the end address of used disk space on disk D15;
the field "Pstart" indicates the starting address of the used disk space on disk P;
the field "Pend" indicates the end address of the used disk space on disk P;
the field "qstart" indicates the starting address of the used disk space on disk Q;
the field "qtend" indicates the end address of the used disk space on disk Q.
Step 302, when the requirement of RAID level conversion is satisfied, a new RAID level disk is established in the remaining available space of the system, and a mapping association relationship between the occupied address of the current RAID level disk and the address of the new RAID level disk is established, thereby completing the RAID level conversion. And when the requirement of RAID level conversion is not met, the feedback level conversion fails.
The mapping association relationship specifically includes:
and mapping association relationship between the current RAID level and the initial address of the space of the new RAID level in each disk in the system. Taking the new RAID level including 15 data disks, and two check disks P and Q as an example, the mapping association relationship includes the following information:
the field "D0" indicates the starting address of the corresponding stored data at the current RAID level and the new RAID level on disk D0;
the field "D1" indicates the starting address of the corresponding stored data at the current RAID level and the new RAID level on disk D1;
the field "D2" indicates the starting address of the corresponding stored data at the current RAID level and the new RAID level on disk D2;
the field "D3" indicates the starting address of the corresponding stored data at the current RAID level and the new RAID level on disk D3;
the field "D4" indicates the starting address of the corresponding stored data at the current RAID level and the new RAID level on disk D4;
the field "D5" indicates the starting address of the corresponding stored data at the current RAID level and the new RAID level on disk D5;
the field "D6" indicates the starting address of the corresponding stored data at the current RAID level and the new RAID level on disk D6;
the field "D7" indicates the starting address of the corresponding stored data at the current RAID level and the new RAID level on disk D7;
the field "D8" indicates the starting address of the corresponding stored data at the current RAID level and the new RAID level on disk D8;
the field "D9" indicates the starting address of the corresponding stored data at the current RAID level and the new RAID level on disk D9;
the field "D10" indicates the starting address of the corresponding stored data at the current RAID level and the new RAID level on disk D10;
the field "D11" indicates the starting address of the corresponding stored data at the current RAID level and the new RAID level on disk D11;
the field "D12" indicates the starting address of the corresponding stored data at the current RAID level and the new RAID level on disk D12;
the field "D13" indicates the starting address of the corresponding stored data at the current RAID level and the new RAID level on disk D13;
the field "D14" indicates the starting address of the corresponding stored data at the current RAID level and the new RAID level on disk D14;
the field "D15" indicates the starting address of the corresponding stored data at the current RAID level and the new RAID level on disk D15;
the field "P" indicates the starting address of the corresponding stored data at the current RAID level and the new RAID level on the disk P;
the field "Q" indicates the starting address of the corresponding stored data at the current RAID level and the new RAID level on disk Q.
Step 303, feeding back the level conversion success to the user.
Example 2
After the new RAID level disk and the mapping association relationship are established, RAID level conversion is completed, and the service of the system is not influenced; fig. 4 is a flowchart of a method according to a second embodiment of the present invention, as shown in fig. 4, including:
step 400, inquiring whether the current RAID level disk contains the service data or not according to the instruction for reading the service data; when the current RAID level disk contains the business data, executing step 401 and reading the business data; otherwise, step 402 is performed.
Step 401, reading the service data.
And step 402, reading the service data from the new RAID level disk according to the mapping association relationship.
After the service data is read in step 401 or 402, step 403 is executed.
And step 403, feeding back a result of reading the service data to the user.
Example 3
After the new RAID level disk and the mapping association relationship are established, RAID level conversion is completed, and the service of the system is not influenced; fig. 5 is a flowchart of a method according to a third embodiment of the present invention, as shown in fig. 5, including:
step 500, according to the user writing operation instruction, acquiring the initial address and the length of the written service data.
Step 501, reading address information occupied by a new RAID level disk, acquiring a space available for writing service data, and executing step 5020 when judging whether the space contains enough space for writing service data; otherwise, go to step 5030;
step 5020, writing in the service data. The method specifically comprises the following steps:
and judging whether the written service data is on the disk of the new RAID level or the disk of the current RAID level according to the acquired initial address of the written service data and the information of the mapping incidence relation.
If the service data to be written is on the current RAID level disk, acquiring a write address from the disk of the new RAID level; if the data to be written is on the disk of the new RAID level, the business data is directly written on the disk of the new RAID level.
Step 5030, the failure of writing the service data is fed back to the user.
Step 5021, updating the address information occupied by the new RAID level disk and the address mapping association relation.
Step 5022, feeding back the operation result of the service data writing to the user.
Example 4
Fig. 6 is a schematic diagram of the composition of the current RAID level disk according to embodiment 4 of the present invention, and as shown in fig. 6, the current RAID level disk has at least 3 data disks D0, D1, and D2, and further includes a check disk P composition.
Fig. 7 is a schematic diagram illustrating the composition of a new RAID level disk according to embodiment 4 of the present invention, and as shown in fig. 7, the new RAID level disk is composed of at least 2 data disks D0 and D1, and a check disk P and a check disk Q.
This embodiment mainly describes a process of transferring data on a current RAID level disk to a new RAID level disk. Fig. 8 is a flowchart of a method according to a fourth embodiment of the present invention, as shown in fig. 8, including:
step 800, judging whether the system is idle; in particular, the method comprises the following steps of,
if the current system has no external and internal reading and writing operations, judging that the system is idle, and executing the step 801 when the system is idle; otherwise, a read or write operation is performed.
Step 801, searching mapping association relation, and obtaining addresses transferred by D0, D1 and D2 after D0, D1 and D2 data on a RAID5 level disk are converted into a RAID6 level disk;
step 802, converting data on the disk of RAID5 level according to the data format of RAID6 level, transferring the data on the disk of RAID5 level after the data format conversion to the disk space corresponding to the address of the disk of RAID6 level, and generating the check information of P, Q disks on the disk of RAID 6.
And step 803, updating the address information occupied by the RAID6 level disk and the address mapping association relation.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for realizing RAID level conversion is characterized in that when receiving a RAID level conversion instruction, the method comprises the following steps:
judging whether the remaining available space of the system meets the requirement of RAID level conversion or not according to pre-recorded occupation information of the current RAID level disk and the remaining available space information of the system;
when the requirement of RAID level conversion is met, establishing a new RAID level disk in the residual available space of the system, and establishing a mapping incidence relation between the occupied address of the current RAID level disk and the address of the new RAID level disk to complete RAID level conversion;
the mapping association relationship specifically includes: and the incidence relation of the initial addresses of the spaces of the current RAID level disk and the new RAID level disk in each disk in the system.
2. The method of claim 1, wherein when the system remaining available space does not meet the requirements for RAID level translation, the method further comprises: determining that the level conversion fails and feeding back information of the level conversion failure to the user.
3. The method of claim 1, further comprising: when the system is in an idle state, the system is in a standby state,
converting the data on the current RAID level disk according to the data format of the new RAID level;
and transferring the data on the current RAID level disk after completing the data format conversion to a disk space corresponding to the address of the new RAID level disk according to the mapping incidence relation.
4. A method according to any one of claims 1 to 3, further comprising:
and recording the address information occupied by the new RAID level disk and the address information of the occupied space of each disk in the system.
5. The method of claim 4, wherein the method further comprises, while the transfer of data to the current RAID level disk is not complete:
when reading the service data, inquiring whether the current RAID level disk contains the service data, and if so, reading the service data; if the service data is not contained, reading the service data from the new RAID level disk according to the mapping association relation;
when the service data is written, judging whether the new RAID level disk contains enough space for writing the service data according to the initial address and the length of the written service data, and when the space for writing the service data is enough, writing the service data and updating the mapping association relationship between the occupied address of the current RAID level disk and the address of the new RAID level disk; and when the space for writing the service data is not contained enough, the service data writing failure is fed back.
6. An apparatus for implementing RAID level translation, comprising: a judging unit, a level converting unit; wherein the content of the first and second substances,
the judging unit is used for judging whether the remaining available space of the system meets the requirement of RAID level conversion or not according to the pre-recorded occupation information of the current RAID level disk and the remaining available space information of the system when receiving the RAID level conversion instruction;
the level conversion unit is used for establishing a new RAID level disk in the residual available space of the system and establishing a mapping incidence relation between the occupied address of the current RAID level disk and the address of the new RAID level disk to complete RAID level conversion when the judgment unit judges that the requirement of RAID level conversion is met;
the mapping association relationship specifically includes: and the incidence relation of the initial addresses of the spaces of the current RAID level disk and the new RAID level disk in each disk in the system.
7. The apparatus according to claim 6, further comprising a feedback unit, configured to determine that the level shift fails and feed back information of the level shift failure to a user when the determining unit determines that the remaining available space of the system does not satisfy the requirement of RAID level shift.
8. The apparatus of claim 6, further comprising a data transition transfer unit for transferring data between the first and second processors when the system is idle,
converting the data on the current RAID level disk according to the data format of the new RAID level;
and transferring the data on the current RAID level disk after completing the data format conversion to a disk space corresponding to the address of the new RAID level disk according to the mapping incidence relation.
9. The apparatus according to any one of claims 6 to 8, further comprising a recording unit configured to record occupation information of a current RAID level disk, information of remaining available space of the system, address information occupied by the new RAID level disk, and address information of occupied space of each disk in the system.
10. The apparatus of claim 9, further comprising a read and write unit to, when a transfer of data on the current RAID level disk is not complete,
when reading the service data, inquiring whether the current RAID level disk contains the service data, and if so, reading the service data; if the service data is not contained, reading the service data from the new RAID level disk according to the mapping association relationship established by the level conversion unit;
when the service data is written, judging whether the new RAID level disk contains enough space for writing the service data according to the initial address and the length of the written service data, and when the space for writing the service data is enough, writing the service data and updating the mapping incidence relation between the occupied address of the current RAID level disk of the recording unit and the address of the new RAID level disk; and when the space for writing the service data is not contained enough, the service data writing failure is fed back.
CN201510428541.9A 2015-07-20 2015-07-20 Method and device for realizing RAID level conversion Active CN106371950B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510428541.9A CN106371950B (en) 2015-07-20 2015-07-20 Method and device for realizing RAID level conversion
PCT/CN2016/081432 WO2017012391A1 (en) 2015-07-20 2016-05-09 Method and apparatus for achieving raid level conversion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510428541.9A CN106371950B (en) 2015-07-20 2015-07-20 Method and device for realizing RAID level conversion

Publications (2)

Publication Number Publication Date
CN106371950A CN106371950A (en) 2017-02-01
CN106371950B true CN106371950B (en) 2020-11-03

Family

ID=57833575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510428541.9A Active CN106371950B (en) 2015-07-20 2015-07-20 Method and device for realizing RAID level conversion

Country Status (2)

Country Link
CN (1) CN106371950B (en)
WO (1) WO2017012391A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542687B (en) * 2018-11-23 2020-12-25 新华三技术有限公司 RAID level conversion method and device
US11174011B2 (en) 2019-02-05 2021-11-16 Lockheed Martin Corporation Low drag hub for rotor
CN114079616B (en) * 2021-11-02 2023-11-03 中国船舶重工集团公司第七0三研究所 Redundancy method for database of non-hot standby disk array server
CN114415968B (en) * 2022-01-26 2023-04-07 南京晓庄学院 Storage system and data writing method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1434125A2 (en) * 2002-12-26 2004-06-30 Fujitsu Limited Raid apparatus and logical device expansion method thereof
CN101556802A (en) * 2009-05-25 2009-10-14 杭州华三通信技术有限公司 RAID array transposing method and device thereof
CN102023812A (en) * 2009-09-23 2011-04-20 成都市华为赛门铁克科技有限公司 RAID (redundant array of inexpensive disk) level transformation method and transformation device
CN102103629A (en) * 2010-12-14 2011-06-22 西北工业大学 Online data migration method
CN102156738A (en) * 2011-04-13 2011-08-17 成都市华为赛门铁克科技有限公司 Method for processing data blocks, and data block storage equipment and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6275898B1 (en) * 1999-05-13 2001-08-14 Lsi Logic Corporation Methods and structure for RAID level migration within a logical unit
CN101369217B (en) * 2008-08-30 2011-12-28 成都市华为赛门铁克科技有限公司 RAID level transforming method and apparatus
CN102446072B (en) * 2010-10-07 2014-11-19 国际商业机器公司 System and method for DAID array transformation in a pooled storage system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1434125A2 (en) * 2002-12-26 2004-06-30 Fujitsu Limited Raid apparatus and logical device expansion method thereof
CN101556802A (en) * 2009-05-25 2009-10-14 杭州华三通信技术有限公司 RAID array transposing method and device thereof
CN102023812A (en) * 2009-09-23 2011-04-20 成都市华为赛门铁克科技有限公司 RAID (redundant array of inexpensive disk) level transformation method and transformation device
CN102103629A (en) * 2010-12-14 2011-06-22 西北工业大学 Online data migration method
CN102156738A (en) * 2011-04-13 2011-08-17 成都市华为赛门铁克科技有限公司 Method for processing data blocks, and data block storage equipment and system

Also Published As

Publication number Publication date
WO2017012391A1 (en) 2017-01-26
CN106371950A (en) 2017-02-01

Similar Documents

Publication Publication Date Title
CN102508787B (en) System and method for memory allocation of composite memory
US20070288711A1 (en) Snapshot copy management method used for logic volume manager
CN106371950B (en) Method and device for realizing RAID level conversion
CN103534688B (en) Data reconstruction method, memory device and storage system
CN102301345A (en) Hybrid memory device
CN101494086B (en) Memory device, controller and switching method for flash memory
CN103631536B (en) A kind of method utilizing the invalid data of SSD to optimize RAID5/6 write performance
CN103136074A (en) Data storage method and data storage system of multiple disk array systems
CN102945207A (en) Cache management method and system for block-level data
US11474919B2 (en) Method for managing multiple disks, electronic device and computer program product
US9558124B2 (en) Data storage system with passive partitioning in a secondary memory
CN104407933A (en) Data backup method and device
CN101002274A (en) Method and device to improve USB flash write performance
CN101515276A (en) Method for write operation of file data, and recovery method and recovery system for file data
CN102214143A (en) Method and device for managing multilayer unit flash memory, and storage equipment
CN101625897A (en) Data write-in method, storage system and controller used for quick flash memory
CN102520885B (en) Data management system for hybrid hard disk
CN100580669C (en) Method for realizing cache memory relates to file allocation table on Flash storage medium
CN105260139A (en) Magnetic disk management method and system
CN104133640B (en) From the fast quick-recovery of dormancy
CN102609224A (en) Redundant array of independent disk system and initializing method thereof
CN102737716B (en) Memorizer memory devices, Memory Controller and method for writing data
CN115237351B (en) NAND block dynamic remapping and read-write command processing method and storage device
CN106844229A (en) The method for organizing of solid state hard disc firmware mapping table, system and device
CN102750111A (en) Method for storing redundant array of independent disk (RAID) bitmaps

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant