Method, electronic device and computer program product for rebuilding a disk array

By generating parallel rebuildable disk array subsets for parallel reconstruction, the problem of low efficiency in the disk array reconstruction process is solved, and the parallel reconstruction capability and performance of the system are improved.

CN113126887BActive Publication Date: 2024-09-06EMC IP HLDG CO LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010041339.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-01-15
Publication Date
2024-09-06
Estimated Expiration
2040-01-15

AI Technical Summary

Technical Problem

During the disk array reconstruction process, multiple disk arrays share the same disk, resulting in reduced parallel reconstruction efficiency and increased latency, and the management device needs to generate multiple read I/O and write I/O operations, affecting system performance.

Method used

By determining the target disk, generate a disk array set related to the target disk, and divide it into multiple subsets. Each subset contains disk arrays that can be reconstructed in parallel. The target subset is determined based on the number of disks in the subset, and the target subset is reconstructed in parallel. Centralized disk array to optimize the parallel reconstruction process.

Benefits of technology

It improves the efficiency of disk array reconstruction, reduces delays caused by multiple disk arrays sharing the same disk, and improves the system's parallel reconstruction capability and performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113126887B
    Figure CN113126887B
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to methods, electronic devices, and computer program products for rebuilding a disk array. The method includes, in response to receiving a message indicating the reconstruction of a disk array in a storage system, determining a target disk that causes the reconstruction. The method also includes determining a set of disk arrays related to the target disk from the disk array. The method also includes generating multiple subsets of disk arrays from the set of disk arrays, each subset including multiple disk arrays that can be rebuilt in parallel. The method also includes determining a target subset from the multiple subsets based on the number of disks included in each of the multiple subsets. The method also includes rebuilding multiple disk arrays in the target subset in parallel. Through the above method, the disk array most suitable for parallel reconstruction can be determined, which speeds up the process of disk array reconstruction. Therefore, the delay caused by performing multiple disk array reconstructions on the same disk is reduced, and the efficiency of rebuilding the disk array is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the development of storage technology, more and more users use disk arrays to store data. A disk array is a group of disks formed by combining multiple independent disks in different ways. The disk array can be, for example, a redundant array of independent disks (RAID) or a group of disks with other appropriate structures / forms. For users, a disk array is like a disk, but it can provide higher storage capacity than a single hard disk and can also provide data backup. The different composition methods of disk arrays are called RAID levels, such as RAID0, RAID1, RAID5, etc.

[0003] With the development of RAID technology, data reading and writing are performed at the disk block level rather than at the disk level. According to this technology, each disk in a plurality of disks is divided into a plurality of physical disk blocks. RAID is created by taking physical disk blocks as units. For example, if the size of each disk block used to create RAID is 4GB, then for a 4+1RAID5 disk array, its storage capacity is 16GB. However, there are still many problems to be solved in the disk array composed of disk blocks. Summary of the invention

[0004] Embodiments of the present disclosure provide a method, an apparatus, and a computer program product for rebuilding a disk array.

[0005] According to a first aspect of the present disclosure, a method for rebuilding a disk array is provided. The method includes, in response to receiving a message indicating the rebuilding of a disk array in a storage system, determining a target disk that causes the rebuilding. The method also includes determining a set of disk arrays related to the target disk from the disk array. The method also includes generating a plurality of subsets of disk arrays from the set of disk arrays, each subset including a plurality of disk arrays that can be rebuilt in parallel. The method also includes determining a target subset from the plurality of subsets based on the number of disks included in each of the plurality of subsets. The method also includes rebuilding a plurality of disk arrays in the target subset in parallel.

[0006] According to a second aspect of the present disclosure, an electronic device is provided. The electronic device includes a processor; and a memory storing computer program instructions, the processor runs the computer program instructions in the memory to control the electronic device to perform actions, the actions including: in response to receiving a message indicating the reconstruction of a disk array in a storage system, determining a target disk that causes the reconstruction; determining a set of disk arrays related to the target disk from the disk array; generating multiple subsets of the disk array from the set of disk arrays, each subset including multiple disk arrays that can be reconstructed in parallel; determining a target subset from the multiple subsets based on the number of disks included in each of the multiple subsets; and reconstructing multiple disk arrays in the target subset in parallel.

[0007] According to a third aspect of the present disclosure, there is provided a computer program product, which is tangibly stored on a non-volatile computer-readable medium and comprises machine-executable instructions, which when executed cause a machine to perform the steps of the method in the first aspect of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] 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 components throughout the exemplary embodiments of the present disclosure.

[0009] Figure 1 A schematic diagram illustrating an example environment 100 in which devices and / or methods according to embodiments of the present disclosure may be implemented;

[0010] Figure 2 A flow chart of a method 200 for rebuilding a disk array according to an embodiment of the present disclosure is illustrated;

[0011] Figure 3 A schematic diagram of a disk array and disk correspondence table 300 according to an embodiment of the present disclosure is illustrated;

[0012] Figure 4 A flow chart of a method 400 for determining a target subset according to an embodiment of the present disclosure is illustrated;

[0013] Figure 5 A schematic block diagram of an example device 500 suitable for implementing embodiments of the present disclosure is illustrated.

[0014] In the various drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION

[0015] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain 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 construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0016] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0017] The principles of the present disclosure will be described below with reference to several example embodiments shown in the accompanying drawings. Although preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that these embodiments are described only to enable those skilled in the art to better understand and implement the present disclosure, and are not intended to limit the scope of the present disclosure in any way.

[0018] Usually, there are many disk arrays with the same disk array width in the storage system. Each disk array is formed by multiple disk blocks in multiple disks. However, the disks in the storage system may fail for some reason, causing the disks in the storage system to be unavailable. When the disk in the storage system is unavailable, the disk is marked as offline. When the disk is offline for more than a predetermined time, for example, the offline time exceeds 5 minutes, in order to ensure the reliability of the data, the disk array related to the disk in the storage system needs to be rebuilt.

[0019] However, when rebuilding the disk array, the management device first selects the disk array formed by the offline disk from the disk array. Then, the management device puts the disk array related to the offline disk into the list to be rebuilt according to the selected order. When the reconstruction starts, the management device takes out the first N disk arrays from the reconstruction list. The first N disk arrays taken out are allocated to the N cores of the management device to perform the reconstruction in parallel, wherein each core is allocated one disk array.

[0020] During the reconstruction process for each disk array, the management device reads all disk array stripes from the disks associated with the disk array based on the width of the disk array. For example, if the disk array format is 4+1RAID 5, when performing a reconstruction operation, the storage system needs to read the data on the other four disks except the offline disk and return it to the management device. The management device then reconstructs the data on the offline disk based on the data received on the other four disks. Therefore, at least 4 read I / Os and one write I / O need to be generated during the reconstruction process. However, when rebuilding in parallel, the disk arrays rebuilt in parallel may share the same disk (except for the offline disk). Reading data on the same disk for different disk arrays will slow down the parallel reconstruction process, thereby reducing the efficiency of parallel reconstruction.

[0021] In order to solve the above problems, the present disclosure proposes a method for rebuilding a disk array. In this method, the target disk (e.g., an offline disk) causing the disk array is first determined. Then, a set of disk arrays related to the target disk is determined. Subsequently, multiple subsets of disk arrays are generated from the set of disk arrays. A target subset is determined from the multiple subsets by the number of disks each of the multiple subsets includes. Then, multiple disk arrays in the target subset are rebuilt. Through the above method, the disk array most suitable for parallel reconstruction can be determined, which speeds up the process of disk array reconstruction. Therefore, the delay caused by performing multiple disk array reconstruction on the same disk is reduced, and the efficiency of rebuilding the disk array is improved.

[0022] under Figure 1 A schematic diagram of an example environment 100 is illustrated in which devices and / or methods according to embodiments of the present disclosure may be implemented.

[0023] like Figure 1 As shown, the example environment 100 includes a management device 102 and a storage system 104. The management device 102 manages disk arrays in the storage system 104.

[0024] The storage system 104 is a storage medium for storing a large amount of data. The storage system 104 may include various volatile and / or non-volatile data storage media. Examples of storage media may include, but are not limited to, magnetic disks, optical disks, hard disks, solid-state drives (SSDs), and caches. Alternatively or additionally, the storage system 104 may have the same type of storage media, or different types of storage media.

[0025] Figure 1The storage system 104 shown in the figure has multiple disks 106-0, 106-1, 106-2...106-M, where M is a positive integer. For the convenience of description, the disks 106-0, 106-1, 106-2...106-M are collectively referred to as disks 106 below. Each disk in the storage system 104 is divided into multiple physical disk blocks, where the size of each physical disk block is the same. The number of physical disk blocks on each disk may be different or the same. The size of the physical disk block can be set as needed. In some embodiments, the size of the physical disk block can be, for example, 4GB.

[0026] The physical disk blocks in the storage system 104 form a disk array. The disk arrays have the same level. The formats of the disk arrays include but are not limited to RAID 0, RAID 1, RAID0+1, RAID 2, RAID 3, RAID 4, RAID 5, RAID 7, RAID 10, and the like.

[0027] The management device 102 receives requests from users or upper layer applications to perform various operations on the disk array. The management device 102 also receives some requests and / or messages from the storage system 104 to perform some predetermined operations on the storage system 104. The management device 102 receives a message indicating to rebuild the disk array in the storage system 104. In some embodiments, if the disk in the storage system 104 is offline for more than a predetermined period of time, such as 5 minutes, the storage system 104 may send a message to the management device 102. The message indicates that there is an offline disk in the storage system 104 and the disk array in the storage system 104 needs to be rebuilt. The above examples are only used to describe the present disclosure, and are not specific limitations of the present disclosure.

[0028] After receiving the message indicating that the disk array needs to be rebuilt, the management device 102 will determine the target disk that causes the reconstruction, such as the offline disk that causes the reconstruction.

[0029] In some embodiments, the storage system 104 stores metadata for each disk 106. The metadata of the disk 106 includes status information indicating whether the disk 106 is offline. Therefore, after receiving the message indicating that the disk array needs to be rebuilt, the management device 102 obtains the metadata of each disk 106 from the storage system 104. Alternatively or additionally, an indication bit is set in the metadata of the disk 106, and when the bit is 1, it indicates online, and when the bit is 0, it indicates offline, or when the bit is 0, it indicates online, and when the bit is 1, it indicates offline.

[0030] In some embodiments, the storage system 104 has a predetermined storage area for storing information of the target disk. Therefore, the management device 102 can directly obtain the information of the target disk from the predetermined storage area to determine the target disk.

[0031] The above examples are only used to describe the present disclosure, rather than to specifically limit the present disclosure. Those skilled in the art may determine the target disk that causes reconstruction in any appropriate manner, and may also set the disk status information in the metadata in any appropriate form as needed.

[0032] After determining the target disk, the management device 102 determines the set of disk arrays associated with the target disk, that is, determines the set of disk arrays formed by the target disk. In some embodiments, the storage system 104 stores metadata of the disk array. The metadata of the disk array includes identification information of the disk storing the data of the disk array. The management device 102 obtains metadata about the disk array from the storage system 104.

[0033] In some embodiments, the management device 102 obtains metadata of each disk array based on the logical address formed by the disk array. For example, the management device 102 sends the logical address 0 to the storage system 104. The storage system 104 then searches the metadata of the disk array to find out which disk array corresponds to the logical address 0. The metadata of the disk array corresponding to the logical address 0 is then sent to the management device 102. The management device 102 then searches for metadata of the disk array corresponding to the next predetermined address. For example, the interval between the next predetermined address and the logical address 0 is the length of the disk array. Thus, the management device 102 can obtain metadata of each disk array.

[0034] In some embodiments, the management device 102 sequentially determines the set of disk arrays based on the metadata of the disk arrays. By checking the identifier of the disk in the metadata, the management device 102 can determine the set of disk arrays related to the target disk.

[0035] The management device 102 generates multiple subsets of disk arrays from the set of disk arrays. Each subset includes multiple disk arrays that can be rebuilt in parallel. In some embodiments, the number of disk arrays rebuilt in parallel is the same as the number of cores in the management device 102. In some embodiments, the number of disk arrays rebuilt in parallel is the same as the number of available cores in the management device 102. The above examples are only used to describe the present disclosure, but are not specifically limited to the present disclosure. Those skilled in the art can set the number of disk arrays rebuilt in parallel as needed.

[0036] Then, the management device 102 determines the number of disks included in each subset, and determines a target subset from the multiple subsets. Finally, the management device 102 rebuilds the multiple disk arrays in the target subset.

[0037] In some embodiments, if there are still multiple disk arrays that need to be rebuilt after the target subset is rebuilt, the target subset that needs to be rebuilt later can be re-determined until all disk arrays are rebuilt. In some embodiments, after the target subset is rebuilt, other disk arrays that need to be rebuilt can also be rebuilt according to existing methods. The above examples are only used to describe the present disclosure, and are not specific limitations of the present disclosure. Those skilled in the art can set other disk array reconstruction methods as needed.

[0038] Combined with the above Figure 1 A schematic diagram of an environment 100 in which devices and / or methods according to embodiments of the present disclosure may be implemented is described below. Figure 2 and Figure 3 Describe the process of rebuilding a disk array. Figure 2 A method 200 for rebuilding a disk array according to an embodiment of the present disclosure is illustrated, wherein the method 200 may be performed in Figure 1 The method is executed at the management device 102 or any other suitable device in the system. Figure 3 A schematic diagram of a disk array-disk correspondence table 300 according to an embodiment of the present disclosure is illustrated.

[0039] In block 202, the management device 102 determines whether a message indicating the reconstruction of the disk array in the storage system 104 is received. When the storage system 104 needs to rebuild the disk array, a message for rebuilding the disk array is sent to the management device 102. Therefore, the management device 102 receives a message for rebuilding the disk array from the storage system 104.

[0040] In some embodiments, if a disk in the storage system 104 is offline for more than a predetermined period of time, such as 5 minutes, the storage system 104 may send a message to the management device 102. The message indicates that there is an offline disk in the storage system 104 and it is necessary to rebuild the disk array in the storage system 104. The above examples are only used to describe the present disclosure, and are not specific limitations of the present disclosure.

[0041] After determining that a message indicating reconstruction of the disk array in the storage system 104 is received, the management device 102 determines the target disk that causes the reconstruction in block 204. After receiving the message, the management device first determines the target disk that causes the reconstruction, such as an offline disk.

[0042] In some embodiments, after receiving the message, the management device 102 obtains the status information of the disk 106 in the storage system 104. Alternatively or additionally, the storage system 104 stores metadata for each disk 106. The metadata of the disk 106 includes status information indicating whether the disk 106 is offline. Then, the management device 102 determines which disk 106 is the target disk according to the status information in the metadata of the disk 106.

[0043] In block 206, the management device 102 determines a set of disk arrays related to the target disk from the disk arrays. The management device 102 needs to determine the disk arrays formed by the target disk from all the disk arrays of the storage system 104 for rebuilding the disk arrays.

[0044] In some embodiments, the management device 102 obtains identifiers of multiple disks related to multiple disk arrays in the storage system 104. Alternatively or additionally, the management device 102 obtains metadata of the disk array from the storage system 104, wherein the metadata of the disk array stores identifiers of disks forming the disk array. Using the identifiers of the disks, the management device 102 determines one or more disk arrays formed by the target disks. Then, the management device 102 determines the determined one or more disk arrays as a set of disk arrays. The above examples are only used to describe the present disclosure, but are not specifically limited to the present disclosure.

[0045] In some embodiments, the management device 102 generates a correspondence between a set of disk arrays and disks related to the set of disk arrays. Figure 3 As shown, disk 4 is the target disk, and the management device 102 determines a corresponding relationship table 300 of a disk array set and disks related to disk 4. In the table, disks include disk 0, disk 1, disk 2 to disk N, where N is a positive integer; disk arrays include disk array 1, disk array 2 to disk array X, where X is a positive integer. The number 1 in table 300 indicates that a disk array is formed by the disk, and the number 0 in table 300 indicates that the disk does not form the disk array. In this example, the format of the disk array is 4+1RAID5, so disk array 0 is formed by disk 0, disk 1, disk 2, disk 3, and disk 4; disk array 1 is formed by disk 3, disk 4, disk 5, disk 6, and disk 7; disk array 2 is formed by disk 4, disk 5, disk 6, disk 7, and disk 8; disk array X is formed by disk 1, disk 4, disk 8, disk 9, and disk N; where disk 4 is an offline disk.

[0046] return Figure 2 At block 208, the management device 102 generates a plurality of subsets of disk arrays from the set of disk arrays. Each subset includes a plurality of disk arrays that can be rebuilt in parallel.

[0047] In some embodiments, the management device 102 obtains the number of cores of the computing resources of the storage system 104. In one example, the number of cores is the total number of cores in the computing resources. In one example, the number of cores is the number of available cores in the computing resources. The above examples are only used to describe the present disclosure, but not to specifically limit the present disclosure. Those skilled in the art can set the number of cores as needed.

[0048] After determining the number of cores, the management device 102 can determine the number of disk arrays in each subset. Then, the management device 102 generates multiple subsets from the set of disk arrays, and the number of disk arrays included in each subset is equal to the determined number of cores, that is, the number of cores is the number of disk arrays in the subset. In this way, each core can process one disk array, thereby realizing parallel reconstruction of multiple disk arrays.

[0049] In some embodiments, a disk array corresponding to the number of cores is arbitrarily selected from the set of disk arrays as a subset of the disk arrays. Alternatively or additionally, the plurality of subsets include all subsets that can be formed by the disk arrays in the set of disk arrays having the same number as the number of cores.

[0050] In block 210, the management device 102 determines a target subset from the plurality of subsets based on the number of disks included in each of the plurality of subsets. The target subset determined by the management device 102 is the subset of the disk array selected for parallel execution. The process of determining the target subset will be described below in conjunction with Figure 4 and Figure 3 Give a description.

[0051] In block 212, the management device 102 rebuilds multiple disk arrays in the target subset in parallel. After selecting the target subset, the management device 102 can put the disk arrays in the determined target subset into each core for parallel execution to rebuild the disk arrays.

[0052] By using the above method, the disk array most suitable for parallel reconstruction can be determined, which speeds up the disk array reconstruction process, thereby reducing the delay caused by performing multiple disk array reconstructions on the same disk and improving the efficiency of disk array reconstruction.

[0053] above Figure 2 A schematic diagram of a method 200 for rebuilding a disk array according to an embodiment of the present disclosure is shown. Figure 4 and Figure 3 To describe Figure 2 The operation at box 210 in . Figure 4 A flowchart of a method 400 for determining a target subset according to an embodiment of the present disclosure is illustrated. Figure 4 The method 400 may be performed by Figure 1 The management device 102 or any other suitable device in is executed.

[0054] When determining a target subset from multiple subsets, the management device 102 usually determines an indication factor for each of the multiple subsets based on the number of disks included in each of the multiple subsets. The indication factor indicates the ratio of the total number of disk arrays associated with each subset to the number of disks associated with each subset. The indication factor is then used to determine the target subset from the multiple subsets.

[0055] At block 402, the management device 102 determines the number of disks associated with each subset. After determining the set of disk arrays associated with the target disk, the management device 102 acquires metadata associated with each disk array in the set of disk arrays from the storage device 104. The metadata of the disk arrays includes identifications of the disks forming the disk arrays. Therefore, the management device 102 acquires the relationship between the set of disk arrays and the disks.

[0056] For example, Figure 3 As shown, the management device 102 stores the corresponding relationship between the set of disk arrays and the disks. Figure 3 To determine the number of disks associated with each subset.

[0057] return Figure 4 At block 404, based on the disks associated with each subset, the management device 102 determines all disk arrays associated with the disks as the associated disk arrays of the subset. In order to determine the target disk array, the management device 102 also determines the disk arrays in each subset on each disk of the subset as the associated disk arrays of the subset.

[0058] For example, Figure 3 As shown, if the subset includes disk array 0 and disk array 1, the disks associated with disk arrays 0 and 1 are disks 0-disk 3 and disks 5-disk 7, and disk 4 is a faulty disk, so it is not considered. At this time, the disk array associated with disk 0 is disk array 0, and the number of associated disk arrays is 1; the disk array associated with disk 1 is disk array 0, and the number of associated disk arrays is 1; the disk array associated with disk 2 is disk array 0, and the number of associated disk arrays is 1; the disk array associated with disk 3 is disk array 0 and 1, and the number of associated disk arrays is 2; the disk array associated with disk 5 is disk array 1, and the number of associated disk arrays is 1; the disk array associated with disk 6 is disk array 1, and the number of associated disk arrays is 1; the disk array associated with disk 7 is disk array 1, and the number of associated disk arrays is 1.

[0059] return Figure 4 At block 406 , the management device 102 determines an indication factor based on the number of disks and the associated disk arrays associated with each subset.

[0060] After determining the number of disk arrays of each disk in the subset, the management device 102 sums the number of associated disk arrays on each disk, and then determines the average disk array value mean on each disk in the subset. mean is an indicator factor, which is determined by the following formula (1):

[0061] mean=sum / W (1)

[0062] Wherein mean represents the average disk array value on each disk in the subset, sum represents the sum of the number of associated disk arrays on all disks in the subset, wherein the sum of the number of associated disk arrays on all disks in each subset is the same; W represents all disks (excluding offline disks) that form the disk array in the subset.

[0063] At block 408, the management device 102 determines a target subset from the plurality of subsets based on the indicator factor. The management device 102 determines the target subset from the plurality of subsets based on the indicator factor of each subset. In some embodiments, the management device 102 selects the subset with the smallest indicator factor as the target subset.

[0064] In some embodiments, if the minimum indicator factor corresponds to multiple different subsets when selecting the target subset, the target subset can be further selected by calculating the variance for the subset. The variance is determined by the following formula (2):

[0065] variance = ∑(M-mean) 2 / (W-1) (2)

[0066] Where M represents the value of the disk array of each disk in the subset, mean is the average disk array value of each disk in the subset obtained by the above formula (1), W represents the number of disks forming the disk array in the subset, and ∑ represents the sum of all disks in the subset.

[0067] Through the above method, the target subset can be determined from multiple subsets quickly and accurately, thereby improving the efficiency of determining the target subset, saving determination time, and improving the performance of the management device.

[0068] Figure 5 Schematic block diagram of an example device 500 that can be used to implement embodiments of the present disclosure is shown. Figure 1 The management device 102 shown can be implemented by a device 500. As shown, the device 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 502 or loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

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

[0070] The various processes and processing described above, such as methods 200 and 400, may be performed by the processing unit 501. For example, in some embodiments, the methods 200 and 400 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the CPU 501, one or more actions of the methods 200 and 400 described above may be performed.

[0071] The present disclosure may be a method, an apparatus, a system and / or 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.

[0072] 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.

[0073] 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.

[0074] The computer program instructions for performing the operation of the present disclosure may be assembly 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, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, 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., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0075] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0076] 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 boxes 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 boxes in the flowchart and / or block diagram.

[0077] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating 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 boxes in the flowchart and / or block diagram.

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

[0079] 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 rebuilding a disk array, include: In response to receiving a message instructing to rebuild a disk array in the storage system, determining a target disk causing the rebuild; Determine a set of disk arrays related to the target disk from the disk arrays; generating a plurality of subsets of disk arrays from the set of disk arrays, each subset comprising a plurality of disk arrays capable of being rebuilt in parallel; determining a target subset from the plurality of subsets based on the number of disks included in each of the plurality of subsets; as well as Rebuilding a plurality of disk arrays in the target subset in parallel, wherein determining the target subset comprises: determining an indication factor for each of the plurality of subsets based on the number of disks included in each of the plurality of subsets, the indication factor indicating a ratio of a total number of disk arrays associated with each subset to the number of disks associated with each subset; as well as The target subset is determined from the plurality of subsets based on the indicator factor.

2. The method according to claim 1, wherein determining the target disk include: In response to receiving the message, acquiring status information of a plurality of disks associated with a plurality of disk arrays in the storage system; as well as According to determining that the status information indicates that one of the plurality of disks is offline, the one disk is determined as the target disk.

3. The method according to claim 1, wherein determining the set of disk arrays include: Obtain identifiers of a plurality of disks associated with a plurality of disk arrays in the storage system; Based on the identifier, determining one or more disk arrays formed using the target disk; as well as The determined one or more disk arrays are determined as a set of the disk arrays.

4. The method according to claim 3, wherein obtaining the identifier include: Acquire metadata related to the plurality of disk arrays; as well as An identifier for each disk associated with the plurality of disk arrays is determined from the metadata.

5. The method according to claim 1, wherein determining the indicator factor for each of the plurality of subsets include: identifying a set of disks included in a subset of the plurality of subsets; identifying the number of disks in the set of disks; For each disk in the set of disks, identifying the number of an associated disk array that contains the corresponding disk; as well as calculating a total number of associated disk arrays for the subset by summing this number of associated disk arrays for each disk in the set of disks, Wherein the ratio for the subset is calculated based on the total number of associated disk arrays for the subset and the number of disks in the set of disks.

6. The method according to claim 5, wherein determining the indicator factor include: determining the number of disks associated with each subset; Based on the disks related to each subset, determining all disk arrays associated with the disks as the associated disk arrays of the subset; as well as The indicator factor is determined based on the number of disks associated with each subset and the associated disk array.

7. The method of claim 1, wherein the plurality of subsets are generated from a collection of the disk arrays. include: Obtaining the number of cores of the computing resources of the storage system; Determining the number of disk arrays in each subset based on the number of cores; as well as The plurality of subsets are generated from the set of disk arrays, each subset including a number of disk arrays equal to the determined number of cores.

8. An electronic device, the electronic device include: processor; as well as A memory storing computer program instructions, wherein the processor runs the computer program instructions in the memory to control the electronic device to perform actions, wherein the actions include: In response to receiving a message instructing to rebuild a disk array in the storage system, determining a target disk causing the rebuild; Determine a set of disk arrays related to the target disk from the disk arrays; generating a plurality of subsets of disk arrays from the set of disk arrays, each subset comprising a plurality of disk arrays capable of being rebuilt in parallel; determining a target subset from the plurality of subsets based on the number of disks included in each of the plurality of subsets; and Rebuilding multiple disk arrays in the target subset in parallel, Wherein generating the plurality of subsets from the set of disk arrays comprises: Obtaining the number of cores of the computing resources of the storage system; Based on the number of cores, determining the number of disk arrays in each subset; and The plurality of subsets are generated from the set of disk arrays, each subset including a number of disk arrays equal to the determined number of cores.

9. The electronic device according to claim 8, wherein determining the target disk include: In response to receiving the message, acquiring status information of a plurality of disks associated with a plurality of disk arrays in the storage system; as well as According to determining that the status information indicates that one of the plurality of disks is offline, the one disk is determined as the target disk.

10. The electronic device according to claim 8, wherein determining the set of disk arrays include: Obtain identifiers of a plurality of disks associated with a plurality of disk arrays in the storage system; Based on the identifier, determining one or more disk arrays formed using the target disk; as well as The determined one or more disk arrays are determined as a set of the disk arrays.

11. The electronic device according to claim 10, wherein the identifier is obtained include: Acquire metadata related to the plurality of disk arrays; as well as An identifier for each disk associated with the plurality of disk arrays is determined from the metadata.

12. The electronic device according to claim 8, wherein determining the target subset include: determining an indication factor for each of the plurality of subsets based on the number of disks included in each of the plurality of subsets, the indication factor indicating a ratio between the total number of disk arrays associated with each subset and the number of disks associated with each subset; as well as The target subset is determined from the plurality of subsets based on the indicator factor.

13. The electronic device according to claim 12, wherein determining the indicator factor include: determining the number of disks associated with each subset; Based on the disks related to each subset, determining all disk arrays associated with the disks as the associated disk arrays of the subset; as well as The indicator factor is determined based on the number of disks associated with each subset and the associated disk array.

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