# US 2025/0165180 A1 · Recovery method for all-flash storage system, and related apparatus

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

- Number: US 2025/0165180 A1
- Document ID: US20250165180A1
- Status: Published application
- Kind: A1
- Application number: 19/029,708
- Filed: 2025-01-17
- Published: 2025-05-22
- Earliest claimed: 2022-10-10
- Assignees: Ieit Systems Co., Ltd.
- Applicants: Ieit Systems Co., Ltd.
- Inventors: Kai ZHANG; Yazhou GANG; Jian WANG
- Web page: https://patentgrep.com/patent/US20250165180A1

## CPC

- G06F 3/0655: {Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present application relates to the technical field of storage. Disclosed is a method of recovering an all-flash storage system. The method comprises: when metadata of a logical volume has not been modified, marking the state of the metadata of the logical volume as a clean state; after the power to an all-flash storage system is restored, reading the state of the metadata of the logic volume; and if the metadata of the logical volume is in the clean state, restoring the metadata of the logical volume to an accessible state. The method can implement rapid recovery after a power loss failure of an all-flash storage system occurs, thereby shortening the recovery time and improving the availability, reliability and security of the whole storage system.

## Claims

### Claim 1

A method of recovering an all-flash storage system, comprising:
in a case where metadata of a logical volume has not been modified, marking a state of the metadata of the logical volume as a clean state;
after an all-flash storage system is powered back on, reading the state of the metadata of the logic volume; and
in a case where the metadata of the logical volume is in the clean state, restoring the metadata of the logical volume to an accessible state.

### Claim 2 (depends on 1)

The method according to claim 1, wherein in a case where metadata of a logical volume has not been modified, marking a state of the metadata of the logical volume as a clean state comprises:
in a case where, within a preset timing period, there is no user-accessible data dispatched for the logical volume and the metadata of the logical volume has been written from a cache to a data storage device, marking the state of the metadata of the logical volume as the clean state.

### Claim 3 (depends on 2)

The recovery method according to claim 2, wherein in a case where, within a preset timing period, there is no user-accessible data dispatched for the logical volume and the metadata of the logical volume has been written from a cache to a data storage device, marking the state of the metadata of the logical volume as the clean state comprises:
starting an idle task of writing the metadata of the logical volume from the cache to the data storage device, and determining whether the metadata of the logical volume has been written from the cache to the data storage device;
in a case where the metadata of the logical volume has been written from the cache to the data storage device, initiating a request for changing the state of the metadata as the clean state, to cause a control end of a state machine to trigger the state machine to run, and initiate a task of changing the state of the metadata as the clean state; and
executing the task, and marking the state of the metadata of the logical volume as the clean state.

### Claim 4 (depends on 1)

The method according to claim 1, wherein in a case where the metadata of the logical volume is in the clean state, the restoring the metadata of the logical volume to an accessible state comprises:
in a case where the metadata of the logical volume is in the clean state, determining that forward metadata is stored in a hard disk, the forward metadata being configured to indicate a mapping relationship from a logical block address to a physical block address; and
reading the forward metadata from the hard disk to a memory, and restoring the metadata of the logical volume to the accessible state.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the marking a state of the metadata of the logical volume as a clean state comprises:
marking, in the logical volume, the state of the metadata of the logical volume as the clean state.

### Claim 6 (depends on 5)

The method according to claim 5, wherein marking, in the logical volume, the state of the metadata of the logical volume as the clean state comprises:
marking, in a superblock of a header of the logical volume, the state of the metadata of the logical volume as the clean state.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the marking a state of the metadata of the logical volume as a clean state comprises:
marking, at a location other than the logical volume, the state of the metadata of the logical volume as the clean state.

### Claim 8 (depends on 1)

The method according to claim 1, further comprising:
in a case where the metadata of the logical volume has not been modified, writing, into a superblock of a header of the logical volume, a root node address of a tree structure where the metadata is located.

### Claim 9 (depends on 6)

The method according to claim 6, wherein the writing, into a superblock of a header of the logical volume, a root node address of a tree structure where the metadata is located comprises:
writing, into the superblock of the header of the logical volume, a root node address of a B+ tree where the metadata is located.

### Claim 10 (depends on 9)

The method according to claim 9, wherein writing, into the superblock of the header of the logical volume, a root node address of a B+ tree where the metadata is located comprises:
in a case where, within a timing period, there is no user-accessible data dispatched for the logical volume and all modified metadata has been written from the cache to the data storage device, determining that all nodes of the B+ tree are in the clean state, wherein in a case where there is data to be written, a corresponding node on the B+ tree becomes a dirty state; and
marking, in the superblock of the logical volume, the state of the metadata of the logical volume as the clean state, and writing the root node address of the B+ tree.

### Claim 11 (depends on 8)

The method according to claim 8, further comprising:
reading the root node address; and
accessing forward metadata of the logical volume according to the root node address.

### Claim 12 (depends on 1)

The method according to claim 1, further comprising:
in a case where the metadata of the logical volume has been modified, marking the state of the metadata of the logical volume as a dirty state.

### Claim 13 (depends on 12)

The method according to claim 12, wherein the marking the state of the metadata of the logical volume as the dirty state comprises:
marking, in the logical volume, the state of the metadata of the logical volume as the dirty state.

### Claim 14 (depends on 13)

The method according to claim 13, wherein the marking, in the logical volume, the state of the metadata of the logical volume as the dirty state comprises:
marking, in a superblock of a header of the logical volume, the state of the metadata of the logical volume as the dirty state.

### Claim 15 (depends on 12)

The method according to claim 12, wherein in a case where the metadata of the logical volume has been modified, marking the state of the metadata of the logical volume as the dirty state comprises:
in a case where there is written data dispatched for the logical volume, determining whether the state of the metadata of the logical volume is the clean state;
in a case where the state of the metadata of the logical volume is the clean state, initiating a request for changing the state of the metadata as the dirty state, to cause a control end of a state machine to trigger the state machine to run, and initiate a task of changing the state of the metadata as the dirty state; and
executing the task, and marking the state of the metadata of the logical volume as the dirty state.

### Claim 16 (depends on 12)

The method according to claim 12, further comprising:
reconstructing forward metadata being configured to indicate a mapping relationship from a logical block address to a physical block address in a case where the state of the metadata of the logical volume is the dirty state, and restoring the metadata of the logical volume to the accessible state after the forward metadata is reconstructed.

### Claim 17 (depends on 16)

The method according to claim 16, wherein the reconstructing the forward metadata comprises:
reading a logical partition space of the logical volume in a physical disk, and reconstructing the forward metadata using backward metadata.

### Claim 18 (depends on 8)

The method according to claim 8, further comprising:
in a case where the state of the metadata of the logical volume is the clean state, and each time new user-accessible data is written, inserting a new mapping relationship from a logical block address to a physical block address into the tree structure, to cause at least one node of the tree structure to be changed to be modified and cause the tree structure to be in the dirty state.

### Claim 19 (depends on 1)

A device of recovering the all-flash storage system, comprising:
a memory, configured to store a computer program; and
a processor, configured to implement the steps of the method of recovering the all-flash storage system according to claim 1 when executing the computer program.

### Claim 20 (depends on 1)

A non-volatile computer readable storage medium, wherein the non-volatile computer readable storage medium stores a computer program which, when executed by the processor, implements the steps of the method of recovering the all-flash storage system according to claim 1.
