# US 11,120,046 B2 · Data replication in a distributed storage system

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

- Number: US 11,120,046 B2
- Document ID: US11120046B2
- Status: Granted
- Kind: B2
- Application number: 16/360,862
- Filed: 2019-03-21
- Published: 2019-11-07
- Granted: 2021-09-14
- Earliest claimed: 2018-05-04
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Pradeep Seela; Pei Zhang; Yongfu Lou; Jegan Devaraju; Krishnan Varadarajan; Yi-Fan Tsai; Maneesh Sah; Kristopher T. Lange; Shane K. Mainali
- Web page: https://patentgrep.com/patent/US11120046B2

## CPC

- G06F 11/2097: {maintaining the standby controller/processing unit updated (initialisation or re-synchronisation thereof G06F11/1658 and subgroups)}
- G06F 16/273: {Asynchronous replication or reconciliation}
- G06F 11/2074: {Asynchronous techniques}
- G06F 16/2282: {Tablespace storage structures; Management thereof}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Data is replicated between primary and secondary storage systems using a data pulling process or a log shipping process. If data is to be replicated through the log shipping process, a transaction and its associated data get stored in a transaction log in the secondary storage system. Subsequently, when the transaction gets executed, actual data gets persisted from the transaction log to a data log in the secondary storage system. If the data is to be replicated through the data pulling process, the transaction is stored in the transaction log. However, the associated data for the transaction is retrieved from the first primary storage system and stored directly in the data log in the secondary system.

## Claims

### Claim 1

A computing device in a distributed storage system operable to perform data replication from a primary storage system to a secondary storage system, the computing device comprising:
at least one memory containing machine-readable instructions; and
at least one processor to execute the machine-readable instructions to:
determine whether a block to be replicated from the primary storage system to the secondary storage system is to be replicated via a data pulling process or a log shipping process;
in response to determining the block is to be replicated through the log shipping process, store a transaction and data for the block in a transaction log, and subsequently execute the transaction from the transaction log to cause the data to be written from the transaction log to a data log in the secondary storage system; and
in response to determining the block is to be replicated through the data pulling process, store the transaction in the transaction log, retrieve the data for the block from the primary storage system, and store the data in the data log,
wherein for the data pulling process, the data is stored in the data log without previously storing the data in the transaction log.

### Claim 2 (depends on 1)

The computing device of claim 1, wherein the transaction is performed on the primary storage system, and the at least one processor is to receive a message from a computer in the primary storage system to replicate the transaction on the secondary storage system.

### Claim 3 (depends on 1)

The computing device of claim 1, wherein to determine whether to replicate via a data pulling process or a log shipping process, the at least one processor is to:
determine whether the data for the block is stored in a blocks table in the primary storage system, wherein the data is stored in the blocks table in response to the block being striped across a plurality of partitions in the primary storage system.

### Claim 4 (depends on 3)

The computing device of claim 3, wherein the block is striped across the plurality of partitions in the primary storage system if a size of the block is greater than a predetermined threshold.

### Claim 5 (depends on 3)

The computing device of claim 3, wherein to stripe the block across the plurality of partitions, the primary storage system is to:
receive a write request for a block at the primary storage system;
determine whether the block satisfies predetermined criteria;
in response to the block satisfying the predetermined criteria,
striping the block across a plurality of partitions in a pool of partitions,
wherein striping the block across the plurality of partitions comprises storing subblocks and metadata for the subblocks, including globally unique identifiers, in a partitioned blocks tables associated with the plurality of partitions; and
storing a link to entries for the blocks table in an objects table associated with the block.

### Claim 6 (depends on 5)

The computing device of claim 5, wherein a portion of each of the globally unique identifiers is randomly selected for load distribution across the plurality of partitions.

### Claim 7 (depends on 5)

The computing device of claim 5, wherein in response to the block not satisfying predetermined criteria, storing the block and its metadata in an objects table.

### Claim 8 (depends on 7)

The computing device of claim 7, wherein for the log shipping process the data is retrieved from the objects table in the primary storage system.

### Claim 9

A computing device in a distributed storage system operable to perform data replication from a primary storage system to a secondary storage system, the computing device comprising:
at least one memory containing machine-readable instructions; and
at least one processor to execute the machine-readable instructions to:
determine whether a block of data to be replicated from the primary storage system to the secondary storage system is striped across a plurality of storage partitions in the primary storage system or is stored in a single storage partition in the primary storage system;
in response to determining the block is stored in the single storage partition, store a transaction and data for the block in a transaction log in the secondary storage system, and subsequently execute the transaction from the transaction log to cause the data to be written from the transaction log to a data log in the secondary storage system; and
in response to determining the block is striped across the plurality of storage partitions, store the transaction in the transaction log, retrieve the data for the block from the primary storage system, and store the data in the data log without previously storing the data in the transaction log.

### Claim 10 (depends on 9)

The computing device of claim 9, wherein the transaction is performed on the primary storage system, and the at least one processor is to receive a message from a computer in the primary storage system to replicate the transaction on the secondary storage system.

### Claim 11 (depends on 9)

The computing device of claim 9, wherein to determine whether a block of data to be replicated from the primary storage system to the secondary storage system is striped across the plurality of storage partitions or is stored in the single storage partition, the at least one processor is to:
determine whether the data for the block is stored in a blocks table in the primary storage system, wherein the data is stored in the blocks table in response to the block being striped across the plurality of storage partitions.

### Claim 12 (depends on 11)

The computing device of claim 11, wherein the block is striped across the plurality of storage partitions in the primary storage system if a size of the block is greater than a predetermined threshold.

### Claim 13 (depends on 11)

The computing device of claim 11, wherein to stripe the block across the plurality of storage partitions, the primary storage system is to:
receive a write request for a block at the primary storage system;
determine whether the block satisfies predetermined criteria;
in response to the block satisfying the predetermined criteria,
striping the block across a plurality of partitions in a pool of partitions,
wherein striping the block across the plurality of partitions comprises storing subblocks and metadata for the subblocks, including a globally unique identifiers, in a partitioned blocks tables associated with the plurality of partitions; and
storing a link to entries for the blocks table in an objects table associated with the block.

### Claim 14 (depends on 13)

The computing device of claim 13, wherein a portion of each of the globally unique identifiers is randomly selected for load distribution across the plurality of partitions.

### Claim 15

A computer-implemented method for replicating data from a first storage system to a second storage system, the method comprising:
determining whether a block to be replicated from the first storage system to the second storage system is to be replicated via a data pulling process or a log shipping process;
in response to determining the block is to be replicated through the log shipping process, storing a transaction and data for the block in a transaction log; and
in response to determining the block is to be replicated through the data pulling process, storing the transaction in the transaction log, retrieving the data for the block from the first storage system, and storing the data in a data log without previously storing the data in the transaction log.

### Claim 16 (depends on 15)

The method of claim 15, wherein the transaction is performed on the first storage system, and the method comprises receiving a message from a computer in the first storage system to replicate the transaction on the second storage system.

### Claim 17 (depends on 15)

The method of claim 15, wherein determining whether to replicate via a data pulling process or a log shipping process comprises:
determining whether the data for the block is stored in a blocks table in the first storage system, wherein the data is stored in the blocks table in response to the block being striped across a plurality of partitions in the first storage system.
