# US 2021/0173742 A1 · Method, device, and program product for selecting rebuild destination in storage system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0173742 A1
- Document ID: US20210173742A1
- Status: Published application
- Kind: A1
- Application number: 16/936,710
- Filed: 2020-07-23
- Published: 2021-06-10
- Earliest claimed: 2019-12-06
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: Baote Zhuo; Jian Gao; Lifeng Yang; Xinlei Xu; Jibing Dong
- Web page: https://patentgrep.com/patent/US20210173742A1

## CPC

- G06F 11/1092: {Rebuilding, e.g. when physically replacing a failing disk}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0644: {Management of space entities, e.g. partitions, extents, pools}
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/0689: {Disk arrays, e.g. RAID, JBOD}
- G06F 11/076: {by exceeding a count or rate limit, e.g. word- or bit count limit}
- G06F 3/065: {Replication mechanisms}
- G06F 3/0665: {at area level, e.g. provisioning of virtual or logical volumes}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In techniques for selecting a rebuild destination in a storage system, a failed stripe group associated with a failed extent group in a failed storage device among storage devices is detected. A group of normal storage devices other than the failed storage device is determined. Regarding a normal storage device in the group of normal storage devices, a first count for the normal storage device is obtained, the first count representing a number of failed stripes which are allowed to be rebuilt to the normal storage device in the failed stripe group. Based on the first count, a destination storage device is selected from the group of normal storage devices for rebuilding a failed stripe in the failed stripe group. During rebuild, a destination for rebuilding the failed stripe may be effectively selected, and extents in reserved space in the storage system may be more fully utilized.

## Claims

### Claim 1

A method for selecting a rebuild destination in a storage system, the storage system comprising a plurality of storage devices, the method comprising:
detecting a group of failed stripes associated with a group of failed extents in a failed storage device among the plurality of storage devices;
determining a group of normal storage devices other than the failed storage device among the plurality of storage devices;
regarding a normal storage device in the group of normal storage devices, obtaining a first count for the normal storage device, the first count representing a number of failed stripes which are allowed to be rebuilt to the normal storage device in the group of failed stripes; and
selecting, based on the first count, a destination storage device from the group of normal storage devices for rebuilding a failed stripe in the group of failed stripes.

### Claim 2 (depends on 1)

The method of claim 1, wherein obtaining the first count for the normal storage device comprises: regarding a failed stripe in the group of failed stripes,
determining whether the failed stripe involves the normal storage device or not; and
updating the first count in accordance with determining that the failed stripe does not involve the normal storage device.

### Claim 3 (depends on 2)

The method of claim 2, wherein determining whether the failed stripe involves the normal storage device or not comprises:
determining a group of storage devices where a group of extents in the failed stripe reside, respectively; and
in accordance with determining that the normal storage device is different from any storage device in the group of storage devices, determining that the failed stripe does not involve the normal storage device.

### Claim 4 (depends on 1)

The method of claim 1, wherein selecting the destination storage device from the group of normal storage devices comprises:
selecting a normal storage device with a smaller first count from the group of normal storage devices as the destination storage device.

### Claim 5 (depends on 1)

The method of claim 1, wherein a storage device among the plurality of storage devices comprises a group of reserved extents, and selecting the destination storage device from the group of normal storage devices comprises:
determining a second count of free reserved extents in the group of reserved extents in the normal storage device; and
selecting the destination storage device according to the second count.

### Claim 6 (depends on 5)

The method of claim 5, wherein selecting the destination storage device from the group of normal storage devices comprises:
determining a third count of reserved extents which have been selected for a rebuild in the group of reserved extents in the normal storage device; and
selecting the destination storage device based on the third count.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
determining a score of the normal storage device based on the first count, the second count and the third count, the score being directly proportional to the first count and the third count and being inversely proportional to the second count; and
selecting the destination storage device from the group of normal storage devices based on the score of the normal storage device.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
selecting a free reserved extent from a group of reserved extents in the destination storage device; and
updating the first counts for the group of normal storage devices, a second count of free reserved extents in a group of reserved extents in the destination storage device, and a third count of reserved extents which have been selected for a rebuild in the group of reserved extents in the destination storage device.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
selecting a destination storage device from the group of normal storage devices based on the updated first count, second count and third count for rebuilding a further failed stripe in the group of failed stripes.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
rebuilding data in the failed extent based on a group of extents other than the failed extent in the failed stripe; and
storing the rebuilt data to a free reserved extent in a group of reserved extents in the selected normal storage device.

### Claim 11

An electronic device, comprising:
at least one processor; and
a memory coupled to the at least one processor, the memory having instructions stored thereon, the instructions, when executed by the at least one processor, causing the electronic device to perform acts for selecting a rebuild destination in a storage system comprising a plurality of storage devices, the acts including:
detecting a group of failed stripes associated with a group of failed extents in a failed storage device among the plurality of storage devices;
determining a group of normal storage devices other than the failed storage device among the plurality of storage devices;
regarding a normal storage device in the group of normal storage devices, obtaining a first count for the normal storage device, the first count representing a number of failed stripes which are allowed to be rebuilt to the normal storage device in the group of failed stripes; and
selecting, based on the first count, a destination storage device from the group of normal storage devices for rebuilding a failed stripe in the group of failed stripes.

### Claim 12 (depends on 11)

The electronic device of claim 11, wherein obtaining the first count for the normal storage device comprises: regarding a failed stripe in the group of failed stripes,
determining whether the failed stripe involves the normal storage device or not; and
updating the first count in accordance with determining that the failed stripe does not involve the normal storage device.

### Claim 13 (depends on 12)

The electronic device of claim 12, wherein determining whether the failed stripe involves the normal storage device or not comprises:
determining a group of storage devices where a group of extents in the failed stripe reside, respectively; and
in accordance with determining that the normal storage device is different from any storage device in the group of storage devices, determining that the failed stripe does not involve the normal storage device.

### Claim 14 (depends on 11)

The electronic device of claim 11, wherein selecting the destination storage device from the group of normal storage devices comprises:
selecting a normal storage device with a smaller first count from the group of normal storage devices as the destination storage device.

### Claim 15 (depends on 11)

The electronic device of claim 11, wherein a storage device among the plurality of storage devices comprises a group of reserved extents, and selecting the destination storage device from the group of normal storage devices comprises:
determining a second count of free reserved extents in the group of reserved extents in the normal storage device; and
selecting the destination storage device according to the second count.

### Claim 16 (depends on 15)

The electronic device of claim 15, wherein selecting the destination storage device from the group of normal storage devices comprises:
determining a third count of reserved extents which have been selected for a rebuild in the group of reserved extents in the normal storage device; and
selecting the destination storage device based on the third count.

### Claim 17 (depends on 16)

The electronic device of claim 16, the acts further comprising:
determining a score of the normal storage device based on the first count, the second count and the third count, the score being directly proportional to the first count and the third count and being inversely proportional to the second count; and
selecting the destination storage device from the group of normal storage devices based on the score of the normal storage device.

### Claim 18 (depends on 11)

The electronic device of claim 11, the acts further comprising:
selecting a free reserved extent from a group of reserved extents in the destination storage device; and
updating the first counts for the group of normal storage devices, a second count of free reserved extents in a group of reserved extents in the destination storage device, and a third count of reserved extents which have been selected for a rebuild in the group of reserved extents in the destination storage device.

### Claim 19 (depends on 18)

The electronic device of claim 18, the acts further comprising:
selecting a destination storage device from the group of normal storage devices based on the updated first count, second count and third count for rebuilding a further failed stripe in the group of failed stripes.

### Claim 20

A computer program product having a non-transitory computer readable medium which stores a set of instructions to select a rebuild destination in a storage system, the storage system comprising a plurality of storage devices; the set of instructions, when carried out by computerized circuitry, causing the computerized circuitry to perform a method of:
detecting a group of failed stripes associated with a group of failed extents in a failed storage device among the plurality of storage devices;
determining a group of normal storage devices other than the failed storage device among the plurality of storage devices;
regarding a normal storage device in the group of normal storage devices, obtaining a first count for the normal storage device, the first count representing a number of failed stripes which are allowed to be rebuilt to the normal storage device in the group of failed stripes; and
selecting, based on the first count, a destination storage device from the group of normal storage devices for rebuilding a failed stripe in the group of failed stripes.
