# US 11,119,687 B2 · Device reservation state synchronization in data mirroring

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

- Number: US 11,119,687 B2
- Document ID: US11119687B2
- Status: Granted
- Kind: B2
- Application number: 16/600,389
- Filed: 2019-10-11
- Published: 2020-02-06
- Granted: 2021-09-14
- Earliest claimed: 2017-11-30
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Scott B. Compton; Matthew R. Craig; Clint A. Hardy; Matthew J. Kalos; Carol S. Mellgren; John G. Thompson
- Web page: https://patentgrep.com/patent/US11119687B2

## CPC

- G06F 3/061: {Improving I/O performance}
- G06F 3/065: {Replication mechanisms}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0631: {by allocating resources to storage systems}
- 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: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

One general aspect of device reservation state synchronization in accordance with the present description, device reservation management logic ensures synchronization of reservation states of primary and secondary volumes of a mirror relationship in the event of a change in the state of the mirroring relationship such as achieving full data synchronization between the volumes. Other features and aspects may be realized, depending upon the particular application.

## Claims

### Claim 1

A computer program product for use with a plurality of hosts, a primary data storage system, the primary data storage system having a primary storage controller and a primary storage drive controlled by the primary storage controller, the primary storage drive having a primary device configured to store data, and at least one secondary data storage system, each secondary data storage system having a secondary storage controller and a secondary storage drive controlled by the secondary storage controller, the secondary storage drive having a plurality of secondary devices configured to store data, wherein the computer program product comprises a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor of a host to cause processor operations, the processor operations comprising:
relationship state detection logic detecting a change in relationship state of a synchronous mirror relationship between a primary device controlled by a primary storage controller, and at least one secondary device controlled by at least one secondary storage controller; and
reservation state synchronization logic, in response to detecting a change in relationship state, determining if a reservation state of the primary device is synchronized with respect to a reservation state of a secondary device of the synchronous mirror relationship, and synchronizing the reservation states of the primary device and the at least one secondary device if determined to be out of synchronization.

### Claim 2 (depends on 1)

The computer program product of claim 1 wherein the operations further comprise reporting by the relationship state detection logic, the change in state of the synchronous mirror relationship to a host after synchronizing reservation states of the primary and secondary devices to ensure that the reservation states of the primary and secondary devices are synchronized prior to reporting the change of relationship state to the host.

### Claim 3 (depends on 1)

The computer program product of claim 1 wherein determining if a reservation state of the primary device to a host is synchronized with respect to a reservation state of at least one secondary device to a host includes determining the reservation state of the primary device and determining the reservation state of the at least one secondary device and comparing the determined reservation states of the primary and the at least one secondary device to determine if the determined reservation states of the primary and the at least one secondary device match wherein if the determined reservation state of the primary device matches the determined reservation state of the at least one secondary device, the reservation states of the primary and the at least one secondary device are determined to be synchronized and wherein if the determined reservation state of the primary device does not match the determined reservation state of the at least one secondary device, the reservation states of the primary and the at least one secondary device are determined to be out of synchronization.

### Claim 4 (depends on 3)

The computer program product of claim 3 wherein relationship state detection logic in detecting a change in relationship state detects completion of data synchronization of the primary device and the at least one secondary device, and wherein synchronizing the reservation states includes overriding any existing reservation state of the at least one secondary device to match the reservation state of the primary device prior to reporting completion of data synchronization to full duplex status, and wherein the operations further comprise reporting by the relationship state detection logic, the change in state of the synchronous mirror relationship to a host.

### Claim 5 (depends on 3)

The computer program product of claim 3 wherein synchronizing the reservation states includes if the reservation state of the at least one secondary device is determined to be reserved and the reservation state of the primary device is determined to be not reserved, releasing the reservation state of the at least one secondary device to a not reserved state.

### Claim 6 (depends on 4)

The computer program product of claim 4 wherein synchronizing the reservation states includes, if reservation state of the primary device is determined to be reserved to a first host and the reservation state of the at least one secondary device is determined to be reserved to a second host different from the first host, overriding the reservation of the at least one secondary device to the second host, and reserving the secondary device to the first host so that the reservation state of the secondary device becomes reserved to the same host as that of the reserved primary device.

### Claim 7 (depends on 4)

The computer program product of claim 4 wherein synchronizing the reservation states includes, if reservation state of the primary device is determined to be reserved to a first host and the reservation state of the at least one secondary device is determined to be not reserved to any host, reserving the at least one secondary device to the first host so that the reservation state of the at least one secondary device becomes reserved to the first host.

### Claim 8 (depends on 1)

The computer program product of claim 1 wherein the operations further comprise:
device reservation logic propagating a reservation state from the primary device to the at least one secondary device so that the at least one secondary device assumes the same reservation state as the primary device upon completion of the propagation; and
reservation state synchronization logic suspending other reservation state changing until the reservation state propagation is complete.

### Claim 9

A method, comprising:
relationship state detection logic detecting a change in relationship state of a synchronous mirror relationship between a primary device configured to store data and controlled by a primary storage controller, and at least one secondary device configured to store data and controlled by at least one secondary storage controller; and
reservation state synchronization logic, in response to detecting a change in relationship state, determining if a reservation state of the primary device is synchronized with respect to a reservation state of a secondary device of the synchronous mirror relationship, and synchronizing the reservation states of the primary device and the at least one secondary device if determined to be out of synchronization.

### Claim 10 (depends on 9)

The method of claim 9 further comprising reporting by the relationship state detection logic, the change in state of the synchronous mirror relationship to a host after synchronizing reservation states of the primary and secondary devices to ensure that the reservation states of the primary and secondary devices are synchronized prior to reporting the change of relationship state to the host.

### Claim 11 (depends on 9)

The method of claim 9 wherein determining if a reservation state of the primary device is synchronized with respect to a reservation state of at least one secondary device includes determining the reservation state of the primary device and determining the reservation state of the at least one secondary device and comparing the determined reservation states of the primary and the at least one secondary device to determine if the determined reservation states of the primary and the at least one secondary device match wherein if the determined reservation state of the primary device matches the determined reservation state of the at least one secondary device, the reservation states of the primary and the at least one secondary device are determined to be synchronized and wherein if the determined reservation state of the primary device does not match the determined reservation state of the at least one secondary device, the reservation states of the primary and the at least one secondary device are determined to be out of synchronization.

### Claim 12 (depends on 11)

The method of claim 11 wherein relationship state detection logic in detecting a change in relationship state detects completion of data synchronization of the primary device and the at least one secondary device, and wherein synchronizing the reservation states includes overriding any existing reservation state of the at least one secondary device to match the reservation state of the primary device prior to reporting completion of data synchronization to full duplex status.

### Claim 13 (depends on 11)

The method of claim 11 wherein synchronizing the reservation states includes if the reservation state of the at least one secondary device is determined to be reserved and the reservation state of the primary device is determined to be not reserved, releasing the reservation state of the at least one secondary device to a not reserved state.

### Claim 14 (depends on 12)

The method of claim 12 wherein synchronizing the reservation states includes, if reservation state of the primary device is determined to be reserved to a first host and the reservation state of the at least one secondary device is determined to be reserved to a second host different from the first host, overriding the reservation of the at least one secondary device to the second host, and reserving the secondary device to the first host so that the reservation state of the secondary device becomes reserved to the same host as that of the reserved primary device.

### Claim 15 (depends on 12)

The method of claim 12 wherein synchronizing the reservation states includes, if reservation state of the primary device is determined to be reserved to a first host and the reservation state of the at least one secondary device is determined to be not reserved to any host, reserving the at least one secondary device to the first host so that the reservation state of the at least one secondary device becomes reserved to the first host.

### Claim 16 (depends on 9)

The method of claim 9 further comprising:
device reservation logic propagating a reservation state from the primary device to the at least one secondary device so that the at least one secondary device assumes the same reservation state as the primary device upon completion of the propagation; and
reservation state synchronization logic suspending other reservation state changing until the reservation state propagation is complete.

### Claim 17

A system for use with at least one host, comprising:
a primary data storage system, the primary data storage system having a primary storage controller and a primary storage drive controlled by the primary storage controller, the primary storage drive having a plurality of primary devices configured to store data; and
at least one secondary data storage system each secondary data storage system having a secondary storage controller and a secondary storage drive controlled by the secondary storage controller, the secondary storage drive having a plurality of secondary devices configured to store data;
wherein at least one of the primary and secondary storage controllers includes device reservation logic which includes:
relationship state detection logic configured to detect a change in relationship state of a synchronous mirror relationship between a primary device controlled by a primary storage controller, and at least one secondary device controlled by the at least one secondary storage controller; and
reservation state synchronization logic, configured to, in response to the relationship state detection logic detecting a change in relationship state, determine if a reservation state of the primary device is synchronized with respect to a reservation state of a secondary device of the synchronous mirror relationship, and synchronize the reservation states of the primary device and the at least one secondary device if determined to be out of synchronization.

### Claim 18 (depends on 17)

The system of claim 17 wherein the relationship state detection logic is further configured to report the change in state of the synchronous mirror relationship to a host after synchronizing of reservation states of the primary and secondary devices by the reservation state synchronizing logic, to ensure that the reservation states of the primary and secondary devices are synchronized prior to reporting the change of relationship state to the host.

### Claim 19 (depends on 17)

The system of claim 17 wherein configuration of the reservation state synchronizing logic to determine if a reservation state of the primary device to a host is synchronized with respect to a reservation state of at least one secondary device to a host, includes being configured to determine the reservation state of the primary device and determine the reservation state of the at least one secondary device and compare the determined reservation states of the primary and the at least one secondary device to determine if the determined reservation states of the primary and the at least one secondary device match wherein if the determined reservation state of the primary device matches the determined reservation state of the at least one secondary device, the reservation states of the primary and the at least one secondary device are determined to be synchronized and wherein if the determined reservation state of the primary device does not match the determined reservation state of the at least one secondary device, the reservation states of the primary and the at least one secondary device are determined to be out of synchronization.

### Claim 20 (depends on 19)

The system of claim 19 wherein configuration of the relationship state detection logic to detect a change in relationship state includes being configured to detect completion of data synchronization of the primary and the at least one secondary device, and wherein the configuration of the reservation state synchronizing logic to synchronize the reservation states includes being configured to override any existing reservation state of the at least one secondary device to match the reservation state of the primary device prior to the relationship state detection logic reporting completion of data synchronization to full duplex status.

### Claim 21 (depends on 19)

The system of claim 19 wherein configuration of the reservation state synchronizing logic to synchronize the reservation states includes being configured to, if the reservation state of the at least one secondary device is determined to be reserved and the reservation state of the primary device is determined to be not reserved, release the reservation of the at least one secondary device to a not reserved state.

### Claim 22 (depends on 20)

The system of claim 20 further comprising a plurality of hosts, wherein configuration of the reservation state synchronizing logic to synchronize the reservation states includes being configured to, if reservation state of the primary device is determined to be reserved to a first host and the reservation state of the at least one secondary device is determined to be reserved to a second host different from the first host, override the reservation of the at least one secondary device to the second host, and reserve the secondary device to the first host so that the reservation state of the secondary device becomes reserved to the same host as that of the reserved primary device.

### Claim 23 (depends on 20)

The system of claim 20 further comprising a plurality of hosts, wherein configuration of the reservation state synchronizing logic to synchronize the reservation states includes being configured to, if the reservation state of the primary device is determined to be reserved to a first host and the reservation state of the at least one secondary device is determined to be not reserved to any host, reserve the at least one secondary device to the first host so that the reservation state of the at least one secondary device becomes reserved to the first host.

### Claim 24 (depends on 17)

The system of claim 17 wherein:
the device reservation logic is configured to propagate a reservation state from the primary device to the at least one secondary device so that the at least one secondary device assumes the same reservation state as the primary device; and
the reservation state synchronization logic is further configured to suspend other reservation state changing until the reservation state propagation is complete.

### Claim 25 (depends on 23)

The system of claim 23 further comprising said first host.
