# US 2021/0334014 A1 · Method, electronic device and computer program product for managing storage unit

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

- Number: US 2021/0334014 A1
- Document ID: US20210334014A1
- Status: Published application
- Kind: A1
- Application number: 16/993,603
- Filed: 2020-08-14
- Published: 2021-10-28
- Earliest claimed: 2020-04-22
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: Baote Zhuo; Jian Gao; Geng Han; Shaoqin Gong
- Web page: https://patentgrep.com/patent/US20210334014A1

## CPC

- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0629: {Configuration or reconfiguration of storage systems}
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/0683: {Plurality of storage devices}
- G06F 11/1435: {using file system or storage system metadata}
- G06F 11/1469: {Backup restoration techniques}
- G06F 11/2094: {Redundant storage or storage space (G06F11/2056 takes precedence)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A technique for managing storage units involves: if it is determined that a first metadata storage unit for storing metadata of a plurality of storage units fails, allocating a second metadata storage unit for replacing the first metadata storage unit from a storage resource pool, wherein the metadata is read into a memory before the failure occurs, and first metadata of the first metadata storage unit is recorded in configuration information for indicating a valid metadata storage unit; recording second metadata of the second metadata storage unit in the configuration information; storing the metadata in the memory into the second metadata storage unit; and replacing the first metadata storage unit with the second metadata storage unit by validating the second metadata and invalidating the first metadata in the configuration information. Accordingly, such a technique improves reliability of a metadata storage unit.

## Claims

### Claim 1

A method for managing storage units, comprising:
if it is determined that a first metadata storage unit for storing metadata of a plurality of storage units fails, allocating a second metadata storage unit for replacing the first metadata storage unit from a storage resource pool, wherein the metadata is read into a memory before the failure occurs, and first metadata of the first metadata storage unit is recorded in configuration information indicating a valid metadata storage unit;
recording second metadata of the second metadata storage unit in the configuration information;
storing the metadata in the memory into the second metadata storage unit; and
replacing the first metadata storage unit with the second metadata storage unit by validating the second metadata and invalidating the first metadata in the configuration information.

### Claim 2 (depends on 1)

The method of claim 1, wherein the storage resource pool comprises a plurality of disks, each of the disks is divided into a plurality of disk slices, the first metadata storage unit comprises a first set of disk slices from a first set of disks in the plurality of disks, and allocating the second metadata storage unit from the storage resource pool comprises:
selecting, from the plurality of disks, a second set of disks different from the first set of disks; and
allocating a second set of disk slices from the second set of disks to serve as the second metadata storage unit.

### Claim 3 (depends on 2)

The method of claim 2, wherein the first metadata records corresponding positions of the first set of disk slices in the plurality of disks, and recording the second metadata in the configuration information comprises:
generating the second metadata to record corresponding positions of the second set of disk slices in the plurality of disks; and
recording the generated second metadata in the configuration information.

### Claim 4 (depends on 2)

The method of claim 2, wherein the configuration information is stored on at least one of the plurality of disks, and recording the second metadata in the configuration information comprises:
reading the configuration information from the at least one disk into the memory; and
recording the second metadata in the configuration information in the memory.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
storing the configuration information in the memory into the at least one disk in response to the second metadata in the configuration information being validated and the first metadata being invalidated.

### Claim 6 (depends on 1)

The method of claim 1, wherein the configuration information comprises a first entry and a second entry for recording metadata and a first flag indicating that one of the first entry and the second entry is valid, and recording the second metadata in the configuration information comprises:
recording the second metadata in the second entry if the first flag indicates that the first entry is valid; and
recording the second metadata in the first entry if the first flag indicates that the second entry is valid.

### Claim 7 (depends on 2)

The method of claim 2, wherein the configuration information comprises a first entry for recording the first metadata, a second entry for recording the second metadata, and a first flag indicating that the first entry is valid, and validating the second metadata and invalidating the first metadata in the configuration information comprises:
reading the first metadata from the first entry, the first metadata comprising a second flag indicating its validity;
if the second flag indicates that the first metadata is valid,
determining corresponding positions of the first set of disk slices in the plurality of disks based on the first metadata;
releasing, based on the corresponding positions, the first set of disk slices allocated to the first metadata storage unit; and
setting the second flag to indicate that the first metadata is invalid; and
if the second flag indicates that the first metadata is invalid, setting the first flag to indicate that the second entry is valid.

### Claim 8 (depends on 1)

The method of claim 1, wherein the metadata indicates corresponding states of the plurality of storage units, and the method further comprises:
determining a storage unit associated with the first set of disks from the plurality of storage units;
if it is determined that the storage unit fails, modifying the metadata in the memory to indicate that the storage unit fails; and
storing the modified metadata in the second metadata storage unit.

### Claim 9

An electronic device, comprising:
at least one processing unit; and
at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, wherein when executed by the at least one processing unit, the instructions cause the electronic device to perform actions comprising:
if it is determined that a first metadata storage unit for storing metadata of a plurality of storage units fails, allocating a second metadata storage unit for replacing the first metadata storage unit from a storage resource pool, wherein the metadata is read into a memory before the failure occurs, and first metadata of the first metadata storage unit is recorded in configuration information indicating a valid metadata storage unit;
recording second metadata of the second metadata storage unit in the configuration information;
storing the metadata in the memory into the second metadata storage unit; and
replacing the first metadata storage unit with the second metadata storage unit by validating the second metadata and invalidating the first metadata in the configuration information.

### Claim 10 (depends on 9)

The electronic device of claim 9, wherein the storage resource pool comprises a plurality of disks, each of the disks is divided into a plurality of disk slices, the first metadata storage unit comprises a first set of disk slices from a first set of disks in the plurality of disks, and allocating the second metadata storage unit from the storage resource pool comprises:
selecting, from the plurality of disks, a second set of disks different from the first set of disks; and
allocating a second set of disk slices from the second set of disks to serve as the second metadata storage unit.

### Claim 11 (depends on 10)

The electronic device of claim 10, wherein the first metadata records corresponding positions of the first set of disk slices in the plurality of disks, and recording the second metadata in the configuration information comprises:
generating the second metadata to record corresponding positions of the second set of disk slices in the plurality of disks; and
recording the generated second metadata in the configuration information.

### Claim 12 (depends on 10)

The electronic device of claim 10, wherein the configuration information is stored on at least one of the plurality of disks, and recording the second metadata in the configuration information comprises:
reading the configuration information from the at least one disk into the memory; and
recording the second metadata in the configuration information in the memory.

### Claim 13 (depends on 12)

The electronic device of claim 12, wherein the actions further comprise:
storing the configuration information in the memory into the at least one disk in response to the second metadata in the configuration information being validated and the first metadata being invalidated.

### Claim 14 (depends on 9)

The electronic device of claim 9, wherein the configuration information comprises a first entry and a second entry for recording metadata and a first flag indicating that one of the first entry and the second entry is valid, and recording the second metadata in the configuration information comprises:
recording the second metadata in the second entry if the first flag indicates that the first entry is valid; and
recording the second metadata in the first entry if the first flag indicates that the second entry is valid.

### Claim 15 (depends on 10)

The electronic device of claim 10, wherein the configuration information comprises a first entry for recording the first metadata, a second entry for recording the second metadata, and a first flag indicating that the first entry is valid, and validating the second metadata and invalidating the first metadata in the configuration information comprises:
reading the first metadata from the first entry, the first metadata comprising a second flag indicating its validity;
if the second flag indicates that the first metadata is valid,
determining corresponding positions of the first set of disk slices in the plurality of disks based on the first metadata;
releasing, based on the corresponding positions, the first set of disk slices allocated to the first metadata storage unit; and
setting the second flag to indicate that the first metadata is invalid; and
if the second flag indicates that the first metadata is invalid, setting the first flag to indicate that the second entry is valid.

### Claim 16 (depends on 9)

The electronic device of claim 9, wherein the metadata indicates corresponding states of the plurality of storage units, and the actions further comprise:
determining a storage unit associated with the first set of disks from the plurality of storage units;
if it is determined that the storage unit fails, modifying the metadata in the memory to indicate that the storage unit fails; and
storing the modified metadata in the second metadata storage unit.

### Claim 17

A computer program product having a non-transitory computer readable medium which stores a set of instructions to manage storage units; the set of instructions, when carried out by computerized circuitry, causing the computerized circuitry to perform a method of:
if it is determined that a first metadata storage unit for storing metadata of a plurality of storage units fails, allocating a second metadata storage unit for replacing the first metadata storage unit from a storage resource pool, wherein the metadata is read into a memory before the failure occurs, and first metadata of the first metadata storage unit is recorded in configuration information indicating a valid metadata storage unit;
recording second metadata of the second metadata storage unit in the configuration information;
storing the metadata in the memory into the second metadata storage unit; and
replacing the first metadata storage unit with the second metadata storage unit by validating the second metadata and invalidating the first metadata in the configuration information.
