# US 2024/0394145 A1 · Method, electronic device, and computer program product for data rebuilding

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

- Number: US 2024/0394145 A1
- Document ID: US20240394145A1
- Status: Published application
- Kind: A1
- Application number: 18/335,372
- Filed: 2023-06-15
- Published: 2024-11-28
- Earliest claimed: 2023-05-25
- Assignees: Dell Products L.P.
- Applicants: Dell Products L.P.
- Inventors: Huijuan Fan; Chi Chen; Hailan Dong
- Web page: https://patentgrep.com/patent/US20240394145A1

## CPC

- G06F 11/1092: {Rebuilding, e.g. when physically replacing a failing disk}
- G06F 11/1088: {Reconstruction on already foreseen single or plurality of spare disks}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method includes: determining, in response to a failure of a disk where a RAID extent (RE) in a storage system is located, a first disk set based on a predetermined range and the failed disk, wherein the first disk set comprises a plurality of disks within the predetermined range that are associated with the RE; determining a second disk set for rebuilding data located on the failed disk based on other disks in the first disk set than the plurality of disks that are associated with the RE; determining scores for disks in the second disk set based on disk correlations, RE spans, and weights of the plurality of disks in the second disk set; determining a target disk among the plurality of disks in the second disk set based on the plurality of scores; and rebuilding the data located on the failed disk on the target disk.

## Claims

### Claim 1

A data rebuilding method, comprising:
determining, in response to a failure of a disk where a redundant array of independent disks (RAID) extent of a RAID in a storage system is located, a first disk set based on a predetermined range and the failed disk, wherein the first disk set comprises a plurality of disks within the predetermined range that are associated with the RAID extent;
determining a second disk set for rebuilding data located on the failed disk based on other disks in the first disk set than the plurality of disks that are associated with the RAID extent;
determining a plurality of scores for a plurality of disks in the second disk set based on a plurality of disk correlations, a plurality of RAID extent spans, and a plurality of weights of the plurality of disks in the second disk set;
determining a target disk among the plurality of disks in the second disk set based on the plurality of scores; and
rebuilding the data located on the failed disk on the target disk.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the storage system comprises a plurality of disks, the plurality of disks in the storage system are arranged in a circular manner, and the number of the plurality of disks in the storage system is greater than the number of a plurality of disks for forming the RAID.

### Claim 3 (depends on 2)

The method according to claim 2, wherein determining a first disk set based on a predetermined range and the failed disk comprises:
determining a size of a predetermined window, the size of the predetermined window indicating the number of disks within the predetermined range;
determining respectively a plurality of disks in the predetermined window that correspond to disks of the plurality of disks associated with the RAID extent; and
determining an intersection of the plurality of disks corresponding respectively to the disks of the plurality of disks as the first disk set.

### Claim 4 (depends on 3)

The method according to claim 3, wherein determining respectively a plurality of disks in the predetermined window that correspond to disks of the plurality of disks associated with the RAID extent comprises:
determining, for a first disk of the plurality of disks associated with the RAID extent, two disks at the rightmost end and the leftmost end in a clockwise direction within the predetermined window among the plurality of disks in the storage system;
determining a plurality of disks between the two disks as the plurality of disks within the predetermined window for the first disk;
determining, for a second disk of the plurality of disks associated with the RAID extent, two disks at the rightmost end and the leftmost end in a clockwise direction within the predetermined window among the plurality of disks in the storage system, wherein the second disk is different from the first disk; and
determining a plurality of disks between the two disks as the plurality of disks within the predetermined window for the second disk.

### Claim 5 (depends on 1)

The method according to claim 1, wherein a disk correlation indicates distribution of a plurality of RAID extents that have been created in the storage system between a disk and other disks than the disk.

### Claim 6 (depends on 2)

The method according to claim 2, wherein a RAID extent span is determined based on:
determining two disk serial numbers of two disks at the rightmost end and the leftmost end in a clockwise direction among the plurality of disks in the second disk set and among the plurality of disks where the RAID extent is located; and
determining the RAID extent span based on a difference between the two disk serial numbers.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the plurality of weights comprise a first weight and a second weight, and determining a plurality of scores for a plurality of disks in the second disk set based on a plurality of disk correlations, a plurality of RAID extent spans, and a plurality of weights of the plurality of disks in the second disk set comprises:
determining, for a first disk of the plurality of disks associated with the RAID extent, a first disk correlation and a first RAID extent span corresponding to the first disk;
determining a first product based on the first weight and the first disk correlation;
determining a second product based on the first weight and a reciprocal of the first RAID extent span; and
determining a sum of the first product and the second product as a first score for the first disk.

### Claim 8 (depends on 1)

The method according to claim 1, wherein determining a target disk among the plurality of disks in the second disk set based on the plurality of scores comprises:
selecting a disk with the smallest score among the plurality of scores from the second disk set as the target disk; or
selecting, in response to scores for at least two disks being equally the smallest, one of the at least two disks at random as the target disk.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the failed disk is a first failed disk, the target disk is a first target disk, and the RAID extent further comprises a second failed disk, the method further comprising:
determining, for the second failed disk, a second target disk corresponding to the second failed disk in parallel with determining the first target disk corresponding to the first failed disk; and
rebuilding data located on the second failed disk on the second target disk in parallel with rebuilding the data located on the first failed disk on the first target disk.

### Claim 10

An electronic device, comprising:
a processor; and
a memory coupled to the processor, wherein the memory has instructions stored therein, and the instructions, when executed by the processor, cause the electronic device to perform actions comprising:
determining, in response to a failure of a disk where a redundant array of independent disks (RAID) extent of a RAID in a storage system is located, a first disk set based on a predetermined range and the failed disk, wherein the first disk set comprises a plurality of disks within the predetermined range that are associated with the RAID extent;
determining a second disk set for rebuilding data located on the failed disk based on other disks in the first disk set than the plurality of disks that are associated with the RAID extent;
determining a plurality of scores for a plurality of disks in the second disk set based on a plurality of disk correlations, a plurality of RAID extent spans, and a plurality of weights of the plurality of disks in the second disk set;
determining a target disk among the plurality of disks in the second disk set based on the plurality of scores; and
rebuilding the data located on the failed disk on the target disk.

### Claim 11 (depends on 10)

The electronic device according to claim 10, wherein the storage system comprises a plurality of disks, the plurality of disks in the storage system are arranged in a circular manner, and the number of the plurality of disks in the storage system is greater than the number of a plurality of disks for forming the RAID.

### Claim 12 (depends on 11)

The electronic device according to claim 11, wherein determining a first disk set based on a predetermined range and the failed disk comprises:
determining a size of a predetermined window, the size of the predetermined window indicating the number of disks within the predetermined range;
determining respectively a plurality of disks in the predetermined window that correspond to disks of the plurality of disks associated with the RAID extent; and
determining an intersection of the plurality of disks corresponding respectively to the disks of the plurality of disks as the first disk set.

### Claim 13 (depends on 12)

The electronic device according to claim 12, wherein determining respectively a plurality of disks in the predetermined window that correspond to disks of the plurality of disks associated with the RAID extent comprises:
determining, for a first disk of the plurality of disks associated with the RAID extent, two disks at the rightmost end and the leftmost end in a clockwise direction within the predetermined window among the plurality of disks in the storage system;
determining a plurality of disks between the two disks as the plurality of disks within the predetermined window for the first disk;
determining, for a second disk of the plurality of disks associated with the RAID extent, two disks at the rightmost end and the leftmost end in a clockwise direction within the predetermined window among the plurality of disks in the storage system, wherein the second disk is different from the first disk; and
determining a plurality of disks between the two disks as the plurality of disks within the predetermined window for the second disk.

### Claim 14 (depends on 10)

The electronic device according to claim 10, wherein a disk correlation indicates distribution of a plurality of RAID extents that have been created in the storage system between a disk and other disks than the disk.

### Claim 15 (depends on 11)

The electronic device according to claim 11, wherein a RAID extent span is determined based on:
determining two disk serial numbers of two disks at the rightmost end and the leftmost end in a clockwise direction among the plurality of disks in the second disk set and among the plurality of disks where the RAID extent is located; and
determining the RAID extent span based on a difference between the two disk serial numbers.

### Claim 16 (depends on 10)

The electronic device according to claim 10, wherein the plurality of weights comprise a first weight and a second weight, and determining a plurality of scores for a plurality of disks in the second disk set based on a plurality of disk correlations, a plurality of RAID extent spans, and a plurality of weights of the plurality of disks in the second disk set comprises:
determining, for a first disk of the plurality of disks associated with the RAID extent, a first disk correlation and a first RAID extent span corresponding to the first disk;
determining a first product based on the first weight and the first disk correlation;
determining a second product based on the first weight and a reciprocal of the first RAID extent span; and
determining a sum of the first product and the second product as a first score for the first disk.

### Claim 17 (depends on 10)

The electronic device according to claim 10, wherein determining a target disk among the plurality of disks in the second disk set based on the plurality of scores comprises:
selecting a disk with the smallest score among the plurality of scores from the second disk set as the target disk; or
selecting, in response to scores for at least two disks being equally the smallest, one of the at least two disks at random as the target disk.

### Claim 18 (depends on 10)

The electronic device according to claim 10, wherein the failed disk is a first failed disk, the target disk is a first target disk, and the RAID extent further comprises a second failed disk, the actions further comprising:
determining, for the second failed disk, a second target disk corresponding to the second failed disk in parallel with determining the first target disk corresponding to the first failed disk; and
rebuilding data located on the second failed disk on the second target disk in parallel with rebuilding the data located on the first failed disk on the first target disk.

### Claim 19

A computer program product that is tangibly stored on a non-transitory computer-readable medium and comprises computer-executable instructions, wherein the computer-executable instructions, when executed by a device, cause the device to perform a method, the method comprising:
determining, in response to a failure of a disk where a redundant array of independent disks (RAID) extent of a RAID in a storage system is located, a first disk set based on a predetermined range and the failed disk, wherein the first disk set comprises a plurality of disks within the predetermined range that are associated with the RAID extent;
determining a second disk set for rebuilding data located on the failed disk based on other disks in the first disk set than the plurality of disks that are associated with the RAID extent;
determining a plurality of scores for a plurality of disks in the second disk set based on a plurality of disk correlations, a plurality of RAID extent spans, and a plurality of weights of the plurality of disks in the second disk set;
determining a target disk among the plurality of disks in the second disk set based on the plurality of scores; and
rebuilding the data located on the failed disk on the target disk.

### Claim 20 (depends on 19)

The computer program product according to claim 19, wherein the storage system comprises a plurality of disks, the plurality of disks in the storage system are arranged in a circular manner, and the number of the plurality of disks in the storage system is greater than the number of a plurality of disks for forming the RAID.
