# US 9,354,979 B2 · Server based disaster recovery by making use of dual write responses

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

- Number: US 9,354,979 B2
- Document ID: US9354979B2
- Status: Granted
- Kind: B2
- Application number: 14/175,181
- Filed: 2014-02-07
- Published: 2015-08-13
- Granted: 2016-05-31
- Earliest claimed: 2014-02-07
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Rahul M. Fiske; Shrikant V. Karve; Sarvesh S. Patel; Subhojit Roy
- Web page: https://patentgrep.com/patent/US9354979B2

## CPC

- G06F 3/065: {Replication mechanisms}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/0683: {Plurality of storage devices}
- G06F 11/1448: {Management of the data involved in backup or backup restore}
- G06F 11/1471: involving logging of persistent data for recovery
- G06F 11/2074: {Asynchronous techniques}
- G06F 2201/84: Using snapshots, i.e. a logical point-in-time copy of the data
- G06F 2201/85: Active fault masking without idle spares
- G06F 2201/86: Event-based monitoring
- G06F 2201/87: Monitoring of transactions
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A mechanism is provided in a data processing system for asynchronous replication. The mechanism creates a record in a write log in a host computing device for a write command and marking the record as uncommitted. The mechanism maintains a copy of data to be written by the write command at the host computing device. The mechanism issues the write command from the host computing device to a primary storage controller at the primary storage site. Responsive to receiving an acknowledgement from the primary storage controller that the data have been written to the primary storage site, the mechanism marks the record as unreplicated. Responsive to receiving an acknowledgement from the primary storage controller that the data have been replicated to a secondary storage site, the mechanism erases the record in the write log and deleting the copy of data.

## Claims

### Claim 1

A computer program product comprising a non-transitory computer readable storage medium having a computer readable program stored therein, wherein the computer readable program, when executed on a host computing device, causes the host computing device to:
create a record in a write log in the host computing device for a write command to write data to a primary storage site and mark the record as uncommitted;
maintain a copy of the data to be written by the write command in the record in the write log in the host computing device;
issue the write command from the host computing device to a primary storage controller at a primary storage site;
create a tracker command having a reference to the write command;
issue the tracker command from the host computing device to the primary storage controller;
exchange an association between the write command and the tracker command with the primary storage controller, wherein the primary storage controller creates a record in a local log at the primary storage site for the tracker command and wherein the primary storage controller returns an acknowledgement associated with the tracker command responsive to the data being replicated to the secondary storage site;
responsive to receiving an acknowledgement from the primary storage controller that the data have been written to the primary storage site, mark the record as unreplicated; and
responsive to receiving an acknowledgement from the primary storage controller that the data have been replicated to a secondary storage site, erase the record in the write log and delete the copy of data in the host computing device, wherein the primary storage controller erases the record in the local log responsive to the data being replicated to the secondary storage site.

### Claim 2 (depends on 1)

The computer program product of claim 1, wherein the computer readable program further causes the computing device to:
responsive to the primary storage site no longer being available, replay write commands in the write log to a secondary storage controller at the secondary storage site in a same order the write commands were issued to the primary storage controller and issue subsequent write commands to the secondary storage controller.

### Claim 3 (depends on 1)

The computer program product of claim 1, wherein the write command and the tracker command have identical command tags.

### Claim 4 (depends on 1)

The computer program product of claim 1, wherein a payload of the tracker command contains a unique identifier of the write command and wherein the tracker command is written to a same location as the write command.

### Claim 5

An apparatus comprising:
a processor; and
a memory coupled to the processor, wherein the memory comprises instructions which, when executed by the processor, cause the processor to:
create a record in a write log in a host computing device for a write command to write data to a primary storage site and mark the record as uncommitted;
maintain a copy of the data to be written by the write command in the record in the write log in the host computing device;
issue the write command from the host computing device to a primary storage controller at a primary storage site;
create a tracker command having a reference to the write command;
issue the tracker command from the host computing device to the primary storage controller;
exchange an association between the write command and the tracker command with the primary storage controller, wherein the primary storage controller creates a record in a local log at the primary storage site for the tracker command and wherein the primary storage controller returns an acknowledgement associated with the tracker command responsive to the data being replicated to the secondary storage site;
responsive to receiving an acknowledgement from the primary storage controller that the data have been written to the primary storage site, mark the record as unreplicated; and
responsive to receiving an acknowledgement from the primary storage controller that the data have been replicated to a secondary storage site, erase the record in the write log and delete the copy of data in the host computing device, wherein the primary storage controller erases the record in the local log responsive to the data being replicated to the secondary storage site.

### Claim 6 (depends on 5)

The apparatus of claim 5, wherein the instructions further cause the processor to:
responsive to the primary storage site no longer being available, replaying write commands in the write log to a secondary storage controller at the secondary storage site in a same order the write commands were issued to the primary storage controller and issuing subsequent write commands to the secondary storage controller.

### Claim 7 (depends on 5)

The apparatus of claim 5, wherein the write command and the tracker command have identical command tags.

### Claim 8 (depends on 5)

The apparatus of claim 5, wherein a payload of the tracker command contains a unique identifier of the write command and wherein the tracker command is written to a same location as the write command.

### Claim 9

A method, in a data processing system, for asynchronous replication, the method comprising:
creating a record in a write log in a host computing device for a write command to write data to a primary storage site and marking the record as uncommitted;
maintaining a copy of the data to be written by the write command in the record in the write log in the host computing device;
issuing the write command from the host computing device to a primary storage controller at the primary storage site;
creating a tracker command having a reference to the write command;
issuing the tracker command from the host computing device to the primary storage controller;
exchanging an association between the write command and the tracker command with the primary storage controller, wherein the primary storage controller creates a record in a local log at the primary storage site for the tracker command and wherein the primary storage controller returns an acknowledgement associated with the tracker command responsive to the data being replicated to the secondary storage site;
responsive to receiving an acknowledgement from the primary storage controller that the data have been written to the primary storage site, marking the record as unreplicated; and
responsive to receiving an acknowledgement from the primary storage controller that the data have been replicated to a secondary storage site, erasing the record in the write log and deleting the copy of data in the host computing device, wherein the primary storage controller erases the record in the local log responsive to the data being replicated to the secondary storage site.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
responsive to the primary storage site no longer being available, replaying write commands in the write log to a secondary storage controller at the secondary storage site in a same order the write commands were issued to the primary storage controller.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
responsive to replaying the write commands in the write log to the secondary storage controller, issuing subsequent write commands to the secondary storage controller.

### Claim 12 (depends on 9)

The method of claim 9, wherein the write command and the tracker command have identical command tags.

### Claim 13 (depends on 9)

The method of claim 9, wherein a payload of the tracker command contains a unique identifier of the write command and wherein the tracker command is written to a same location as the write command.
