# US 2021/0286533 A1 · Method, device, and computer program product for managing stripe 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/0286533 A1
- Document ID: US20210286533A1
- Status: Published application
- Kind: A1
- Application number: 17/020,016
- Filed: 2020-09-14
- Published: 2021-09-16
- Earliest claimed: 2020-03-13
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: Xiaobo Zhang; Sihang Xia; Shaoqin Gong; Baote Zhuo; Geng Han; Jian Gao
- Web page: https://patentgrep.com/patent/US20210286533A1

## CPC

- G06F 3/0631: {by allocating resources to storage systems}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0689: {Disk arrays, e.g. RAID, JBOD}
- G06F 3/0607: {by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device}
- G06F 3/0632: {by initialisation or re-initialisation of storage systems}
- G06F 3/064: {Management of blocks}
- G06F 3/0644: {Management of space entities, e.g. partitions, extents, pools}
- G06F 3/0647: {Migration mechanisms}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques involve: determining, according to a received request for creating a stripe in a storage system, a type of the stripe; acquiring a first workload distribution corresponding to the determined type, wherein the first workload distribution describes the distribution, among a first number of storage devices, of multiple extents in a set of stripes of this type in the storage system; selecting a set of extents from the first number of storage devices based on the first workload distribution, so that the distribution, among the first number of storage devices, of the selected set of extents and the multiple extents in the set of stripes of this type satisfies a preset distribution condition associated with the type; and using the selected set of extents to create the requested stripe based on a stripe creation rule associated with the type. The stripes can be managed in a more effective manner.

## Claims

### Claim 1

A method for managing stripes in a storage system which includes a first number of storage devices, the method comprising:
determining, according to a received request for creating a stripe in the storage system, a type of the stripe;
acquiring a first workload distribution corresponding to the determined type, wherein the first workload distribution describes the distribution, among the first number of storage devices, of multiple extents in a set of stripes of this type in the storage system;
selecting a set of extents from the first number of storage devices based on the first workload distribution, so that the distribution, among the first number of storage devices, of the selected set of extents and the multiple extents in the set of stripes of this type satisfies a preset distribution condition associated with the type; and
using the selected set of extents to create the requested stripe based on a stripe creation rule associated with the type.

### Claim 2 (depends on 1)

The method according to claim 1, wherein acquiring the first workload distribution corresponding to the determined type includes: according to a determination that the storage system does not include a stripe of this type,
creating the first workload distribution according to the first number, wherein the first workload distribution indicates that there is no stripe of this type in the first number of storage devices.

### Claim 3 (depends on 2)

The method according to claim 2, further comprising:
determining a set of storage devices in which the selected set of extents are located, respectively; and
updating the first workload distribution based on the determined set of storage devices.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the type of the stripe includes user data which indicates that user data from a user of the storage system will be stored in the stripe; and updating the first workload distribution based on the determined set of storage devices includes:
determining corresponding storage capacities of corresponding storage devices in the first number of storage devices; and
updating the first workload distribution based on the corresponding storage capacities and the selected set of storage devices.

### Claim 5 (depends on 4)

The method according to claim 4, wherein updating the first workload distribution based on the corresponding storage capacities and the selected set of storage devices includes:
determining corresponding workloads of the corresponding storage devices based on a relation between the corresponding storage capacities and a maximum storage capacity of the first number of storage devices; and
updating the first workload distribution based on the determined corresponding workloads.

### Claim 6 (depends on 1)

The method according to claim 1, further comprising: according to a determination that the number of the storage devices in the storage system is changed from the first number to a second number,
acquiring a second workload distribution corresponding to the determined type, wherein the second workload distribution describes the distribution, among the second number of storage devices, of multiple extents in a set of stripes of this type in the storage system; and
migrating at least a portion of the extents in the set of stripes based on the second workload distribution.

### Claim 7 (depends on 6)

The method according to claim 6, wherein migrating the at least a portion of the extents in the set of stripes based on the second workload distribution includes: for a given storage device in the first number of storage devices,
determining source extents to be migrated in the first number of storage devices based on storage capacities of the first number of storage devices and storage capacities of the second number of storage devices;
selecting destination extents from the second number of storage devices based on the second workload distribution; and
migrating data in the source extents to the destination extents.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the type of the stripe includes user data, and determining source extents to be migrated in the first number of storage devices further includes:
determining the number of extents to be migrated in the given storage device based on a relation between a given storage capacity of the given storage device and an extreme storage capacity of the first number of storage devices; and
selecting the source extents based on the determined number.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the type of the stripe includes metadata which indicates that metadata of user data will be stored in the stripe, and the preset distribution condition includes a polling condition; and selecting a set of extents from the first number of storage devices based on the first workload distribution includes:
according to the first workload distribution, selecting the set of storage devices from the first number of storage devices in accordance with the polling condition; and
selecting the set of extents respectively from the selected set of storage devices.

### Claim 10 (depends on 1)

The method according to claim 1, further comprising: determining the number of valid storage extents involved in a given storage device in the first number of storage devices based on the first workload distribution.

### Claim 11

An electronic device, comprising:
at least one processor; and
a memory coupled to the at least one processor, wherein the memory has instructions stored therein, the instructions, when executed by the at least one processor, cause the device to perform an action for managing stripes in a storage system that includes a first number of storage devices, and the action includes:
determining, according to a received request for creating a stripe in the storage system, a type of the stripe;
acquiring a first workload distribution corresponding to the determined type, wherein the first workload distribution describes the distribution, among the first number of storage devices, of multiple extents in a set of stripes of this type in the storage system;
selecting a set of extents from the first number of storage devices based on the first workload distribution, so that the distribution, among the first number of storage devices, of the selected set of extents and the multiple extents in the set of stripes of this type satisfies a preset distribution condition associated with the type; and
using the selected set of extents to create the requested stripe based on a stripe creation rule associated with the type.

### Claim 12 (depends on 11)

The electronic device according to claim 11, wherein acquiring the first workload distribution corresponding to the determined type includes: according to a determination that the storage system does not include a stripe of this type,
creating the first workload distribution according to the first number, wherein the first workload distribution indicates that there is no stripe of this type in the first number of storage devices.

### Claim 13 (depends on 12)

The electronic device according to claim 12, wherein the action further includes:
determining a set of storage devices in which the selected set of extents are located, respectively; and
updating the first workload distribution based on the determined set of storage devices.

### Claim 14 (depends on 13)

The electronic device according to claim 13, wherein the type of the stripe includes user data which indicates that user data from a user of the storage system will be stored in the stripe; and updating the first workload distribution based on the determined set of storage devices includes:
determining corresponding storage capacities of corresponding storage devices in the first number of storage devices; and
updating the first workload distribution based on the corresponding storage capacities and the selected set of storage devices.

### Claim 15 (depends on 14)

The electronic device according to claim 14, wherein updating the first workload distribution based on the corresponding storage capacities and the selected set of storage devices includes:
determining corresponding workloads of the corresponding storage devices based on a relation between the corresponding storage capacities and a maximum storage capacity of the first number of storage devices; and
updating the first workload distribution based on the determined corresponding workloads.

### Claim 16 (depends on 11)

The electronic device according to claim 11, wherein the action further includes: according to a determination that the number of the storage devices in the storage system is changed from the first number to a second number,
acquiring a second workload distribution corresponding to the determined type, wherein the second workload distribution describes the distribution, among the second number of storage devices, of multiple extents in a set of stripes of this type in the storage system; and
migrating at least a portion of the extents in the set of stripes based on the second workload distribution.

### Claim 17 (depends on 16)

The electronic device according to claim 16, wherein migrating the at least a portion of the extents in the set of stripes based on the second workload distribution includes: for a given storage device in the first number of storage devices,
determining source extents to be migrated in the first number of storage devices based on storage capacities of the first number of storage devices and storage capacities of the second number of storage devices;
selecting destination extents from the second number of storage devices based on the second workload distribution; and
migrating data in the source extents to the destination extents.

### Claim 18 (depends on 17)

The electronic device according to claim 17, wherein the type of the stripe includes user data, and determining source extents to be migrated in the first number of storage devices further includes:
determining the number of extents to be migrated in the given storage device based on a relation between a given storage capacity of the given storage device and an extreme storage capacity of the first number of storage devices; and
selecting the source extents based on the determined number.

### Claim 19 (depends on 11)

The electronic device according to claim 11, wherein the type of the stripe includes metadata which indicates that metadata of user data will be stored in the stripe, and the preset distribution condition includes a polling condition; and selecting a set of extents from the first number of storage devices based on the first workload distribution includes:
according to the first workload distribution, selecting the set of storage devices from the first number of storage devices in accordance with the polling condition; and
selecting the set of extents respectively from the selected set of storage devices.

### Claim 20

A computer program product having a non-transitory computer readable medium which stores a set of instructions to manage stripes in a storage system which includes a first number of storage devices; the set of instructions, when carried out by computerized circuitry, causing the computerized circuitry to perform a method of: \
determining, according to a received request for creating a stripe in the storage system, a type of the stripe;
acquiring a first workload distribution corresponding to the determined type, wherein the first workload distribution describes the distribution, among the first number of storage devices, of multiple extents in a set of stripes of this type in the storage system;
selecting a set of extents from the first number of storage devices based on the first workload distribution, so that the distribution, among the first number of storage devices, of the selected set of extents and the multiple extents in the set of stripes of this type satisfies a preset distribution condition associated with the type; and
using the selected set of extents to create the requested stripe based on a stripe creation rule associated with the type.
