# US 2017/0364427 A1 · After swapping from a first storage to a second storage, mirroring data from the second storage to the first storage for data in the first storage that experienced data errors

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

- Number: US 2017/0364427 A1
- Document ID: US20170364427A1
- Status: Published application
- Kind: A1
- Application number: 15/187,388
- Filed: 2016-06-20
- Published: 2017-12-21
- Earliest claimed: 2016-06-20
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: David R. Blea; Gregory E. McBride; Carol S. Mellgren; Tabor R. Powelson; William J. Rooney
- Web page: https://patentgrep.com/patent/US20170364427A1

## CPC

- G06F 11/2033: {switching over of hardware resources}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0638: {Organizing or formatting or addressing of data}
- G06F 3/065: {Replication mechanisms}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- 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/3055: {Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available (error or fault processing without redundancy G06F11/0703; error detection or correction by redundancy in data representation G06F11/08; error detection or correction of the data by redundancy in operations G06F11/14; error detection or correction by redundancy in hardware G06F11/16)}
- G06F 12/08: in hierarchically structured memory systems, e.g. virtual memory systems
- G06F 2212/60: Details of cache memory
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Provided are a computer program product, system, and method for after swapping from a first storage to a second storage, mirroring data from the second storage to the first storage for data in the first storage that experienced data errors. A swap operation redirects host Input/Output (I/O) requests to data from the first server to the second server in response to a health condition at the first server. A determination is made of data errors with respect to data in the first storage that experienced data errors. The second server is instructed to mirror data in the second storage to the first server including data for the data in the first storage that experienced the data errors to store in the first storage in response to determining that the first server is available for the data mirroring operations.

## Claims

### Claim 1

A computer program product for redirecting host access from a first server to a second server, wherein the first server manages access to a first storage and the second server manages access to a second storage, the computer program product comprising a computer readable storage medium having computer readable program code embodied therein that is executable to perform operations, the operations comprising:
performing a swap operation to redirect host Input/Output (I/O) requests to data from the first server to the second server in response to a health condition at the first server, wherein after the swap operation, the host I/O requests are directed to the second server;
determining that the first server is available for data mirroring operations;
determining data errors with respect to data in the first storage that experienced data errors; and
instructing the second server to mirror data in the second storage to the first server including data for the data in the first storage that experienced the data errors to store in the first storage in response to determining that the first server is available for the data mirroring operations.

### Claim 2 (depends on 1)

The computer program product of claim 1, wherein the data experiencing the data errors is indicated as pinned as a result of modified data in a cache of the first server becoming lost or corrupted, wherein the mirroring of the data from the second storage to the first storage replaces the data experiencing the data errors in the first storage that was pinned, wherein the operations further comprise:
indicating the data experiencing the data errors as unpinned in response to the data mirroring operations overwriting the data in the first storage experiencing the data errors with data mirrored from the second storage.

### Claim 3 (depends on 1)

The computer program product of claim 1, wherein the operations further comprise:
updating a first data structure indicating modified data in the first storage to indicate the data experiencing the data errors as modified; and
merging the first data structure with a second data structure indicating modified data in the second storage to mirror to the first storage, wherein the second data structure following the merging indicates to mirror from the second storage the data in the first storage that experienced the data errors.

### Claim 4 (depends on 1)

The computer program product of claim 1, wherein the operations further comprise:
updating a data structure indicating modified data in the second storage to indicate the data experiencing the data errors as modified, wherein the second server mirrors data indicated in the data structure as modified from the second storage to the first server.

### Claim 5 (depends on 1)

The computer program product of claim 1, wherein the operations further comprise:
determining a health condition with respect to the first server that triggers the swap operation, wherein the swap operation is performed in response to determining the health condition; and
determining that the health condition is resolved when the data errors in the first storage remain, wherein the first server is determined to be available for data mirroring operations in response to determining that the health condition is resolved when the data errors remain.

### Claim 6 (depends on 5)

The computer program product of claim 5, wherein the data errors cause the health condition.

### Claim 7 (depends on 5)

The computer program product of claim 5, wherein the health condition comprises an initial health condition, and wherein the operations further comprise:
determining at least one additional health condition with respect to the first server following the swap operation and before the second server is instructed to mirror the data to the first server; and
determining that the initial health condition and the at least one additional health condition are resolved while the data errors in the first storage remain, wherein the second server is instructed to mirror the data, including the data that experienced the data errors, in response to determining that the initial health condition and the at least one additional health condition are determined to be resolved while the data errors in the first storage remain.

### Claim 8 (depends on 7)

The computer program product of claim 7, wherein the operations further comprise:
indicating the initial health condition and the at least one additional health condition as unresolved in response to determining the initial and the at least one additional health conditions;
indicating each of the initial and the at least one additional health condition as resolved in response to determining that one of the initial and the at least one additional health condition is resolved, wherein the data errors remain after the initial and the at least one additional health condition are resolved.

### Claim 9 (depends on 1)

The computer program product of claim 1, wherein the health condition indicates one of a plurality of severity levels, wherein at least one of the severity levels triggers the swap operation, wherein the at least one of the severity levels that triggers the swap operation indicates a health condition whose recovery time will exceed a time to perform the swap operation.

### Claim 10

A system for redirecting host access from a first server to a second server, wherein the first server manages access to a first storage and the second server manages access to a second storage, comprising:
processing; and
a computer readable storage medium having computer readable program code embodied that when executed performs operations, the operations comprising:
performing a swap operation to redirect host Input/Output (I/O) requests to data from the first server to the second server in response to a health condition at the first server, wherein after the swap operation, the host I/O requests are directed to the second server;
determining that the first server is available for data mirroring operations;
determining data errors with respect to data in the first storage that experienced data errors; and
instructing the second server to mirror data in the second storage to the first server including data for the data in the first storage that experienced the data errors to store in the first storage in response to determining that the first server is available for the data mirroring operations.

### Claim 11 (depends on 10)

The system of claim 10, wherein the data experiencing the data errors is indicated as pinned as a result of modified data in a cache of the first server becoming lost or corrupted, wherein the mirroring of the data from the second storage to the first storage replaces the data experiencing the data errors in the first storage that was pinned, wherein the operations further comprise:
indicating the data experiencing the data errors as unpinned in response to the data mirroring operations overwriting the data in the first storage experiencing the data errors with data mirrored from the second storage.

### Claim 12 (depends on 10)

The system of claim 10, wherein the operations further comprise:
updating a first data structure indicating modified data in the first storage to indicate the data experiencing the data errors as modified; and
merging the first data structure with a second data structure indicating modified data in the second storage to mirror to the first storage, wherein the second data structure following the merging indicates to mirror from the second storage the data in the first storage that experienced the data errors.

### Claim 13 (depends on 10)

The system of claim 10, wherein the operations further comprise:
updating a data structure indicating modified data in the second storage to indicate the data experiencing the data errors as modified, wherein the second server mirrors data indicated in the data structure as modified from the second storage to the first server.

### Claim 14 (depends on 10)

The system of claim 10, wherein the operations further comprise:
determining a health condition with respect to the first server that triggers the swap operation, wherein the swap operation is performed in response to determining the health condition; and
determining that the health condition is resolved when the data errors in the first storage remain, wherein the first server is determined to be available for data mirroring operations in response to determining that the health condition is resolved when the data errors remain.

### Claim 15 (depends on 14)

The system of claim 14, wherein the health condition comprises an initial health condition, and wherein the operations further comprise:
determining at least one additional health condition with respect to the first server following the swap operation and before the second server is instructed to mirror the data to the first server; and
determining that the initial health condition and the at least one additional health condition are resolved while the data errors in the first storage remain, wherein the second server is instructed to mirror the data, including the data that experienced the data errors, in response to determining that the initial health condition and the at least one additional health condition are determined to be resolved while the data errors in the first storage remain.

### Claim 16 (depends on 10)

The system of claim 10, wherein the health condition indicates one of a plurality of severity levels, wherein at least one of the severity levels triggers the swap operation, wherein the at least one of the severity levels that triggers the swap operation indicates a health condition whose recovery time will exceed a time to perform the swap operation.

### Claim 17

A method for redirecting host access from a first server to a second server, wherein the first server manages access to a first storage and the second server manages access to a second storage, comprising:
performing a swap operation to redirect host Input/Output (I/O) requests to data from the first server to the second server in response to a health condition at the first server, wherein after the swap operation, the host I/O requests are directed to the second server;
determining that the first server is available for data mirroring operations;
determining data errors with respect to data in the first storage that experienced data errors; and
instructing the second server to mirror data in the second storage to the first server including data for the data in the first storage that experienced the data errors to store in the first storage in response to determining that the first server is available for the data mirroring operations.

### Claim 18 (depends on 17)

The method of claim 17, wherein the data experiencing the data errors is indicated as pinned as a result of modified data in a cache of the first server becoming lost or corrupted, wherein the mirroring of the data from the second storage to the first storage replaces the data experiencing the data errors in the first storage that was pinned, further comprising:
indicating the data experiencing the data errors as unpinned in response to the data mirroring operations overwriting the data in the first storage experiencing the data errors with data mirrored from the second storage.

### Claim 19 (depends on 17)

The method of claim 17, further comprising:
updating a first data structure indicating modified data in the first storage to indicate the data experiencing the data errors as modified; and
merging the first data structure with a second data structure indicating modified data in the second storage to mirror to the first storage, wherein the second data structure following the merging indicates to mirror from the second storage the data in the first storage that experienced the data errors.

### Claim 20 (depends on 17)

The method of claim 17, further comprising:
updating a data structure indicating modified data in the second storage to indicate the data experiencing the data errors as modified, wherein the second server mirrors data indicated in the data structure as modified from the second storage to the first server.

### Claim 21 (depends on 17)

The method of claim 17, further comprising:
determining a health condition with respect to the first server that triggers the swap operation, wherein the swap operation is performed in response to determining the health condition; and
determining that the health condition is resolved when the data errors in the first storage remain, wherein the first server is determined to be available for data mirroring operations in response to determining that the health condition is resolved when the data errors remain.

### Claim 22 (depends on 21)

The method of claim 21, wherein the health condition comprises an initial health condition, further comprising:
determining at least one additional health condition with respect to the first server following the swap operation and before the second server is instructed to mirror the data to the first server; and
determining that the initial health condition and the at least one additional health condition are resolved while the data errors in the first storage remain, wherein the second server is instructed to mirror the data, including the data that experienced the data errors, in response to determining that the initial health condition and the at least one additional health condition are determined to be resolved while the data errors in the first storage remain.

### Claim 23 (depends on 17)

The computer program product of claim 17, wherein the health condition indicates one of a plurality of severity levels, wherein at least one of the severity levels triggers the swap operation, wherein the at least one of the severity levels that triggers the swap operation indicates a health condition whose recovery time will exceed a time to perform the swap operation.
