# US 2019/0317675 A1 · Optimizing off-loaded input/output (i/o) requests

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

- Number: US 2019/0317675 A1
- Document ID: US20190317675A1
- Status: Published application
- Kind: A1
- Application number: 16/454,179
- Filed: 2019-06-27
- Published: 2019-10-17
- Earliest claimed: 2017-01-30
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Manish Bansode; Shrirang S. Bhagwat; Pankaj Deshpande; Subhojit Roy
- Web page: https://patentgrep.com/patent/US20190317675A1

## CPC

- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/061: {Improving I/O performance}
- G06F 3/065: {Replication mechanisms}
- G06F 3/0665: {at area level, e.g. provisioning of virtual or logical volumes}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/0689: {Disk arrays, e.g. RAID, JBOD}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Whether a replication relationship is established between a first and a second storage device is determined. If it is determined that the replication relationship is established between the first and second storage device, then whether data in the first region of the first storage device has changed since a previously completed asynchronous data replication process is determined. If the data in the first region of the first storage device has changed since the previously completed asynchronous data replication process, then whether the changed data in the first storage device is data copied from the second region of the first storage device is determined. If the changed data in the first region of the first storage device is data copied from the second region of the first storage device, then data from the second region of the second storage device is replicated to the first region of the second storage device.

## Claims

### Claim 1

A method comprising:
determining, by one or more computer processors, whether a replication relationship is established between a first storage device and a second storage device for an asynchronous data replication process over a network, wherein the replication relationship establishes data parity between a first region of the first storage device and a first region of the second storage device, and data parity between a second region of the first storage device and a second region of the second storage device;
responsive to determining that the replication relationship is established between the first storage device and the second storage device, determining, by the one or more computer processors, whether data in the first region of the first storage device has changed;
responsive to determining that the data in the first region of the first storage device has changed, determining, by the one or more computer processors, whether the changed data in the first storage device is data copied from the second region of the first storage device; and
responsive to determining that the changed data in the first region of the first storage device is data copied from the second region of the first storage device, replicating data from the second region of the second storage device to the first region of the second storage device.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
responsive to determining that the changed data in the first storage device is data copied from the second region of the first storage device, recording, by the one or more computer processors, in a data structure: a source identifier identifying the second region of the first storage device, a target identifier identifying the first region of the first storage device, and an indication that the changed data is copied data; and
wherein replicating the data from the second region of the second storage device to the first region of the second storage device comprises:
identifying the source identifier which corresponds to the second region of the second storage device, the target identifier which corresponds to the first region of the second storage device, and the data identifier; and
replicating the data from the second region of the second storage device to the first region of the second storage device based on the source identifier and the target identifier.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
responsive to determining that the changed data in the first region of the first storage device is not data copied from the second region of the first storage device, determining, by the one or more computer processors, whether the changed data in the first region of the first storage device is new data;
responsive to determining that the changed data in the first region of the first storage device is the new data, recording, by the one or more computer processors, in the data structure: the target identifier identifying the first region of the first storage device, and a second indication that the changed data is not available in the first region nor the second region of the second storage device; and
transmitting, by the one or more computer processors, the new data from the first region of the first storage device to the first region of the second storage device over the network to complete the asynchronous data replication process.

### Claim 4 (depends on 2)

The method of claim 2, further comprising:
responsive to determining that data parity is not established between the second region of the first storage device and the second region of the second storage device, determining, by the one or more computer processors, whether data in the first region of the first storage device has changed since the previously completed asynchronous data replication process;
responsive to determining that the changed data in the first storage device is data copied from the second region of the first storage device, recording, by the one or more computer processors, in the data structure: the source identifier identifying the second region of the first storage device, the target identifier identifying the first region of the first storage device, and the second indication that the changed data is not available in the first region nor the second region of the second storage device;
transmitting, by the one or more computer processors, the changed data from the first region of the first storage device to the second region of the second storage device over the network, wherein the changed data becomes available in the second region of the second storage device; and
replicating the changed data from the second region of the second storage device to the first region of the second storage device based on the source identifier and the target identifier.

### Claim 5 (depends on 4)

The method of claim 4, wherein determining whether data parity is established between the second region of the first storage device and the second region of the second storage device comprises:
referencing, by the one or more computer processors, mapping information indicating whether the previously completed asynchronous data replication process successfully replicated established data parity between the first region of the first storage device and the first region of the second storage device, and data parity between the second region of the first storage device and the second region of the second storage device.

### Claim 6 (depends on 3)

The method of claim 3, wherein the changed data is written to the first region of the first storage device based on a received write request, and wherein the write request is either a normal-write request which indicates to write the new data to the first region of the first storage device, or an off-loaded input/output (I/O) request which indicates to copy data to the first region of the first storage device.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
examining, by the one or more computer processors, the received write request to determine whether the received write request is the normal-write request or the off-loaded I/O request.

### Claim 8

A computer program product comprising:
one or more computer readable storage media and program instructions stored on the one or more computer readable storage media, the program instructions comprising:
program instructions to determine whether a replication relationship is established between a first storage device and a second storage device for an asynchronous data replication process over a network, wherein the replication relationship establishes data parity between a first region of the first storage device and a first region of the second storage device, and data parity between a second region of the first storage device and a second region of the second storage device;
program instructions to, responsive to determining that the replication relationship is established between the first storage device and the second storage device, determine whether data in the first region of the first storage device has changed;
program instructions to, responsive to determining that the data in the first region of the first storage device has changed, determine whether the changed data in the first storage device is data copied from the second region of the first storage device; and
program instructions to, responsive to determining that the changed data in the first region of the first storage device is data copied from the second region of the first storage device, replicate data from the second region of the second storage device to the first region of the second storage device.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein the program instructions stored on the one or more computer readable storage media further comprise:
program instructions to, responsive to determining that the changed data in the first storage device is data copied from the second region of the first storage device, record in a data structure: a source identifier identifying the second region of the first storage device, a target identifier identifying the first region of the first storage device, and an indication that the changed data is copied data; and
wherein the program instructions to replicate the data from the second region of the second storage device to the first region of the second storage device comprise:
program instructions to identify the source identifier which corresponds to the second region of the second storage device, the target identifier which corresponds to the first region of the second storage device, and the data identifier; and
program instructions to replicate the data from the second region of the second storage device to the first region of the second storage device based on the source identifier and the target identifier.

### Claim 10 (depends on 9)

The computer program product of claim 9, wherein the program instructions stored on the one or more computer readable storage media further comprise:
program instructions to, responsive to determining that the changed data in the first region of the first storage device is not data copied from the second region of the first storage device, determine whether the changed data in the first region of the first storage device is new data;
program instructions to, responsive to determining that the changed data in the first region of the first storage device is the new data, record in the data structure: the target identifier identifying the first region of the first storage device, and a second indication that the changed data is not available in the first region nor the second region of the second storage device; and
program instructions to transmit the new data from the first region of the first storage device to the first region of the second storage device over the network to complete the asynchronous data replication process.

### Claim 11 (depends on 9)

The computer program product of claim 9, wherein the program instructions stored on the one or more computer readable storage media further comprise:
program instructions to, responsive to determining that data parity is not established between the second region of the first storage device and the second region of the second storage device, determine whether data in the first region of the first storage device has changed since the previously completed asynchronous data replication process;
program instructions to, responsive to determining that the changed data in the first storage device is data copied from the second region of the first storage device, record in the data structure: the source identifier identifying the second region of the first storage device, the target identifier identifying the first region of the first storage device, and the second indication that the changed data is not available in the first region nor the second region of the second storage device;
program instructions to transmit the changed data from the first region of the first storage device to the second region of the second storage device over the network, wherein the changed data becomes available in the second region of the second storage device; and
program instructions to replicate the changed data from the second region of the second storage device to the first region of the second storage device based on the source identifier and the target identifier.

### Claim 12 (depends on 11)

The computer program product of claim 11, wherein the program instructions to determine whether data parity is established between the second region of the first storage device and the second region of the second storage device comprise:
program instructions to reference mapping information indicating whether the previously completed asynchronous data replication process successfully replicated established data parity between the first region of the first storage device and the first region of the second storage device, and data parity between the second region of the first storage device and the second region of the second storage device.

### Claim 13 (depends on 10)

The computer program product of claim 10, wherein the changed data is written to the first region of the first storage device based on a received write request, and wherein the write request is either a normal-write request which indicates to write the new data to the first region of the first storage device, or an off-loaded input/output (I/O) request which indicates to copy data to the first region of the first storage device.

### Claim 14 (depends on 13)

The computer program product of claim 13, wherein the program instructions stored on the one or more computer readable storage media further comprise:
program instructions to examine the received write request to determine whether the received write request is the normal-write request or the off-loaded I/O request.

### Claim 15

A computer system comprising:
one or more computer processors;
one or more computer readable storage media;
program instructions stored on the one or more non-transitory computer readable storage media for execution by at least one of the one or more processors, the program instructions comprising:
program instructions to determine whether a replication relationship is established between a first storage device and a second storage device for an asynchronous data replication process over a network, wherein the replication relationship establishes data parity between a first region of the first storage device and a first region of the second storage device, and data parity between a second region of the first storage device and a second region of the second storage device;
program instructions to, responsive to determining that the replication relationship is established between the first storage device and the second storage device, determine whether data in the first region of the first storage device has changed;
program instructions to, responsive to determining that the data in the first region of the first storage device has changed, determine whether the changed data in the first storage device is data copied from the second region of the first storage device; and
program instructions to, responsive to determining that the changed data in the first region of the first storage device is data copied from the second region of the first storage device, replicate data from the second region of the second storage device to the first region of the second storage device.

### Claim 16 (depends on 15)

The computer system of claim 15, wherein the program instructions stored on the one or more computer readable storage media further comprise:
program instructions to, responsive to determining that the changed data in the first storage device is data copied from the second region of the first storage device, record in a data structure: a source identifier identifying the second region of the first storage device, a target identifier identifying the first region of the first storage device, and an indication that the changed data is copied data; and
wherein the program instructions to replicate the data from the second region of the second storage device to the first region of the second storage device comprise:
program instructions to identify the source identifier which corresponds to the second region of the second storage device, the target identifier which corresponds to the first region of the second storage device, and the data identifier; and
program instructions to replicate the data from the second region of the second storage device to the first region of the second storage device based on the source identifier and the target identifier.

### Claim 17 (depends on 16)

The computer system of claim 16, wherein the program instructions stored on the one or more computer readable storage media further comprise:
program instructions to, responsive to determining that the changed data in the first region of the first storage device is not data copied from the second region of the first storage device, determine whether the changed data in the first region of the first storage device is new data;
program instructions to, responsive to determining that the changed data in the first region of the first storage device is the new data, record in the data structure: the target identifier identifying the first region of the first storage device, and a second indication that the changed data is not available in the first region nor the second region of the second storage device; and
program instructions to transmit the new data from the first region of the first storage device to the first region of the second storage device over the network to complete the asynchronous data replication process.

### Claim 18 (depends on 16)

The computer system of claim 16, wherein the program instructions stored on the one or more computer readable storage media further comprise:
program instructions to, responsive to determining that data parity is not established between the second region of the first storage device and the second region of the second storage device, determine whether data in the first region of the first storage device has changed since the previously completed asynchronous data replication process;
program instructions to, responsive to determining that the changed data in the first storage device is data copied from the second region of the first storage device, record in the data structure: the source identifier identifying the second region of the first storage device, the target identifier identifying the first region of the first storage device, and the second indication that the changed data is not available in the first region nor the second region of the second storage device;
program instructions to transmit the changed data from the first region of the first storage device to the second region of the second storage device over the network, wherein the changed data becomes available in the second region of the second storage device; and
program instructions to replicate the changed data from the second region of the second storage device to the first region of the second storage device based on the source identifier and the target identifier.

### Claim 19 (depends on 18)

The computer system of claim 18, wherein the program instructions to determine whether data parity is established between the second region of the first storage device and the second region of the second storage device comprise:
program instructions to reference mapping information indicating whether the previously completed asynchronous data replication process successfully replicated established data parity between the first region of the first storage device and the first region of the second storage device, and data parity between the second region of the first storage device and the second region of the second storage device.

### Claim 20 (depends on 17)

The computer system of claim 17, wherein the changed data is written to the first region of the first storage device based on a received write request, and wherein the write request is either a normal-write request which indicates to write the new data to the first region of the first storage device, or an off-loaded input/output (I/O) request which indicates to copy data to the first region of the first storage device.
