# US 2021/0342307 A1 · Token-based offload data transfer with synchronous replication

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

- Number: US 2021/0342307 A1
- Document ID: US20210342307A1
- Status: Published application
- Kind: A1
- Application number: 16/864,272
- Filed: 2020-05-01
- Published: 2021-11-04
- Earliest claimed: 2020-05-01
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: Xiangping Chen; David Meiri
- Web page: https://patentgrep.com/patent/US20210342307A1

## CPC

- G06F 16/184: {implemented as replicated file system}
- G06F 11/0772: {Means for error signaling, e.g. using interrupts, exception flags, dedicated error registers}
- G06F 16/128: {Details of file system snapshots on the file-level, e.g. snapshot creation, administration, deletion (error detection or correction of the data by redundancy in operations or in hardware G06F11/14, G06F11/16)}
- G06F 16/137: {Hash-based (content-based indexing of textual data G06F16/31)}
- G06F 16/178: Techniques for file synchronisation in file systems
- G06F 16/1827: {Management specifically adapted to NAS (management of storage area networks [SAN] G06F3/067)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method is provided, comprising: receiving, at a source system, a first copy instruction, the first copy instruction being associated with a token that represents one or more data items, the first copy instruction instructing the source system to copy the one or more data items from a first volume to a second volume; in response to the first copy instruction, retrieving one or more hash digests from a snapshot that is associated with the token, each of the one or more hash digests being associated with a different one of the one or more data items; and transmitting, to a target system, a second copy instruction that is associated with the one or more hash digests, the second copy instruction instructing the target system to copy the one or more data items to a replica of the second volume that is stored at the target system.

## Claims

### Claim 1

A method comprising:
receiving, at a source system, a first copy instruction, the first copy instruction being associated with a token that represents one or more data items, the first copy instruction instructing the source system to copy the one or more data items from a first volume to a second volume;
detecting whether the source system is currently performing synchronous replication of the first volume and the second volume;
when the source system is performing synchronous replication of both the first volume and the second volume: (i) retrieving one or more hash digests from a snapshot that is associated with the token, each of the one or more hash digests being associated with a different one of the one or more data items, (ii) transmitting, to a target system, a second copy instruction that is associated with the one or more hash digests, the second copy instruction instructing the target system to copy the one or more data items to a replica of the second volume that is stored at the target system, and (iii) copying the one or more data items from the first volume to the second volume; and
when the source system is not performing synchronous replication of the second volume, copying the one or more data items from the first volume to the second volume.

### Claim 2 (depends on 1)

The method of claim 1, further comprising, when the source system is performing synchronous replication of the second volume, but not of the first volume, returning an error.

### Claim 3 (depends on 1)

The method of claim 1, wherein the source system and the target system are part of a content-addressable storage system.

### Claim 4 (depends on 1)

The method of claim 1, wherein the first copy instruction includes a token-based copy instruction, and the second copy instruction includes a write via full hash instruction.

### Claim 5 (depends on 1)

The method of claim 1, wherein the snapshot is generated when the token is created, and the snapshot is arranged to preserve the one or more data items that are represented by the token.

### Claim 6 (depends on 1)

The method of claim 1, wherein the first copy instruction is generated by a host device, the method further comprising:
receiving, from the host device, a request to create the token, the request identifying one or more respective addresses in the first volume where the one or more data items are stored;
generating the token and the snapshot, and associating the snapshot with the token by at least one of: (i) updating a data structure to map the token to the snapshot or (ii) inserting an identifier corresponding to the snapshot into the token; and
transmitting the token to the host device.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
receiving the second copy instruction at the target system; and
copying each of the one or more data items to the replica of the second volume based on the one or more hash digests that are retrieved from the snapshot.

### Claim 8 (depends on 7)

The method of claim 7, wherein copying any of the one or more data items includes:
attempting to execute a hash-based write of the data item to the replica of the second volume; and
copying the data item to the replica of the second volume via a full data transfer if the hash-based write fails.

### Claim 9

A system comprising:
a memory that is configured to store a first volume and a second volume; and
one or more processors that are operatively coupled to the memory, the one or more processors being configured to perform the operations of:
receiving a first copy instruction, the first copy instruction being associated with a token that represents one or more data items, the first copy instruction instructing the one or more processors to copy the one or more data items from the first volume to the second volume;
detecting whether each of the first volume and the second volume is currently a source for synchronous replication;
when each of the first volume and the second volume is currently a source for synchronous replication: (i) retrieving one or more hash digests from a snapshot that is associated with the token, each of the one or more hash digests being associated with a different one of the one or more data items, (ii) transmitting, to a target system, a second copy instruction that instructs the target system to copy the one or more data items to a replica of the second volume that is stored at the target system, the second copy instruction being based on the one or more hash digests, and (iii) copying the one or more data items from the first volume to the second volume; and
when the second volume is not a source for synchronous replication, copying the one or more data items from the first volume to the second volume.

### Claim 10 (depends on 9)

The system of claim 9, the one or more processors are further configured to perform the operation of returning an error, when only the second volume is a source of synchronous replication.

### Claim 11 (depends on 9)

The system of claim 9, wherein the snapshot is generated when the token is created, and the snapshot is arranged to preserve the one or more data items that are represented by the token.

### Claim 12 (depends on 9)

The system of claim 9, wherein the first copy instruction is generated by a host device, and the one or more processors are further configured to perform the operations of:
receiving, from the host device, a request to create the token, the request identifying one or more respective addresses in the first volume where the one or more data items are stored;
generating the token and the snapshot, and associating the snapshot with the token by at least one of: (i) updating a data structure to map the token to the snapshot or (ii) inserting an identifier corresponding to the snapshot into the token; and
transmitting the token to the host device.

### Claim 13

A non-transitory computer-readable medium storing one or more processor-executable instructions, which, when executed by one or more processors, cause the one or more processors to perform the operations of:
receiving a first copy instruction, the first copy instruction being associated with a token that represents one or more data items, the first copy instruction instructing a source system to copy the one or more data items from a first volume to a second volume;
detecting whether the source system is currently performing synchronous replication of the first volume and the second volume;
when the source system is performing synchronous replication of both the first volume and the second volume: (i) retrieving one or more hash digests from a snapshot that is associated with the token, each of the one or more hash digests being associated with a different one of the one or more data items, (ii) transmitting, to a target system, a second copy instruction that is associated with the one or more hash digests, the second copy instruction instructing the target system to copy the one or more data items to a replica of the second volume that is stored at the target system, and (iii) copying the one or more data items from the first volume to the second volume; and
when the source system is not performing synchronous replication of the second volume, copying the one or more data items from the first volume to the second volume.

### Claim 14 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein the one or more processor-executable instructions, when executed by the one or more processors, further cause the one or more processors to perform the operation of returning an error when only the second volume is a source of synchronous replication.

### Claim 15 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein the source system and the target system are part of a content-addressable storage system.

### Claim 16 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein the first copy instruction includes a token-based copy instruction, and the second copy instruction includes a write via full hash instruction.

### Claim 17 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein the snapshot is generated when the token is created, and the snapshot is arranged to preserve the one or more data items that are represented by the token.

### Claim 18 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein the first copy instruction is generated by a host device, and the one or more processor-executable instructions, when executed by the one or more processors, further cause the one or more processors to perform the operations of:
receiving, from the host device, a request to create the token, the request identifying one or more respective addresses in the first volume where the one or more data items are stored;
generating the token and the snapshot, and associating the snapshot with the token by at least one of: (i) updating a data structure to map the token to the snapshot or (ii) inserting an identifier corresponding to the snapshot into the token; and
transmitting the token to the host device.

### Claim 19 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein the one or more processor-executable instructions, when executed by the one or more processors, further cause the one or more processors to perform the operation of executing the second copy instruction by copying each of the one or more data items to the replica of the second volume based on the one or more hash digests that are retrieved from the snapshot.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein copying any of the one or more data items includes:
attempting to execute a hash-based write of the data item to the replica of the second volume; and
copying the data item to the replica of the second volume via a full data transfer if the hash-based write fails.
