Method, electronic device and computer program product for storage management

By selecting replacement disk slices from other available storage units according to the priority of the storage unit when the solid-state disk fails, the problem of data loss caused by exhaustion of the spare disk is solved and the reliability and performance of the system are improved.

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

Patent Information

Application Number
CN202010172698.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-12
Publication Date
2024-09-13
Estimated Expiration
2040-03-12

AI Technical Summary

Technical Problem

When a solid-state disk fails, after the disk slices of the backup disk are exhausted, it cannot be restored for other failed disks, resulting in data loss in the storage unit. In particular, the failure of the metadata layer will affect the accessibility of the entire system.

Method used

By determining whether the performance level of the target storage unit is lower than the threshold, it is determined whether there are free disk slices in the slice pool. If not, replacement disk slices are selected from other available storage units according to the priority of the storage unit to ensure a higher priority. of storage units are rebuilt to reduce the risk of data loss.

Benefits of technology

It effectively reduces the risk of data loss, improves system performance, and ensures the reliability and accessibility of storage units, especially in the event of a metadata layer failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113391945B
    Figure CN113391945B
Patent Text Reader

Abstract

Embodiments of the present disclosure and methods, devices and computer program products for storage management. The method includes determining whether there are free disk slices in a slice pool that can be used to rebuild a failed disk slice in the target storage unit based on determining that the performance level of the target storage unit is lower than a threshold level; determining the priority of the target storage unit based on determining that the free disk slice does not exist; and selecting a replacement disk slice for rebuilding the failed disk slice from available storage units based at least in part on the priority, wherein the available storage unit has a performance level not lower than the threshold level. In this way, on the one hand, data loss caused by the offline storage unit is prevented, and on the other hand, the performance of the entire storage system can be globally stabilized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] At present, if a solid-state disk in a storage system fails, the disk slices on the spare disk can be used to replace the consumed disk slices in the failed solid-state disk according to the index of the disk slices included in the solid-state disk, and the data of the replaced disk slices can be restored on the spare disk slices. Here, the consumed disk slice indicates that the storage space of the disk slice has been allocated to construct a specific storage unit (Uber).

[0003] Once the available disk slices in the spare disk are exhausted, it is impossible to recover the other disk slices affected by the failed disk. If another solid state disk fails again at this time, the data of the storage unit may be lost.

[0004] As is known, the constructed storage units are divided into different types according to the different types of data stored on the storage units. For example, some storage units store metadata, while other storage units store user data. Once the storage unit storing the metadata goes offline, the storage unit storing the user data cannot be accessed either. Summary of the invention

[0005] Embodiments of the present disclosure and methods, electronic devices, and computer program products for storage management.

[0006] In a first aspect of an embodiment of the present disclosure, a method for storage management is provided. The method includes determining whether there is a free disk slice in a slice pool that can be used to rebuild a failed disk slice in the target storage unit based on determining that the performance level of the target storage unit is lower than a threshold level; determining the priority of the target storage unit based on determining that the free disk slice does not exist; and selecting a replacement disk slice for rebuilding the failed disk slice from available storage units based at least in part on the priority, the available storage units having a performance level not lower than the threshold level.

[0007] In a second aspect of the embodiments of the present disclosure, an electronic device is provided. The device includes a processor; and a memory coupled to the processor, the memory storing instructions to be executed, the instructions causing the electronic device to perform actions when executed by the processor, the actions including determining whether there is a free disk slice in a slice pool that can be used to rebuild a failed disk slice in the target storage unit based on determining that the performance level of the target storage unit is lower than a threshold level; determining the priority of the target storage unit based on determining that there is no free disk slice; and selecting a replacement disk slice for rebuilding the failed disk slice from available storage units based at least in part on the priority, the available storage units having a performance level not lower than the threshold level.

[0008] In a third aspect of the present disclosure, a computer program product is provided, which is tangibly stored on a non-transitory computer-readable medium and includes machine-executable instructions, which when executed cause a machine to perform the steps of the method of the first aspect above.

[0009] 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 disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 A schematic diagram showing an exemplary operating environment in which embodiments of the present disclosure may be implemented;

[0011] Figure 2 A schematic diagram of an RRS in a storage system according to an embodiment of the present disclosure is shown;

[0012] Figure 3 A schematic diagram of an RRS in a storage system according to an embodiment of the present disclosure is shown;

[0013] Figure 4 A schematic diagram of an RRS in a storage system according to an embodiment of the present disclosure is shown;

[0014] Figure 5 A schematic diagram of an RRS in a storage system according to an embodiment of the present disclosure is shown;

[0015] Figure 6 A flowchart showing a method 600 for storage management according to an embodiment of the present disclosure; and

[0016] Figure 7 A block diagram of an example device that may be used to implement embodiments of the present disclosure is shown.

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

[0018] Hereinafter, various exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. It should be noted that these drawings and descriptions relate to exemplary embodiments only. It should be noted that, according to the subsequent description, it is easy to conceive of alternative embodiments of the structures and methods disclosed herein, and these alternative embodiments can be used without departing from the principles claimed in the present disclosure.

[0019] It should be understood that these exemplary embodiments are provided only to enable those skilled in the art to better understand and further implement the present disclosure, but are not intended to limit the scope of the present disclosure in any way.

[0020] The terms "include", "comprising" and similar terms used herein should be understood as open-ended terms, i.e., "including / includes but not limited to". The term "based on" means "based at least in part on". The term "some embodiments" means "at least some embodiments"; the term "another embodiment" means "at least one additional embodiment". The relevant definitions of other terms will be given in the following description.

[0021] Figure 1 FIG. 1 shows a schematic diagram of an exemplary system according to the present disclosure. Figure 1 As shown, the system 100 includes a mapper 102. The mapper 102 is used to map an address in a user request to a physical space storing data so as to facilitate the user to read or write data.

[0022] The mapper 102 may provide a predetermined size of logical storage space to the upper layer application. In some examples, the size of the logical storage space may be 8EB. The above examples are only used to illustrate the size of the logical storage space that can be provided, and are not intended to limit the present disclosure. Any size of logical storage space may be set based on needs.

[0023] In the mapper 102, any suitable structure can be used to maintain the mapping between the logical address and the physical address. In one example, it uses a B+ tree to maintain the mapping between the logical address and the physical address. The mapping includes the mapping of the virtual logical block to the physical block. The virtual logical block includes one or more nodes. The above examples are only for illustration, not for limitation of the present disclosure. The mapping relationship between the logical address and the physical address in the mapper 102 can be set to any suitable structure based on needs.

[0024] In one example, the address of the physical block is stored in the node. In one example, the minimum granularity of the mapping is a 4KB page. The above examples are only for illustration and not for limitation of the present disclosure. Any suitable information associated with the physical block can be stored and any size of mapping granularity can be set based on the need.

[0025] In one example, if the mapper 102 receives a write request, the mapper 102 first gathers enough 4KB pages into a 2MB physical large block (PLB), and then executes the write request in units of physical large blocks. If the mapper 102 receives a read request, the mapper 102 may execute the read request in units of physical addresses less than or equal to 2MB.

[0026] The storage system 100 also includes a disk array 104. In one example, the disk array may be an independent redundant disk array (RAID). In another example, the disk array may be any suitable type of disk array. The disk array has a predetermined width. The width of the disk array refers to the number of disks that make up the stripes in the disk array. In one example, a RAID5 with a disk array width of 4+1 indicates that the number of disks that make up the stripes of the RAID5 is 4+1, 4 disks for storing data and one disk for storing check data.

[0027] The disk array 104 includes a slice pool 110. The slice pool 110 includes one or more disks 108. Each disk 108 is divided into one or more disk slices of a fixed size. Figure 1 The above example is only for illustrating the present disclosure, but not for limiting the present disclosure. In other embodiments, each disk can be configured to include any number of disk slices as required.

[0028] The size of the disk slice can be set to any value as needed. In one example, the size of the disk slice is 4 GB. The above example is only used to illustrate the present disclosure, but not to limit the present disclosure. In other embodiments, the disk slice can be set to any size as needed.

[0029] Each disk in the slice pool 110 is grouped into one or more RAID resilience sets (RAID Resilience Set, RRS) 106-1, 106-2, ..., 106-N (collectively referred to as RAID resilience set 106 in this article), where N is a positive integer greater than 1. Considering the reliability of RAID, it is necessary to limit the number of disks contained in an RRS. Therefore, the number N of RAID resilience sets 106 depends on the number of disks. Typically, the number of disks contained in each RRS is limited to 25. If the number of disks exceeds 25, a new RRS needs to be created.

[0030] The slices in the RAID resilience group 106 can be used to form one or more logical storage units. In one example, the slices in a logical storage unit are all from a RAID resilience group. A logical storage unit is equivalent to a traditional RAID. In one example, the mapping relationship between the logical storage unit and the physical block is stored in the mapper 102. The above examples are only used to illustrate the present disclosure, not to limit the present disclosure.

[0031] Disk array 104 also includes one or more layers. Figure 1 The disk array includes layer 112 for illustration purposes only. The above example is only used to illustrate the present disclosure, but not to limit the present disclosure. Any suitable number of layers can be set based on needs.

[0032] Layer 112 is read and / or called by mapper 102. Layer 112 includes one or more logical storage units. The logical storage unit can be regarded as a RAID stripe group associated with multiple disk slices. Alternatively or additionally, the logical storage units in layer 112 have the same disk array format. In one example, different layers can have different disk array formats. In another example, different layers can have the same disk array format.

[0033] In some examples, the logical storage unit in layer 112 may have a suitable disk array type and / or disk array width. For example, the logical storage unit adopts RAID 5 with a disk array width of 4+1, RAID 5 with a disk array width of 8+1, or RAID 5 with a disk array width of 16+1. The above examples are only for illustration and not for limitation of the present disclosure. The logical storage unit in the layer may adopt any suitable disk array type and disk array width based on needs.

[0034] As described above, once a disk 108 in the slice pool 110 fails, the spare disk slices in the slice pool 110 can be utilized (one or more disk slices in the slice pool 110 can be reserved as spare disk slices), and the consumed disk slices in the failed disk 108 can be replaced according to the index of the disk slice included in the failed disk 108, and the data of the replaced disk slice can be restored on the spare disk slice.

[0035] However, once the available spare disk slices are exhausted, it is impossible to recover the other disk slices affected by the failed disk 108. If another disk in the slice pool 110 fails again at this time, the data of the storage unit may be lost.

[0036] Therefore, the embodiments of the present disclosure provide a solution for storage management. The solution can determine the order of rebuilding storage units according to the priority of storage units constructed by disk slices in a failed disk, so as to ensure that storage units with higher priority can be rebuilt first. In this way, the risk of data loss can be reduced, thereby improving system performance.

[0037] The disk slices in the disk are consumed to construct storage units (Uber). The constructed storage units are divided into different types according to the different types of data stored on the storage units. For example, a part of the storage units can be regarded as storage units for storing metadata, and such storage units can constitute the metadata layer. Another part of the storage units can be regarded as storage units for storing user data, and such storage units can constitute the user data layer.

[0038] Compared with the user data layer, the metadata layer has a more significant impact on the performance of the storage unit, because once the metadata layer goes offline, even if the storage unit of the user data layer is intact, the user data will not be accessible.

[0039] Figure 2 FIG. 2 shows a schematic diagram of an RRS 200 in a storage system according to an embodiment of the present disclosure. Figure 2 Indicates a situation where a storage unit belonging to the metadata tier has experienced performance degradation.

[0040] like Figure 2 As shown, RRS 200 may include a plurality of disks 1100-1109. Each disk may include a plurality of disk slices. For example, disk 1100 includes disk slices 1200-120 12 In the slice pool composed of disks 1100-1109, disk slice portion 210 has been used, while disk slice portion 220 is allocated to a spare disk so as to be used to replace the offline disk slice.

[0041] exist Figure 2 In the illustrated RRS 200, disk slices 1208, 1218, 1228, 1238, and 1248 are allocated for constructing a first storage unit, which is used, for example, to store user data. 10 and 127 10 Allocated for constructing a second storage unit, the storage unit being used, for example, for storing metadata.

[0042] If the disk 1105 is offline, the disk slice 125 in the disk 1105 is used. 10 The second storage device will be affected and performance will be degraded. When trying to use the disk slice part 220 to replace the disk slice 125 10When it is found that there is no idle spare disk slice in the disk slice part 220 to replace the disk slice 125 10 If another disk 1107 goes offline again at this time, the second storage device will switch to an offline state. Since the data stored in the second storage device is metadata, the first storage device and other storage devices in the user data layer cannot be accessed.

[0043] In addition, the storage units in the user data layer store different construction types. For example, as described above, RAID5 indicates that the number of disks constituting the stripe of RAID5 is 4+1, 4 disks for storing data, and one disk for storing verification data, so some storage units may be storage units of the RAID5 type. However, storage units of the RAID6 type may also be stored, that is, the number of disks constituting the stripe of RAID6 is 4+2, 4 disks for storing data, and 2 disks for storing verification data.

[0044] For RAID6 type storage units, there is such a situation. If there is a disk that goes offline and the disk makes the storage location of a storage unit inaccessible, that is, the performance of the storage unit is degraded, then the storage unit still has a disk slice for redundant protection. However, if another disk associated with the storage unit goes offline, the storage unit has no disk that can be used for redundant protection. If a third disk associated with the storage unit goes offline, the data of the storage unit will be lost.

[0045] Therefore, in the user data layer, there may be intact storage units, storage units with degraded performance, and storage units that are completely offline (data lost), which will affect the performance of the entire system. Therefore, it is necessary to avoid the situation where the storage unit is completely offline as much as possible.

[0046] Figure 3 FIG. 3 is a schematic diagram of an RRS 300 in a storage system according to an embodiment of the present disclosure. Figure 3 Indicates that the storage unit belonging to the user data tier has experienced performance degradation.

[0047] like Figure 3 As shown, RRS 300 may include multiple disks 1100-1109. Each disk may include multiple disk slices. For example, disk 1100 includes disk slices 1200-120 12 In the slice pool composed of disks 1100-1109, disk slice portion 210 has been used, while disk slice portion 220 is allocated to a spare disk so as to be used to replace the offline disk slice.

[0048] exist Figure 3In the illustrated RRS 300, disk slices 1210, 1220, 1240, 1250, 1270, and 1280 are allocated to construct a first storage unit, which is used to store user data, for example. This storage unit is a RAID6 type storage unit. Disk slices 1231, 1241, 1251, 1261, 1271, and 1281 are allocated to construct a second storage unit, which is also used to store user data and is a RAID6 type storage unit, for example. Disk slices 1208, 1218, 1238, 1248, 1268, and 1278 are allocated to construct a third storage unit, which is also used to store user data and is a RAID6 type storage unit, for example.

[0049] When disk 1102 goes offline, the first storage unit first experiences performance degradation, leaving one disk slice for redundant protection. Then, when disk 1105 goes offline, the second storage unit also experiences performance degradation, leaving one disk slice for redundant protection. When there are no idle spare disk slices in the disk slice part 220 of RRS 300, if disk 1108 goes offline, the first storage unit becomes offline. It can be seen that the third storage unit still maintains the best state at this time.

[0050] By combining Figure 2 and Figure 3 For the degradation or offline phenomenon of storage units caused by disk offline, the disk slices of the storage units storing user data can be used to replace the affected storage units storing metadata, so that the storage units storing metadata should be kept intact or at least kept online as much as possible. If the storage units storing user data are degraded or offline, the storage units in the best state can be considered to replace the storage units that are about to go offline. This method can also be called "preemptive sparing".

[0051] Figure 4 A schematic diagram of an RRS 400 in a storage system according to an embodiment of the present disclosure is shown.

[0052] like Figure 4 As shown, RRS 400 may include a plurality of disks 1100-1109. Each disk may include a plurality of disk slices. For example, disk 1100 includes disk slices 1200-120 12 In the slice pool composed of disks 1100-1109, disk slice portion 210 has been used, while disk slice portion 220 is allocated to a spare disk so as to be used to replace the offline disk slice.

[0053] exist Figure 4In the illustrated RRS 400, disk slices 1208, 1218, 1228, 1238, and 1248 are allocated for constructing a first storage unit, which is used, for example, to store user data. 10 and 126 10 Allocated for constructing a second storage unit, the storage unit being used, for example, for storing metadata.

[0054] Priorities may be set in advance for storage units, for example, storage units in the metadata layer (storing metadata) have a higher priority, while storage units in the user data layer (storing user data) have a lower priority.

[0055] If disk 1105 goes offline, disk slices 1250-125 on disk 1105 will be 12 Once disk 1105 goes offline, the storage unit whose performance has been degraded due to the offline of disk 1105 can be determined first. 10 Used to construct a second storage unit, thereby degrading the second storage unit.

[0056] It may be determined in the disk slice section 220 whether there is a disk slice 125 that can be used to rebuild the determined second storage unit. 10 If it is determined that there is no free disk slice, the priority of the second storage unit where the degradation occurs is determined.

[0057] It is known that the second storage unit stores metadata, so it can be determined that the storage unit has a higher priority. Therefore, a disk slice can be selected from other available storage units that have been built and have good performance to replace the disk slice 125 in the second storage unit. 10 .

[0058] For example, the first storage unit is determined to be an available storage unit with good performance. The priority of the first storage unit needs to be determined. If the priority of the first storage unit is the same as the priority of the second storage unit, the disk slice in the first storage unit cannot be used to replace the disk slice of the second storage unit.

[0059] exist Figure 4 In the embodiment of FIG. 1 , the first storage unit stores user data, so the first storage unit has a priority lower than that of the second storage unit, and thus the disk slice of the first storage unit can be “preempted” to replace the disk slice 125 in the second storage unit. 10 .

[0060] In addition, it is necessary to determine the disk slice 125 in the second storage unit except the one to be replaced. 10The disk to which the other disk slices except 125 belong, because the disk slices that construct the same storage unit cannot belong to the same disk. 10 In addition, the disk slices for constructing the second storage unit also include disk slices 126 10 , which belongs to disk 1106. It can be seen that disk slices 1208, 1218, 1228, 1238, and 1248 that constitute the first storage unit do not belong to disk 1106. Therefore, any disk slice can be selected from disk slices 1208, 1218, 1228, 1238, and 1248 of the first storage unit to replace disk slice 125 in the second storage unit. 10 .

[0061] For example, replace disk slice 125 with disk slice 1208 of the first storage unit. 10 After replacing the disk slices, disk slices 1218, 1228, 1238, and 1248 are allocated for constructing a first storage unit, which is used to store user data, for example. 10 Allocated for constructing the second storage unit, disk slice 126 can be used 10 to restore disk slice 125 on disk slice 1208 10 to rebuild the second storage unit.

[0062] In this way, the performance of the second storage unit for storing metadata is guaranteed to be intact, while the first storage unit for storing user data will only experience a degradation in performance without being completely offline.

[0063] Figure 5 A schematic diagram of an RRS 500 in a storage system according to an embodiment of the present disclosure is shown.

[0064] like Figure 5 As shown, RRS 500 may include multiple disks 1100-1109. Each disk may include multiple disk slices. For example, disk 1100 includes disk slices 1200-120 12 In the slice pool composed of disks 1100-1109, disk slice portion 210 has been used, while disk slice portion 220 is allocated to a spare disk so as to be used to replace the offline disk slice.

[0065] exist Figure 5 In the illustrated RRS 500, disk slices 1208, 1218, 1228, 1238, 1248, and 1268 are allocated for constructing a first storage unit, and disk slice 124 10 , 125 10 , 126 10 , 127 10 , 12810 and 129 10 The first storage unit and the second storage unit are allocated to construct the second storage unit, and both the first storage unit and the second storage unit are used to store user data. It can be seen that the first storage unit and the second storage unit are both of RAID6 type, that is, there are two redundantly protected disk slices.

[0066] For example, if disk 1105 and disk 1106 are offline, the disk slices on disk 1105 and disk 1106 are both in an unavailable state. In this case, the storage unit whose performance has been degraded due to the offline of disk 1105 and disk 1106 can be first determined. 10 And, the plate slice 126 in the plate 1106 10 Used to construct the second storage unit, so the second storage unit is degraded. If there is another disk offline later and the disk slice on this disk is used to construct the second storage unit, the second storage unit will not be accessible.

[0067] It should be understood that for a RAID 6 type storage unit, the storage unit may be considered to have a performance level lower than a threshold level only when two disk slices fail, thereby initiating a process of replacing and rebuilding the disk slices.

[0068] In order to at least partially restore the performance of the second storage unit, it may be determined in the disk slice section 220 whether there is a disk slice 125 that can be used to rebuild the determined second storage unit. 10 Plate slices 126 10 The method further comprises the step of determining a free spare disk slice of at least one disk slice in the storage unit. If it is determined that there is no free disk slice, the priority of the second storage unit that has been degraded is determined. It is known that the second storage unit stores user data, so it can be determined that the storage unit has a lower priority. In other words, the second storage unit cannot preempt the disk slice on the storage unit with a higher priority.

[0069] Based on the priority of the second storage unit, a candidate storage unit that can be used as a "preempted object" can be determined. The priority of the candidate storage unit should not be higher than that of the second storage unit, and the performance of the candidate storage unit should exceed the threshold level, for example, the candidate storage unit is a storage unit with good performance. Therefore, the first storage unit can be regarded as a candidate storage unit, that is, the second storage unit can "preempt" the disk slice of the first storage unit to replace the disk slice in the second storage unit 125 10 Plate slices 126 10 at least one disc slice in the.

[0070] It is necessary to determine the disk slice 125 in the second storage unit except the one that needs to be replaced 10The disk to which the other disk slices except 125 belong, because the disk slices that construct the same storage unit cannot belong to the same disk. 10 and 126 10 In addition, the disk slices for constructing the second storage unit also include disk slices 124 10 , 127 10 , 128 10 and 129 10 , which belongs to disk 1104 and 1107-1109. It can be seen that disk slice 1248 that constructs the first storage unit belongs to disk 1104, so disk slice 1248 cannot be used. Disk slices 1208, 1218, 1228, 1238, and 1268 that construct the first storage unit do not belong to disk 1104 and 1107-1109, so any disk slice can be selected from disk slices 1208, 1218, 1228, 1238, and 1268 of the first storage unit to replace disk slice 125 in the second storage unit. 10 or 126 10 .

[0071] For example, replace disk slice 125 with disk slice 1208 of the first storage unit. 10 After replacing the disk slices, disk slices 1218, 1228, 1238, 1248, and 1268 are allocated for constructing the first storage unit, and disk slices 1208, 124 10 , 127 10 , 128 10 and 129 10 is allocated for constructing a second storage unit, which can utilize disk slice 124 10 , 127 10 , 128 10 and 129 10 to restore disk slice 125 on disk slice 1208 10 to rebuild the second storage unit.

[0072] In this way, it is ensured that the second storage unit will not go offline due to further failures. At the same time, the first storage unit will only experience a performance degradation without being completely offline.

[0073] The above method for managing storage can, on the one hand, prevent data loss due to offline storage units, and on the other hand, can globally stabilize the performance of the entire storage system.

[0074] Figure 6 600 is a flowchart of a method 600 for storage management according to some embodiments of the present disclosure. The method 600 may be implemented in Figure 1The method 600 may be implemented by, for example, Figure 1 Any component of the operating environment 100 shown in FIG. Figure 1 Other computing devices in the operating environment 100 are used for execution.

[0075] At block 610, a performance level of the target storage unit is determined. If, at block 620, the performance level of the target storage unit is determined to be below a threshold level, then at block 630, a determination is made as to whether there are free disk slices in the slice pool that can be used to rebuild a failed disk slice in the target storage unit.

[0076] If it is determined that there are no free disk slices in the slice pool that can be used to rebuild the failed disk slice in the target storage unit, then in block 640, the priority of the target storage unit is determined.

[0077] In some embodiments, the type of data stored in the target storage unit may be determined and the priority of the target storage unit may be determined based on the type.

[0078] At block 650, a replacement disk slice for rebuilding the failed disk slice is selected from available storage units based in part on the priority of the target storage unit. The available storage units have a performance level not less than the threshold level.

[0079] In some embodiments, a candidate storage unit may be determined from the available storage units based on determining that the priority of the target storage unit exceeds a threshold priority. The priority of the candidate storage unit does not exceed the threshold priority. A disk associated with a disk slice other than the failed disk slice in the target storage unit may be determined and a disk slice not belonging to the disk may be selected from the candidate storage units as the replacement disk slice.

[0080] In some embodiments, according to determining that the priority of the target storage unit does not exceed a threshold priority, a candidate storage unit may be determined from the available storage units based on the construction type of the target storage unit and the number of failed disk slices. The priority of the candidate storage unit does not exceed the threshold priority. A disk associated with a disk slice other than the failed disk slice in the target storage unit may be determined and a disk slice not belonging to the disk may be selected from the candidate storage units as the replacement disk slice.

[0081] In some embodiments, it can be determined whether the number of failed disk slices exceeds a threshold number based on the match between the build type and the target type. Based on the determination that the number of failed disk slices exceeds the threshold number, the candidate storage unit can be determined from the available storage units, the candidate storage unit having the build type.

[0082] In some embodiments, data of disk slices other than the failed disk slice in the storage unit may be acquired; and the failed disk slice may be rebuilt by restoring the data of the failed disk slice on the replacement disk slice using the data.

[0083] Figure 7 Schematic block diagram of an example device 700 that can be used to implement embodiments of the present disclosure is shown. Figure 1 Any of the mapper 102, disk array 104, slice pool 110 and layer 112 shown can be implemented by device 700. As shown, 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 loaded from a storage unit 708 into a random access memory (RAM) 703. In RAM 703, various programs and data required for the operation of unit 700 can also be stored. CPU 701, ROM 702 and RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to bus 704.

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

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

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

[0087] 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 unit, a magnetic storage unit, an optical storage unit, an electromagnetic storage unit, a semiconductor storage unit, 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.

[0088] 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 unit 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.

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

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

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

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

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

[0094] 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 storage management, comprising: Determining whether there is a free disk slice in the slice pool that can be used to rebuild the failed disk slice in the target storage unit based on determining that the performance level of the target storage unit is lower than a threshold level; Determining the priority of the target storage unit according to determining that the free disk slice does not exist; as well as Based at least in part on the priority, a replacement disk slice is selected for rebuilding the failed disk slice from available storage units having a performance level not less than the threshold level.

2. The method according to claim 1, wherein determining the priority of the target storage unit comprises: determining the type of data stored in the target storage unit; as well as The target storage units are prioritized based on the types.

3. The method of claim 1 , wherein selecting the replacement disk slice comprises: Determining a candidate storage unit from the available storage units based on determining that the priority of the target storage unit exceeds a threshold priority, wherein the priority of the candidate storage unit does not exceed the threshold priority; determining a disk associated with a disk slice in the target storage unit other than the failed disk slice; as well as A disk slice that does not belong to the disk is selected from the candidate storage unit as the replacement disk slice.

4. The method of claim 1 , wherein selecting the replacement disk slice comprises: According to determining that the priority of the target storage unit does not exceed a threshold priority, determining a candidate storage unit from the available storage units based on a construction type of the target storage unit and the number of failed disk slices, wherein the priority of the candidate storage unit does not exceed a threshold priority; determining a disk associated with a disk slice in the target storage unit other than the failed disk slice; as well as A disk slice that does not belong to the disk is selected from the candidate storage unit as the replacement disk slice.

5. The method according to claim 4, wherein determining the candidate storage unit comprises: According to the matching of the build type and the target type, determining whether the number of failed disk slices exceeds a threshold number; as well as According to determining that the number of failed disk slices exceeds a threshold number, the candidate storage unit is determined from the available storage units, and the candidate storage unit has the construction type.

6. The method according to claim 1, further comprising: Acquire data of disk slices other than the failed disk slice in the storage unit; as well as The failed disk slice is rebuilt by restoring the data of the failed disk slice on the replacement disk slice using the data.

7. An electronic device comprising: processor; as well as A memory coupled to the processor, the memory storing instructions to be executed, the instructions causing the electronic device to perform actions when executed by the processor, the actions comprising: Determining whether there is a free disk slice in the slice pool that can be used to rebuild the failed disk slice in the target storage unit based on determining that the performance level of the target storage unit is lower than a threshold level; Determining the priority of the target storage unit according to determining that the free disk slice does not exist; and Based at least in part on the priority, a replacement disk slice is selected for rebuilding the failed disk slice from available storage units having a performance level not less than the threshold level.

8. The device according to claim 7, wherein the priority of the target storage unit is determined by: determining the type of data stored in the target storage unit; and The target storage units are prioritized based on the types.

9. The apparatus of claim 7, wherein the replacement disc slice is selected by: Determining a candidate storage unit from the available storage units based on determining that the priority of the target storage unit exceeds a threshold priority, wherein the priority of the candidate storage unit does not exceed the threshold priority; determining a disk associated with a disk slice in the target storage unit other than the failed disk slice; as well as A disk slice that does not belong to the disk is selected from the candidate storage unit as the replacement disk slice.

10. The apparatus of claim 7, wherein the replacement disc slice is selected by: According to determining that the priority of the target storage unit does not exceed a threshold priority, determining a candidate storage unit from the available storage units based on a construction type of the target storage unit and the number of failed disk slices, wherein the priority of the candidate storage unit does not exceed the threshold priority; determining a disk associated with a disk slice in the target storage unit other than the failed disk slice; as well as A disk slice that does not belong to the disk is selected from the candidate storage unit as the replacement disk slice.

11. The device according to claim 10, wherein the candidate storage unit is determined by: According to the matching of the construction type and the target type, determining whether the number of failed disk slices exceeds a threshold number; and According to determining that the number of failed disk slices exceeds a threshold number, the candidate storage unit is determined from the available storage units, and the candidate storage unit has the construction type.

12. The device according to claim 7, wherein the actions further comprise: Acquire data of disk slices other than the failed disk slice in the storage unit; as well as The failed disk slice is rebuilt by restoring the data of the failed disk slice on the replacement disk slice using the data.

13. 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 6.