# US 11,120,048 B2 · Non-disruptive transition to synchronous replication state

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

- Number: US 11,120,048 B2
- Document ID: US11120048B2
- Status: Granted
- Kind: B2
- Application number: 16/293,807
- Filed: 2019-03-06
- Published: 2020-09-10
- Granted: 2021-09-14
- Earliest claimed: 2019-03-06
- Assignees: NetApp, Inc.
- Applicants: NetApp Inc.
- Inventors: Akhil Kaushik; Anoop Chakkalakkal Vijayan; Preetham Kudgi Shenoy
- Web page: https://patentgrep.com/patent/US11120048B2

## CPC

- G06F 16/275: {Synchronous replication}
- G06F 16/2358: {Change logging, detection, and notification (replication G06F16/27)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques are provided for transitioning a first storage object and a second storage object from an asynchronous replication state to a synchronous replication state. Metadata operations are logged into a metadata log. Dirty data, modified by data operations executed upon the first storage object, are tracked using a dirty region log. Metadata operations are replicated from the metadata log to the second storage object during a metadata drain phase. During the metadata drain phase, incoming operations are logged into the metadata log when the metadata log has a non-zero size, otherwise, the metadata operations are replicated to the second storage object. After the metadata drain phase, a data drain phase is performed using the dirty region log.

## Claims

### Claim 1

A method comprising:
logging metadata operations, executed upon a first storage object, into a metadata log;
tracking dirty data, modified by data operations executed upon the first storage object, into a dirty region log;
replicating the metadata operations from the metadata log to a second storage object during a metadata drain phase, wherein the replicating comprises replicating a last metadata operation from the metadata log to the second storage object using a volume barrier based upon the metadata log having a size of 1;
logging a first incoming metadata operation during the metadata drain phase into the metadata log based upon the metadata log having a non-zero size; and
replicating a second incoming metadata operation to the second storage object based upon the metadata log having a zero size.

### Claim 2 (depends on 1)

The method of claim 1, comprising:
replicating incoming metadata operations to the second storage object based upon a state indicating a transition from the metadata drain phase to a data drain phase where the dirty data is replicated to the second storage object.

### Claim 3 (depends on 1)

The method of claim 1, comprising:
replicating the dirty data from the first storage object, as indicated by the dirty region log, to the second storage object during a data drain phase based upon completion of the metadata drain phase.

### Claim 4 (depends on 3)

The method of claim 3, comprising:
replicating incoming metadata operations to the second storage object during the data drain phase.

### Claim 5 (depends on 4)

The method of claim 4, comprising:
serializing replication of the dirty data and the incoming metadata operations using the volume barrier.

### Claim 6 (depends on 3)

The method of claim 3, comprising:
transitioning the first storage object and the second storage object from an asynchronous replication relationship to a synchronous replication relationship based upon the metadata drain phase and the data drain phase completing.

### Claim 7 (depends on 1)

The method of claim 1, comprising: serializing replication of an incoming metadata operation with metadata operations replicated from the metadata log using the volume barrier based upon the metadata log having a size of 1.

### Claim 8 (depends on 7)

The method of claim 7, wherein the volume barrier is used to make the incoming metadata operation and the metadata operations mutually exclusive for acquiring the volume barrier.

### Claim 9

A non-transitory machine readable medium comprising instructions for performing a method, which when executed by a machine, causes the machine to:
log metadata operations, executed upon a first storage object stored by a first computing device, into a metadata log;
track dirty data, modified by data operations executed upon the first storage object, into a dirty region log;
replicate the metadata operations from the metadata log to a second storage object stored by a second computing device during a metadata drain phase;
in response to a determination that the metadata log has a non-zero size, log a first incoming metadata operation into the metadata log for replication to the second computing device during the metadata drain phase; and
in response to a determination that the metadata log has a zero size, synchronously replicate the second incoming metadata operation while the first storage object and the second storage object are in an asynchronous replication state by executing the second incoming metadata operation upon the first storage object and replicating the second incoming metadata operation to the second computing device to execute upon to the second storage object and refraining from logging the second incoming metadata operation.

### Claim 10 (depends on 9)

The non-transitory machine readable medium of claim 9, wherein the instructions cause the machine to:
log metadata operations into the metadata log and tracking dirty data within the dirty region log during the metadata drain phase, wherein metadata operations are replicated from the metadata log without using a volume barrier based upon the metadata log having a size greater than 1.

### Claim 11 (depends on 9)

The non-transitory machine readable medium of claim 9, wherein the instructions cause the machine to:
replicate a last metadata operation from the metadata log to the second storage object using a volume barrier based upon the metadata log having a size of 1.

### Claim 12 (depends on 11)

The non-transitory machine readable medium of claim 11, wherein the instructions cause the machine to:
serializing replication of the last metadata operation with an incoming metadata operation using the volume barrier.

### Claim 13 (depends on 9)

The non-transitory machine readable medium of claim 9, wherein the instructions cause the machine to:
replicate the dirty data from the dirty region log to the second storage object during a data drain phase based upon completion of the metadata drain phase.

### Claim 14 (depends on 13)

The non-transitory machine readable medium of claim 13, wherein the data drain phase is triggered based upon the metadata log having the zero size.

### Claim 15

A computing device comprising:
a memory comprising machine executable code for performing a method; and
a processor coupled to the memory, the processor configured to execute the machine executable code to cause the processor to:
log metadata operations, executed upon a first storage object, into a metadata log;
track dirty data, modified by data operations executed upon the first storage object, into a dirty region log;
replicate the metadata operations from the metadata log to a second storage object during a metadata drain phase, wherein a last metadata operation is replicated from the metadata log to the second storage object using a volume barrier based upon the metadata log having a size of 1;
log a first incoming metadata operation during the metadata drain phase into the metadata log based upon the metadata log having a non-zero size; and
replicate a second incoming metadata operation to the second storage object based upon the metadata log having a zero size.

### Claim 16 (depends on 15)

The computing device of claim 15, wherein the machine executable code causes the processor to:
perform asynchronous incremental transfers of data of the first storage object from a first computing environment to the second storage object at a second computing environment.

### Claim 17 (depends on 16)

The computing device of claim 16, wherein the machine executable code causes the processor to:
log the metadata operations and track the dirty data during a last asynchronous incremental transfer.

### Claim 18 (depends on 15)

The computing device of claim 15, wherein the machine executable code causes the processor to:
replicate the dirty data from the dirty region log to the second storage object during a data drain phase based upon completion of the metadata drain phase.

### Claim 19 (depends on 18)

The computing device of claim 18, wherein the machine executable code causes the processor to:
transition to a synchronous replication state where incoming operations targeting the first storage object are synchronously replicated to the second storage object based upon the data drain phase completing.

### Claim 20 (depends on 18)

The computing device of claim 18, wherein the machine executable code causes the processor to:
processing incoming operations targeting the first storage object during the metadata drain phase and the data drain phase.
