# US 2014/0208048 A1 · Method and apparatus for efficient remote copy

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

- Number: US 2014/0208048 A1
- Document ID: US20140208048A1
- Status: Published application
- Kind: A1
- Application number: 13/747,586
- Filed: 2013-01-23
- Published: 2014-07-24
- Earliest claimed: 2013-01-23
- Assignees: Hitachi, Ltd.
- Inventors: Akira DEGUCHI
- Web page: https://patentgrep.com/patent/US20140208048A1

## CPC

- G06F 12/00: Accessing, addressing or allocating within memory systems or architectures (digital input from, or digital output to record carriers, e.g. to disk storage units, G06F3/06)
- G06F 11/2064: {while ensuring consistency}
- G06F 11/2074: {Asynchronous techniques}
- G06F 2201/855: Details of asynchronous mirroring using a journal to transfer not-yet-mirrored changes
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

According to one aspect of the invention, a storage system comprises: a plurality of storage devices; and a controller operable to manage a secondary volume, of a remote copy pair with a primary volume of another storage system, and corresponding to a portion of the plurality of storage devices. The secondary volume has a function for storing data included in journal data sent from said another storage system according to a remote copy procedure. The controller is operable to handle the journal data to be stored temporarily in a third volume corresponding to another portion of the plurality of storage devices before storing the data of the journal data to the secondary volume, if a relationship between the journal data and another journal data, which has smaller sequence number than sequence number of the journal data and is sent from said another storage system to the storage system, has a condition.

## Claims

### Claim 1

A storage system comprising:
a plurality of storage devices; and
a controller operable to manage a secondary volume, of a remote copy pair with a primary volume of another storage system, and corresponding to a portion of the plurality of storage devices;
wherein the secondary volume has a function for storing data included in journal data sent from said another storage system according to a remote copy procedure; and
wherein the controller is operable to handle the journal data to be stored temporarily in a third volume corresponding to another portion of the plurality of storage devices before storing the data of the journal data to the secondary volume, if a relationship between the journal data and another journal data, which has smaller sequence number than sequence number of the journal data and is sent from said another storage system to the storage system, has a condition.

### Claim 2 (depends on 1)

The storage system according to claim 1,
wherein the controller is operable to handle the journal data to be stored directly to the secondary volume without being stored temporarily in the third volume, if the relationship does not have the condition.

### Claim 3 (depends on 1)

The storage system according to claim 1,
wherein the third volume is in one portion of a cache memory of the controller and the secondary volume is in another portion of the cache memory of the controller.

### Claim 4 (depends on 1)

The storage system according to claim 1, wherein the controller is operable to:
receive a plurality of journal data each with a sequence number from said another storage system, the sequence number being control information to manage a write order for writing data to the primary volume;
select a journal data with a smallest sequence number from the plurality of received journal data which has not been stored to the secondary volume or the third volume;
determine whether there is any unreceived journal data which has a smaller sequence number than the sequence number of the selected journal data; and
if there is unreceived journal data as said another journal data which has a smaller sequence number than the sequence number of the selected journal data, as the condition, then storing data of the selected journal data temporarily in the third volume before storing the data of the selected journal data to the secondary volume.

### Claim 5 (depends on 4)

The storage system according to claim 4, wherein the controller is operable, if there is no unreceived journal data which has a smaller sequence number than the sequence number of the selected journal data, to:
determine whether there is any received journal data which has a smaller sequence number than the sequence number of the selected journal data and which has a same restore address as the selected journal data, the restore address being an address in the secondary volume to write journal data; and
if there is received journal data as said another journal data which has a smaller sequence number than the sequence number of the selected journal data and which has a same restore address as the selected journal data, as the condition, then storing data of the selected journal data temporarily in the third volume before storing the data of the selected journal data to the secondary volume.

### Claim 6 (depends on 5)

The storage system according to claim 5, wherein the controller is operable, if there is no received journal data as said another journal data which has a smaller sequence number than the sequence number of the selected journal data and which has a same restore address as the selected journal data, to:
write the selected journal data in the secondary volume directly without being stored temporarily in the third volume.

### Claim 7 (depends on 1)

The storage system according to claim 1, further comprising:
a buffer;
wherein the journal data sent from said another storage system is stored in the buffer before the data of the journal data is stored to the secondary volume or the third volume.

### Claim 8

A system which includes a primary storage system having a plurality of storage devices; and a secondary storage system, the secondary storage system comprising:
a plurality of storage devices; and
a controller operable to manage a secondary volume, of a remote copy pair with a primary volume of the primary storage system, and corresponding to a portion of the plurality of storage devices in the secondary storage system;
wherein the secondary volume has a function for storing data included in journal data sent from the primary storage system according to a remote copy procedure; and
wherein the controller is operable to handle the journal data to be stored temporarily in a third volume corresponding to another portion of the plurality of storage devices of the secondary storage system before storing the data of the journal data to the secondary volume, if a relationship between the journal data and another journal data, which has smaller sequence number than sequence number of the journal data and is sent from the primary storage system to the secondary storage system, has a condition.

### Claim 9 (depends on 8)

The system according to claim 8,
wherein the controller is operable to handle the journal data to be stored directly to the secondary volume without being stored temporarily in the third volume, if the relationship does not have the condition.

### Claim 10 (depends on 8)

The system according to claim 8,
wherein the third volume is in one portion of a cache memory of the controller and the secondary volume is in another portion of the cache memory of the controller.

### Claim 11 (depends on 8)

The system according to claim 8, wherein the controller is operable to:
receive a plurality of journal data each with a sequence number from said another storage system, the sequence number being control information to manage a write order for writing data to the primary volume;
select a journal data with a smallest sequence number from the plurality of received journal data which has not been stored to the secondary volume or the third volume;
determine whether there is any unreceived journal data which has a smaller sequence number than the sequence number of the selected journal data; and
if there is unreceived journal data which has a smaller sequence number than the sequence number of the selected journal data, as the condition, then store data of the selected journal data temporarily in the third volume before storing the data of the selected journal data to the secondary volume.

### Claim 12 (depends on 11)

The system according to claim 11, wherein the controller is operable, if there is no unreceived journal data which has a smaller sequence number than the sequence number of the selected journal data, to:
determine whether there is any received journal data which has a smaller sequence number than the sequence number of the selected journal data and which has a same restore address as the selected journal data, the restore address being an address in the secondary volume to write journal data; and
if there is received journal data as said another journal data which has a smaller sequence number than the sequence number of the selected journal data and which has a same restore address as the selected journal data, as the condition, then store data of the selected journal data temporarily in the third volume before storing the data of the selected journal data to the secondary volume.

### Claim 13 (depends on 12)

The system according to claim 12, wherein the controller is operable, if there is no received journal data as said another journal data which has a smaller sequence number than the sequence number of the selected journal data and which has a same restore address as the selected journal data, to:
write the selected journal data in the secondary volume directly without being stored temporarily in the third volume.

### Claim 14 (depends on 8)

The system according to claim 8,
wherein the secondary storage system further comprises a buffer; and
wherein the journal data sent from the primary storage system is stored in the buffer before the data of the journal data is stored to the secondary volume or the third volume.

### Claim 15

A computer-readable storage medium storing a plurality of instructions for controlling a data processor for remote copy from a primary storage system to a secondary storage system having a plurality of storage devices, the plurality of instructions comprising:
instructions that cause the data processor to manage a secondary volume, of a remote copy pair with a primary volume of the primary storage system, and corresponding to a portion of the plurality of storage devices, the secondary volume having a function for storing data included in journal data sent from the primary storage system according to a remote copy procedure; and
instructions that cause the data processor to handle the journal data to be stored temporarily in a third volume corresponding to another portion of the plurality of storage devices of the secondary storage system before storing the data of the journal data to the secondary volume, if a relationship between the journal data and another journal data, which has smaller sequence number than sequence number of the journal data and is sent from the primary storage system to the secondary storage system, has a condition.

### Claim 16 (depends on 15)

The computer-readable storage medium according to claim 15, wherein the plurality of instructions further comprise:
instructions that cause the data processor to handle the journal data to be stored directly to the secondary volume without being stored temporarily in the third volume, if the relationship does not have the condition.

### Claim 17 (depends on 15)

The computer-readable storage medium according to claim 15,
wherein the third volume is in one portion of a cache memory of the controller and the secondary volume is in another portion of the cache memory of the controller.

### Claim 18 (depends on 15)

The computer-readable storage medium according to claim 15, wherein the plurality of instructions further comprise:
instructions that cause the data processor to receive a plurality of journal data each with a sequence number from said another storage system, the sequence number being control information to manage a write order for writing data to the primary volume;
instructions that cause the data processor to select a journal data with a smallest sequence number from the plurality of received journal data which has not been stored to the secondary volume or the third volume;
instructions that cause the data processor to determine whether there is any unreceived journal data which has a smaller sequence number than the sequence number of the selected journal data; and
instructions that cause the data processor, if there is unreceived journal data as said another journal data which has a smaller sequence number than the sequence number of the selected journal data, as the condition, to store data of the selected journal data temporarily in the third volume before storing the data of the selected journal data to the secondary volume.

### Claim 19 (depends on 18)

The computer-readable storage medium according to claim 18, wherein the plurality of instructions further comprise, if there is no unreceived journal data which has a smaller sequence number than the sequence number of the selected journal data:
instructions that cause the data processor to determine whether there is any received journal data which has a smaller sequence number than the sequence number of the selected journal data and which has a same restore address as the selected journal data, the restore address being an address in the secondary volume to write journal data; and
instructions that cause the data processor, if there is received journal data as said another journal data which has a smaller sequence number than the sequence number of the selected journal data and which has a same restore address as the selected journal data, as the condition, to store data of the selected journal data temporarily in the third volume before storing the data of the selected journal data to the secondary volume.

### Claim 20 (depends on 19)

The computer-readable storage medium according to claim 19, wherein the plurality of instructions further comprise, if there is no received journal data as said another journal data which has a smaller sequence number than the sequence number of the selected journal data and which has a same restore address as the selected journal data:
instructions that cause the data processor to write the selected journal data in the secondary volume directly without being stored temporarily in the third volume.
