Method, apparatus and computer program product for splitting a disk set

By using stripe sharing information to split disk sets in RAID disk sets, the problems of large data movement and storage device wear in traditional methods are solved, and more efficient disk set splitting and data recovery are achieved.

CN111858130BActive Publication Date: 2024-09-13EMC IP HLDG CO LLC
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN201910354653.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-29
Publication Date
2024-09-13
Estimated Expiration
2039-04-29

AI Technical Summary

Technical Problem

When adding new disks to a RAID disk set, the traditional method requires splitting the last few disks in the current disk set, which causes a large amount of data to be moved, affects user IO operations and accelerates storage device wear, and cannot effectively reduce the amount of data movement.

Method used

By obtaining and utilizing stripe sharing information, select disks suitable for splitting, and split the RAID disk set into two parts. One part is combined with the newly added disk to form a new RAID disk set, reducing data movement and storage device wear.

Benefits of technology

It reduces the amount of data movement caused by disk set splitting, reduces the impact on user IO operations, slows down the wear and tear of storage devices, and improves data reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111858130B
    Figure CN111858130B
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to a method, device, and computer program product for splitting a disk set. The method includes obtaining stripe sharing information in a first disk set, wherein the stripe sharing information indicates a stripe set that shares multiple disks. The method also includes determining the number of disks to be split in the first disk set when the first disk set is to be split. The method also includes splitting the first disk set into a first part and a second part based on the stripe sharing information and the number of disks to be split, wherein the second part and the newly added disk constitute a second disk set, and the first disk set and the second disk set store data respectively through a redundant array of independent disks (RAID). In the embodiment of the present disclosure, when the current disk set needs to be split due to the newly added disk, the collected stripe sharing information is used to assist in selecting a disk suitable for splitting, thereby reducing data movement caused by the disk set splitting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate generally to the field of data storage, and more particularly to methods, devices, and computer program products for splitting a disk set. Background Art

[0002] Redundant Array of Independent Disks (RAID) is a data backup technology that can combine multiple independent physical disks in different ways to form an array of disks (i.e., logical disks), thereby providing higher storage performance and higher reliability than a single disk. In order to recover data when a disk in the RAID fails, a parity information block (such as RAID 1, RAID 3, or RAID 5, etc.) or multiple parity information blocks (such as RAID 6) are usually set in the RAID. Taking RAID 5 as an example, if a disk in the RAID fails, a new disk is added to the RAID. Then, the RAID can calculate the data in the failed disk through distributed check information, and rebuild the data in the new disk to recover the data.

[0003] Typically, in a RAID, there may be multiple disks that are equal to or greater than the RAID width, where each disk is divided into multiple disk segments, and each disk segment may have a fixed size (e.g., 4 GB, etc.). RAID typically stores data in stripes. For example, in RAID 5, 5 disk segments on 5 disks may be combined to form a RAID stripe, i.e., 4 data blocks and 1 parity information block (i.e., "4D+1P"). When a disk in the RAID fails, it can be rebuilt through distributed parity information, so that data can be recovered and will not be lost. Summary of the invention

[0004] Embodiments of the present disclosure provide a method, device, and computer program product for splitting a disk set.

[0005] In one aspect of the present disclosure, a method for splitting a disk set is provided. The method includes: obtaining stripe sharing information in a first disk set, wherein the stripe sharing information indicates a stripe set that shares multiple disks; in response to determining that the first disk set is to be split, determining the number of disks to be split in the first disk set; and based on the stripe sharing information and the number of disks to be split, splitting the first disk set into a first part and a second part, wherein the second part and the newly added disks constitute a second disk set, and the first disk set and the second disk set store data respectively through RAID.

[0006] In another aspect of the present disclosure, a device for splitting a disk set is provided. The device includes a processing unit and a memory, wherein the memory is coupled to the processing unit and stores instructions. The instructions perform the following actions when executed by the processing unit: obtaining stripe sharing information in a first disk set, wherein the stripe sharing information indicates a stripe set that shares multiple disks; in response to determining that the first disk set is to be split, determining the number of disks to be split in the first disk set; and based on the stripe sharing information and the number of disks to be split, splitting the first disk set into a first part and a second part, wherein the second part and the newly added disk constitute a second disk set, and the first disk set and the second disk set respectively store data through RAID.

[0007] In yet another aspect of the present disclosure, a computer program product is provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, which, when executed, cause a computer to perform a method or process according to an embodiment of the present disclosure.

[0008] This summary is provided to introduce a selection of concepts in a simplified form, which are further described in the detailed description below. This summary is not intended to identify key features or essential features of the disclosure, nor is it intended to limit the scope of the various embodiments of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like elements throughout the exemplary embodiments of the present disclosure.

[0010] Figure 1 A schematic diagram of a RAID stripe in a storage device according to an embodiment of the present disclosure is shown;

[0011] Figure 2 A flow chart of a method for splitting a disk set according to an embodiment of the present disclosure is shown;

[0012] Figure 3A-3B A schematic diagram showing an example of splitting a current disk set due to adding a new disk according to an embodiment of the present disclosure;

[0013] Figure 4A-4B A schematic diagram showing another example of splitting a current disk set due to adding a new disk according to an embodiment of the present disclosure;

[0014] Figure 5 A schematic diagram showing an example structure of stripe sharing information according to an embodiment of the present disclosure;

[0015] Figure 6A flowchart showing another method for splitting a disk set according to an embodiment of the present disclosure; and

[0016] Figure 7 A schematic block diagram of a device that can be used to implement an embodiment of the present disclosure is shown. Specific embodiments

[0017] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some specific embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0018] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects, unless explicitly indicated to be different.

[0019] In a storage system, a number of disks greater than the RAID width may be used to form a RAID disk set. Within a certain range, the more disks there are in a RAID disk set, the better the performance of the RAID; however, there is also an upper limit to the number of disks in a RAID disk set. If this upper limit is exceeded, the performance of the storage system will decrease. Therefore, when adding a new disk to a RAID disk set, if the number of disks exceeds this upper limit, the current RAID disk set needs to be split to form two new disk sets. Traditionally, when an existing RAID disk set needs to be split due to the addition of a new disk, the last few disks in the current disk set are usually split. However, since there is data in the stripes on the split disks, and the data cannot be stored across RAID disk sets, a large amount of data needs to be moved between the two RAID disk sets after the split. Excessive data movement may not only affect normal user IO operations, but also accelerate the wear of the storage device.

[0020] To this end, the embodiment of the present disclosure proposes a solution for splitting a disk set based on the stripe sharing information in the disk set. In the case where the current disk set needs to be split due to the addition of a new disk, the embodiment of the present disclosure uses the pre-collected stripe sharing information to select a disk suitable for splitting, thereby reducing the data movement caused by the disk set splitting and speeding up the disk set splitting process, which can not only reduce the impact on normal user IO operations, but also reduce the wear of storage devices. If the split multiple disks are shared by more stripes, the number of stripes that need to be moved will be less. In addition, the embodiment of the present disclosure can also improve the reliability of data.

[0021] The following references Figures 1 to 7 To illustrate the basic principles and several example implementations of the present disclosure. It should be understood that these exemplary embodiments are given only to enable those skilled in the art to better understand and then implement the embodiments of the present disclosure, and are not intended to limit the scope of the present disclosure in any way. It should be understood that although some of the following embodiments of the present disclosure use RAID5 as an example of RAID, other types of RAID can also be used with the embodiments of the present disclosure, and the present disclosure is not limited thereto. RAID 5 is composed of block-level stripes with distributed check information, and the check information can be distributed across multiple disks. Each stripe can include 5 disk segments, namely 4 data blocks and 1 parity check information block (i.e., "4D+1P"). When a disk in the RAID fails, it can be restored through the distributed check information, so that the data can be restored and will not be lost.

[0022] Figure 1 FIG. 1 is a schematic diagram of a RAID stripe in a storage device 100 according to an embodiment of the present disclosure, which illustrates an example of RAID 5 using "4D+1P" on N disks, where N may be, for example, 25 or another integer greater than 6 and less than 25. Figure 1 As shown in FIG. 1 , each disk can be divided into fixed-size disk slices (each disk slice size is, for example, 4GB), and each disk is represented as disk D0, D1, D2, D3 ... D(N-1), where 5 disk slices on 5 disks can form a RAID stripe. The smallest allocation unit in the stripe is a physical large block (PLB), and its size can be, for example, 2MB. Figure 1In the example, some disk segments in each disk have been stored with data (for example, marked with alphanumeric characters), while other disk segments have not yet stored data. Disk segments A1, A2, A3, A4, and A5 on different disks form the first stripe, disk segments B1, B2, B3, B4, and B5 form the second stripe, disk segments C1, C2, C3, C4, and C5 form the third stripe, disk segments D1, D2, D3, D4, and D5 form the fourth stripe, and disk segments E1, E2, E3, E4, and E5 form the fifth stripe. Generally speaking, in order to ensure wear balance of each disk, RAID usually selects the disk with the least allocated disk segments to allocate a new stripe, so that data can be evenly stored in multiple disks.

[0023] like Figure 1 As shown, if a RAID stripe needs to be created, 5 disk segments can be randomly selected from 5 different disks. Therefore, data and check information will eventually be distributed to disk segments in multiple disks. In addition, a free backup disk can be reserved in the disk set. For example, disk D(N-1) can be used as a free backup disk. When a disk among disks D0-D(N-2) fails, after the timer expires, disk D(N-1) can be used to replace it and perform data reconstruction. Generally speaking, the more disks participate in the reconstruction process, the faster the reconstruction speed will be. However, as the number of disks in the RAID disk set increases, the probability of two disks in the RAID disk set failing at the same time will also increase. Therefore, the optimal number of disks in a RAID must be weighed between the number of disks and reliability. Its value can be obtained through experiments. In some scenarios, the optimal number of disks in RAID 5 can be 25, or it can be other numbers determined in other scenarios.

[0024] Figure 2 A flowchart of a method 200 for splitting a disk set according to an embodiment of the present disclosure is shown. At 202, stripe sharing information in a first disk set is obtained, where the stripe sharing information indicates a set of stripes that share multiple disks. For example, when the storage system is started, the IDs of the five disks used are determined by traversing each stripe, thereby collecting stripe information that shares the same disk in the disk set. According to an embodiment of the present disclosure, the stripe sharing information can be used to split the disk more accurately, and can also be called "relationship data". The following reference Figure 5 A schematic diagram showing an example structure of stripe sharing information according to an embodiment of the present disclosure.

[0025] At 204, determine whether the first disk set is to be split. For example, if the splitting condition is not met, there is no need to execute the method for splitting the disk set according to the embodiment of the present disclosure. On the contrary, if the splitting condition is met and the first disk set needs to be split, then at 206, determine the number of disks to be split in the first disk set. Since the number of disks in a RAID disk set has an upper limit, when this upper limit is exceeded, a new disk set needs to be created, and RAID cannot usually be deployed across multiple disk sets. For example, in the case of RAID 5, when adding a new disk, it is necessary to split several disks from the current disk set to form a new RAID disk set with the new disk. For example, Figure 3A-3B An example of splitting 5 disks from the current disk set is shown, and Figure 4A-4B An example of splitting 4 disks from the current disk set is shown.

[0026] Continue to refer Figure 2 At 208, based on the stripe sharing information and the number of disks to be split, the first disk set is split into a first part and a second part, wherein the second part and the newly added disk form a second disk set, and the first disk set and the second disk set store data through RAID respectively. After determining the number of disks to be split, a plurality of disks most suitable for splitting can be selected based on the stripe sharing information. In this way, by using the pre-collected stripe sharing information to select disks suitable for splitting, data movement caused by disk set splitting can be reduced, thereby reducing the impact on normal user IO operations and reducing wear on storage devices.

[0027] Figure 3A-3B FIG. 1 is a schematic diagram showing an example of splitting a current disk set due to adding a new disk according to an embodiment of the present disclosure. Figure 3A In the example 300 of RAID 5 in FIG. 300 , the current disk set 310 already includes 25 disks, namely, disks D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11 ... D24. When the user inserts a new disk D25 into the storage system, since the current RAID disk set 310 already includes the maximum number of disks (i.e., 25), it is not possible to add a new disk to the current RAID disk set 310. At the same time, since only one new disk is added, a new RAID 5 cannot be formed, because a RAID 5 usually requires 6 disks (one of which is used as a spare backup disk). Therefore, it is necessary to split a part of the disks in the current RAID disk set 310 and form another RAID disk set with the new disk D25.

[0028] refer to Figure 3B In the example 320, since the new RAID disk set 320 requires at least 6 disks, 5 disks can be split from the current RAID disk set 310 to add to the new RAID disk set 320. Figure 3BAs shown, according to the embodiment of the present disclosure, the split disks D2, D3, D4, D5 and D6 are selected based on the stripe sharing information in the current RAID disk set 310 to form a new RAID disk set 320 with the new disk D25, rather than randomly selecting the last few disks in the current RAID disk set for splitting. Therefore, compared with the traditional method, the split disks D2, D3, D4, D5 and D6 selected according to the embodiment of the present disclosure have multiple complete stripes, thereby reducing the data movement between the two RAID disk sets after splitting.

[0029] Figure 4A-4B FIG. 2 is a schematic diagram showing another example of splitting a current disk set due to adding a new disk according to an embodiment of the present disclosure. Figure 4A In the example 400 of RAID 5 in FIG. 4 , the current disk set 410 already includes 25 disks, namely, disks D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11 ... D24. When the user inserts new disks D25 and D26 into the storage system, since the current RAID disk set 410 already includes the maximum number of disks (i.e., 25), it is not possible to add new disks to the current RAID disk set 410. At the same time, since only two new disks are added, a new RAID 5 cannot be formed, because a RAID 5 usually requires 6 disks (one of which is used as a spare backup disk). Therefore, it is necessary to split a part of the disks in the current RAID disk set 410 and form another RAID disk set with the new disks D25 and D26.

[0030] refer to Figure 4B In the example 420, since the new RAID disk set 420 requires at least 6 disks, 4 disks can be split from the current RAID disk set 410 to add to the new RAID disk set 420. Alternatively, 5 disks can be split from the current RAID disk set 410 to add to the new RAID disk set 420. Figure 4B As shown, according to the embodiment of the present disclosure, the split disks D2, D3, D4, D5 and the new disks D25 and D26 are selected based on the stripe sharing information in the current RAID disk set 410 to form a new RAID disk set 420, rather than randomly selecting the last few disks in the current RAID disk set for splitting. Therefore, compared with the traditional method, the multiple stripes in the split disks D2, D3, D4 and D5 selected according to the embodiment of the present disclosure share these four disks, thereby reducing the data movement between the two RAID disk sets after splitting.

[0031] In some embodiments, in a RAID 5 scenario, when three new disks are added, three, four, or five disks may be split from the current disk set; when four new disks are added, two, three, four, or five disks may be split from the current disk set; when five new disks are added, the disk with the lowest utilization rate may be split from the current disk set.

[0032] RAID cannot usually be deployed across multiple disk sets. In some embodiments, after the current RAID disk set is split, the data that needs to be moved from the current disk set to the new disk set due to the split is determined, and then the data is moved. According to the embodiments of the present disclosure, since the split multiple disks have multiple complete stripes and / or stripes that share multiple disks, the amount of data that needs to be moved due to the disk set split can be reduced.

[0033] Figure 5 FIG. 5 is a schematic diagram showing an example structure 500 of stripe sharing information according to an embodiment of the present disclosure. Figure 5 As shown, each record in the stripe sharing information 510 includes a set of shared disks, a set of stripes, and a count of stripes. Whenever the storage system is started or the stripes are changed, the stripe sharing information 510 may be updated.

[0034] Table 1: Disk IDs used by stripes in a RAID disk set

[0035] Strip ID The disk ID used by the stripe 0 0、1、2、3、4 1 5、6、7、8、9 2 0、1、2、3、5 3 4、5、6、7、8 4 0、1、2、3、4

[0036] Refer to Table 1, which shows an example of the ID of the disk used by the stripe in the RAID disk set. For example, whenever a new stripe is created, the ID of the disk used by the stripe is specified. In the example of RAID 5, one stripe uses 5 disks. The stripe sharing information can be created by traversing the disk information of each stripe. For example, for stripe 0 in Table 1, in Figure 5 Add record 511 to the first column of the stripe sharing information 510; for stripe 1 in Table 1, add record 512 to the first column of the stripe sharing information 510; for stripe 2 in Table 1, add record 513 to the first column of the stripe sharing information 510, and add record 521 to the second column of the stripe sharing information 510; for stripe 3 in Table 1, add record 514 to the first column of the stripe sharing information 510, and add record 522 to the second column of the stripe sharing information 510; for stripe 4 in Table 1, update record 511 in the first column of the stripe sharing information 510, and add records 523, 524, etc. to the second column of the stripe sharing information 510. Figure 5 As shown, record 511 is a stripe record of five shared disks, which includes the IDs of the shared disks (such as 0, 1, 2, 3, 4), the stripe IDs (such as 0, 4), and the number of stripes (such as 2).

[0037] In some embodiments, for each stripe in the current disk set, it is determined whether the stripe sharing information includes records associated with a group of disks involved in each stripe. If it is determined that the stripe sharing information does not yet include records associated with a group of disks involved in a given stripe, a record associated with the group of disks is created in the stripe sharing information; and if it is determined that the stripe sharing information already includes records associated with a group of disks involved in a given stripe, the record associated with the group of disks is updated in the stripe sharing information.

[0038] Whenever a new stripe is created, the first column in the stripe sharing information 510 is first checked to determine whether 5 disks are shared with the existing stripe. If not, a new record is created. If so, the existing record is updated. Then, the first column in the stripe sharing information 510 is checked to determine whether 4 disks are shared with the existing stripe. If so, the second column in the sharing information 510 is checked. If not, a new record is created. If so, the existing record is updated. Next, the second column in the stripe sharing information 510 is checked again to determine whether the record of sharing 4 disks is updated.

[0039] In addition, the stripe sharing information records the stripe sets that share a predetermined number of identical disks, where the predetermined number is less than the width of the RAID. For example, in the example of RAID 5, in addition to recording the stripe information that shares 5 disks, the stripe information that shares less than 5 disks (such as 4 or 3) is also recorded. Figure 5 In the example, information about stripes sharing four disks is also shown.

[0040] Figure 6 FIG. 6 is a flowchart of another method 600 for splitting a disk set according to an embodiment of the present disclosure. It should be understood that the method 600 may be the method described in the above reference. Figure 2 An example implementation of the described method 200. At 602, a new disk is added to the storage system. For example, a user may purchase a new disk and use it with an old disk to form a RAID.

[0041] At 604, it is determined whether the current disk set needs to be split. If it is determined that the current disk set does not need to be split, at 606, a new disk is added to the current disk set or a new disk set is created using the new disk. For example, if the sum of the number of all disks in the current disk set and the number of newly added disks is less than or equal to a certain threshold (e.g., 25), it means that the newly added disk can be directly inserted into the current disk set without splitting the current disk set. For another example, if the sum of the number of all disks in the current disk set and the number of newly added disks is greater than a certain threshold (e.g., 25) and the number of newly added disks is greater than another threshold (e.g., 5), it means that the newly added disks can form a new RAID 5 by themselves, and thus a new disk set is directly created using the newly added disks without splitting the current disk set.

[0042] If it is determined that the current disk set needs to be split, then in 608, the number of disks to be split in the current disk set is determined. For example, if the sum of the number of all disks in the current disk set and the number of newly added disks is greater than a certain threshold (e.g., 25) and the number of newly added disks is greater than another threshold (e.g., 5), it means that one disk set is not enough, and the newly added disks themselves cannot create a new disk set (not enough for the minimum number of disks of the RAID), so the first disk set needs to be split. Then, based on the number of newly added disks, the number of disks to be split in the current disk set is determined. For example, if the current disk set has 25 disks and the newly added disk set has only 1 disk, then the number of disks to be split in the current disk set is determined to be 5.

[0043] At 610, all records in the corresponding column of the stripe sharing information are sorted based on the number of moving stripes required for each record in the corresponding column of the stripe sharing information (the first column when 5 disks need to be split). For example, for each record in the corresponding column of the stripe sharing information, the number of all stripes on multiple disks involved in each record is determined, and the number of shared stripes shared by multiple disks is determined. Then, based on the number of all stripes and the number of shared stripes, the number of moving stripes required to be moved when each record is selected to split the current disk set is determined, and all records in the corresponding column of the stripe sharing information are sorted according to the number of moving stripes of each record.

[0044] At 612, the current disk set is split based on the sorting. For example, a record with the smallest number of moving stripes is selected according to the sorting to split the current disk set, and the current disk set is split into a reserved part and a part for creating a new disk set.

[0045] Therefore, in the disclosed embodiment, when the current disk set needs to be split due to the addition of a new disk, the pre-collected stripe sharing information is used to select a disk suitable for splitting, thereby reducing data movement caused by the disk set splitting.

[0046] Figure 71 shows a schematic block diagram of a device 700 that can be used to implement an embodiment of the present disclosure. The device 700 may be a device or apparatus described in an embodiment of the present disclosure. Figure 7 As shown, the device 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 702 or computer program instructions loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0047] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0048] The various methods or processes described above may be executed by the processing unit 701. For example, in some embodiments, the methods may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as the storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the CPU 701, one or more steps or actions in the methods or processes described above may be performed.

[0049] In some embodiments, the methods and processes described above may be implemented as a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.

[0050] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0051] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0052] The computer program instructions for performing the disclosed operation may be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, and conventional procedural programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, executed as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., utilizing an Internet service provider to connect via the Internet). In certain embodiments, by utilizing the state information of a computer-readable program instruction to customize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit may execute a computer-readable program instruction, thereby realizing various aspects of the present disclosure.

[0053] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more blocks in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.

[0054] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more blocks in the flowchart and / or block diagram.

[0055] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the equipment, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each block in the flow chart or block diagram can represent a part of a module, a program segment or an instruction, and a part of the module, a program segment or an instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the blocks can also occur in a sequence different from that marked in the accompanying drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flow chart, and the combination of the blocks in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0056] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for splitting a disk set, comprising: Acquire stripe sharing information in a first disk set, wherein the stripe sharing information indicates a stripe set that shares multiple disks; In response to determining that the first disk set is to be split, determining the number of disks in the first disk set to be split; as well as Based on the stripe sharing information and the number of disks to be split, the first disk set is split into a first part and a second part, the second part and the newly added disk constitute a second disk set, and the first disk set and the second disk set store data respectively through a redundant array of independent disks RAID.

2. The method according to claim 1, wherein obtaining the stripe sharing information in the first disk set comprises: For a given stripe in the first disk set, determining whether the stripe sharing information includes a record associated with a group of disks involved in the given stripe; In response to determining that the stripe sharing information does not yet include a record associated with a set of disks involved in the given stripe, creating a record associated with the set of disks in the stripe sharing information; and In response to determining that the stripe sharing information already includes a record associated with a group of disks involved in the given stripe, the record associated with the group of disks is updated in the stripe sharing information.

3. The method according to claim 2, wherein obtaining the stripe sharing information in the first disk set further comprises: The stripe sharing information records a stripe set that shares a predetermined number of identical disks, where the predetermined number is smaller than a width of the RAID.

4. The method according to claim 1, further comprising: In response to a sum of a first number of all disks in the first disk set and a second number of the newly added disks being less than or equal to a first threshold, adding the newly added disk to the first disk set; as well as In response to the sum of the first number of all disks in the first disk set and the second number of the newly added disks being greater than the first threshold and the second number being greater than a second threshold, creating a second disk set using the newly added disks.

5. The method of claim 4, wherein each record in the stripe sharing information includes a set of shared disks, a set of stripes, and a count of stripes, and determining the number of disks to be split in the first disk set comprises: In response to the sum of the first number of all disks in the first disk set and the second number of the newly added disks being greater than the first threshold and the second number being less than the second threshold, determining that the first disk set is to be split; as well as Based on the second number of the newly added disks, the number of disks to be split in the first disk set is determined.

6. The method of claim 2, wherein splitting the first disk set into a first portion and a second portion comprises: For a given record in the stripe sharing information: Determining the number of all stripes on the plurality of disks involved in the given record; determining the number of shared stripes shared by the plurality of disks; and The number of stripes required to be moved when the given record is selected to split the first disk set is determined based on the number of all stripes and the number of shared stripes.

7. The method of claim 6, wherein splitting the first disk set into a first part and a second part further comprises: Sorting all records in the stripe sharing information according to the number of mobile stripes of each record; as well as The first disk set is split into the first portion and the second portion based on the ranking.

8. The method according to claim 1, further comprising: In response to splitting the first disk set into the first portion and the second portion, determining data in the first portion of the first disk set related to stripes in the second portion; as well as The data is moved from the first portion of the first disk set to the second disk set.

9. A device for splitting a disk set, comprising: Processing unit; as well as A memory coupled to the processing unit and storing instructions that, when executed by the processing unit, perform the following actions: Acquire stripe sharing information in a first disk set, wherein the stripe sharing information indicates a stripe set that shares multiple disks; In response to determining that the first disk set is to be split, determining the number of disks in the first disk set to be split; as well as Based on the stripe sharing information and the number of disks to be split, the first disk set is split into a first part and a second part, the second part and the newly added disk constitute a second disk set, and the first disk set and the second disk set store data respectively through a redundant array of independent disks RAID.

10. The device according to claim 9, wherein obtaining the stripe sharing information in the first disk set comprises: For a given stripe in the first disk set, determining whether the stripe sharing information includes a record associated with a group of disks involved in the given stripe; In response to determining that the stripe sharing information does not yet include a record associated with a set of disks involved in the given stripe, creating a record associated with the set of disks in the stripe sharing information; and In response to determining that the stripe sharing information already includes a record associated with a group of disks involved in the given stripe, the record associated with the group of disks is updated in the stripe sharing information.

11. The device according to claim 10, wherein obtaining the stripe sharing information in the first disk set further comprises: The stripe sharing information records a stripe set that shares a predetermined number of identical disks, where the predetermined number is smaller than a width of the RAID.

12. The apparatus of claim 9, the actions further comprising: In response to a sum of a first number of all disks in the first disk set and a second number of the newly added disks being less than or equal to a first threshold, adding the newly added disk to the first disk set; as well as In response to the sum of the first number of all disks in the first disk set and the second number of the newly added disks being greater than the first threshold and the second number being greater than a second threshold, creating a second disk set using the newly added disks.

13. The apparatus of claim 12, wherein each record in the stripe sharing information includes a set of shared disks, a set of stripes, and a count of stripes, and determining the number of disks to be split in the first disk set comprises: In response to the sum of the first number of all disks in the first disk set and the second number of the newly added disks being greater than the first threshold and the second number being less than the second threshold, determining that the first disk set is to be split; as well as Based on the second number of the newly added disks, the number of disks to be split in the first disk set is determined.

14. The apparatus of claim 10, wherein splitting the first disk set into a first portion and a second portion comprises: For a given record in the stripe sharing information: Determining the number of all stripes on the plurality of disks involved in the given record; determining the number of shared stripes shared by the plurality of disks; and The number of stripes required to be moved when the given record is selected to split the first disk set is determined based on the number of all stripes and the number of shared stripes.

15. The apparatus of claim 14, wherein splitting the first disk set into a first portion and a second portion further comprises: Sorting all records in the stripe sharing information according to the number of mobile stripes of each record; as well as The first disk set is split into the first portion and the second portion based on the ranking.

16. The apparatus of claim 9, the actions further comprising: In response to splitting the first disk set into the first portion and the second portion, determining data in the first portion of the first disk set related to stripes in the second portion; as well as The data is moved from the first portion of the first disk set to the second disk set.

17. A computer program product tangibly stored on a non-transitory computer readable medium and comprising computer executable instructions which, when executed, cause a computer to perform the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Data recovery method and device for redundant array of independent disks

    CN102081559A

  • Redundant array of independent disks-related operations

    CN102165407A

  • Disk control system and method for constituting disk array

    JP2002099391A

  • Method and system for managing storage system

    US20180088857A1

  • Dynamically adapting the fault tolerance and performance characteristics of a raid-based storage system by merging and splitting raid groups

    US7958304B1