# US 2021/0286720 A1 · Managing snapshots and clones in a scale out 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/0286720 A1
- Document ID: US20210286720A1
- Status: Published application
- Kind: A1
- Application number: 17/198,556
- Filed: 2021-03-11
- Published: 2021-09-16
- Earliest claimed: 2020-03-11
- Assignees: Orca Data Technology (Xi'an) Co., Ltd
- Applicants: Orca Data Technology (Xi'an) Co., Ltd
- Inventors: ARTHUR JAMES BEAVERSON; BANG CHANG
- Web page: https://patentgrep.com/patent/US20210286720A1

## CPC

- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/065: {Replication mechanisms}
- G06F 3/0665: {at area level, e.g. provisioning of virtual or logical volumes}
- G06F 12/0261: {using reference counting}
- G06F 12/0804: with main memory updating (G06F12/0806 takes precedence)
- G06F 2212/466: Metadata, control data
- G06F 2212/7201: Logical to physical mapping or translation of blocks or pages
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, and media for supporting snapshots and clones in a scale out storage system are disclosed. The system maintains first metadata that maps logical addresses of logical data blocks to corresponding content IDs, a distributed hash table that maps content IDs to corresponding node IDs, and second metadata that maps content IDs to corresponding physical addresses of physical data blocks. Clones are created by mapping each logical block address of each clone to the content ID associated with its corresponding logical block address of the original and incrementing the reference counts in the second metadata. The task of incrementing reference counts in the second metadata can be distributed across multiple storage nodes. A logical device can be designated as a golden image. Clones of a golden image are created by decrementing its clone credit without incrementing the reference counts in the second metadata.

## Claims

### Claim 1

A method, comprising:
storing metadata mapping logical addresses associated with logical data blocks of one or more logical devices to physical addresses of physical data blocks stored in a plurality of data storage devices of a storage system, the metadata comprising:
first metadata mapping the logical addresses associated with the logical data blocks of the one or more logical devices to a plurality of content identifiers, wherein a first logical data block of a first logical device of the logical devices is associated with a first logical address of the logical addresses and a first content identifier of the plurality of content identifiers, and wherein the first content identifier identifies content of the first logical data block; and
second metadata mapping the content identifiers to the physical addresses of the physical data blocks, wherein the second metadata comprises a first reference count indicative of the number of logical data blocks associated with the first content identifier; and
creating one or more clones of the first logical device, comprising:
associating each of a plurality of logical addresses of the clones with the first content identifier; and
updating the first reference count based on the number of the clones.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first metadata comprises a first data entry mapping the first logical address to the first content identifier, and wherein updating the reference count based on the number of the clones comprises creating a second data entry mapping the first logical address to the first content ID.

### Claim 3 (depends on 1)

The method of claim 1, wherein updating the first reference count based on the number of the clones comprises incrementing the reference count by the number of the clones.

### Claim 4 (depends on 3)

The method of claim 3, wherein updating the first reference count based on the number of the clones further comprises:
determining, based on the first content identifier, a node identifier identifying a node of the storage system; and
sending, to the node of the storage system, a request to update the first reference count based on the number of the clones in view of a determination that the node of the storage system is a remoted node.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
in view of a first change to the first logical data block, associating a second content identifier with the first logical address of the first logical data block; and
updating the second metadata based on the second content identifier.

### Claim 6 (depends on 5)

The method of claim 5, wherein updating the second metadata based on the second content identifier comprises:
updating a second reference count in the second metadata to reflect the association between the second content identifier and the first logical address of the first logical data block, wherein the second reference count represents the number of logical data blocks associated with the second content identifier.

### Claim 7 (depends on 5)

The method of claim 5, wherein updating the second metadata based on the second content identifier comprises:
creating, in the second metadata, a new entry that maps the second content identifier to a second physical address.

### Claim 8 (depends on 5)

The method of claim 5, further comprising:
in view of a second change to a first clone of the first logical device, associating a third content identifier with a second logical address of the first clone; and
updating the second metadata based on the third content identifier.

### Claim 9 (depends on 8)

The method of claim 8, wherein updating the second metadata based on the second content identifier comprises:
updating a third reference count in the second metadata to reflect the association between the third content identifier and the second logical address of the first clone, wherein the third reference count represents the number of logical blocks associated with the third content identifier.

### Claim 10 (depends on 8)

The method of claim 8, wherein updating the third metadata based on the second content identifier comprises:
creating, in the second metadata, a new entry that maps the third content identifier to a third physical address.

### Claim 11 (depends on 1)

The method of claim 1, further comprising:
associating an image of a second logical device with a clone credit indicative of the maximum number of clones to be created for the image of the second logical device;
creating one or more clones of the image of the second logical device; and
updating the clone credit based on the number of the clones of the image of the second logical device.

### Claim 12

A system, comprising:
a memory; and
a processor operatively coupled to the memory, the processor to:
store metadata mapping logical addresses associated with logical data blocks of one or more logical devices to physical addresses of physical data blocks stored in a plurality of data storage devices of a storage system, the metadata comprising:
first metadata mapping the logical addresses associated with the logical data blocks of the logical devices to a plurality of content identifiers, wherein a first logical data block of a first logical device of the logical devices is associated with a first logical address of the logical addresses and a first content identifier of the plurality of content identifiers, and wherein the first content identifier identifies content of the first logical data block; and
second metadata mapping the content identifiers to the physical addresses of the physical data blocks, wherein the second metadata comprises a first reference count indicative of the number of logical data blocks associated with the first content identifier; and
create one or more clones of the first logical device, comprising:
associate each of a plurality of logical addresses of the clones with the first content identifier; and
update the reference count based on the number of the clones.

### Claim 13 (depends on 12)

The system of claim 12, wherein the first metadata comprises a first data entry mapping the first logical address to the first content ID, and wherein, to update the reference count based on the number of the clones, the processor is to create a second data entry mapping the first logical address to the first content ID.

### Claim 14 (depends on 12)

The system of claim 12, wherein updating the first reference count based on the number of the clones comprises incrementing the reference count by the number of the clones.

### Claim 15 (depends on 14)

The system of claim 14, wherein, to update the first reference count based on the number of the clones, the processor is to:
determine, based on the first content identifier, a node identifier identifying a node of the storage system; and
send, to the node of the storage system, a request to update the first reference count based on the number of the clones in view of a determination that the node of the storage system is a remoted node.

### Claim 16 (depends on 12)

The system of claim 12, wherein the processor is further to:
in view of a first change to the first logical data block, associate a second content identifier with the first logical address of the first logical data block; and
update the second metadata based on the second content identifier.

### Claim 17 (depends on 16)

The system of claim 16, wherein the processor is further to:
in view of a second change to a first clone of the first logical device, associate a third content identifier with a second logical address of the first clone; and
update the second metadata based on the third content identifier.

### Claim 18 (depends on 12)

The system of claim 12, wherein the processor is further to:
associate an image of a second logical device with a clone credit indicative of the maximum number of clones to be created for the image of the second logical device;
create one or more clones of the image of the second logical device; and
update the clone credit based on the number of the clones of the image of the second logical device.

### Claim 19

A non-transitory machine-readable storage medium including instructions that, when accessed by a processor, cause the processor to:
store metadata mapping logical addresses associated with logical data blocks of one or more logical devices to physical addresses of physical data blocks stored in a plurality of data storage devices of a storage system, the metadata comprising:
first metadata mapping the logical addresses associated with the logical data blocks of the logical devices to a plurality of content identifiers, wherein a first logical data block of a first logical device of the logical devices is associated with a first logical address of the logical addresses and a first content identifier of the plurality of content identifiers, and wherein the first content identifier identifies content of the first logical data block; and
second metadata mapping the content identifiers to the physical addresses of the physical data blocks, wherein the second metadata comprises a first reference count indicative of the number of logical data blocks associated with the first content identifier; and
create one or more clones of the first logical device, comprising:
associate each of a plurality of logical addresses of the clones with the first content identifier; and
update the reference count based on the number of the clones.

### Claim 20 (depends on 19)

The non-transitory machine-readable storage medium of claim 19, wherein the processor is further to:
associate an image of a second logical device with a clone credit indicative of the maximum number of clones to be created for the image of the second logical device;
create one or more clones of the image of the second logical device; and
update the clone credit based on the number of the clones of the image of the second logical device.
