# US 2019/0377651 A1 · Switching over from using a first primary storage to using a second primary storage when the first primary storage is in a mirror relationship

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

- Number: US 2019/0377651 A1
- Document ID: US20190377651A1
- Status: Published application
- Kind: A1
- Application number: 16/546,297
- Filed: 2019-08-21
- Published: 2019-12-12
- Earliest claimed: 2017-03-29
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Gregory E. McBride; Dash D. Miller; Miguel A. Perez; David C. Reed
- Web page: https://patentgrep.com/patent/US20190377651A1

## CPC

- G06F 11/2082: {Data synchronisation}
- G06F 11/1662: {the resynchronized component or unit being a persistent storage device (re-synchronization of failed mirror storage G06F11/2082; rebuild or reconstruction of parity RAID storage G06F11/1008)}
- G06F 11/2094: {Redundant storage or storage space (G06F11/2056 takes precedence)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer program product, system, and method for switching over from using a first primary storage to using a second primary storage when the first primary storage is in a mirror relationship. Migration operations are initiated to migrate data in the first primary storage to a second primary storage while the data in the first primary storage indicated in first change recording information is mirrored to a secondary storage and switch from using the first primary storage to the second primary storage. Resynchronization operations are initiated to indicate changes to data in the second primary storage in a second change recording information, copy writes from the second primary storage indicated in the first and the second change recording information to the secondary storage, and mirror writes to the second primary storage to the secondary storage in response to the copying the writes.

## Claims

### Claim at position 1

1-24. (canceled)

### Claim 25

A computer program product for switching between a first primary storage and a secondary primary storage in communication with a secondary storage, wherein the computer program product comprises a computer readable storage medium having program instructions that when executed by a processor perform operations, the operations comprising:
migrating data in the first primary storage to the second primary storage while the data in the first primary storage indicated in first change recording information is mirrored to the secondary storage, wherein the first change recording information indicates data from the first primary storage to mirror to the secondary storage;
after completing the migrating of data from the first primary storage to the second primary storage, indicating writes received to the first primary storage in the first change recording information;
switching from using the first primary storage to the second primary storage for host read and write access after completing the migrating of data from the first primary storage to the second primary storage;
after switching to using the second primary storage, indicating changes to the second primary storage in second change recording information indicating data from the second primary storage to mirror to the secondary storage; and
copying writes from the second primary storage indicated in the first and the second change recording information to the secondary storage.

### Claim 26 (depends on 25)

The computer program product of claim 25, wherein the operations further comprise:
using the second change recording information to indicate writes to the secondary primary storage to copy to the secondary storage that are received after completing the copying of writes indicated in the first and the second change recording information to the secondary storage.

### Claim 27 (depends on 25)

The computer program product of claim 25, wherein the operations further comprise:
initiating quiescing of writes to the first primary storage in response to completing the migrating of data in the first primary storage to the second primary storage indicated in the first change recording information, wherein the indicating of writes in the first change recording information after completing the migrating of data is performed after the quiescing of writes is initiated, wherein the switching from using the first primary storage to the second primary storage is performed in response to completing the quiescing of writes to the first primary storage.

### Claim 28 (depends on 27)

The computer program product of claim 27, wherein the operations further comprise:
maintaining a first copy relationship including the first change recording information to mirror data from the first primary storage to the secondary storage;
suspending the first copy relationship in response to the quiescing of writes to the first primary storage;
establishing a second copy relationship in a suspended state including the second change recording information to mirror data from the second primary storage to the secondary storage; and
changing the second copy relationship from the suspended state to an active state to mirror data from the second primary storage to the secondary storage in response to copying the writes indicated in the first and the second change recording information to the secondary storage.

### Claim 29 (depends on 27)

The computer program product of claim 27, wherein writes to the first primary storage that occur after the initiating the quiescing of writes and before the completing the quiescing of writes are indicated in the first change recording information, wherein the operations further comprise:
terminating the migrating of data from the first primary storage to the second primary storage in response to completing copying all the writes to the second primary storage indicated in the first change recording information, including writes indicated in the first change recording information after initiating the quiescing of writes.

### Claim 30 (depends on 27)

The computer program product of claim 27, wherein the copying of the writes from the second primary storage to the secondary storage indicated in the first and the second change recording information is performed in response to completing the quiescing of writes to the first primary storage.

### Claim 31 (depends on 27)

The computer program product of claim 27,
wherein the migrating of data in the first primary storage to the second primary storage, the indicating the writes received to the first primary storage in the first change recording information after the quiescing of writes, and the switching from using the first primary storage to the second primary storage are performed as part of a migration operation, and
wherein the indicating changes to the second primary storage in the second change recording information, and the copying writes from the second primary storage indicated in the first and the second change recording information are performed as part of a resynchronization operation, wherein the migration operations and the resynchronization operations are performed concurrently.

### Claim 32

A system for switching between a first primary storage and a second primary storage and further in communication with a secondary storage, comprising:
a processor; and
a computer readable storage medium having program instructions embodied therewith that when executed by the processor cause operations, the operations comprising:
migrating data in the first primary storage to the second primary storage while the data in the first primary storage indicated in first change recording information is mirrored to the secondary storage, wherein the first change recording information indicates data from the first primary storage to mirror to the secondary storage;
after completing the migrating of data from the first primary storage to the second primary storage, indicating writes received to the first primary storage in the first change recording information;
switching from using the first primary storage to the second primary storage for host read and write access after completing the migrating of data from the first primary storage to the second primary storage;
after switching to using the second primary storage, indicating changes to the second primary storage in second change recording information indicating data from the second primary storage to mirror to the secondary storage; and
copying writes from the second primary storage indicated in the first and the second change recording information to the secondary storage.

### Claim 33 (depends on 32)

The system of claim 32, wherein the operations further comprise:
using the second change recording information to indicate writes to the secondary primary storage to copy to the secondary storage that are received after completing the copying of writes indicated in the first and the second change recording information to the secondary storage.

### Claim 34 (depends on 32)

The system of claim 32, wherein the operations further comprise:
initiating quiescing of writes to the first primary storage in response to completing the migrating of data in the first primary storage to the second primary storage indicated in the first change recording information, wherein the indicating of writes in the first change recording information after completing the migrating of data is performed after the quiescing of writes is initiated, wherein the switching from using the first primary storage to the second primary storage is performed in response to completing the quiescing of writes to the first primary storage.

### Claim 35 (depends on 34)

The system of claim 34, wherein the operations further comprise:
maintaining a first copy relationship including the first change recording information to mirror data from the first primary storage to the secondary storage;
suspending the first copy relationship in response to the quiescing of writes to the first primary storage;
establishing a second copy relationship in a suspended state including the second change recording information to mirror data from the second primary storage to the secondary storage; and
changing the second copy relationship from the suspended state to an active state to mirror data from the second primary storage to the secondary storage in response to copying the writes indicated in the first and the second change recording information to the secondary storage.

### Claim 36 (depends on 34)

The system of claim 34, wherein writes to the first primary storage that occur after the initiating the quiescing of writes and before the completing the quiescing of writes are indicated in the first change recording information, wherein the operations further comprise:
terminating the migrating of data from the first primary storage to the second primary storage in response to completing copying all the writes to the second primary storage indicated in the first change recording information, including writes indicated in the first change recording information after initiating the quiescing of writes.

### Claim 37 (depends on 34)

The system of claim 34, wherein the copying of the writes from the second primary storage to the secondary storage indicated in the first and the second change recording information is performed in response to completing the quiescing of writes to the first primary storage.

### Claim 38 (depends on 34)

The system of claim 34,
wherein the migrating of data in the first primary storage to the second primary storage, the indicating the writes received to the first primary storage in the first change recording information after the quiescing of writes, and the switching from using the first primary storage to the second primary storage are performed as part of a migration operation, and
wherein the indicating changes to the second primary storage in the second change recording information, and the copying writes from the second primary storage indicated in the first and the second change recording information are performed as part of a resynchronization operation, wherein the migration operations and the resynchronization operations are performed concurrently.

### Claim 39

A method for switching between a first primary storage, and a second primary storage, comprising:
migrating data in the first primary storage to the second primary storage while the data in the first primary storage indicated in first change recording information is mirrored to the secondary storage, wherein the first change recording information indicates data from the first primary storage to mirror to the secondary storage;
after completing the migrating of data from the first primary storage to the second primary storage, indicating writes received to the first primary storage in the first change recording information;
switching from using the first primary storage to the second primary storage for host read and write access after completing the migrating of data from the first primary storage to the second primary storage;
after switching to using the second primary storage, indicating changes to the second primary storage in second change recording information indicating data from the second primary storage to mirror to the secondary storage; and
copying writes from the second primary storage indicated in the first and the second change recording information to the secondary storage.

### Claim 40 (depends on 39)

The method of claim 39, further comprising:
using the second change recording information to indicate writes to the secondary primary storage to copy to the secondary storage that are received after completing the copying of writes indicated in the first and the second change recording information to the secondary storage.

### Claim 41 (depends on 39)

The method of claim 39, further comprising:
initiating quiescing of writes to the first primary storage in response to completing the migrating of data in the first primary storage to the second primary storage indicated in the first change recording information, wherein the indicating of writes in the first change recording information after completing the migrating of data is performed after the quiescing of writes is initiated, wherein the switching from using the first primary storage to the second primary storage is performed in response to completing the quiescing of writes to the first primary storage.

### Claim 42 (depends on 41)

The method of claim 41, further comprising:
maintaining a first copy relationship including the first change recording information to mirror data from the first primary storage to the secondary storage;
suspending the first copy relationship in response to the quiescing of writes to the first primary storage;
establishing a second copy relationship in a suspended state including the second change recording information to mirror data from the second primary storage to the secondary storage; and
changing the second copy relationship from the suspended state to an active state to mirror data from the second primary storage to the secondary storage in response to copying the writes indicated in the first and the second change recording information to the secondary storage.

### Claim 43 (depends on 41)

The method of claim 41, wherein writes to the first primary storage that occur after the initiating the quiescing of writes and before the completing the quiescing of writes are indicated in the first change recording information, wherein the operations further comprise:
terminating the migrating of data from the first primary storage to the second primary storage in response to completing copying all the writes to the second primary storage indicated in the first change recording information, including writes indicated in the first change recording information after initiating the quiescing of writes.

### Claim 44 (depends on 41)

The method of claim 41, wherein the copying of the writes from the second primary storage to the secondary storage indicated in the first and the second change recording information is performed in response to completing the quiescing of writes to the first primary storage.
