WO2017012391A1 - Method and apparatus for achieving raid level conversion - Google Patents

Method and apparatus for achieving raid level conversion Download PDF

Info

Publication number
WO2017012391A1
WO2017012391A1 PCT/CN2016/081432 CN2016081432W WO2017012391A1 WO 2017012391 A1 WO2017012391 A1 WO 2017012391A1 CN 2016081432 W CN2016081432 W CN 2016081432W WO 2017012391 A1 WO2017012391 A1 WO 2017012391A1
Authority
WO
WIPO (PCT)
Prior art keywords
raid level
disk
space
service data
data
Prior art date
Application number
PCT/CN2016/081432
Other languages
French (fr)
Chinese (zh)
Inventor
杨绍明
李彬
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017012391A1 publication Critical patent/WO2017012391A1/en

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

Definitions

  • the present application relates to, but is not limited to, disk array technology, and more particularly to a method and apparatus for implementing independent redundant disk array (RAID) level conversion.
  • RAID independent redundant disk array
  • Redundant Array of Independent Disk is a combination of multiple independent hard disks (physical hard disks) in different ways to form a disk group (logical hard disk) to provide higher storage than a single hard disk. Performance, technology that provides data backup capabilities. The different ways of composing a disk array form the corresponding RAID level. Different RAID levels have corresponding performance in terms of data reliability and read and write performance.
  • RAID is generally classified into RAID0, RAID1, RAID3, RAID5, RAID6, and RAID10.
  • the conversion of RAID at each level is selected. For example, to save space, RAID 1 RAID 1 is converted to RAID 5 RAID; to improve reliability, RAID 5 RAID is converted to RAID 6 RAID.
  • the leveling operation of the RAID is to complete the RAID level conversion.
  • the user can perform new business operations only after the level conversion is completed.
  • new business operations cannot be performed, which may cause service interruption and affect the whole.
  • Business performance In addition, in the related art, it is also possible to use the strip to handle the change of the RAID. However, it takes a lot of time to process the change by using the strip, and the user needs to wait for the change to complete before the service can be performed, which may result in service interruption.
  • the embodiments of the present invention provide a method and an apparatus for implementing RAID level conversion, which can quickly implement level conversion without interrupting services.
  • An embodiment of the present invention provides a method for implementing RAID level conversion, including:
  • the method further includes: when the remaining free space of the system does not meet the requirement of the RAID level conversion, determining that the level conversion fails and feeding back the information that the level conversion fails to the user.
  • the method further includes: when the system is idle,
  • the method further includes:
  • the method further includes:
  • the service data When the service data is read, the service data is queried on the current RAID level disk, and if the service data is included, the service data is read; if the service data is not included, according to the mapping association relationship, Reading the business data from a new RAID level disk;
  • the new RAID level disk contains sufficient space for writing service data according to the starting address and length of the written service data, and when space containing sufficient service data is written, Write service data, and update address information occupied by the new RAID level disk and the address mapping association relationship; when not including enough space for service data writing, Feed service data write failed.
  • mapping association relationship includes:
  • the application further provides an apparatus for implementing RAID level conversion, comprising: a determining unit and a level converting unit; wherein
  • the determining unit is configured to: determine, according to the pre-recorded current RAID level disk occupation information and the remaining free space information of the system, whether the remaining free space of the system meets the requirement of the RAID level conversion when receiving the RAID level conversion instruction;
  • the level conversion unit is configured to: when the determining unit determines that the remaining free space of the system meets the requirement of the RAID level conversion, establish a new RAID level disk in the remaining space of the system, and establish an occupied address and a new disk of the current RAID level disk.
  • the mapping relationship of the addresses of the RAID-level disks completes the RAID level conversion.
  • the device further includes: a feedback unit, configured to: when the determining unit determines that the remaining available space of the system does not meet the requirement of the RAID level conversion, determine that the level conversion fails and feedback the level conversion failure information to the user.
  • a feedback unit configured to: when the determining unit determines that the remaining available space of the system does not meet the requirement of the RAID level conversion, determine that the level conversion fails and feedback the level conversion failure information to the user.
  • the device further includes a data conversion transfer unit, configured to: when the system is idle,
  • the device further includes a recording unit, configured to: record occupancy information of the current RAID level disk, remaining space information of the system, address information occupied by the new RAID level disk, and an address occupied by each disk in the system. information.
  • the apparatus further includes a read and write unit configured to: when the transfer of data on the current RAID level disk is not completed,
  • the service data When the service data is read, the service data is queried on the current RAID level disk, and if the service data is included, the service data is read; if the service data is not included, the level conversion unit is established according to the level conversion unit.
  • the new RAID level disk contains sufficient space for writing service data according to the starting address and length of the written service data, and when space containing sufficient service data is written, Write service data, and update address information occupied by the new RAID level disk recorded by the recording unit and the mapping association relationship established by the level conversion unit; when there is no space for writing sufficient service data, feedback Business data write failed.
  • mapping association relationship includes:
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, the method for implementing the RAID level conversion described above being implemented when the computer executable instructions are executed.
  • the technical solution of the present application includes: when receiving the RAID level conversion instruction, determining, according to the pre-recorded current RAID level disk occupation information and the remaining free space information of the system, whether the remaining free space of the system satisfies the requirement of the RAID level conversion.
  • the remaining space of the system meets the requirements of the RAID level conversion, a new RAID level disk is created in the remaining space of the system, and the mapping relationship between the current RAID level disk occupation address and the new RAID level disk address is established, and the RAID level conversion is completed.
  • the method of the present application can implement RAID level conversion without data transfer, thereby avoiding the problem of service interruption caused by data transfer; establishing a new RAID level disk is fast, and the time consumption of level conversion is reduced.
  • FIG. 1 is a flowchart of a method for implementing RAID level conversion according to an embodiment of the present invention
  • FIG. 2 is a structural diagram of an apparatus for implementing RAID level conversion according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method according to Embodiment 1 of the present invention.
  • FIG. 6 is a schematic structural diagram of a current RAID level disk according to Embodiment 4 of the present invention.
  • FIG. 7 is a schematic structural diagram of a new RAID level disk according to Embodiment 4 of the present invention.
  • FIG. 8 is a flowchart of a method according to Embodiment 4 of the present invention.
  • FIG. 1 is a flowchart of a method for implementing an independent redundant disk array (RAID) level conversion according to an embodiment of the present invention. As shown in FIG. 1 , when receiving a RAID level conversion instruction, the method provided in this embodiment includes the following steps:
  • Step 100 Determine, according to pre-recorded current RAID level disk occupation information and remaining free space information of the system, whether the remaining free space of the system meets the requirement of RAID level conversion;
  • Step 101 When the remaining space of the system meets the requirements of the RAID level conversion, a new RAID level disk is created in the remaining space of the system, and a mapping relationship between the current RAID level disk occupation address and the new RAID level disk address is established, and the RAID relationship is completed. Level conversion.
  • the method of this embodiment further includes: when the remaining available space of the system does not meet the requirement of the RAID level conversion, determining that the level conversion fails and feeding back the information that the level conversion fails to the user.
  • the method of this embodiment further includes: when the system is idle,
  • the data on the current RAID level disk that completes the data format conversion is transferred to the disk space corresponding to the address of the new RAID level disk.
  • the service data of the current RAID level disk is included, and if the service data is included, the service data is read; if the service data is not included, the service is read from the new RAID level disk according to the mapping association relationship. data;
  • the new RAID level disk contains enough space for the writing of service data according to the starting address and length of the written service data, and writes when space containing sufficient service data is written.
  • the service data is updated, and the address information occupied by the new RAID level disk and the mapping association relationship are updated; when the space written by the sufficient service data is not included, the feedback service data write fails.
  • RAID level disk contains enough space for the writing of service data
  • a RAID 5 with a capacity of 600G is created by using four disks of 1T capacity. (One of them is used as a parity disk and the other three are data disks).
  • the capacity of RAID5 is 600G
  • the used space on each disk is 200G
  • the remaining space on each disk is 800G. If you want to change to RAID6 level (where 2 are parity disks and others are data disks), each disk needs to occupy 300G, and the original remaining space is 800G, so RAID level conversion can be performed.
  • mapping association relationship includes:
  • the method of the embodiment can implement RAID level conversion without data transfer, thereby avoiding the problem of service interruption caused by data transfer; establishing a new RAID level disk is fast, and the time conversion of the level conversion is reduced.
  • the apparatus includes: a determining unit and a level converting unit;
  • the determining unit is configured to: determine, according to the pre-recorded current RAID level disk occupation information and the remaining free space information of the system, whether the remaining free space of the system meets the requirement of the RAID level conversion when receiving the RAID level conversion instruction;
  • the level conversion unit is configured to: when the determining unit determines that the remaining free space of the system meets the requirement of the RAID level conversion, establish a new RAID level disk in the remaining space of the system, and establish an occupied address and a new disk of the current RAID level disk.
  • the mapping relationship of the addresses of the RAID-level disks completes the RAID level conversion.
  • the mapping relationship includes:
  • the apparatus of this embodiment may further include a feedback unit, configured to: when the determining unit determines that the remaining available space of the system does not meet the requirement of the RAID level conversion, determine that the level conversion fails and the information of the level conversion failure is fed back to the user.
  • a feedback unit configured to: when the determining unit determines that the remaining available space of the system does not meet the requirement of the RAID level conversion, determine that the level conversion fails and the information of the level conversion failure is fed back to the user.
  • the apparatus of this embodiment may further include a data conversion transfer unit, configured to: when the system is idle,
  • the data on the current RAID level disk that completes the data format conversion is transferred to the disk space corresponding to the address of the new RAID level disk.
  • the device of this embodiment may further include a recording unit configured to: record the occupation information of the current RAID level disk, the remaining 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 this embodiment may further include a reading and writing unit configured to: when the data transfer on the current RAID level disk is not completed,
  • the service data of the current RAID level is included, and if the service data is included, the service data is read; if the service data is not included, the mapping relationship established by the level conversion unit is used, and the new RAID level is obtained.
  • the new RAID level disk contains enough space for the service data to be written according to the starting address and length of the written service data.
  • the service data is written, and the address information occupied by the new RAID level disk recorded by the recording unit and the mapping association relationship established by the level conversion unit are updated; the data is not included in the data
  • the feedback business data is written to fail.
  • FIG. 3 is a flowchart of a method in Embodiment 1. As shown in FIG. 3, the method includes:
  • Step 300 When receiving the RAID level conversion instruction, read the pre-recorded remaining free space information of the system.
  • Step 301 Determine, according to the current RAID level disk occupation information and the remaining free space information of the system, whether the remaining free space of the system meets the requirement of the RAID level conversion;
  • the current RAID level disk occupation information and the system remaining free space information can be recorded through the corresponding list, with a RAID maximum supportable data disk number of 16 (for example, disk D0 to disk D15), the maximum verification disk
  • a RAID maximum supportable data disk number of 16 for example, disk D0 to disk D15
  • the maximum verification disk For example, two (for example, disk P and disk Q) are represented by the following fields:
  • the field "used space” indicates the space occupied by the disk at the current RAID level
  • free space indicates the remaining free space in the current system, that is, the remaining disk space available for the system to establish a new RAID level
  • the field "Current RAID Start” indicates the start address of the disk space on the old RAID level
  • the field "Current RAID End” indicates the end address of the disk space on the old RAID level
  • New RAID Start indicates the start address of the disk space on the new RAID level
  • New RAID End indicates the end address of the disk space on the new RAID level
  • the field "D0 start” indicates the starting address of the used disk space on disk D0;
  • D0 End indicates the end address of the used disk space on disk D0;
  • the field "D1 Start” indicates the starting address of the used disk space on disk D1;
  • the field "D1 End” indicates the end address of the used disk space on disk D1;
  • D2 Start indicates the starting address of the used disk space on disk D2;
  • End of D2 indicates the end address of the used disk space on disk D2;
  • D3 Start indicates the starting address of the used disk space on disk D3;
  • D3 End indicates the end address of the used disk space on disk D3;
  • the field "D4 Start” indicates the starting address of the used disk space on disk D4;
  • end D4 indicates the end address of the used disk space on disk D4;
  • the field "D5 Start” indicates the starting address of the used disk space on disk D5;
  • End of D5 indicates the end address of the used disk space on disk D5;
  • D6 Start indicates the starting address of the used disk space on disk D6;
  • D6 End indicates the end address of the used disk space on disk D6;
  • the field "D7 Start” indicates the starting address of the used disk space on disk D7;
  • End of D7 indicates the end address of the used disk space on disk D7;
  • the field "D8 Start” indicates the starting address of the used disk space on disk D8;
  • the field "D8 End” indicates the end address of the used disk space on the disk D8;
  • the field "D9 Start” indicates the starting address of the used disk space on disk D9;
  • End of D9 indicates the end address of the used disk space on disk D9
  • D10 Start indicates the starting address of the used disk space on disk D10
  • the field "D10 End” indicates the end address of the used disk space on the disk D10;
  • the field "D11 Start” indicates the starting address of the used disk space on the disk D11;
  • end of D11 indicates the end address of the used disk space on the disk D11
  • the field "D12 Start” indicates the starting address of the used disk space on the disk D12;
  • the field "D12 End” indicates the end address of the used disk space on the disk D12;
  • the field "D13 Start” indicates the starting address of the used disk space on the disk D13;
  • End D13 indicates the end address of the used disk space on the disk D13;
  • the field "D14 Start” indicates the starting address of the used disk space on disk D14;
  • end D14 indicates the end address of the used disk space on disk D14;
  • the field "D15 Start” indicates the starting address of the used disk space on the disk D15;
  • the field "D15 End” indicates the end address of the used disk space on the disk D15;
  • P start indicates the starting address of the used disk space on disk P
  • P end indicates the end address of the used disk space on the disk P
  • Q Start indicates the starting address of the used disk space on disk Q
  • Q End indicates the end address of the used disk space on disk Q.
  • Step 302 When the remaining space of the system meets the requirements of the RAID level conversion, a new RAID level disk is created in the remaining space of the system, and a mapping relationship between the current RAID level disk occupation address and the new RAID level disk address is established, and the RAID relationship is completed. Level conversion.
  • the mapping relationship includes:
  • mapping relationship contains the following information:
  • the field "D0" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D0;
  • the field "D1" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D1;
  • the field "D2" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D2;
  • the field "D3" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D3;
  • the field "D4" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D4;
  • the field "D5" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D5;
  • the field "D6" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D6;
  • the field "D7" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D7;
  • the field "D8" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D8;
  • the field "D9" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D9;
  • the field "D10" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D10;
  • the field "D11" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D11;
  • the field "D12" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D12;
  • the field "D13" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D13;
  • the field "D14" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D14;
  • the field "D15" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D15;
  • the field "P" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk P;
  • the field "Q" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk Q.
  • Step 303 The level of conversion to the user is successfully converted.
  • FIG. 4 is a flowchart of the method of the second embodiment. As shown in FIG. 4, the method in this embodiment includes the following steps:
  • Step 400 Query whether the current RAID level disk includes the service data according to the instruction for reading the service data. If the current RAID level disk contains the service data, go to step 401; otherwise, go to step 402.
  • Step 401 Read service data.
  • Step 402 Read service data from a new RAID level disk according to the mapping association relationship.
  • step 403 is performed.
  • Step 403 Feed back to the user the result of reading the service data.
  • FIG. 5 is a flowchart of the method in the third embodiment, as shown in FIG. The method includes the following steps:
  • Step 500 Acquire a starting address and a length of the written service data according to a user write operation instruction.
  • Step 501 the address information occupied by the new RAID level disk is read, the space available for the service data is obtained, and the space for writing the service data is included. If sufficient space for the service data is included, step 5020 is performed; Otherwise, step 5030 is performed.
  • Step 5020 Write service data. This step includes:
  • the write address needs to be obtained from the new RAID level disk; if the data to be written is on the new RAID level disk, write the disk directly at the new RAID level. Enter business data.
  • step 5030 the service data write failure is reported to the user.
  • Step 5021 Update the address information and the address mapping association relationship occupied by the new RAID level disk.
  • Step 5022 Feed back to the user the operation result of the service data writing.
  • the current RAID level disk includes at least three data disks D0, D1, and D2, and one parity disk P.
  • the new RAID level disk includes at least two data disks D0 and D1, and one parity disk P and one parity disk Q.
  • FIG. 8 is a flowchart of a method in Embodiment 4. As shown in FIG. 8, the method in this embodiment includes the following steps:
  • Step 800 Determine whether the system is idle
  • step 801 If the current system has no external and internal read and write operations, it is determined that the system is idle, and when the system is idle, step 801 is performed; otherwise, a read or write operation is performed;
  • Step 801 Find a mapping association relationship, and obtain an address transferred by D0, D1, and D2 after the D0, D1, and D2 data on the RAID5 level disk is converted into a RAID6 level disk;
  • Step 802 Convert the data on the RAID level 5 disk according to the RAID 6 level data format, and transfer the data on the RAID 5 level disk that completes the data format conversion to the disk space corresponding to the address of the RAID 6 level disk, and generate the P and Q disks on the RAID 6 disk. Inspection information;
  • Step 803 Update the association between the address information and the address mapping occupied by the RAID level 6 disk.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, the method for implementing the RAID level conversion described above being implemented when the computer executable instructions are executed.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • This application is not limited to any particular form of hardware and software. Combine.
  • the embodiment of the present invention provides a method and an apparatus for implementing RAID level conversion, which can implement RAID level conversion without data transfer, and avoids the problem of service interruption caused by data transfer; establishing a new RAID level disk realizes fast and reduces level conversion. Time consuming.

Abstract

A method for achieving RAID level conversion, comprising: when a RAID level conversion instruction is received, according to pre-recorded occupation information about a current RAID level disk and information about available remaining system space, determining whether the available remaining system space satisfies the requirement of RAID level conversion; and when the available remaining system space satisfies the requirement of RAID level conversion, establishing a new RAID level disk in the available remaining system space, establishing a mapping association relationship between an occupation address of the current RAID level disk and an address of the new RAID level disk, and completing the RAID level conversion. The method can achieve RAID level conversion without performing data transfer, avoids the problem of service interruption caused due to data transfer, and quickly achieves the establishment of a new RAID level disk, thus reducing the time consumption for level conversion.

Description

一种实现RAID级别转换的方法及装置Method and device for realizing RAID level conversion 技术领域Technical field
本申请涉及但不限于磁盘阵列技术,尤指一种实现独立冗余磁盘阵列(RAID)级别转换的方法及装置。The present application relates to, but is not limited to, disk array technology, and more particularly to a method and apparatus for implementing independent redundant disk array (RAID) level conversion.
背景技术Background technique
独立冗余磁盘阵列(RAID,Redundant Array of Independent Disk)是一种把多块独立的硬盘(物理硬盘)按不同的方式组合形成一个硬盘组(逻辑硬盘),达到提供比单个硬盘更高的存储性能,提供数据备份能力的技术。组成磁盘阵列的不同方式形成相应的RAID级别。不同的RAID级别在数据可靠性及读写性能上具备相应的性能。Redundant Array of Independent Disk (RAID) is a combination of multiple independent hard disks (physical hard disks) in different ways to form a disk group (logical hard disk) to provide higher storage than a single hard disk. Performance, technology that provides data backup capabilities. The different ways of composing a disk array form the corresponding RAID level. Different RAID levels have corresponding performance in terms of data reliability and read and write performance.
目前,RAID一般被分为RAID0、RAID1、RAID3、RAID5、RAID6、RAID10等级别。为了满足存储系统可用性、和/或性能、和/或容量的需求,选择各级别的RAID的转换。例如,为了节省空间,将级别为RAID1的RAID转换为级别为RAID5的RAID;为了提高可靠性,把级别为RAID5的RAID转换为级别为RAID6的RAID。在相关技术中,在进行变级操作时,事先进行数据搬移,把变级前的RAID格式的数据按变级后的RAID格式的数据进行数据重新计算,只有在完成整个数据搬移后才完成RAID的变级操作,即完成RAID的级别转换;通过该方法,用户只有在完成级别变换后才能进行新的业务操作,变级过程中,无法进行新的业务操作,可能会造成业务中断,影响整体业务性能。另外,在相关技术中,还可以利用条带来处理RAID的变级,但是,利用条带来处理变级需要耗费大量时间,用户需要等待变级完成才能进行业务,可能导致业务中断。Currently, RAID is generally classified into RAID0, RAID1, RAID3, RAID5, RAID6, and RAID10. In order to meet storage system availability, and/or performance, and/or capacity requirements, the conversion of RAID at each level is selected. For example, to save space, RAID 1 RAID 1 is converted to RAID 5 RAID; to improve reliability, RAID 5 RAID is converted to RAID 6 RAID. In the related art, when performing the leveling operation, the data is moved in advance, and the data of the RAID format before the change is recalculated according to the data of the RAID format after the change, and the RAID is completed only after the entire data is moved. The leveling operation of the RAID is to complete the RAID level conversion. With this method, the user can perform new business operations only after the level conversion is completed. In the process of the level change, new business operations cannot be performed, which may cause service interruption and affect the whole. Business performance. In addition, in the related art, it is also possible to use the strip to handle the change of the RAID. However, it takes a lot of time to process the change by using the strip, and the user needs to wait for the change to complete before the service can be performed, which may result in service interruption.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。 The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种实现RAID级别转换的方法及装置,能够在不中断业务的前提下,快速实现级别转换。The embodiments of the present invention provide a method and an apparatus for implementing RAID level conversion, which can quickly implement level conversion without interrupting services.
本发明实施例提供了一种实现RAID级别转换的方法,包括:An embodiment of the present invention provides a method for implementing RAID level conversion, including:
在接收到RAID级别转换指令时,根据预先记录的当前RAID级别磁盘的占用信息和系统剩余可用空间信息判断系统剩余可用空间是否满足RAID级别转换的要求;When receiving the RAID level conversion instruction, determining whether the remaining free space of the system meets the requirement of the RAID level conversion according to the pre-recorded current RAID level disk occupation information and the remaining free space information of the system;
在系统剩余可用空间满足RAID级别转换的要求时,在系统剩余可用空间建立新RAID级别磁盘,并建立当前RAID级别磁盘的占用地址和新RAID级别磁盘的地址的映射关联关系,完成RAID级别转换。When the remaining space of the system meets the requirements of the RAID level conversion, a new RAID level disk is created in the remaining space of the system, and the mapping relationship between the current RAID level disk occupation address and the new RAID level disk address is established, and the RAID level conversion is completed.
可选地,该方法还包括:在系统剩余可用空间不满足RAID级别转换的要求时,确定级别转换失败并反馈级别转换失败的信息给用户。Optionally, the method further includes: when the remaining free space of the system does not meet the requirement of the RAID level conversion, determining that the level conversion fails and feeding back the information that the level conversion fails to the user.
可选地,该方法还包括:在系统空闲时,Optionally, the method further includes: when the system is idle,
按照新RAID级别的数据格式转换所述当前RAID级别磁盘上数据;Converting data on the current RAID level disk according to a new RAID level data format;
根据所述映射关联关系,将完成数据格式转换的所述当前RAID级别磁盘上数据转移到所述新RAID级别磁盘的地址对应的磁盘空间上。And transferring the data on the current RAID level disk that completes the data format conversion to the disk space corresponding to the address of the new RAID level disk according to the mapping association relationship.
可选地,该方法还包括:Optionally, the method further includes:
记录所述新RAID级别磁盘占用的地址信息和系统内每个磁盘已占用空间的地址信息。Record the address information occupied by the new RAID level disk and the address information of the occupied space of each disk in the system.
可选地,该方法还包括:Optionally, the method further includes:
在未完成所述当前RAID级别磁盘上数据的转移时,When the transfer of data on the current RAID level disk is not completed,
读取业务数据时,查询所述当前RAID级别磁盘上是否包含所述业务数据,如果包含所述业务数据,则读取业务数据;如果不包含所述业务数据,则根据所述映射关联关系,从新RAID级别磁盘上读取所述业务数据;When the service data is read, the service data is queried on the current RAID level disk, and if the service data is included, the service data is read; if the service data is not included, according to the mapping association relationship, Reading the business data from a new RAID level disk;
写入业务数据时,根据写入的业务数据的起始地址和长度,判断所述新RAID级别磁盘是否包含足够的空间用于业务数据的写入,在包含足够业务数据写入的空间时,写入业务数据,并更新所述新RAID级别磁盘占用的地址信息和所述地址映射关联关系;在不包含足够业务数据写入的空间时,反 馈业务数据写入失败。When the service data is written, it is determined whether the new RAID level disk contains sufficient space for writing service data according to the starting address and length of the written service data, and when space containing sufficient service data is written, Write service data, and update address information occupied by the new RAID level disk and the address mapping association relationship; when not including enough space for service data writing, Feed service data write failed.
可选地,所述映射关联关系包括:Optionally, the mapping association relationship includes:
系统内每个磁盘中所述当前RAID级别和所述新RAID级别的空间的起始地址的关联关系。The association between the current RAID level and the starting address of the space of the new RAID level in each disk in the system.
另一方面,本申请还提供一种实现RAID级别转换的装置,包括:判断单元以及级别转换单元;其中,On the other hand, the application further provides an apparatus for implementing RAID level conversion, comprising: a determining unit and a level converting unit; wherein
判断单元,设置为:在接收到RAID级别转换指令时,根据预先记录的当前RAID级别磁盘的占用信息和系统剩余可用空间信息判断系统剩余可用空间是否满足RAID级别转换的要求;The determining unit is configured to: determine, according to the pre-recorded current RAID level disk occupation information and the remaining free space information of the system, whether the remaining free space of the system meets the requirement of the RAID level conversion when receiving the RAID level conversion instruction;
级别转换单元,设置为:在所述判断单元判断出所述系统剩余可用空间满足RAID级别转换的要求时,在系统剩余可用空间建立新RAID级别磁盘,并建立当前RAID级别磁盘的占用地址和新RAID级别磁盘的地址的映射关联关系,完成RAID级别转换。The level conversion unit is configured to: when the determining unit determines that the remaining free space of the system meets the requirement of the RAID level conversion, establish a new RAID level disk in the remaining space of the system, and establish an occupied address and a new disk of the current RAID level disk. The mapping relationship of the addresses of the RAID-level disks completes the RAID level conversion.
可选地,该装置还包括反馈单元,设置为:在所述判断单元判断出系统剩余可用空间不满足RAID级别转换的要求时,确定级别转换失败并反馈级别转换失败的信息给用户。Optionally, the device further includes: a feedback unit, configured to: when the determining unit determines that the remaining available space of the system does not meet the requirement of the RAID level conversion, determine that the level conversion fails and feedback the level conversion failure information to the user.
可选地,该装置还包括数据转换转移单元,设置为:在系统空闲时,Optionally, the device further includes a data conversion transfer unit, configured to: when the system is idle,
按照新RAID级别的数据格式转换所述当前RAID级别磁盘上数据;Converting data on the current RAID level disk according to a new RAID level data format;
根据所述映射关联关系将完成数据格式转换的所述当前RAID级别磁盘上数据转移到所述新RAID级别磁盘的地址对应的磁盘空间上。And transferring the data on the current RAID level disk that completes the data format conversion to the disk space corresponding to the address of the new RAID level disk according to the mapping association relationship.
可选地,该装置还包括记录单元,设置为:记录当前RAID级别磁盘的占用信息、系统剩余可用空间信息、所述新RAID级别磁盘占用的地址信息以及系统内每个磁盘已占用空间的地址信息。Optionally, the device further includes a recording unit, configured to: record occupancy information of the current RAID level disk, remaining space information of the system, address information occupied by the new RAID level disk, and an address occupied by each disk in the system. information.
可选地,该装置还包括读取和写入单元,设置为:在未完成所述当前RAID级别磁盘上数据的转移时,Optionally, the apparatus further includes a read and write unit configured to: when the transfer of data on the current RAID level disk is not completed,
读取业务数据时,查询所述当前RAID级别磁盘上是否包含所述业务数据,如果包含所述业务数据,则读取业务数据;如果不包含所述业务数据,则根据所述级别转换单元建立的所述映射关联关系,从新RAID级别磁盘上 读取所述业务数据;When the service data is read, the service data is queried on the current RAID level disk, and if the service data is included, the service data is read; if the service data is not included, the level conversion unit is established according to the level conversion unit. The mapping associations from the new RAID level disk Reading the business data;
写入业务数据时,根据写入的业务数据的起始地址和长度,判断所述新RAID级别磁盘是否包含足够的空间用于业务数据的写入,在包含足够业务数据写入的空间时,写入业务数据,并更新所述记录单元记录的所述新RAID级别磁盘占用的地址信息和所述级别转换单元建立的所述映射关联关系;在不包含足够业务数据写入的空间时,反馈业务数据写入失败。When the service data is written, it is determined whether the new RAID level disk contains sufficient space for writing service data according to the starting address and length of the written service data, and when space containing sufficient service data is written, Write service data, and update address information occupied by the new RAID level disk recorded by the recording unit and the mapping association relationship established by the level conversion unit; when there is no space for writing sufficient service data, feedback Business data write failed.
可选地,所述映射关联关系包括:Optionally, the mapping association relationship includes:
系统内每个磁盘中所述当前RAID级别和所述新RAID级别的空间的起始地址的关联关系。The association between the current RAID level and the starting address of the space of the new RAID level in each disk in the system.
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述的实现RAID级别转换的方法。The embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, the method for implementing the RAID level conversion described above being implemented when the computer executable instructions are executed.
与相关技术相比,本申请技术方案包括:在接收到RAID级别转换指令时,根据预先记录的当前RAID级别磁盘的占用信息和系统剩余可用空间信息判断系统剩余可用空间是否满足RAID级别转换的要求;在系统剩余可用空间满足RAID级别转换的要求时,在系统剩余可用空间建立新RAID级别磁盘,建立当前RAID级别磁盘的占用地址和新RAID级别磁盘的地址的映射关联关系,完成RAID级别转换。本申请的方法无需进行数据转移即可实现RAID级别转换,避免了由于数据转移造成业务中断的问题;建立新RAID级别磁盘实现快速,降低了级别转换的耗时。Compared with the related art, the technical solution of the present application includes: when receiving the RAID level conversion instruction, determining, according to the pre-recorded current RAID level disk occupation information and the remaining free space information of the system, whether the remaining free space of the system satisfies the requirement of the RAID level conversion. When the remaining space of the system meets the requirements of the RAID level conversion, a new RAID level disk is created in the remaining space of the system, and the mapping relationship between the current RAID level disk occupation address and the new RAID level disk address is established, and the RAID level conversion is completed. The method of the present application can implement RAID level conversion without data transfer, thereby avoiding the problem of service interruption caused by data transfer; establishing a new RAID level disk is fast, and the time consumption of level conversion is reduced.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the present application, and are intended to be a part of this application. In the drawing:
图1为本发明实施例的实现RAID级别转换的方法的流程图;FIG. 1 is a flowchart of a method for implementing RAID level conversion according to an embodiment of the present invention;
图2为本发明实施例的实现RAID级别转换的装置的结构程图;2 is a structural diagram of an apparatus for implementing RAID level conversion according to an embodiment of the present invention;
图3为本发明实施例一的方法的流程图; 3 is a flowchart of a method according to Embodiment 1 of the present invention;
图4为本发明实施例二的方法的流程图;4 is a flowchart of a method according to Embodiment 2 of the present invention;
图5为本发明实施例三的方法的流程图;5 is a flowchart of a method according to Embodiment 3 of the present invention;
图6为本发明实施例四中当前RAID级别磁盘的组成示意图;6 is a schematic structural diagram of a current RAID level disk according to Embodiment 4 of the present invention;
图7为本发明实施例四中新RAID级别磁盘的组成示意图;7 is a schematic structural diagram of a new RAID level disk according to Embodiment 4 of the present invention;
图8为本发明实施例四的方法流程图。FIG. 8 is a flowchart of a method according to Embodiment 4 of the present invention.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
图1为本发明实施例的实现独立冗余磁盘阵列(RAID)级别转换的方法的流程图,如图1所示,在接收到RAID级别转换指令时,本实施例提供的方法包括以下步骤:FIG. 1 is a flowchart of a method for implementing an independent redundant disk array (RAID) level conversion according to an embodiment of the present invention. As shown in FIG. 1 , when receiving a RAID level conversion instruction, the method provided in this embodiment includes the following steps:
步骤100、根据预先记录的当前RAID级别磁盘的占用信息和系统剩余可用空间信息判断系统剩余可用空间是否满足RAID级别转换的要求;Step 100: Determine, according to pre-recorded current RAID level disk occupation information and remaining free space information of the system, whether the remaining free space of the system meets the requirement of RAID level conversion;
需要说明的是,判断系统剩余可用空间是否满足RAID级别转换的要求属于本领域技术人员的公知常识;一般地,系统剩余可用空间大于或等于当前RAID级别磁盘占用的空间时为满足RAID级别转换的要求,在此不再赘述。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 requirements of the RAID level conversion. Generally, when the remaining free space of the system is greater than or equal to the space occupied by the current RAID level disk, the RAID level conversion is satisfied. Requirements are not repeated here.
步骤101、在系统剩余可用空间满足RAID级别转换的要求时,在系统剩余可用空间建立新RAID级别磁盘,并建立当前RAID级别磁盘的占用地址和新RAID级别磁盘的地址的映射关联关系,完成RAID级别转换。Step 101: When the remaining space of the system meets the requirements of the RAID level conversion, a new RAID level disk is created in the remaining space of the system, and a mapping relationship between the current RAID level disk occupation address and the new RAID level disk address is established, and the RAID relationship is completed. Level conversion.
本实施例的方法还包括:在系统剩余可用空间不满足RAID级别转换的要求时,确定级别转换失败并反馈级别转换失败的信息给用户。The method of this embodiment further includes: when the remaining available space of the system does not meet the requirement of the RAID level conversion, determining that the level conversion fails and feeding back the information that the level conversion fails to the user.
本实施例的方法还包括:在系统空闲时,The method of this embodiment further includes: when the system is idle,
按照新RAID级别的数据格式转换当前RAID级别磁盘上数据;Convert data on the current RAID level disk according to the new RAID level data format;
根据映射关联关系,将完成数据格式转换的当前RAID级别磁盘上数据转移到新RAID级别磁盘的地址对应的磁盘空间上。 According to the mapping association, the data on the current RAID level disk that completes the data format conversion is transferred to the disk space corresponding to the address of the new RAID level disk.
本实施例的方法还包括:The method of this embodiment further includes:
记录新RAID级别磁盘占用的地址信息和系统内每个磁盘已占用空间的地址信息。Record 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 method of this embodiment further includes:
在未完成当前RAID级别磁盘上数据的转移时,When the transfer of data on the current RAID level disk is not completed,
读取业务数据时,查询当前RAID级别磁盘上是否包含业务数据,如果包含业务数据,则读取业务数据;如果不包含业务数据,则根据所述映射关联关系,从新RAID级别磁盘上读取业务数据;When the service data is read, the service data of the current RAID level disk is included, and if the service data is included, the service data is read; if the service data is not included, the service is read from the new RAID level disk according to the mapping association relationship. data;
写入业务数据时,根据写入的业务数据的起始地址和长度,判断新RAID级别磁盘是否包含足够的空间用于业务数据的写入,在包含足够业务数据写入的空间时,写入业务数据,并更新新RAID级别磁盘占用的地址信息和所述映射关联关系;在不包含足够业务数据写入的空间时,反馈业务数据写入失败。When writing service data, it is determined whether the new RAID level disk contains enough space for the writing of service data according to the starting address and length of the written service data, and writes when space containing sufficient service data is written. The service data is updated, and the address information occupied by the new RAID level disk and the mapping association relationship are updated; when the space written by the sufficient service data is not included, the feedback service data write fails.
需要说明的是,新RAID级别磁盘是否包含足够的空间用于业务数据的写入为本领域技术人员的惯用技术手段;一般地,比如用4个容量为1T的盘创建一个容量为600G的RAID5(其中,1个作为校验盘,其他3个作为数据盘),那么RAID5的容量为600G,每个磁盘上的已用空间为200G,每个磁盘上的剩余空间为800G。如果要变级为RAID6级别(其中,2个为校验盘,其他为数据盘),每个磁盘需要占用300G,而原来的剩余空间为800G,因此可以进行RAID级别转换的操作。It should be noted that whether the new RAID level disk contains enough space for the writing of service data is a common technical means for those skilled in the art; generally, for example, a RAID 5 with a capacity of 600G is created by using four disks of 1T capacity. (One of them is used as a parity disk and the other three are data disks). The capacity of RAID5 is 600G, the used space on each disk is 200G, and the remaining space on each disk is 800G. If you want to change to RAID6 level (where 2 are parity disks and others are data disks), each disk needs to occupy 300G, and the original remaining space is 800G, so RAID level conversion can be performed.
于本实施例中,映射关联关系包括:In this embodiment, the mapping association relationship includes:
系统内每个磁盘中当前RAID级别和新RAID级别的空间的起始地址的关联关系。The relationship between the current RAID level of each disk in the system and the starting address of the space of the new RAID level.
本实施例的方法无需进行数据转移即可实现RAID级别转换,避免了由于数据转移造成业务中断的问题;建立新RAID级别磁盘实现快速,降低了级别转换的耗时。The method of the embodiment can implement RAID level conversion without data transfer, thereby avoiding the problem of service interruption caused by data transfer; establishing a new RAID level disk is fast, and the time conversion of the level conversion is reduced.
图2为本发明实施例的实现RAID级别转换的装置的结构程图,如图2所示,所述装置包括:判断单元、级别转换单元;其中, 2 is a structural diagram of an apparatus for implementing RAID level conversion according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes: a determining unit and a level converting unit;
判断单元,设置为:在接收到RAID级别转换指令时,根据预先记录的当前RAID级别磁盘的占用信息和系统剩余可用空间信息判断系统剩余可用空间是否满足RAID级别转换的要求;The determining unit is configured to: determine, according to the pre-recorded current RAID level disk occupation information and the remaining free space information of the system, whether the remaining free space of the system meets the requirement of the RAID level conversion when receiving the RAID level conversion instruction;
级别转换单元,设置为:在所述判断单元判断出所述系统剩余可用空间满足RAID级别转换的要求时,在系统剩余可用空间建立新RAID级别磁盘,并建立当前RAID级别磁盘的占用地址和新RAID级别磁盘的地址的映射关联关系,完成RAID级别转换。The level conversion unit is configured to: when the determining unit determines that the remaining free space of the system meets the requirement of the RAID level conversion, establish a new RAID level disk in the remaining space of the system, and establish an occupied address and a new disk of the current RAID level disk. The mapping relationship of the addresses of the RAID-level disks completes the RAID level conversion.
其中,映射关联关系包括:The mapping relationship includes:
系统内每个磁盘中当前RAID级别和新RAID级别的空间的起始地址的关联关系。The relationship between the current RAID level of each disk in the system and the starting address of the space of the new RAID level.
本实施例的装置还可以包括反馈单元,设置为:在所述判断单元判断出系统剩余可用空间不满足RAID级别转换的要求时,确定级别转换失败并反馈级别转换失败的信息给用户。The apparatus of this embodiment may further include a feedback unit, configured to: when the determining unit determines that the remaining available space of the system does not meet the requirement of the RAID level conversion, determine that the level conversion fails and the information of the level conversion failure is fed back to the user.
本实施例的装置还可以包括数据转换转移单元,设置为:在系统空闲时,The apparatus of this embodiment may further include a data conversion transfer unit, configured to: when the system is idle,
按照新RAID级别的数据格式转换当前RAID级别磁盘上数据;Convert data on the current RAID level disk according to the new RAID level data format;
根据映射关联关系,将完成数据格式转换的当前RAID级别磁盘上数据转移到新RAID级别磁盘的地址对应的磁盘空间上。According to the mapping association, the data on the current RAID level disk that completes the data format conversion is transferred to the disk space corresponding to the address of the new RAID level disk.
本实施例的装置还可以包括记录单元,设置为:记录当前RAID级别磁盘的占用信息、系统剩余可用空间信息、新RAID级别磁盘占用的地址信息以及系统内每个磁盘已占用空间的地址信息。The device of this embodiment may further include a recording unit configured to: record the occupation information of the current RAID level disk, the remaining 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.
本实施例的装置还可以包括读取和写入单元,设置为:在未完成当前RAID级别磁盘上数据的转移时,The apparatus of this embodiment may further include a reading and writing unit configured to: when the data transfer on the current RAID level disk is not completed,
读取业务数据时,查询当前RAID级别磁盘上是否包含业务数据,如果包含业务数据,则读取业务数据;如果不包含业务数据,则根据所述级别转换单元建立的映射关联关系,从新RAID级别磁盘上读取业务数据;When the service data is read, the service data of the current RAID level is included, and if the service data is included, the service data is read; if the service data is not included, the mapping relationship established by the level conversion unit is used, and the new RAID level is obtained. Read business data on the disk;
写入业务数据时,根据写入的业务数据的起始地址和长度,判断新RAID级别磁盘是否包含足够的空间用于业务数据的写入,在包含足够业务 数据写入的空间时,写入业务数据,并更新所述记录单元记录的新RAID级别磁盘占用的地址信息和所述级别转换单元建立的所述映射关联关系;在不包含足够业务数据写入的空间时,反馈业务数据写入失败。When writing service data, determine whether the new RAID level disk contains enough space for the service data to be written according to the starting address and length of the written service data. When the data is written into the space, the service data is written, and the address information occupied by the new RAID level disk recorded by the recording unit and the mapping association relationship established by the level conversion unit are updated; the data is not included in the data When the space is in place, the feedback business data is written to fail.
以下通过具体实施例对本申请的方法进行清楚详细的说明,实施例仅用于陈述本申请,并不用于限定本申请的保护范围。The method of the present application is described in detail below by way of specific examples, which are merely used to describe the present application and are not intended to limit the scope of the present application.
实施例一Embodiment 1
图3为实施例一的方法的流程图,如图3所示,所述方法包括:3 is a flowchart of a method in Embodiment 1. As shown in FIG. 3, the method includes:
步骤300、接收到RAID级别转换指令时,读取预先记录的系统剩余可用空间信息。Step 300: When receiving the RAID level conversion instruction, read the pre-recorded remaining free space information of the system.
步骤301、根据当前RAID级别磁盘的占用信息和系统剩余可用空间信息判断系统剩余可用空间是否满足RAID级别转换的要求;Step 301: Determine, according to the current RAID level disk occupation information and the remaining free space information of the system, whether the remaining free space of the system meets the requirement of the RAID level conversion;
这里,当前RAID级别磁盘的占用信息和系统剩余可用空间信息可以通过相应的列表进行记录,以一个RAID最大可支持数据盘个数为16个(例如,磁盘D0至磁盘D15),最多校验盘2个(例如磁盘P、磁盘Q)为例,通过以下字段表示:Here, the current RAID level disk occupation information and the system remaining free space information can be recorded through the corresponding list, with a RAID maximum supportable data disk number of 16 (for example, disk D0 to disk D15), the maximum verification disk For example, two (for example, disk P and disk Q) are represented by the following fields:
字段“已用空间”表示在当前RAID级别磁盘占用的空间;The field "used space" indicates the space occupied by the disk at the current RAID level;
字段“可用空间”表示在当前系统剩余可用空间,即系统剩余的可用于建立新RAID级别的磁盘空间;The field "free space" indicates the remaining free space in the current system, that is, the remaining disk space available for the system to establish a new RAID level;
字段“当前RAID开始”表示旧RAID级别上磁盘空间的开始地址;The field "Current RAID Start" indicates the start address of the disk space on the old RAID level;
字段“当前RAID结束”表示旧RAID级别上磁盘空间的结束地址;The field "Current RAID End" indicates the end address of the disk space on the old RAID level;
字段“新RAID开始”表示新RAID级别上磁盘空间的开始地址;The field "New RAID Start" indicates the start address of the disk space on the new RAID level;
字段“新RAID结束”表示新RAID级别上磁盘空间的结束地址;The field "New RAID End" indicates the end address of the disk space on the new RAID level;
字段“D0开始”表示磁盘D0上已使用磁盘空间的起始地址;The field "D0 start" indicates the starting address of the used disk space on disk D0;
字段“D0结束”表示磁盘D0上已使用磁盘空间的结束地址;The field "D0 End" indicates the end address of the used disk space on disk D0;
字段“D1开始”表示磁盘D1上已使用磁盘空间的起始地址;The field "D1 Start" indicates the starting address of the used disk space on disk D1;
字段“D1结束”表示磁盘D1上已使用磁盘空间的结束地址;The field "D1 End" indicates the end address of the used disk space on disk D1;
字段“D2开始”表示磁盘D2上已使用磁盘空间的起始地址; The field "D2 Start" indicates the starting address of the used disk space on disk D2;
字段“D2结束”表示磁盘D2上已使用磁盘空间的结束地址;The field "End of D2" indicates the end address of the used disk space on disk D2;
字段“D3开始”表示磁盘D3上已使用磁盘空间的起始地址;The field "D3 Start" indicates the starting address of the used disk space on disk D3;
字段“D3结束”表示磁盘D3上已使用磁盘空间的结束地址;The field "D3 End" indicates the end address of the used disk space on disk D3;
字段“D4开始”表示磁盘D4上已使用磁盘空间的起始地址;The field "D4 Start" indicates the starting address of the used disk space on disk D4;
字段“D4结束”表示磁盘D4上已使用磁盘空间的结束地址;The field "end D4" indicates the end address of the used disk space on disk D4;
字段“D5开始”表示磁盘D5上已使用磁盘空间的起始地址;The field "D5 Start" indicates the starting address of the used disk space on disk D5;
字段“D5结束”表示磁盘D5上已使用磁盘空间的结束地址;The field "End of D5" indicates the end address of the used disk space on disk D5;
字段“D6开始”表示磁盘D6上已使用磁盘空间的起始地址;The field "D6 Start" indicates the starting address of the used disk space on disk D6;
字段“D6结束”表示磁盘D6上已使用磁盘空间的结束地址;The field "D6 End" indicates the end address of the used disk space on disk D6;
字段“D7开始”表示磁盘D7上已使用磁盘空间的起始地址;The field "D7 Start" indicates the starting address of the used disk space on disk D7;
字段“D7结束”表示磁盘D7上已使用磁盘空间的结束地址;The field "End of D7" indicates the end address of the used disk space on disk D7;
字段“D8开始”表示磁盘D8上已使用磁盘空间的起始地址;The field "D8 Start" indicates the starting address of the used disk space on disk D8;
字段“D8结束”表示磁盘D8上已使用磁盘空间的结束地址;The field "D8 End" indicates the end address of the used disk space on the disk D8;
字段“D9开始”表示磁盘D9上已使用磁盘空间的起始地址;The field "D9 Start" indicates the starting address of the used disk space on disk D9;
字段“D9结束”表示磁盘D9上已使用磁盘空间的结束地址;The field "End of D9" indicates the end address of the used disk space on disk D9;
字段“D10开始”表示磁盘D10上已使用磁盘空间的起始地址;The field "D10 Start" indicates the starting address of the used disk space on disk D10;
字段“D10结束”表示磁盘D10上已使用磁盘空间的结束地址;The field "D10 End" indicates the end address of the used disk space on the disk D10;
字段“D11开始”表示磁盘D11上已使用磁盘空间的起始地址;The field "D11 Start" indicates the starting address of the used disk space on the disk D11;
字段“D11结束”表示磁盘D11上已使用磁盘空间的结束地址;The field "end of D11" indicates the end address of the used disk space on the disk D11;
字段“D12开始”表示磁盘D12上已使用磁盘空间的起始地址;The field "D12 Start" indicates the starting address of the used disk space on the disk D12;
字段“D12结束”表示磁盘D12上已使用磁盘空间的结束地址;The field "D12 End" indicates the end address of the used disk space on the disk D12;
字段“D13开始”表示磁盘D13上已使用磁盘空间的起始地址;The field "D13 Start" indicates the starting address of the used disk space on the disk D13;
字段“D13结束”表示磁盘D13上已使用磁盘空间的结束地址;The field "End D13" indicates the end address of the used disk space on the disk D13;
字段“D14开始”表示磁盘D14上已使用磁盘空间的起始地址;The field "D14 Start" indicates the starting address of the used disk space on disk D14;
字段“D14结束”表示磁盘D14上已使用磁盘空间的结束地址; The field "end D14" indicates the end address of the used disk space on disk D14;
字段“D15开始”表示磁盘D15上已使用磁盘空间的起始地址;The field "D15 Start" indicates the starting address of the used disk space on the disk D15;
字段“D15结束”表示磁盘D15上已使用磁盘空间的结束地址;The field "D15 End" indicates the end address of the used disk space on the disk D15;
字段“P开始”表示磁盘P上已使用磁盘空间的起始地址;The field "P start" indicates the starting address of the used disk space on disk P;
字段“P结束”表示磁盘P上已使用磁盘空间的结束地址;The field "P end" indicates the end address of the used disk space on the disk P;
字段“Q开始”表示磁盘Q上已使用磁盘空间的起始地址;The field "Q Start" indicates the starting address of the used disk space on disk Q;
字段“Q结束”表示磁盘Q上已使用磁盘空间的结束地址。The field "Q End" indicates the end address of the used disk space on disk Q.
步骤302、在系统剩余可用空间满足RAID级别转换的要求时,在系统剩余可用空间建立新RAID级别磁盘,并建立当前RAID级别磁盘的占用地址和新RAID级别磁盘的地址的映射关联关系,完成RAID级别转换。Step 302: When the remaining space of the system meets the requirements of the RAID level conversion, a new RAID level disk is created in the remaining space of the system, and a mapping relationship between the current RAID level disk occupation address and the new RAID level disk address is established, and the RAID relationship is completed. Level conversion.
在系统剩余可用空间不满足RAID级别转换的要求时,反馈级别转换失败。Feedback level conversion fails when the remaining free space of the system does not meet the requirements of RAID level conversion.
其中,映射关联关系包括:The mapping relationship includes:
系统内每个磁盘中当前RAID级别和新RAID级别的空间的起始地址的映射关联关系。以新RAID级别磁盘包含15个数据盘、P和Q两个校验盘为例,映射关联关系包含以下信息:A mapping association between the current RAID level of each disk in the system and the starting address of the space of the new RAID level. For example, the new RAID level disk contains 15 data disks, P and Q check disks. The mapping relationship contains the following information:
字段“D0”表示在磁盘D0上当前RAID级别和新RAID级别上对应的存储数据的起始地址;The field "D0" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D0;
字段“D1”表示在磁盘D1上当前RAID级别和新RAID级别上对应的存储数据的起始地址;The field "D1" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D1;
字段“D2”表示在磁盘D2上当前RAID级别和新RAID级别上对应的存储数据的起始地址;The field "D2" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D2;
字段“D3”表示在磁盘D3上当前RAID级别和新RAID级别上对应的存储数据的起始地址;The field "D3" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D3;
字段“D4”表示在磁盘D4上当前RAID级别和新RAID级别上对应的存储数据的起始地址;The field "D4" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D4;
字段“D5”表示在磁盘D5上当前RAID级别和新RAID级别上对应的存储数据的起始地址; The field "D5" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D5;
字段“D6”表示在磁盘D6上当前RAID级别和新RAID级别上对应的存储数据的起始地址;The field "D6" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D6;
字段“D7”表示在磁盘D7上当前RAID级别和新RAID级别上对应的存储数据的起始地址;The field "D7" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D7;
字段“D8”表示在磁盘D8上当前RAID级别和新RAID级别上对应的存储数据的起始地址;The field "D8" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D8;
字段“D9”表示在磁盘D9上当前RAID级别和新RAID级别上对应的存储数据的起始地址;The field "D9" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D9;
字段“D10”表示在磁盘D10上当前RAID级别和新RAID级别上对应的存储数据的起始地址;The field "D10" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D10;
字段“D11”表示在磁盘D11上当前RAID级别和新RAID级别上对应的存储数据的起始地址;The field "D11" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D11;
字段“D12”表示在磁盘D12上当前RAID级别和新RAID级别上对应的存储数据的起始地址;The field "D12" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D12;
字段“D13”表示在磁盘D13上当前RAID级别和新RAID级别上对应的存储数据的起始地址;The field "D13" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D13;
字段“D14”表示在磁盘D14上当前RAID级别和新RAID级别上对应的存储数据的起始地址;The field "D14" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D14;
字段“D15”表示在磁盘D15上当前RAID级别和新RAID级别上对应的存储数据的起始地址;The field "D15" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk D15;
字段“P”表示在磁盘P上当前RAID级别和新RAID级别上对应的存储数据的起始地址;The field "P" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk P;
字段“Q”表示在磁盘Q上当前RAID级别和新RAID级别上对应的存储数据的起始地址。The field "Q" indicates the start address of the corresponding storage data on the current RAID level and the new RAID level on the disk Q.
步骤303、向用户反馈级别转换成功。Step 303: The level of conversion to the user is successfully converted.
实施例二Embodiment 2
在本实施例中,在建立新RAID级别磁盘和映射关联关系后,完成RAID 级别转换,不影响系统的业务;图4为实施例二的方法的流程图,如图4所示,本实施例的方法包括以下步骤:In this embodiment, after a new RAID level disk and mapping association relationship is established, the RAID is completed. The level conversion does not affect the service of the system; FIG. 4 is a flowchart of the method of the second embodiment. As shown in FIG. 4, the method in this embodiment includes the following steps:
步骤400、根据读取业务数据的指令,查询当前RAID级别磁盘上是否包含业务数据;如果当前RAID级别磁盘上包含业务数据,执行步骤401;否则,执行步骤402。Step 400: Query whether the current RAID level disk includes the service data according to the instruction for reading the service data. If the current RAID level disk contains the service data, go to step 401; otherwise, go to step 402.
步骤401、读取业务数据。Step 401: Read service data.
步骤402、根据映射关联关系,从新RAID级别磁盘上读取业务数据。Step 402: Read service data from a new RAID level disk according to the mapping association relationship.
执行完步骤401或步骤402读取完业务数据后,执行步骤403。After the service data is read in step 401 or step 402, step 403 is performed.
步骤403、向用户反馈读取业务数据的结果。Step 403: Feed back to the user the result of reading the service data.
实施例三Embodiment 3
在本实施例中,在建立新RAID级别磁盘和映射关联关系后,完成RAID级别转换,不影响系统的业务;图5为实施例三的方法的流程图,如图5所示,本实施例的方法包括以下步骤:In this embodiment, after the new RAID level disk and the mapping association relationship are established, the RAID level conversion is completed, and the service of the system is not affected; FIG. 5 is a flowchart of the method in the third embodiment, as shown in FIG. The method includes the following steps:
步骤500、根据用户写操作指令,获取写入的业务数据的起始地址和长度。Step 500: Acquire a starting address and a length of the written service data according to a user write operation instruction.
步骤501、读取新RAID级别磁盘占用的地址信息,获取可用于业务数据写入的空间,判断是否包含足够业务数据写入的空间,若包含足够业务数据写入的空间,则执行步骤5020;否则,执行步骤5030。 Step 501, the address information occupied by the new RAID level disk is read, the space available for the service data is obtained, and the space for writing the service data is included. If sufficient space for the service data is included, step 5020 is performed; Otherwise, step 5030 is performed.
步骤5020、写入业务数据。本步骤包括:Step 5020: Write service data. This step includes:
根据获取的写入的业务数据的起始地址及映射关联关系的信息,判断所写的业务数据是在新RAID级别的磁盘上,还是在当前RAID级别的磁盘上;Determining whether the written service data is on a new RAID level disk or on a current RAID level disk according to the obtained start address of the service data and the mapping association information;
如果要写入的业务数据在当前RAID级别磁盘上,需要从新RAID级别的磁盘上获取写入地址;如果要写入的数据是在新RAID级别的磁盘上,则在新RAID级别的磁盘直接写入业务数据。If the business data to be written is on the current RAID level disk, the write address needs to be obtained from the new RAID level disk; if the data to be written is on the new RAID level disk, write the disk directly at the new RAID level. Enter business data.
步骤5030、向用户反馈业务数据写入失败。In step 5030, the service data write failure is reported to the user.
步骤5021、更新新RAID级别磁盘占用的地址信息和地址映射关联关系。 Step 5021: Update the address information and the address mapping association relationship occupied by the new RAID level disk.
步骤5022、向用户反馈业务数据写入的操作结果。Step 5022: Feed back to the user the operation result of the service data writing.
实施例四Embodiment 4
图6为实施例四中当前RAID级别磁盘的组成示意图,如图6所示,当前RAID级别磁盘最少包含3个数据盘D0、D1和D2,以及一个校验盘P。6 is a schematic diagram of the composition of a current RAID level disk in the fourth embodiment. As shown in FIG. 6, the current RAID level disk includes at least three data disks D0, D1, and D2, and one parity disk P.
图7为实施例四中新RAID级别磁盘的组成示意图,如图7所示,新RAID级别磁盘最少包含2个数据盘D0和D1,以及一个校验盘P、一个校验盘Q。7 is a schematic diagram of the composition of a new RAID level disk in the fourth embodiment. As shown in FIG. 7, the new RAID level disk includes at least two data disks D0 and D1, and one parity disk P and one parity disk Q.
本实施例主要说明当前RAID级别磁盘上数据转移到新RAID级别磁盘的过程。图8为实施例四的方法流程图,如图8所示,本实施例的方法包括以下步骤:This embodiment mainly describes the process of transferring data on a current RAID level disk to a new RAID level disk. FIG. 8 is a flowchart of a method in Embodiment 4. As shown in FIG. 8, the method in this embodiment includes the following steps:
步骤800、判断系统是否空闲;Step 800: Determine whether the system is idle;
如果当前系统没有外部和内部的读取和写入操作,则判断系统空闲,系统空闲时,执行步骤801;否则,执行读取或写入操作;If the current system has no external and internal read and write operations, it is determined that the system is idle, and when the system is idle, step 801 is performed; otherwise, a read or write operation is performed;
步骤801、查找映射关联关系,获得RAID5级别磁盘上D0、D1和D2数据转换为RAID6级别磁盘后D0、D1和D2转移的地址;Step 801: Find a mapping association relationship, and obtain an address transferred by D0, D1, and D2 after the D0, D1, and D2 data on the RAID5 level disk is converted into a RAID6 level disk;
步骤802、按照RAID6级别的数据格式转换RAID5级别磁盘上数据,将完成数据格式转换的RAID5级别磁盘上数据转移到RAID6级别磁盘的地址对应的磁盘空间上,生成RAID6磁盘上P、Q盘的校验信息;Step 802: Convert the data on the RAID level 5 disk according to the RAID 6 level data format, and transfer the data on the RAID 5 level disk that completes the data format conversion to the disk space corresponding to the address of the RAID 6 level disk, and generate the P and Q disks on the RAID 6 disk. Inspection information;
步骤803、更新RAID6级别磁盘占用的地址信息和地址映射关联关系。Step 803: Update the association between the address information and the address mapping occupied by the RAID level 6 disk.
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述的实现RAID级别转换的方法。The embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, the method for implementing the RAID level conversion described above being implemented when the computer executable instructions are executed.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本申请不限制于任何特定形式的硬件和软件的 结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function. This application is not limited to any particular form of hardware and software. Combine.
虽然本申请所揭露的实施方式如上,但所述的内容仅为便于理解本申请而采用的实施方式,并非用以限定本申请。任何本申请所属领域内的技术人员,在不脱离本申请所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本申请的专利保护范围,仍须以所附的权利要求书所界定的范围为准。The embodiments disclosed in the present application are as described above, but the description is only for the purpose of understanding the present application, and is not intended to limit the present application. Any modifications and changes in the form and details of the embodiments may be made by those skilled in the art without departing from the spirit and scope of the disclosure. The scope defined by the appended claims shall prevail.
工业实用性Industrial applicability
本申请实施例提供一种实现RAID级别转换的方法及装置,无需进行数据转移即可实现RAID级别转换,避免了由于数据转移造成业务中断的问题;建立新RAID级别磁盘实现快速,降低了级别转换的耗时。 The embodiment of the present invention provides a method and an apparatus for implementing RAID level conversion, which can implement RAID level conversion without data transfer, and avoids the problem of service interruption caused by data transfer; establishing a new RAID level disk realizes fast and reduces level conversion. Time consuming.

Claims (12)

  1. 一种实现独立冗余磁盘阵列RAID级别转换的方法,包括:A method for implementing RAID level conversion of an independent redundant disk array, comprising:
    在接收到RAID级别转换指令时,Upon receiving a RAID level conversion instruction,
    根据预先记录的当前RAID级别磁盘的占用信息和系统剩余可用空间信息判断系统剩余可用空间是否满足RAID级别转换的要求;Determining whether the remaining free space of the system meets the requirements of the RAID level conversion according to the pre-recorded current RAID level disk occupancy information and the remaining free space information of the system;
    在系统剩余可用空间满足RAID级别转换的要求时,在系统剩余可用空间建立新RAID级别磁盘,并建立当前RAID级别磁盘的占用地址和新RAID级别磁盘的地址的映射关联关系,完成RAID级别转换。When the remaining space of the system meets the requirements of the RAID level conversion, a new RAID level disk is created in the remaining space of the system, and the mapping relationship between the current RAID level disk occupation address and the new RAID level disk address is established, and the RAID level conversion is completed.
  2. 根据权利要求1所述的方法,该方法还包括:在所述系统剩余可用空间不满足RAID级别转换的要求时,确定级别转换失败并反馈级别转换失败的信息给用户。The method according to claim 1, further comprising: determining, when the remaining available space of the system does not satisfy the requirement of the RAID level conversion, information that the level conversion fails and feedback level conversion failure to the user.
  3. 根据权利要求1所述的方法,该方法还包括:在系统空闲时,The method of claim 1 further comprising: when the system is idle,
    按照新RAID级别的数据格式转换所述当前RAID级别磁盘上数据;Converting data on the current RAID level disk according to a new RAID level data format;
    根据所述映射关联关系,将完成数据格式转换的所述当前RAID级别磁盘上数据转移到所述新RAID级别磁盘的地址对应的磁盘空间上。And transferring the data on the current RAID level disk that completes the data format conversion to the disk space corresponding to the address of the new RAID level disk according to the mapping association relationship.
  4. 根据权利要求1至3任一项所述的方法,该方法还包括:The method according to any one of claims 1 to 3, further comprising:
    记录所述新RAID级别磁盘占用的地址信息和系统内每个磁盘已占用空间的地址信息。Record 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. 根据权利要求4所述的方法,该方法还包括:The method of claim 4, further comprising:
    在未完成所述当前RAID级别磁盘上数据的转移时,When the transfer of data on the current RAID level disk is not completed,
    读取业务数据时,查询所述当前RAID级别磁盘上是否包含所述业务数据,如果包含所述业务数据,则读取业务数据;如果不包含所述业务数据,则根据所述映射关联关系,从新RAID级别磁盘上读取所述业务数据;When the service data is read, the service data is queried on the current RAID level disk, and if the service data is included, the service data is read; if the service data is not included, according to the mapping association relationship, Reading the business data from a new RAID level disk;
    写入业务数据时,根据写入的业务数据的起始地址和长度,判断所述新RAID级别磁盘是否包含足够的空间用于业务数据的写入,在包含足够业务数据写入的空间时,写入业务数据,并更新所述新RAID级别磁盘占用的地址信息和所述映射关联关系;在不包含足够业务数据写入的空间时,反馈业 务数据写入失败。When the service data is written, it is determined whether the new RAID level disk contains sufficient space for writing service data according to the starting address and length of the written service data, and when space containing sufficient service data is written, Write service data, and update the address information occupied by the new RAID level disk and the mapping association relationship; when there is not enough space for writing service data, the feedback industry Data write failed.
  6. 根据权利要求1至3任一项所述的方法,其中,所述映射关联关系包括:The method according to any one of claims 1 to 3, wherein the mapping association relationship comprises:
    系统内每个磁盘中所述当前RAID级别和所述新RAID级别的空间的起始地址的关联关系。The association between the current RAID level and the starting address of the space of the new RAID level in each disk in the system.
  7. 一种实现独立冗余磁盘阵列RAID级别转换的装置,包括:判断单元以及级别转换单元;其中,An apparatus for implementing RAID level conversion of an independent redundant disk array, comprising: a determining unit and a level converting unit; wherein
    判断单元,设置为:在接收到RAID级别转换指令时,根据预先记录的当前RAID级别磁盘的占用信息和系统剩余可用空间信息判断系统剩余可用空间是否满足RAID级别转换的要求;The determining unit is configured to: determine, according to the pre-recorded current RAID level disk occupation information and the remaining free space information of the system, whether the remaining free space of the system meets the requirement of the RAID level conversion when receiving the RAID level conversion instruction;
    级别转换单元,设置为:在所述判断单元判断出系统剩余可用空间满足RAID级别转换的要求时,在系统剩余可用空间建立新RAID级别磁盘,并建立当前RAID级别磁盘的占用地址和新RAID级别磁盘的地址的映射关联关系,完成RAID级别转换。The level conversion unit is configured to: when the determining unit determines that the remaining free space of the system meets the requirement of the RAID level conversion, establish a new RAID level disk in the remaining space of the system, and establish a current RAID level disk occupation address and a new RAID level. The mapping relationship of the addresses of the disks completes the RAID level conversion.
  8. 根据权利要求7所述的装置,该装置还包括反馈单元,设置为:在所述判断单元判断出系统剩余可用空间不满足RAID级别转换的要求时,确定级别转换失败并反馈级别转换失败的信息给用户。The device according to claim 7, further comprising: a feedback unit configured to: determine, when the determining unit determines that the remaining free space of the system does not meet the requirement of the RAID level conversion, determine that the level conversion fails and the feedback level conversion fails To the user.
  9. 根据权利要求7所述的装置,该装置还包括数据转换转移单元,设置为:在系统空闲时,The apparatus according to claim 7, further comprising a data conversion transfer unit configured to: when the system is idle,
    按照新RAID级别的数据格式转换所述当前RAID级别磁盘上数据;Converting data on the current RAID level disk according to a new RAID level data format;
    根据所述映射关联关系,将完成数据格式转换的所述当前RAID级别磁盘上数据转移到所述新RAID级别磁盘的地址对应的磁盘空间上。And transferring the data on the current RAID level disk that completes the data format conversion to the disk space corresponding to the address of the new RAID level disk according to the mapping association relationship.
  10. 根据权利要求7至9任一项所述的装置,该装置还包括记录单元,设置为:记录当前RAID级别磁盘的占用信息、系统剩余可用空间信息、所述新RAID级别磁盘占用的地址信息以及系统内每个磁盘已占用空间的地址信息。The device according to any one of claims 7 to 9, further comprising a recording unit configured to: record occupancy information of a current RAID level disk, remaining space information of the system, address information occupied by the new RAID level disk, and Address information of the space occupied by each disk in the system.
  11. 根据权利要求10所述的装置,该装置还包括读取和写入单元,设置为:在未完成所述当前RAID级别磁盘上数据的转移时, The apparatus of claim 10, further comprising a read and write unit configured to: when the transfer of data on the current RAID level disk is not completed,
    读取业务数据时,查询所述当前RAID级别磁盘上是否包含所述业务数据,如果包含所述业务数据,则读取业务数据;如果不包含所述业务数据,则根据所述级别转换单元建立的所述映射关联关系,从新RAID级别磁盘上读取所述业务数据;When the service data is read, the service data is queried on the current RAID level disk, and if the service data is included, the service data is read; if the service data is not included, the level conversion unit is established according to the level conversion unit. The mapping association relationship, reading the service data from a new RAID level disk;
    写入业务数据时,根据写入的业务数据的起始地址和长度,判断所述新RAID级别磁盘是否包含足够的空间用于业务数据的写入,在包含足够业务数据写入的空间时,写入业务数据,并更新所述记录单元记录的所述新RAID级别磁盘占用的地址信息和所述级别转换单元建立的所述映射关联关系;在不包含足够业务数据写入的空间时,反馈业务数据写入失败。When the service data is written, it is determined whether the new RAID level disk contains sufficient space for writing service data according to the starting address and length of the written service data, and when space containing sufficient service data is written, Write service data, and update address information occupied by the new RAID level disk recorded by the recording unit and the mapping association relationship established by the level conversion unit; when there is no space for writing sufficient service data, feedback Business data write failed.
  12. 根据权利要求7至9任一项所述的装置,其中,所述映射关联关系包括:The apparatus of any one of claims 7 to 9, wherein the mapping association relationship comprises:
    系统内每个磁盘中所述当前RAID级别和所述新RAID级别的空间的起始地址的关联关系。 The association between the current RAID level and the starting address of the space of the new RAID level in each disk in the system.
PCT/CN2016/081432 2015-07-20 2016-05-09 Method and apparatus for achieving raid level conversion WO2017012391A1 (en)

Applications Claiming Priority (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
CN201510428541.9 2015-07-20

Publications (1)

Publication Number Publication Date
WO2017012391A1 true WO2017012391A1 (en) 2017-01-26

Family

ID=57833575

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/081432 WO2017012391A1 (en) 2015-07-20 2016-05-09 Method and apparatus for achieving raid level conversion

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11174011B2 (en) 2019-02-05 2021-11-16 Lockheed Martin Corporation Low drag hub for rotor

Families Citing this family (3)

* 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
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
US6275898B1 (en) * 1999-05-13 2001-08-14 Lsi Logic Corporation Methods and structure for RAID level migration within a logical unit
EP1434125A2 (en) * 2002-12-26 2004-06-30 Fujitsu Limited Raid apparatus and logical device expansion method thereof
CN101369217A (en) * 2008-08-30 2009-02-18 成都市华为赛门铁克科技有限公司 RAID level transforming method and apparatus
CN102023812A (en) * 2009-09-23 2011-04-20 成都市华为赛门铁克科技有限公司 RAID (redundant array of inexpensive disk) level transformation method and transformation device
CN102446072A (en) * 2010-10-07 2012-05-09 国际商业机器公司 DAID array transformation in a pooled storage system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101556802B (en) * 2009-05-25 2011-04-13 杭州华三通信技术有限公司 RAID array transposing method and device thereof
CN102103629B (en) * 2010-12-14 2012-09-26 西北工业大学 Online data migration method
CN102156738B (en) * 2011-04-13 2012-12-19 成都市华为赛门铁克科技有限公司 Method for processing data blocks, and data block storage equipment and system

Patent Citations (5)

* 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
EP1434125A2 (en) * 2002-12-26 2004-06-30 Fujitsu Limited Raid apparatus and logical device expansion method thereof
CN101369217A (en) * 2008-08-30 2009-02-18 成都市华为赛门铁克科技有限公司 RAID level transforming method and apparatus
CN102023812A (en) * 2009-09-23 2011-04-20 成都市华为赛门铁克科技有限公司 RAID (redundant array of inexpensive disk) level transformation method and transformation device
CN102446072A (en) * 2010-10-07 2012-05-09 国际商业机器公司 DAID array transformation in a pooled storage system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11174011B2 (en) 2019-02-05 2021-11-16 Lockheed Martin Corporation Low drag hub for rotor

Also Published As

Publication number Publication date
CN106371950A (en) 2017-02-01
CN106371950B (en) 2020-11-03

Similar Documents

Publication Publication Date Title
US8103825B2 (en) System and method for providing performance-enhanced rebuild of a solid-state drive (SSD) in a solid-state drive hard disk drive (SSD HDD) redundant array of inexpensive disks 1 (RAID 1) pair
US7461201B2 (en) Storage control method and system for performing backup and/or restoration
US20110296084A1 (en) Data storage apparatus and method of writing data
US6901478B2 (en) Raid system and mapping method thereof
WO2017012391A1 (en) Method and apparatus for achieving raid level conversion
JP5141402B2 (en) Storage system, copy control method, and copy control apparatus
US8904105B2 (en) System and method for performing raid I/O operations in PCIE-based storage resources
US9977626B2 (en) Implementing scattered atomic I/O writes
JP2012185687A (en) Control device, control method, and storage device
US9582383B2 (en) Efficient handling of semi-asynchronous raid write failures
WO2017162174A1 (en) Storage system
US20090248998A1 (en) Storage system, control unit, image forming apparatus, image forming method, and computer readable medium
US8327043B2 (en) Buffer management device which manages buffer transfer, storage apparatus comprising the same device, and buffer management method
US7496724B2 (en) Load balancing in a mirrored storage system
US20170091048A1 (en) Storage method and device for solid-state drive
US20090138656A1 (en) Method of skipping synchronization process for initialization of RAID1 device
US20100325373A1 (en) Duplexing Apparatus and Duplexing Control Method
WO2016059715A1 (en) Computer system
US20100211703A1 (en) Storage Apparatus and Data Integrity Assurance Method
US20060277326A1 (en) Data transfer system and method
WO2016194979A1 (en) Storage system, storage control device, storage control method, and program
US20130031320A1 (en) Control device, control method and storage apparatus
US8667218B2 (en) Storage apparatus comprising RAID groups of RAID 1 series and control method of writing to RAID group of RAID 1 series
JP2007172082A (en) Control device and copy control method
WO2017028718A1 (en) Data reading method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16827082

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16827082

Country of ref document: EP

Kind code of ref document: A1