# US 2021/0334241 A1 · Non-disrputive transitioning between replication schemes

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

- Number: US 2021/0334241 A1
- Document ID: US20210334241A1
- Status: Published application
- Kind: A1
- Application number: 16/858,294
- Filed: 2020-04-24
- Published: 2021-10-28
- Earliest claimed: 2020-04-24
- Assignees: NetApp, Inc.
- Applicants: NetApp, Inc.
- Inventors: Daniel David McCarthy; Austino Nicholas Longo; Christopher Clark Corey; Sneheet Kumar Mishra
- Web page: https://patentgrep.com/patent/US20210334241A1

## CPC

- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 16/184: {implemented as replicated file system}
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/0641: {De-duplication techniques}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 12/0253: {Garbage collection, i.e. reclamation of unreferenced memory}
- G06F 16/162: {Delete operations (erasing in storage systems G06F3/0652)}
- G06F 16/164: {File meta data generation}
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/214: Solid state disk
- G06F 2212/222: Non-volatile memory
- G06F 2212/284: being distributed
- G06F 2212/608: Details relating to cache mapping
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A technique transitions data blocks of volumes served by storage nodes of a storage cluster from an old data protection scheme (DPS) to a new DPS in a non-disruptive manner. Slice services of the storage nodes forward the data blocks associated with write requests to the block services for storage on storage devices of the nodes. Mapping of volume logical block addresses to block identifiers are contained in slice files, wherein there is a single slice file for each volume. To transition a volume between the old and new DPSs, the slice service tags the data blocks with the new DPS when forwarding new write requests to the block services. In accordance with a background transitioning process, the slice service also retrieves every data block referenced by the to slice file and then resends the data to the block service with the new DPS.

## Claims

### Claim 1

A method comprising:
storing data replicas on bin replicas distributed across storage nodes of a cluster, the bin replicas hosted on a plurality of block services of the storage nodes, the data replicas generated according to a first data protection scheme (DPS) of a volume storing data blocks of the data replicas tagged with the first DPS, the first DPS of the volume indicated by volume DPS information of a database in the cluster;
transitioning the volume from the first DPS to a second DPS at a first point in time (T1) by tagging data blocks of write requests received from a client at the cluster after T1 with the second DPS for storage on the volume;
updating the volume DPS information of the database to indicate the second DPS of the volume; and
converting the first DPS of the data blocks stored before T1 to use the second DPS as a background process without disconnecting the client from the volume.

### Claim 2 (depends on 1)

The method of claim 1 wherein transitioning the volume from the first DPS to the second DPS further comprises generating additional or fewer of the bin replicas for assignment to the block services to support the second DPS of the volume.

### Claim 3 (depends on 1)

The method of claim 1 further comprising managing metadata of a slice file associated with the volume at one or more slice services of the storage nodes, each slice service associated with a copy of the slice file, the metadata including a mapping of logical block addresses of the volume to block identifiers of the data blocks contained in the volume.

### Claim 4 (depends on 3)

The method of claim 3 wherein managing the metadata of the slice file further comprises deleting a copy of the slice file associated with one of the slice services when
the second DPS has a decreased redundancy.

### Claim 5 (depends on 4)

The method of claim 4 wherein converting the DPS of the data blocks stored before Ti to use the second DPS further comprises:
traversing the one or more slice files to read each data block tagged with the first DPS;
retagging each block and associated block ID with the second DPS; and
forwarding the retagged block and associated block ID to the block services.

### Claim 6 (depends on 1)

The method of claim 1 wherein transitioning the volume is performed atomically at T1 by updating the volume DPS information in sequence with tagging the data blocks of the write requests with the second DPS.

### Claim 7 (depends on 6)

The method of claim 6 further comprising adding block identifiers (IDs) associated with the tagged data blocks stored on the volume to filters configured for the first DPS and the second DPS, wherein the data blocks include first DPS tags and second DPS tags stored on the volume between T1 and a second point in time (T2) when the data blocks s tagged with the first or second DPS tags are forwarded to the block services.

### Claim 8 (depends on 7)

The method of claim 7 further comprising, in response to completion of transitioning of the volume:
initiating garbage collection on the volume;
adding the block IDs to the filters associated with data blocks tagged with the second DPS;
removing the block IDs for data blocks tagged with the first DPS from the volume; and
one of deleting the data blocks tagged with the first DPS and optimizing storage efficiency for the data blocks tagged with the first DPS when the first DPS is no longer in use for the data blocks.

### Claim 9 (depends on 8)

The method of claim 8 wherein optimizing for storage efficiency is performed by the block services through one of deduplication and erasure coding.

### Claim 10 (depends on 8)

The method of claim 8 wherein the filters are Bloom filters.

### Claim 11 (depends on 1)

The method of claim 1 wherein the first DPS is one of triple replication, double replication and erasure coding, and wherein the second DPS is one double replication, triple replication and erasure coding.

### Claim 12 (depends on 1)

The method of claim 1 wherein converting the first DPS of the data blocks stored before T1 to use the second DPS further comprises intelligently deduplicating a first data replica of each data block according to the first DPS at the block services.

### Claim 13 (depends on 12)

The method of claim 12 wherein the first data replica is associated with an indicator.

### Claim 14

A cluster comprising:
a plurality of storage nodes each having a block service for storage on one or more storage devices coupled to a respective storage node;
each storage node including a processor configured to execute instructions to, store a plurality of data replicas on a plurality of bin replicas distributed across the cluster, the bin replicas hosted on the block services of the storage nodes, the data replicas generated according to a first data protection scheme (DPS) of the volume,
store data blocks of the data replicas tagged with the first DPS, the first DPS of the volume indicated by volume DPS information of a database in the cluster,
transition the volume from the first DPS to a second DPS at a first point in time (T1) by tagging data blocks of write requests received from a client at the cluster after T1 with the second DPS for storage on the volume,
update the volume DPS information of the database to indicate the second DPS of the volume, and
convert the first DPS of the data blocks stored before T1 to use the second DPS as a background process without disconnecting the client from the volume.

### Claim 15 (depends on 14)

The system of claim 14 wherein the processor configured to execute instructions configured to convert the first DPS of the data blocks stored before T1 to use the second DPS is further configured to execute instructions to:
traverse metadata having a mapping of logical block addresses of the volume to block identifiers (ID) of the data blocks contained in the volume;
retag each block ID with the second DPS; and
forward each retagged block ID to the block services.

### Claim 16 (depends on 15)

The system of claim 15 wherein the block services receiving each forwarded retagged block ID store a respective associated data block according to the second DPS.

### Claim 17 (depends on 15)

The system of claim 15 wherein the block services receiving each forwarded retagged block ID store an associated first data replica of each data block once.

### Claim 18 (depends on 15)

The system of claim 15 wherein the processor configured to execute instructions is further configured to execute instructions to add block identifiers (IDs) associated with the tagged data blocks stored on the volume to filters configured for the first DPS and the second DPS, wherein the data blocks include first DPS tags and second DPS tags stored on the volume between T1 and a second point in time (T2) when the data blocks tagged with the first or second DPS tags are forwarded to the block services.

### Claim 19 (depends on 18)

The system of claim 18 wherein the processor configured to execute instructions is further configured to execute instructions to, in response to completion of transitioning of the volume:
initiate garbage collection on the volume;
insert the block IDs to the filters for only data blocks tagged with the second DPS;
remove the block IDs for data blocks tagged with the first DPS from the volume; and
one of delete the data blocks tagged with the first DPS and optimize storage efficiency for the data blocks tagged with the first DPS when the first DPS is no longer in use for the data blocks.

### Claim 20

A non-transitory computer readable medium having program instructions configured to:
store a plurality of data replicas on a plurality of bin replicas distributed across storage nodes of a cluster, the bin replicas hosted on a plurality of block services of the storage nodes, the data replicas generated according to a first data protection scheme (DPS) of the volume storing data blocks of the data replicas tagged with the first DPS, the first DPS of the volume indicated by volume DPS information of a database in the cluster;
transition the volume from the first DPS to a second DPS at a first point in time (T1) by tagging data blocks of write requests received from a client at the cluster after T1 with the second DPS for storage on the volume;
update the volume DPS information of the database to indicate the second DPS of the volume; and
convert the first DPS of the data blocks stored before T1 to use the second DPS as a background process without disconnecting the client from the volume.
