# US 12,216,544 B2 · Data replication method, apparatus, and system

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

- Number: US 12,216,544 B2
- Document ID: US12216544B2
- Status: Granted
- Kind: B2
- Application number: 17/546,319
- Filed: 2021-12-09
- Published: 2022-03-31
- Granted: 2025-02-04
- Earliest claimed: 2014-07-15
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Xiuwu Wang; Ji Ouyang
- Web page: https://patentgrep.com/patent/US12216544B2

## CPC

- G06F 11/1446: Point-in-time backing up or restoration of persistent data
- G06F 11/14: Error detection or correction of the data by redundancy in operations (error detection or correction of the data by redundancy in hardware G06F11/16)
- G06F 11/1451: {by selection of backup contents}
- G06F 11/2074: {Asynchronous techniques}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F 11/1461: {Backup scheduling policy}
- G06F 11/1464: {for networked environments}
- G06F 11/2066: {Optimisation of the communication load}
- G06F 2201/84: Using snapshots, i.e. a logical point-in-time copy of the data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A data replication method includes obtaining differential data information corresponding to differential data, where the differential data information includes a storage address of the differential data, and a determining value of the differential data. The data replication method comprises replicating the differential data from the primary volume to the secondary volume according to the storage address of the differential data that is located in the primary volume when the determining value is not less than a preset threshold. The data replication method comprises taking a snapshot for the primary volume when the determining value is less than the preset threshold and replicating the differential data to the secondary volume.

## Claims

### Claim 1

A data replication method, comprising:
obtaining a usage status comprising a ratio of a data amount of incoming data at a first device and a bandwidth for replication between the first device and a second device, wherein a replication manner to replicate data from the first device to the second device is based on the usage status and a preset threshold;
taking a snapshot for the first device from the second device and replicating the data to the second device according to the snapshot when the ratio is less than the preset threshold; and
replicating, according to a storage address of the data that is located in the first device, the data from the first device to the second device without a snapshot operation when the ratio is not less than the preset threshold and taking no snapshot for the first device until the ratio decreases to be less than the preset threshold.

### Claim 2 (depends on 1)

The data replication method of claim 1, wherein the usage status further comprises the data amount of incoming data at the first device and the bandwidth for replication between the first device and the second device.

### Claim 3 (depends on 1)

The data replication method of claim 1, wherein the usage status comprises the data amount of incoming data at the first device.

### Claim 4 (depends on 1)

The data replication method of claim 1, wherein one of the two kinds of replication manners is taking the snapshot on differential data differentiating the first device from the second device.

### Claim 5 (depends on 4)

The data replication method of claim 4, wherein the snapshot is a copy-on-write (COW) snapshot or a split-mirror snapshot.

### Claim 6 (depends on 1)

The data replication method of claim 1, further comprising obtaining a time required for the replication as the ratio.

### Claim 7 (depends on 1)

The data replication method of claim 1, further comprising recording the bandwidth.

### Claim 8 (depends on 1)

The data replication method of claim 1, wherein replicating the data further comprises performing each round of data replication according to a sequence in which a data replication pointer points from a start address in the first device to an end address in the second device.

### Claim 9

An electronic device, comprising:
a memory configured to store a program; and
a processor coupled to the memory and configured to execute the program to cause the electronic device to:
obtain a usage status comprising a ratio of a data amount of incoming data at a first device and a bandwidth for replication between the first device and a second device wherein a replication manner to replicate data from the first device to the second device is based on the usage status and a preset threshold;
take a snapshot for the first device from the second device and replicating the data to the second device according to the snapshot when the ratio is less than the preset threshold; and
replicate, according to a storage address of the data that is located in the first device, the data from the first device to the second device without a snapshot operation when the ratio is not less than the preset threshold and take no snapshot for the first device until the ratio decreases to be less than the preset threshold.

### Claim 10 (depends on 9)

The electronic device of claim 9, wherein the usage status further comprises the data amount of incoming data at the first device and the bandwidth for replication between the first device and the second device.

### Claim 11 (depends on 9)

The electronic device of claim 9, wherein the usage status comprises the data amount of incoming data at the first device.

### Claim 12 (depends on 9)

The electronic device of claim 9, wherein one of the two kinds of replication manners is taking the snapshot on differential data differentiating the first device from the second device.

### Claim 13 (depends on 12)

The electronic device of claim 12, wherein the snapshot is a copy-on-write (COW) snapshot or a split-mirror snapshot.

### Claim 14 (depends on 9)

The electronic device of claim 9, wherein the processor is further configured to obtain a time required for the replication as the ratio.

### Claim 15 (depends on 9)

The electronic device of claim 9, wherein the processor is further configured to record the bandwidth.

### Claim 16

A storage system, comprising:
a second device; and
a first device communicatively coupled to the second device and configured to:
obtain a usage status comprising a ratio of a data amount of incoming data at the first device and a bandwidth for replication between the first device and the second device wherein a replication manner to replicate data from the first device to the second device is based on the usage status and a preset threshold; and
replicate, according to a storage address of the data that is located in the first device, the data from the first device to the second device without a snapshot operation when the ratio is not less than the preset threshold and take no snapshot for the first device until the ratio decreases to be less than the preset threshold.

### Claim 17 (depends on 16)

The storage system of claim 16, wherein the usage status further comprises the data amount of incoming data at the first device and the bandwidth for replication between the first device and the second device.

### Claim 18 (depends on 16)

The storage system of claim 16, wherein the usage status comprises the data amount of incoming data at the first device.

### Claim 19 (depends on 16)

The storage system of claim 16, wherein one of the two kinds of replication manners is taking the snapshot on differential data differentiating the first device from the second device.

### Claim 20 (depends on 19)

The storage system of claim 19, wherein the snapshot is a copy-on-write (COW) snapshot or a split-mirror snapshot.

### Claim 21 (depends on 16)

The storage system of claim 16, wherein the first device is further configured to obtain a time required for the replication as the ratio.
