# US 2022/0035538 A1 · Method, electronic device and computer program product for storage management

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

- Number: US 2022/0035538 A1
- Document ID: US20220035538A1
- Status: Published application
- Kind: A1
- Application number: 17/081,179
- Filed: 2020-10-27
- Published: 2022-02-03
- Earliest claimed: 2020-07-31
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: Sicong Yao; Changyong Yu; Jianhua Shao; Xianlong Liu
- Web page: https://patentgrep.com/patent/US20220035538A1

## CPC

- G06F 3/065: {Replication mechanisms}
- G06F 16/17: Details of further file system functions
- G06F 3/061: {Improving I/O performance}
- G06F 3/0683: {Plurality of storage devices}
- G06F 3/0617: {in relation to availability}
- G06F 3/0671: {In-line storage system}
- G06F 11/1435: {using file system or storage system metadata}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques for storage management involve: if it is determined that a source storage slice of a file system is to be recycled, identifying, from the source storage slice including a plurality of storage blocks, an orphan storage block that is inaccessible by a client of the file system; replicating data of the orphan storage block to a target storage block, the target storage block being located in a target storage slice within a predetermined isolation area of the file system; and generating second metadata of the target storage block based at least on first metadata of the orphan storage block, the second metadata including at least an identification of the orphan storage block. Therefore, the management performance can be improved, and the storage costs can be reduced.

## Claims

### Claim 1

A method for storage management, comprising:
if determining that a source storage slice of a file system is to be recycled, identifying, from the source storage slice comprising a plurality of storage blocks, an orphan storage block that is inaccessible by a client of the file system;
replicating data of the orphan storage block to a target storage block, the target storage block being located in a target storage slice within a predetermined isolation area of the file system; and
generating second metadata of the target storage block based at least on first metadata of the orphan storage block, the second metadata comprising at least an identification of the orphan storage block.

### Claim 2 (depends on 1)

The method according to claim 1, wherein generating the second metadata comprises at least one of:
generating an identification of a source storage slice in the second metadata based on an identification of a source storage slice in the first metadata;
generating, based on an offset of an orphan storage block in the first metadata in the source storage slice, an offset of an orphan storage block in the second metadata in the source storage slice; and
generating, based on an addressing information weight in the first metadata, an addressing information weight in the second metadata, the addressing information weight in the first metadata representing a proportion of data in the orphan storage block that is associated with addressing information of the orphan storage block in the orphan storage block.

### Claim 3 (depends on 2)

The method according to claim 2, wherein generating the second metadata further comprises:
setting an allocation status in the second metadata to isolated, to indicate that the target storage block is within the predetermined isolation area.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the orphan storage block is inaccessible due to damage of mapping pointer information in the addressing information, and the method further comprises:
determining the second metadata corresponding to the identification of the source storage slice in inode information in the addressing information and the offset of the orphan storage block in the source storage slice; and
updating the identification of the orphan storage block in the mapping pointer information to the identification of the orphan storage block in the second metadata.

### Claim 5 (depends on 1)

The method according to claim 1, further comprising:
generating, based on the identification of the orphan storage block and the identification of the target storage block, identification mapping information of the target storage block.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the identification mapping information will be lost after the file system is closed, and the method further comprises:
if the file system is restarted, restoring the identification of the orphan storage block in the identification mapping information based on the identification of the orphan storage block in the second metadata.

### Claim 7 (depends on 5)

The method according to claim 5, wherein the orphan storage block is inaccessible due to damage of inode information in the addressing information of the orphan storage block, and the method further comprises:
if a request to access the orphan storage block is received after the inode information is recovered by the file system, determining, based on the identification mapping information, the identification of the target storage block corresponding to the identification of the orphan storage block in the mapping pointer information; and
accessing the target storage block based on the identification of the target storage block.

### Claim 8 (depends on 1)

The method according to claim 1, further comprising:
generating orphan storage block index information for the source storage slice, the orphan storage block index information indicating the orphan storage block in the source storage slice.

### Claim 9 (depends on 8)

The method according to claim 8, further comprising:
after the recycled source storage slice is reallocated, storing, based on the orphan storage block index information, data in a storage block in the reallocated source storage slice other than the orphan storage block.

### Claim 10

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 configured to be executed by the at least one processing unit, wherein the instructions, when executed by the at least one processing unit, cause the device to perform actions comprising:
if determining that a source storage slice of a file system is to be recycled, identifying, from the source storage slice comprising a plurality of storage blocks, an orphan storage block that is inaccessible by a client of the file system;
replicating data of the orphan storage block to a target storage block, the target storage block being located in a target storage slice within a predetermined isolation area of the file system; and
generating second metadata of the target storage block based at least on first metadata of the orphan storage block, the second metadata comprising at least an identification of the orphan storage block.

### Claim 11 (depends on 10)

The device according to claim 10, wherein generating the second metadata comprises at least one of:
generating an identification of a source storage slice in the second metadata based on an identification of a source storage slice in the first metadata;
generating, based on an offset of an orphan storage block in the first metadata in the source storage slice, an offset of an orphan storage block in the second metadata in the source storage slice; and
generating, based on an addressing information weight in the first metadata, an addressing information weight in the second metadata, the addressing information weight in the first metadata representing a proportion of data in the orphan storage block that is associated with addressing information of the orphan storage block in the orphan storage block.

### Claim 12 (depends on 11)

The device according to claim 11, wherein generating the second metadata further comprises:
setting an allocation status in the second metadata to isolated, to indicate that the target storage block is within the predetermined isolation area.

### Claim 13 (depends on 11)

The device according to claim 11, wherein the orphan storage block is inaccessible due to damage of mapping pointer information in the addressing information, and the method further comprises:
determining the second metadata corresponding to the identification of the source storage slice in inode information in the addressing information and the offset of the orphan storage block in the source storage slice; and
updating the identification of the orphan storage block in the mapping pointer information to the identification of the orphan storage block in the second metadata.

### Claim 14 (depends on 10)

The device according to claim 10, wherein the actions further comprise:
generating, based on the identification of the orphan storage block and the identification of the target storage block, identification mapping information of the target storage block.

### Claim 15 (depends on 14)

The device according to claim 14, wherein the identification mapping information will be lost after the file system is closed, and the method further comprises:
if the file system is restarted, restoring the identification of the orphan storage block in the identification mapping information based on the identification of the orphan storage block in the second metadata.

### Claim 16 (depends on 14)

The device according to claim 14, wherein the orphan storage block is inaccessible due to damage of inode information in the addressing information of the orphan storage block, and the method further comprises:
if a request to access the orphan storage block is received after the inode information is recovered by the file system, determining, based on the identification mapping information, the identification of the target storage block corresponding to the identification of the orphan storage block in the mapping pointer information; and
accessing the target storage block based on the identification of the target storage block.

### Claim 17 (depends on 10)

The device according to claim 10, wherein the actions further comprise:
generating orphan storage block index information for the source storage slice, the orphan storage block index information indicating the orphan storage block in the source storage slice.

### Claim 18 (depends on 17)

The device according to claim 17, wherein the actions further comprise:
after the recycled source storage slice is reallocated, storing, based on the orphan storage block index information, data in a storage block in the reallocated source storage slice other than the orphan storage block.

### Claim 19

A computer program product having a non-transitory computer readable medium which stores a set of instructions to perform storage management; the set of instructions, when carried out by computerized circuitry, causing the computerized circuitry to perform a method of:
if determining that a source storage slice of a file system is to be recycled, identifying, from the source storage slice comprising a plurality of storage blocks, an orphan storage block that is inaccessible by a client of the file system;
replicating data of the orphan storage block to a target storage block, the target storage block being located in a target storage slice within a predetermined isolation area of the file system; and
generating second metadata of the target storage block based at least on first metadata of the orphan storage block, the second metadata comprising at least an identification of the orphan storage block.
