STORAGE SYSTEM, STORAGE, AND METHOD AND PROGRAM FOR CONTROLLING STORAGE SYSTEM

The storage system addresses data consistency and efficiency issues in remote copying by ensuring ordered data handling and difference management, facilitating seamless restarts and reduced capacity needs.

JP7553136B1Active Publication Date: 2024-09-18NEC PLATFROMS LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2023034239
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2023-03-07
Publication Date
2024-09-18
Estimated Expiration
2043-03-07

AI Technical Summary

Technical Problem

Existing data backup methods for remote storage systems face issues with data consistency during differential copying, leading to inefficiencies and increased processing and storage capacity requirements, and the potential for data loss due to asynchronous operations.

Method used

A storage system that includes a primary volume and a secondary volume connected via a communication line, with mechanisms to temporarily hold data, manage differences, and store information about data discrepancies, ensuring data order and enabling restartable copying operations.

Benefits of technology

Ensures data consistency and reduces the time required to resume copying operations by maintaining data order and managing differences, thereby preventing data loss and optimizing storage capacity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007553136000001
    Figure 0007553136000001
Patent Text Reader

Abstract

To appropriately save data in a secondary volume when a data copy operation in which the order is guaranteed from a primary volume to a secondary volume is stopped and then resumed. [Solution] When a copy operation that guarantees order from the primary volume to the secondary volume is stopped, the storage system copies each piece of data that is determined to have a difference between the secondary volume and the save volume during the copy operation that guarantees order from the primary volume to the secondary volume from the secondary volume to the save volume before copying each piece of data that is determined to have a difference between the primary volume and the secondary volume during the stopped period from the primary volume to the secondary volume, and then copies each piece of data that is determined to have a difference based on first difference information stored in a second storage means from the primary volume to the secondary volume, and then resumes the copy operation.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a storage system, a storage, and a control method and program for a storage system. [Background technology]

[0002] Methods for backing up data in a storage at a main site to a storage at a remote site include a method in which data updates at the main site and data copies at the remote site are performed asynchronously while maintaining the order of data (see, for example, Patent Document 1). In this method, for example, when a buffer that temporarily holds the data to be copied overflows, the copy operation is stopped, differential copies are performed until consistency is achieved, and then the copy operation is resumed. This differential copy is performed without considering the order of data, so if a failure occurs at the main site while the differential copy is being performed, the data at the remote site becomes meaningless (see paragraphs 0007-0009 of Patent Document 1). To address this problem, a backup area that holds the state before the differential copy is performed at the remote site can be provided, making it possible to recover at least the consistent data before the differential copy (see paragraphs 0010-0011 of Patent Document 1). When providing a save area, in order to save the data to be overwritten before overwriting the differential data, it is necessary to search for an empty area, save the data, and create and store information indicating the location where the data was stored and the save destination, etc. (Patent document prior to Patent Document 1 (Patent Publication No. 11-15604, paragraph 0052)). In addition, when providing a save area, it is necessary to prepare a volume capacity that is twice the current capacity (Patent Document 1, paragraph 0014).

[0003] Furthermore, the above-mentioned problem of differential copying between the main site and the remote site can be solved, for example, by providing a replica of the secondary volume of the copy destination at the remote site and backing up all data of the secondary volume to the replica (Patent Document 2). In this case, data recovery using the save volume when a failure occurs is performed based on the data at the time when the data of the secondary volume was backed up to the replica. In the remote copy system described in Patent Document 2, data is backed up from the secondary volume to the replica at a preset scheduled time. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2015-52844 A [Patent Document 2] JP 2008-181288 A Summary of the Invention [Problem to be solved by the invention]

[0005] As described in Patent Document 1, when data to be overwritten is evacuated to a save area when a differential copy is made from a main site to a remote site, it is necessary to secure a save area and create and store information about the evacuated data according to the contents of the differential copy. For this reason, the processing and storage capacity required for the save may become a problem in some cases.

[0006] Furthermore, when creating a replica at a preset reserved time as described in Patent Document 2, the amount of data that can be restored can be an issue depending on the interval between the time when the failure occurred and the reserved time.

[0007] An object of the present invention is to provide a storage system, a storage, a control method for a storage system, and a program that solve the above-mentioned problems. [Means for solving the problem]

[0008] One aspect of the present invention comprises a first storage having a primary volume, and a second storage connected to the first storage via a communication line and having a secondary volume set as a copy pair with the primary volume, the first storage further comprising a first storage means for temporarily holding data copied from the primary volume to the secondary volume with order guaranteed, and a second storage means for storing first difference information representing whether or not there is a difference in data for each predetermined first storage area for the primary volume and the secondary volume, the second storage further comprising a save volume for copying and storing all data of the secondary volume, and a previous copy of the data for the secondary volume and the save volume via the first storage means for each predetermined second storage area for the secondary volume and the save volume. and a third storage means for storing second difference information indicating whether or not a difference has occurred during a copy operation that ensures the order of data from the primary volume to the secondary volume, and when the copy operation is stopped, before copying each piece of data that is determined to have a difference based on the second difference information stored in the second storage means during the suspension period from the primary volume to the secondary volume, the storage system copies each piece of data that is determined to have a difference based on the second difference information from the secondary volume to the save volume, and then copies each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the suspension period from the primary volume to the secondary volume, and then resumes the copy operation.

[0009] One aspect of the present invention is a first storage comprising a primary volume and connected via a communication line to a second storage comprising a secondary volume set as a copy pair with the primary volume, the first storage further comprising a first storage means for temporarily holding data copied from the primary volume to the secondary volume with order guaranteed, and a second storage means for storing first difference information representing whether or not there is a difference in data for each predetermined first storage area for the primary volume and the secondary volume, the second storage further comprising: a secondary volume; a save volume for copying and storing all data of the secondary volume; and a third storage means for storing second difference information indicating whether or not a difference has occurred during a copy operation that guarantees the order of data from a volume to the secondary volume, wherein when the copy operation is stopped, each piece of data that has been determined to have a difference based on the second difference information is copied from the secondary volume to the save volume before each piece of data that has been determined to have a difference based on the first difference information stored in the second storage means during the suspension period is copied from the primary volume to the secondary volume, and then each piece of data that has been determined to have a difference based on the first difference information stored in the second storage means during the suspension period is copied from the primary volume to the secondary volume, and then the copy operation is resumed.

[0010] One aspect of the present invention is a second storage connected via a communication line to a first storage having a primary volume and having a secondary volume set as a copy pair with the primary volume, the first storage comprising: the primary volume; a first storage means for temporarily holding data copied from the primary volume to the secondary volume with order guaranteed; and a second storage means for storing first difference information indicating whether or not there is a difference in data between the primary volume and the secondary volume for each predetermined first storage area; the second storage further comprising a save volume for copying and storing all data of the secondary volume; and a third storage means for storing second difference information indicating whether or not a difference has occurred during a copy operation that guarantees the order of data from a volume to the secondary volume, wherein when the copy operation is stopped, each piece of data that has been determined to have a difference based on the second difference information is copied from the secondary volume to the save volume before each piece of data that has been determined to have a difference based on the first difference information stored in the second storage means during the suspension period is copied from the primary volume to the secondary volume, and then each piece of data that has been determined to have a difference based on the first difference information stored in the second storage means during the suspension period is copied from the primary volume to the secondary volume, and then the copy operation is resumed.

[0011] One aspect of the present invention is a control method for controlling a first storage having a primary volume, and a second storage connected to the first storage via a communication line and having a secondary volume set as a copy pair with the primary volume, wherein the first storage further comprises a first storage means for temporarily holding data copied from the primary volume to the secondary volume with order guaranteed, and a second storage means for storing first difference information representing whether or not there is a difference in data for each predetermined first storage area for the primary volume and the secondary volume, and the second storage further comprises a save volume for copying and storing all data of the secondary volume, and storing first difference information for each predetermined second storage area for the secondary volume and the save volume, the first difference information representing whether or not there is a difference in data for each predetermined second storage area for the secondary volume and the save volume, the second storage further comprises a save volume for copying and storing all data of the secondary volume, and a third storage means for storing second difference information indicating whether or not a difference has occurred during a copy operation that guarantees the order of data from the primary volume to the secondary volume, the method including, when the copy operation is stopped, copying each piece of data that has been determined to have a difference based on the second difference information from the secondary volume to the save volume before copying each piece of data that has been determined to have a difference based on the first difference information stored in the second storage means during the suspension period from the primary volume to the secondary volume, thereafter copying each piece of data that has been determined to have a difference based on the first difference information stored in the second storage means during the suspension period from the primary volume to the secondary volume, and thereafter resuming the copy operation.

[0012] In one aspect of the present invention, when controlling a first storage having a primary volume and a second storage connected to the first storage via a communication line and having a secondary volume set as a copy pair with the primary volume, the first storage further comprises a first storage means for temporarily holding data copied from the primary volume to the secondary volume with order guaranteed, and a second storage means for storing first difference information representing whether or not there is a difference in data for each predetermined first storage area for the primary volume and the secondary volume, and the second storage further comprises a save volume for copying and storing all data of the secondary volume, and storing the previous data from the primary volume via the first storage means for each predetermined second storage area for the secondary volume and the save volume. and a third storage means for storing second difference information indicating whether or not a difference has occurred during a copy operation that ensures the order of data to the secondary volume, and when the copy operation is stopped, the program causes a computer to execute the steps of copying each piece of data that has been determined to have a difference based on the second difference information from the secondary volume to the save volume before copying each piece of data that has been determined to have a difference based on the first difference information stored in the second storage means during the suspension period from the primary volume to the secondary volume, thereafter copying each piece of data that has been determined to have a difference based on the first difference information stored in the second storage means during the suspension period from the primary volume to the secondary volume, and thereafter resuming the copy operation. Effect of the Invention

[0013] According to the storage system, storage, storage system control method, and program of the present invention, when the data copy operation with guaranteed order from the primary volume to the secondary volume is stopped and then resumed, the data in the secondary volume can be appropriately evacuated. [Brief description of the drawings]

[0014] [Figure 1]1 is a block diagram illustrating an example of the configuration of a storage system according to an embodiment of the present invention. [Diagram 2] 11 is a flowchart illustrating an example of processing when a group for order guarantee copying is set in the embodiment of the present invention. [Diagram 3] 11 is a schematic diagram showing an example of group settings for order-guaranteed copying according to an embodiment of the present invention; FIG. [Figure 4] 11 is a flowchart illustrating an example of an operation when a volume for order-guaranteed copying is constructed in the embodiment of the present invention. [Diagram 5] 1 is a schematic diagram illustrating an example of a data flow when a volume for order-guaranteed copying is constructed in an embodiment of the present invention; [Figure 6] 11 is a schematic diagram illustrating an example of the contents of a difference information buffer when a volume for order-guaranteed copying is constructed in an embodiment of the present invention. FIG. [Figure 7] 11 is a flowchart illustrating an example of an operation when constructing a save volume for order guarantee copying in an embodiment of the present invention. [Figure 8] 1 is a schematic diagram illustrating an example of a data flow when a save volume for order guarantee copying is constructed in an embodiment of the present invention; [Figure 9] 11 is a schematic diagram illustrating an example of the contents of a difference information buffer when a save volume for order guarantee copying is constructed in an embodiment of the present invention. FIG. [Figure 10] 11 is a flowchart illustrating an example of an operation of order guarantee copying in an embodiment of the present invention. [Figure 11] FIG. 11 is a schematic diagram for explaining an example of data flow in an example of the operation of order guarantee copying according to an embodiment of the present invention; [Figure 12] 11 is a flowchart illustrating an example of an operation performed when stopping order guarantee copying according to an embodiment of the present invention. [Figure 13] 11 is a flowchart showing an example of an operation performed when writing from a host in a state in which order guarantee copying is stopped in an embodiment of the present invention. [Figure 14]11 is a schematic diagram illustrating an example of data flow in an example of an operation performed when writing from a host in a state in which order guarantee copying is stopped in an embodiment of the present invention. FIG. [Figure 15] 11 is a schematic diagram illustrating an example of the contents of a difference information buffer in an example of an operation performed when writing from a host in a state in which order assurance copying is stopped in an embodiment of the present invention. FIG. [Figure 16] 11 is a flowchart showing an example of an operation when resuming order guarantee copying in the first embodiment of the present invention. [Figure 17] 11 is a flowchart showing an example of a copy operation to a save volume when order guarantee copying is resumed in the first embodiment of the present invention. [Figure 18] FIG. 11 is a schematic diagram illustrating an example of data flow in an operation example when resuming order assurance copying in the first embodiment of the present invention. [Figure 19] 11 is a schematic diagram illustrating an example of the contents of a difference information buffer when resuming order assurance copying in the first embodiment of the present invention. FIG. [Figure 20] 11 is a flowchart showing an example of an operation of differential copying from a primary volume to a secondary volume when order guarantee copying is resumed in the first embodiment of the present invention. [Figure 21] FIG. 11 is a schematic diagram illustrating an example of data flow in an operation example when resuming order assurance copying in the first embodiment of the present invention. [Figure 22] 11 is a schematic diagram illustrating an example of the contents of a difference information buffer when resuming order assurance copying in the first embodiment of the present invention. FIG. [Figure 23] 13 is a flowchart showing an example of an operation when resuming order guarantee copying in the second embodiment of the present invention. [Figure 24] 13 is a flowchart showing an example of an operation of differential copying from a primary volume to a secondary volume when order guarantee copying is resumed in a second embodiment of the present invention. [Diagram 25] 13 is a flowchart showing an example of an operation when stopping an order guarantee copy in the third embodiment of the present invention. [Figure 26] FIG. 2 is a block diagram showing an example of a minimum configuration according to an embodiment of the present invention. [Figure 27] 10 is a flowchart illustrating an example of a minimum configuration of an operation according to an embodiment of the present invention. [Figure 28] FIG. 1 is a schematic block diagram illustrating a configuration of a computer according to at least one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. In each drawing, the same or corresponding components are designated by the same reference numerals and the description thereof will be omitted as appropriate.

[0016] [First embodiment] (Storage system configuration) FIG. 1 is a block diagram for explaining a configuration example of a storage system according to the embodiments (first, second and third embodiments) of the present invention. The storage system 3 shown in FIG. 1 includes a storage 10 installed at a main site 1 and a storage 20 installed at a remote site 2. The remote site 2 is located in an area away from the main site 1 for the purpose of disaster recovery, for example. In the following, the "storage 10 installed at the main site 1" will also be simply referred to as the "main site 1". Also, the "storage 20 installed at the remote site 2" will also be simply referred to as the "remote site 2". The main site 1 and the remote site 2 are connected by a remote line (communication line) 50 such as a LAN (Local Area Network) or a WAN (Wide Area Network).

[0017] The storage 10 is connected to a host computer (hereinafter, simply referred to as a "host") 100 via a communication line 51 such as a SAN (Storage Area Network). The host 100 writes data to the storage 10 and reads data, and also sets operating conditions and the like of the storage system 3. The storage 20 is connected to a host 200 via a communication line 52. The host 200 writes data to the storage 20 and reads data, and also sets operating conditions and the like of the storage system 3. The host 100 and the host 200 may or may not be included in the storage system 3. The host 200 may be omitted. There may be a plurality of hosts 100 and 200. In the following, the operation of writing data from the host 100 to the storage 10 is referred to as "I / O" (input or output) or "host I / O". The written data is also referred to as "I / O data". The I / O data is managed, for example, by an OS (Operating System) running on the host 100. I / O data is issued, for example, in a form in which a write destination volume and a storage area within the volume are specified and a write request to the storage 10 is made in prescribed block units.

[0018] The storage 10 comprises a storage controller (also called a storage processor, array controller, etc.) SC1 and a storage array 30. The storage 20 comprises a storage controller SC2 and a storage array 40. The storage arrays 30 and 40 each comprise, for example, a plurality of disk drives and a controller. A plurality of volumes are set in the storage arrays 30 and 40. A volume is a unit for managing data in a storage (external storage device) and is also called a logical volume. The multiple volumes can be divided into groups. Each group (also called a volume group) can include multiple volumes. Volumes belonging to the same group maintain data consistency at the same time.

[0019] In the storage system 3 of this embodiment, data of the primary volume updated by the host 100 is copied and stored in a buffer (storage area such as a memory or disk) in the main site 1 with the order guaranteed. The data stored in the buffer in the main site 1 is transferred to the storage 20 in the remote site 2 separately asynchronously with the host I / O. A secondary volume with the update order guaranteed is then created on the storage 20 in the remote site 2. Hereinafter, a series of operations in which a copy of data updated in the primary volume is written to the secondary volume with the order guaranteed is referred to as "order guaranteed copy" or "order guaranteed copy operation". Data copied by order guaranteed copy is also referred to as order guaranteed data.

[0020] In this embodiment, as an example, a primary volume 18 (hereinafter also simply referred to as "volume 18") is set in the storage array 30, and a secondary volume 28 (hereinafter also simply referred to as "volume 28") is set in the storage array 40 as a copy pair of the primary volume 18. Also, a save volume 29 that copies and stores all data of the secondary volume 28 is set in the storage array 40. Also, "volume 18" and "volume 28" are set to belong to "group 3". Below, the configuration and operation will be explained using the primary volume 18, secondary volume 28 and save volume 29 as examples as necessary.

[0021] Volumes 18, 28 and evacuation volume 29 each include a corresponding area A (RA), area B (RB), area C (RC), area D (RD), and area E (RE). For example, when performing sequence-guaranteed copying, the same data is stored in area D of volume 18 and area D of volume 28, and the same data is stored in area D of volume 28 and area D of evacuation volume 29.

[0022] (Storage Controller Configuration) The storage controller SC1 has the following functional components, which are configured by a combination of a computer, hardware such as peripheral circuits and devices of the computer, and software such as programs executed by the computer: That is, the storage controller SC1 has an I / O processing unit 11, a cache memory 12, an order assurance processing unit 13, an order assurance buffer 14, a remote transmission processing unit 15, a difference management processing unit 16, and a difference information buffer 17.

[0023] First, the order guarantee buffer 14 and the difference information buffer 17 will be described. The order guarantee buffer 14 is a storage area such as a memory or a disk that stores data for order guarantee copying. In the order guarantee buffer 14, I / O data issued from the host 100 to the primary volume 18 when executing order guarantee copying is stored together with relationship data by the order guarantee processing unit 13. Here, the relationship data includes data indicating, for example, the updated position of the primary volume 18, a timestamp, a sequence number, etc. Note that, hereinafter, the data stored in the order guarantee buffer 14 is also referred to as order guarantee buffer data.

[0024] The difference information buffer 17 is a storage area such as a memory or a disk that stores difference information. The difference information buffer 17 is used at the main site 1 for managing the difference between the volume 18 and the volume 28 at the remote site 2. As shown in FIG. 6, for example, the difference information buffer 17 holds data of "no difference" for each area A(RA), B(RB), C(RC), D(RD), E(RE), ... of the volume 18 when the data matches with each area A(RA), B(RB), C(RC), D(RD), E(RE), ... of the volume 28, and holds data of "difference" when the data does not match. FIG. 6 is a schematic diagram for explaining an example of the contents of the difference information buffer (the difference information buffers 17 and 27) when constructing a volume for sequence guaranteed copying in an embodiment of the present invention. The contents of the difference information buffer 17 are updated by the difference management processing unit 16. The difference information buffer 17 has a setting of valid or invalid, which is set by the difference management processing unit 16, and when invalid, the contents are not updated.

[0025] Next, the I / O processing unit 11 receives and processes I / O data from the host 100. For example, the I / O processing unit 11 receives I / O data written from the host 100 in the cache memory 12 and calls the order assurance processing unit 13. In response to this, the order assurance processing unit 13 copies the data to the order assurance buffer 14 as described below, and reports the completion to the I / O processing unit 11. Furthermore, when the I / O processing unit 11 receives a report of the completion of copying data to the order assurance buffer 14 from the order assurance processing unit 13, it calls the difference management processing unit 16, and sets the difference information buffer 17 to indicate that there is a difference by the difference management processing unit 16. Furthermore, when the I / O processing unit 11 receives a report of the completion of copying I / O data to the order assurance buffer 14 from the order assurance processing unit 13, it reports the completion to the host 100. Furthermore, the I / O processing unit 11 writes the I / O data written in the cache memory 12 to the volume 18 asynchronously with the host I / O.

[0026] The cache memory 12 is a storage area such as a memory or a disk.

[0027] The order assurance processing unit 13 processes the order of I / O. The order assurance processing unit 13 constructs a group of order assurance copies based on, for example, an instruction from the host 100. The order assurance processing unit 13 performs, for example, setting of the volumes 18, 28 and the evacuation volume 29, setting of the order assurance buffers 14 and 24, setting of the difference information buffers 17 and 27, etc. When the order assurance processing unit 13 resumes the order assurance copy, it instructs the difference management processing unit 26 of the remote site 2 to copy the data of the volume 28 to the evacuation volume 29. When called by the I / O processing unit 11, the order assurance processing unit 13 copies the I / O data stored in the cache memory 12 to the order assurance buffer 14 and reports the completion to the I / O processing unit 11. When the order assurance copy is executed, the order assurance processing unit 13 instructs the remote transmission processing unit 15 to transfer the I / O data in the order assurance buffer 14 to the remote site 2. When the order assurance copy is stopped, the order assurance processing unit 13 stops copying the I / O data to the order assurance buffer 14.

[0028] The remote transmission processor 15 performs processing to transmit a copy of the order guarantee buffer 14 and a differential copy to the remote site 2 in response to an instruction from the order guarantee processor 13 or the differential management processor 16. Here, the copy of the order guarantee buffer 14 is data obtained by duplicating the order guarantee buffer data stored in the order guarantee buffer 14. Also, the differential copy is data obtained by duplicating the data of the primary volume 18 based on the contents of the differential information buffer 17 (if "difference exists") when order guarantee copying is resumed.

[0029] The difference management processing unit 16 performs differential copying. The difference management processing unit 16 manages the setting of the difference information buffer 17 as valid or invalid, and the setting of the contents of the difference information buffer 17 ("with difference" or "without difference"). When constructing the secondary volume 28 that is a copy pair of the primary volume 18, the difference management processing unit 16 transfers all data of volume 18 from the remote transmission processing unit 15 to the remote site 2 in order to copy all data of volume 18 to volume 28. Furthermore, when resuming the order guarantee copying, the difference management processing unit 16 transfers a differential copy of the data of volume 18 from the remote transmission processing unit 15 to the remote site 2 based on the contents of the difference information buffer 17.

[0030] The storage controller SC2 has the following functional components, which are configured by a combination of a computer, hardware such as peripheral circuits and devices of the computer, and software such as programs executed by the computer. That is, the storage controller SC2 has an I / O processing unit 21, a cache memory 22, an order assurance processing unit 23, an order assurance buffer 24, a remote reception processing unit 25, a difference management processing unit 26, and a difference information buffer 27.

[0031] First, the order guarantee buffer 24 and the difference information buffer 27 will be described. The order guarantee buffer 24 is a storage area such as a memory or a disk that stores order guarantee data. In the order guarantee buffer 24, the order guarantee buffer data received from the main site 1 when executing order guarantee copy is stored by the order guarantee processing unit 23 together with related data.

[0032] The difference information buffer 27 is a storage area such as a memory or a disk that stores difference information. The difference information buffer 27 is used for managing the difference between the volume 28 and the save volume 29 at the remote site 2. As shown in FIG. 6, for example, the difference information buffer 27 holds data of "no difference" for each area A(RA), B(RB), C(RC), D(RD), E(RE), ... of the volume 28 when the data matches with each area A(RA), B(RB), C(RC), D(RD), E(RE), ... of the volume 29, and holds data of "difference exists" when the data does not match. The contents of the difference information buffer 27 are updated by the difference management processing unit 26. In this example, the difference information buffer 27 and the difference information buffer 17 have the same size of area for managing the presence or absence of difference, but the size of the area may be different. For example, the difference information buffer 27 may manage the presence or absence of a difference by combining two areas A (RA) and B (RB) managed by the difference information buffer 17 into one area.

[0033] The I / O processing unit 21 processes the received I / O. When the remote reception processing unit 25 receives data, the I / O processing unit 21 is called by the remote reception processing unit 25, and calls the order assurance processing unit 23 to have the order assurance buffer 24 receive the data. Also, when the remote reception processing unit 25 receives data, the I / O processing unit 21 is called by the remote reception processing unit 25, and calls the difference management processing unit 26 to instruct it to set the difference information buffer 27 to indicate that there is a difference. Also, when the I / O processing unit 21 receives a report from the order assurance processing unit 23 that reception of data into the order assurance buffer 24 has been completed, it reports the completion to the remote reception processing unit 25.

[0034] The cache memory 22 is a storage area such as a memory or a disk that saves data. The cache memory 22 temporarily holds I / O data sent by the host 200, for example.

[0035] The order assurance processor 23 processes the order assurance buffer data received from the main site 1. When the remote reception processor 25 receives data, the order assurance processor 23 is called by the I / O processor 21, receives the data into the order assurance buffer 24, and reports completion to the I / O processor 21. Also, when the remote reception processor 25 receives data, the order assurance processor 23 is called by the I / O processor 21, calls the difference management processor 26, and has the difference information buffer 27 set to indicate that there is a difference. Also, the order assurance processor 23 copies the data in the order assurance buffer 24 to the volume 28.

[0036] The in-order buffer 24 is a storage area such as a memory or a disk for storing the received in-order data.

[0037] The remote receiving processor 25 receives a copy of the in-sequence buffer 14 from the main site 1 and a differential copy from the volume 18. When the remote receiving processor 25 receives the data, it calls the I / O processor 21. Furthermore, when the I / O processor 21 reports completion to the remote receiving processor 25, the remote receiving processor 25 reports completion to the remote transmitting processor 15 at the main site 1.

[0038] The difference management processing unit 26 performs differential copying. Also, the difference management processing unit 26 updates the contents of the difference information buffer 27. Also, when a volume is constructed, the difference management processing unit 26 copies data of the volume 28 to the save volume 29 in response to an instruction from the order assurance processing unit 13. Also, the difference management processing unit 26 copies data from the volume 28 to the save volume 29 for an area with a difference in the difference information buffer 27 that was set during the order assurance copying operation.

[0039] (Storage system operation example) Next, an example of the operation of the storage system 3 shown in Fig. 1 will be described. In the description of this example of the operation, the following example is used as the flow of operations and data. That is, the initial state is a state in which data D0 is stored in area D (RD) of volume 18. Next, a copy pair for order-guaranteed copying is constructed. Next, data D1 is written from host 100 to area D (RD) of volume 18 while order-guaranteed copying is being performed. Next, the operation of order-guaranteed copying is stopped. Next, data D2 is written from host 100 to area D (RD) of volume 18 while order-guaranteed copying is stopped. After that, processing is performed to resume order-guaranteed copying.

[0040] (Building a group of ordered copies) First, the procedure by which the order assurance processing unit 13 constructs a group for order assurance copying will be described with reference to Fig. 2. In this embodiment, one pair is set in one group, but two or more pairs may be set. Fig. 2 is a flowchart showing an example of processing when a group for order assurance copying is set in an embodiment of the present invention. The processing shown in Fig. 2 is executed in response to an exchange using a specified user interface between the host 100 and the main site 1, for example.

[0041] In the process shown in FIG. 2, first, the order assurance buffer 14 is set to "group 3" at the main site 1 (step S101). Next, the order assurance buffer 24 is set to "group 3" at the remote site 2 (step S102). Next, the volume 18 at the main site 1 and the volume 28 at the remote site 2 are set as a pair (copy pair) (step S103). Next, the difference information buffer 17 is set at the main site 1 for difference management between the volume 18 and the volume 28 at the remote site 2 (step S104). Next, the volumes 18 and 28 are set as "group 3" (step S105). Next, the save volume 29 is set in the volume 28 (step S106). Next, the difference information buffer 27 is set at the remote site 2 for difference management between the volume 28 and the save volume 29 (step S107). Next, the difference management processing unit 16 at the main site 1 is instructed to copy data of the volume 18 at the time of construction (step S108). Next, the differential management processing unit 26 of the remote site 2 is instructed to copy the data of the volume 28 at the time of construction (step S109).

[0042] When the processes from step S101 to step S109 have been carried out, the setting status of "group 3" becomes as shown in Fig. 3. Fig. 3 is a schematic diagram showing an example of group settings for order assurance copying in an embodiment of the present invention. At the main site 1, volume 18, order assurance buffer 14, and difference information buffer 17 are set to "group 3". At the remote site 2, volume 28, evacuation volume 29, order assurance buffer 24, and difference information buffer 27 are set to "group 3".

[0043] (Copying volume data when creating a group for in-order copy) Next, the operation of the differential management processing unit 16 that receives a volume data copy instruction in step S108 of Fig. 2 when a group is constructed at the main site 1, and the receiving operation of the remote site 2 will be described with reference to Fig. 4. Fig. 4 is a flowchart showing an example of the operation when a volume for order-guaranteed copying is constructed in an embodiment of the present invention. A volume data copy instruction when a group is constructed is issued based on, for example, the operation of the host 100. Note that before data is copied, the contents of each area of ​​the differential information buffer 17 are set to have differences, and the contents of each area of ​​the differential information buffer 27 are set to have no differences.

[0044] In the process shown in FIG. 4, first, the difference management processing unit 16 of the main site 1 transfers data D0 in area D of the volume 18 from the remote transmission processing unit 15 to the remote site 2 (step S201). The remote reception processing unit 25 of the remote site 2 receives the data D0 and calls the I / O processing unit 21 (step S202). Next, the I / O processing unit 21 of the remote site 2 instructs the difference management processing unit 26, and the difference management processing unit 26 sets the area D of the volume 28 in the difference information buffer 27 to "there is a difference" (step S203). Next, the I / O processing unit 21 of the remote site 2 copies the data D0 received from the main site 1 to the volume 28 and reports the end to the main site 1 (step S204). The difference management processing unit 16 of the main site 1 sets the area D of the volume 18 in the difference information buffer 17 to "there is no difference" (step S205).

[0045] The processes from step S201 to step S205 are repeated until the entire copy of volume 18 at the main site 1 is completed (repeatedly determining "No" in steps S201 to S205 and step S206). When the entire copy is completed, the differential management processing unit 16 reports the completion to the calling order assurance processing unit 13.

[0046] If two or more pairs are set in "group 3", steps S201 to S206 are repeated to perform copying for all pairs in "group 3". When the copying during construction is completed, the data in volumes 18 and 28 will match. When viewed from area D (RD), volumes 18 and 28 will become data D0 (FIG. 5). Also, the difference information buffer 17 will show no difference, and the difference information buffer 27 will show a difference (FIG. 6). FIG. 5 is a schematic diagram for explaining an example of the data flow when constructing a volume for order-guaranteed copying in an embodiment of the present invention.

[0047] (Operation of the differential management processing unit 26 that receives an instruction to copy data of the volume 28 when constructing a group) Next, the operation of the differential management processing unit 26 that receives an instruction to copy data for the volume 28 in step S109 of Fig. 2 when constructing a group at the remote site 2 will be described with reference to Fig. 7. Fig. 7 is a flowchart showing an example of the operation when constructing a save volume for order-guaranteed copying in an embodiment of the present invention.

[0048] 7, first, the difference management processing unit 26 copies data D0 in area D (RD) of volume 28 to area D (RD) of the save volume 29 (step S301). Next, the difference management processing unit 26 sets "no difference" in area D (RD) of the difference buffer 27 (step S302). The difference management processing unit 26 repeats steps S301 to S303 until copying of the entire volume is complete (repeating steps S301 to S302 and No in step S303). When copying of the entire volume is complete, the difference management processing unit 26 reports completion to the order assurance processing unit 13 that called it.

[0049] If two or more pairs are set in "group 3", steps S301 to S303 are repeated to perform copying for all pairs in "group 3".

[0050] When copying from volume 28 at remote site 2 to save volume 29 is complete, the data in volume 28 and the save volume will be in a consistent state. When viewed from area D (RD), volume 28 and save volume 29 become data D0 (FIG. 8). Furthermore, the difference information buffer 28 becomes empty (FIG. 9). Note that FIG. 8 is a schematic diagram for explaining an example of the flow of data when a save volume 29 for order assurance copying is constructed in an embodiment of the present invention. FIG. 9 is a schematic diagram for explaining an example of the contents of the difference information buffer 27 when a save volume 29 for order assurance copying is constructed in an embodiment of the present invention.

[0051] (Order-guaranteed copy operation) Next, an operation of the order guarantee copy when writing is performed from the host 100 to the volume 18 will be described with reference to Fig. 10. Fig. 10 is a flowchart showing an example of the operation of the order guarantee copy in the embodiment of the present invention.

[0052] 10, the I / O processing unit 11 receives data D1 written from the host 100 into the cache memory 12 and calls the order assurance processing unit 13 (step S401). Next, the order assurance processing unit 13 copies the data D1 to the order assurance buffer 14 and reports completion to the I / O processing unit 11 (step S402). Next, the I / O processing unit 11 reports completion to the host 100 (step S403). Note that the data D1 written to the cache memory 12 is written to the volume 18 asynchronously.

[0053] Next, the in-order guarantee processor 13 instructs the remote transmission processor 15 to transfer the data D1 in the in-order guarantee buffer 14 to the remote site 2. In addition, the remote transmission processor 15 transfers the data to the remote site 2 (step S404).

[0054] Meanwhile, the remote receiving processor 25 at the remote site 2 calls the I / O processor 21, and the I / O processor 21 calls the in-order guarantee processor 23 (step S405). Next, the in-order guarantee processor 23 receives the data D1 into the in-order guarantee buffer 24 and reports completion to the I / O processor 21 (step S406). Next, the I / O processor 21 reports completion to the remote receiving processor 25, and the remote receiving processor 25 reports completion to the remote transmitting processor 15 at the main site 1 (step S407).

[0055] Next, the order assurance processor 23 calls the difference management processor 26, which sets the presence of a difference in the difference information buffer 27 (in this example, the storage area of ​​the difference information buffer 27 corresponding to area D (RD) of the volume 28) (step S408).

[0056] Thereafter, the order assurance processing unit 23 copies the data D1 to the area D (RD) of the volume 28 (step S409).

[0057] When order assurance copying is performed, the areas D (RD) of volumes 18 and 28 become the same as data D1, and since they have not been copied to the area D (RD) of the save volume 29, they remain as data D0 (FIG. 11). FIG. 11 is a schematic diagram for explaining an example of data flow in an example of the operation of order assurance copying according to an embodiment of the present invention.

[0058] (Stopping order-guaranteed copying) Next, a case where order guarantee copying is stopped will be described with reference to Fig. 12. The order guarantee copying operation is stopped, for example, when the order guarantee buffer 14 is about to overflow. Fig. 12 is a flowchart showing an example of the operation when order guarantee copying is stopped in an embodiment of the present invention. In the process shown in Fig. 12, first, the order guarantee processing unit 13 of the main site 1 stops copying to the order guarantee buffer 14 (step S501). Next, the difference management processing unit 16 enables the difference information buffer 17 (step S502).

[0059] (Writing from host 100 to volume 18 with in-order copy stopped) Next, a case where writing is performed from the host 100 to the volume 18 while order assurance copying is stopped will be described with reference to Fig. 13. Fig. 13 is a flowchart showing an example of the operation when writing from the host 100 while order assurance copying is stopped in an embodiment of the present invention.

[0060] 13, first, the I / O processing unit 11 receives data D2 written from the host 100 into the cache memory 12 (step S601). Next, the I / O processing unit 11 calls the difference management processing unit 16 (step S602), and the difference management processing unit 16 sets the area D (RD) of the volume 18 in the difference information buffer 17 to indicate that there is a difference, and reports completion to the I / O processing unit 11 (step S603).

[0061] Next, the I / O processing unit 11 reports completion to the host 100 (step S604). The data D2 written to the cache memory 12 is asynchronously written to the volume 18. In this case, the data D2 is written to the volume 18, but is not stored in the order assurance buffer 14, and the presence of a difference is recorded in a storage area of ​​the difference information buffer 17 corresponding to the area D of the volume 18.

[0062] In volume 18, area D (RD) where writing has been performed from host 100 to volume 18 becomes data D2 (FIG. 14). Also, in the difference buffer 17, area D where writing has been performed from host 100 to volume 18 becomes data with difference (FIG. 15). FIG. 14 is a schematic diagram for explaining an example of data flow in an operation example when writing from host 100 with order assurance copying stopped in an embodiment of the present invention. FIG. 15 is a schematic diagram for explaining an example of the contents of difference information buffer 17 in an operation example when writing from host 100 with order assurance copying stopped in an embodiment of the present invention.

[0063] 14 shows a state in which the host 100 writes data D1 to area D of volume 18 when performing order assurance copying, and then writes data D2 to area D of volume 18 when the order assurance copying is stopped. In this case, at the main site 1, data D2 is stored in the cache memory 12, and data D2 is stored in area D (RD) of volume 18. Data D1 is also stored in the order assurance buffer 14. Meanwhile, at the remote site 2, data D1 is stored in the order assurance buffer 24, and data D1 is stored in area D (RD) of volume 28. Data D0 is also stored in area D (RD) of the evacuation volume 29.

[0064] (Resuming in-order copy) Next, the case where order guarantee copying is resumed will be described with reference to Fig. 16. Fig. 16 is a flowchart showing an example of operation when order guarantee copying is resumed in the first embodiment of the present invention. Order guarantee copying is resumed, for example, in response to an instruction from the host 100, or when the cause of the suspension has been eliminated.

[0065] In the process shown in FIG. 16, first, the order assurance processing unit 13 instructs the differential management processing unit 26 of the remote site 2 to copy the data in the volume 28 to the save volume 29 (step S701).

[0066] Next, the order assurance processing unit 13 instructs the differential management processing unit 16 in the main site 1 to copy from volume 18 to volume 28 (step S702).

[0067] Next, the differential management processing unit 13 activates the order guarantee buffer 14 (step S703). After this, writing from the host 100 becomes order guarantee copying using the order guarantee buffer 14.

[0068] (Copying data from volume 28 to backup volume 29 when resuming sequence-guaranteed copying) Next, copying of data from volume 28 to save volume 29 in step S701 of Fig. 16 will be described with reference to Fig. 17. Fig. 17 is a flowchart showing an example of a copying operation to save volume 29 when resuming order guarantee copying in the first embodiment of the present invention.

[0069] 17, the difference management processing unit 26 first copies data D1 from the volume 28 to the save volume 29 for the area D with difference in the difference information buffer 27 that was set in step S408 of FIG. 10 during the order guarantee copy operation (step S801->step S802: yes->step S803). In step S801, the difference management processing unit 26 calculates the area with difference from the difference information buffer 27. In addition, in step S802, the difference management processing unit 26 determines whether or not there is an area with difference. In addition, in step S802, the difference management processing unit 26 reads data of the area with difference from the volume 28 and copies it to the save volume 29.

[0070] Next, the difference management processing section 26 sets the copied area D of the difference information buffer 27 to "no difference" (step S804).

[0071] The difference management processing section 26 repeats steps S801 to S804 until all areas with differences are eliminated.

[0072] If there are two or more pairs in the group, steps S801 to S804 are repeated.

[0073] When the copying is completed, area D of the save volume 29 becomes data D1 (FIG. 18). Also, area D of volume 28 in the difference buffer 27 becomes in a state of no difference (FIG. 19). FIG. 18 is a schematic diagram for explaining an example of the data flow in an operation example when order assurance copying is resumed in the first embodiment of the present invention. FIG. 19 is a schematic diagram for explaining an example of the contents of the difference information buffer 27 when order assurance copying is resumed in the first embodiment of the present invention.

[0074] 18 shows a state at the stage where data in volume 28 has been copied (saved) to the save volume 29 before resuming order assurance copying from the stopped state. In this case, at the main site 1, data D2 is stored in the cache memory 12, and data D2 is stored in area D (RD) of volume 18. Data D1 is also stored in the order assurance buffer 14. Meanwhile, at the remote site 2, data D1 is stored in the order assurance buffer 24, and data D1 is stored in area D (RD) of volume 28. Data D1 is also stored in area D (RD) of the save volume 29.

[0075] (Differential copy from volume 18 at main site 1 to volume 28 at remote site 2 when resuming order-guaranteed copy). Next, the differential copying from the volume 18 of the main site 1 to the volume 28 of the remote site 2 in step S702 of Fig. 16 will be described with reference to Fig. 20. Fig. 20 is a flowchart showing an example of the operation of differential copying from the primary volume 18 to the secondary volume 28 when resuming order guarantee copying in the first embodiment of the present invention.

[0076] 20, first, the differential management processing unit 16 copies data D2 from volume 18 to volume 28 for the area with a difference (area D (RD) in this example) set in the differential information buffer 17 when the order guarantee copy was stopped (step S901->step S902: yes->step S903). Note that in step S901, the differential management processing unit 16 calculates the area with a difference in the differential information buffer 17. In step S902, the differential management processing unit 16 determines whether or not there is an area with a difference. In step S903, the data with a difference in volume 18 is transferred from the remote transmission processing unit 15 to the remote site 2.

[0077] The differential management processing unit 26 at the remote site 2 sets the differential information buffer 27 to indicate that there is a difference, in the same way as when copying at the time of construction, copies the data to the volume 28, and reports completion (steps S904 to S906). In step S904, the remote receiving processing unit 25 receives the data and calls the I / O processing unit 21. In step S905, the I / O processing unit 21 instructs the differential management processing unit 26 to set the differential information buffer 27 to indicate that there is a difference. In step S906, the I / O processing unit 21 copies the data D2 received from the main site 1 to the volume 28, and reports completion to the main site 1.

[0078] At the main site 1, after receiving the completion report, the difference management processing section 16 sets the areas copied to the difference information buffer 17 to no differences (step S907). Steps S901 to S907 are repeated until all areas with differences in the difference information buffer 17 have been copied (step S901->step S902: yes->repeated steps S903 to S907).

[0079] If there are two or more pairs in "group 3", steps S901 to S907 are repeatedly executed for each pair.

[0080] When the copying is completed, area D of volume 28 becomes data D2 (FIG. 21). The difference buffer 17 becomes empty, and the copied area of ​​the difference buffer 28 becomes empty (FIG. 22). FIG. 21 is a schematic diagram for explaining an example of the data flow in an operation example when order assurance copying is resumed in the first embodiment of the present invention. FIG. 22 is a schematic diagram for explaining an example of the contents of the difference information buffer when order assurance copying is resumed in the first embodiment of the present invention.

[0081] 21 shows a state at a stage where data with a difference has been copied from volume 18 to volume 28 after the data of volume 28 has been copied to the save volume 29 and before the order assurance copying is resumed from the stopped state of the order assurance copying. In this case, at the main site 1, data D2 is stored in the cache memory 12, and data D2 is stored in the area D(RD) of volume 18. Data D1 is also stored in the order assurance buffer 14. Meanwhile, at the remote site 2, data D1 is stored in the order assurance buffer 24, and data D2 is stored in the area D(RD) of volume 28. Data D1 transferred from the main site 1 to the remote site 2 in the order assurance copying operation is also stored in the area D(RD) of the save volume 29.

[0082] (Action and effect) According to this embodiment, when order assurance copying is resumed, before differential copying is performed using the difference information buffer 17 at the main site 1, data D1 in volume 28 at the time when order assurance copying was stopped is automatically copied to the evacuation volume 29, making it possible to secure the data D1 before the order assurance copying was stopped while maintaining its order. That is, according to the first embodiment, when the operation of copying data with order assurance from the primary volume to the secondary volume is resumed after being stopped, the data in the secondary volume can be appropriately evacuated.

[0083] [Second embodiment] A second embodiment of a storage system according to the present invention will be described with reference to Figs. 23 and 24. Fig. 23 is a flowchart showing an example of operation when order guarantee copying is resumed in the second embodiment of the present invention. The process shown in Fig. 23 corresponds to the process shown in Fig. 16 in the first embodiment. Fig. 24 is a flowchart showing an example of operation of differential copying from a primary volume to a secondary volume when order guarantee copying is resumed in the second embodiment of the present invention. The process shown in Fig. 24 corresponds to a combination of the process shown in Fig. 17 and the process shown in Fig. 20 in the first embodiment.

[0084] In the first embodiment, as described with reference to Figs. 16, 17 and 20, first, when resuming order-guaranteed copying, before the resumption, data with a difference in volume 28 is copied to save volume 29 (step S701 in Fig. 16, Fig. 17), and after completion, data with a difference in volume 18 is differentially copied to volume 28 (step S702 in Fig. 16, Fig. 20). On the other hand, in the second embodiment, when resuming order-guaranteed copying, before the resumption, copying from volume 28 to save volume 29 and differential copying of data with a difference in volume 18 to volume 28 are executed in parallel for each area. Other configurations and operations are basically the same in the first and second embodiments. Below, differences from the first embodiment will be described.

[0085] In the second embodiment, in the resume process shown in FIG. 23, first, the order assurance processing unit 13 instructs the difference management processing unit 26 of the remote site 2 to copy data from the volume 28 to the save volume 29 (step S1001). Next, the difference management processing unit 26 of the remote site 2 reports completion to the order assurance processing unit 13 of the main site 1 without waiting for the copy to be completed (step S1002). Next, the order assurance processing unit 13 instructs the difference management processing unit 16 to copy data that was written to the volume 18 while the order assurance copy was stopped (step S1003). Next, the difference management processing unit 16 enables the order assurance buffer 14 (step S1004). Thereafter, writing from the host 100 becomes an order assurance copy using the order assurance buffer 14.

[0086] Next, with reference to Fig. 24, the copy operation from the volume 18 to the volume 28 by the differential management processing unit 16 in step S1003 in Fig. 23 will be described. In the process shown in Fig. 24, first, the differential management processing unit 16 instructs the remote transmission processing unit 15 to remotely transfer data D2 in the area D (RD) of the volume 18 to the area with a difference set in the differential information buffer 17 when the order guarantee copy was stopped, and transmits the data to the remote site 2 (step S1101 -> step S1102: yes -> step S1103). In step S1101, the differential management processing unit 16 calculates the area with a difference in the differential information buffer 17. In step S1102, the differential management processing unit 16 judges whether or not there is an area with a difference. In step S1103, the data with a difference in the volume 18 is transferred from the remote transmission processing unit 15 to the remote site 2.

[0087] Next, the remote reception processor 25 of the remote site 2 receives the data (step S1104). Next, if the area of ​​the differential information buffer 27 set during the sequence guarantee copy operation has a difference (step S1105->step S1106: yes), the differential management processor 26 of the remote site 2 copies the data D1 of the area D(RD) from the volume 28 to the save volume 29 (steps S1107-S1108), and then copies the data D2 of the area D(RD) of the volume 18 to the volume 28 (steps S1109-S1110). On the other hand, if the area has no difference (step S1105->step S1106: no), the data D2 of the area D(RD) of the volume 18 is copied to the volume 28 as is (steps S1109-S1110).

[0088] In step S1104, the remote receiving processor 25 receives the data. In step S1105, the differential management processor 26 checks the differential information buffer 27. In step S1106, the differential management processor 26 determines whether or not the area contains a difference. In step S1107, the differential management processor 26 copies the data from volume 28 to the backup volume 29. In step S1108, the differential management processor 26 sets the differential information buffer 27 to "no difference." In step S1109, the differential management processor 26 sets the differential information buffer 27 to "there is a difference." In step S1110, the differential management processor 26 copies data D2 in area D(RD) of volume 18 to volume 28, and the remote site 2 reports completion to the main site 1.

[0089] At the main site 1, the difference management processing section 16 sets the area copied to the difference information buffer 17 to no difference (step S1111).

[0090] The processing of steps S1101 to S1111 is repeatedly executed until copying of all areas containing differences in difference information buffer 17 is completed (step S1111->step S1102: yes->repetition of steps S1103 to S1111).

[0091] If there are two or more pairs in the group, steps S1101 to S1111 are repeatedly executed.

[0092] As described above, in the second embodiment, by adding a pre-copy process of the area with difference (step S1106: yes -> steps S1107 and S1108), the order assurance data D1 before the order assurance copying was stopped can be secured in the save volume 29. Also, by performing differential copying from volume 18 to volume 28 in parallel for each area without waiting for the completion of copying from volume 28 to the save volume 29, the time until the order assurance copying is resumed can be shortened. Note that, as described above, when the size of each area of ​​the difference information buffer 17 and the size of each area of ​​the difference information buffer 27 are made different, the determination process shown in FIG. 25 is made to take the difference in size into consideration.

[0093] [Third embodiment] A third embodiment of a storage system according to the present invention will be described with reference to Fig. 25. Fig. 25 is a flowchart showing an example of operation when stopping order guarantee copying in the third embodiment of the present invention. The process shown in Fig. 25 corresponds to a combination of the process shown in Fig. 12 in the first embodiment and the process shown in Fig. 17.

[0094] In the first embodiment, when order guarantee copying is resumed, data with differences in volume 28 is copied to save volume 29 before the resume (step S701 in FIG. 16, FIG. 17). On the other hand, in the third embodiment, when order guarantee copying is stopped, copying of volume 28 to save volume 29 is executed after the stop, for example before the conditions for restart are met. Other configurations and operations are basically the same in the first and third embodiments. Below, the parts that differ from the first embodiment will be explained.

[0095] 25, after the order assurance processing unit 13 stops the order assurance copying, it instructs the difference management processing unit 26 at the remote site 2 to copy data from the volume 28 to the save volume 29 (steps S1201 to S1203). Note that in step S1201, the order assurance processing unit 13 stops the copying to the order assurance buffer 14. In step S1202, the order assurance processing unit 13 enables the difference information buffer 27 at the remote site 2. In step S1203, the order assurance processing unit 13 instructs the start of copying from the volume 28 at the remote site 2 to the save volume 29.

[0096] The difference management processing unit 26 copies data D1 from the volume 28 to the save volume 29 for the area with difference in the difference information buffer 27 (steps S1204 to S1207). At this time, for the area where copying has been completed, a setting of "no difference" is made in the difference information buffer 27 (step S1207). The processing of steps S1204 to S1207 is repeatedly executed until copying of all areas with difference in the difference information buffer 27 is completed (until step S1205: No). In step S1204, the difference management processing unit 26 calculates an area with difference from the difference information buffer 27. In step S1205, the difference management processing unit 26 determines whether or not there is an area with difference in the difference information buffer 27. In step S1206, the difference management processing unit 26 reads data of the area with difference from the volume 28 and copies it to the save volume 29. In step S1207, the difference management processing unit 26 sets a setting of "no difference" in the difference information buffer 27.

[0097] If there are two or more pairs in "group 3", the processes in steps S1204 to S1207 are repeated for all pairs.

[0098] In the third embodiment, by carrying out the above processing from the time when the order guarantee copying is stopped, it is possible to reduce the time required to copy data to the save volume 29 when the order guarantee copying is resumed.

[0099] [Actions and Effects of Each Embodiment] In the in-order copy operation, when the stopped operation is resumed, the secondary volume at the remote site may temporarily be in an order-guaranteed state. If, for example, the main site becomes unavailable during this period when the order is not guaranteed, it may be difficult to resume operations using the volume of the storage at the remote site. For this reason, maintaining the order-guaranteed data and shortening the time required to maintain the data may be an issue. In response to this, in each embodiment of the present invention, before copying the data of the primary volume 18 to the secondary volume 28 at the remote site 2, the data of the volume 28 is copied and evacuated to the evacuation volume 29 using the difference information buffer 27 at the remote site 2. As a result, the data of the volume 28 in an order-guaranteed state is maintained in the evacuation volume 29. That is, in the storage system of this embodiment, when the copy operation with guaranteed order from the primary volume to the secondary volume is stopped, before copying each data that is determined to have a difference between the primary volume and the secondary volume during the stop period from the primary volume to the secondary volume, each data that is determined to have a difference between the secondary volume and the save volume during the copy operation with guaranteed order from the primary volume to the secondary volume before the stop is copied from the secondary volume to the save volume, and then each data that is determined to have a difference is copied from the primary volume to the secondary volume, and then the copy operation is resumed. Therefore, according to this embodiment, when the copy operation with guaranteed order from the primary volume to the secondary volume is stopped and then resumed, the data of the secondary volume can be appropriately saved. Also, in the second embodiment, the time until the order guarantee is resumed can be shortened by simultaneously copying from the volume 28 to the save volume 29 and copying from the volume 18 to the volume 28.

[0100] [Computer Configuration] FIG. 28 is a schematic block diagram showing the configuration of a computer according to at least one embodiment. The computer 700 includes a CPU (Central Processing Unit) 710, a main storage device 720, an auxiliary storage device 730, and an interface 740. For example, a non-volatile storage medium 750 is connected to the interface 740. The host computer 100, the host computer 200, the storage 10, the storage 20, the storage controller SC1, the storage controller SC2, the storage array 30, and the storage array 40 described above may have the same configuration as the computer 700. The operation of each of the above-mentioned processing units is stored in the auxiliary storage device 730 in the form of a program. The CPU 710 reads the program from the auxiliary storage device 730 and expands it in the main storage device 720, and executes the above-mentioned processing according to the program. The CPU 710 also secures a storage area corresponding to each of the above-mentioned storage units in the main storage device 720 according to the program.

[0101] The program may be for realizing a part of the functions to be performed by the computer 700. For example, the program may be for realizing the functions by combining with other programs already stored in the auxiliary storage device 730 or by combining with other programs implemented in other devices. In another embodiment, the computer may include a custom LSI (Large Scale Integrated Circuit) such as a PLD (Programmable Logic Device) in addition to or instead of the above configuration. Examples of PLDs include PAL (Programmable Array Logic), GAL (Generic Array Logic), CPLD (Complex Programmable Logic Device), and FPGA (Field Programmable Gate Array). In this case, some or all of the functions to be realized by the CPU 710 may be realized by the integrated circuit.

[0102] Examples of the auxiliary storage device 730 include a hard disk drive (HDD), a solid state drive (SSD), a magnetic disk, a magneto-optical disk, a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), and a semiconductor memory. The auxiliary storage device 730 may be an internal medium directly connected to the bus of the computer 700, or an external medium connected to the computer 700 via the interface 740 or a communication line. In addition, when the program is distributed to the computer 700 via a communication line, the computer 700 that has received the program may load the program into the main storage device 720 and execute the above-mentioned process. In at least one embodiment, the auxiliary storage device 730 is a non-transitory tangible storage medium.

[0103] [Modifications, etc.] Although the embodiment of the present invention has been described above with reference to the drawings, the specific configuration is not limited to the above embodiment, and includes design modifications within the scope of the gist of the present invention. In addition, a part or all of the program executed by the computer in the above embodiment can be distributed via a computer-readable recording medium or a communication line.

[0104] [Minimum configuration of embodiment] Fig. 26 is a block diagram showing an example of a minimum configuration of a configuration according to an embodiment of the present invention Fig. 27 is a flowchart showing an example of a minimum configuration of an operation according to an embodiment of the present invention.

[0105] As shown in FIG. 26, the storage system 60 according to the embodiment of the present invention may include at least a first storage 61 and a second storage 62. The first storage 61 includes a primary volume 611. The second storage 62 includes a secondary volume 621 that is connected to the first storage 61 via a communication line 71 and that is set as a copy pair with the primary volume 611. The first storage 61 further includes a first storage unit 612 and a second storage unit 613. The first storage unit 612 temporarily holds data that is copied from the primary volume 611 to the secondary volume 621 with the order guaranteed. The second storage unit 613 stores first difference information that indicates whether there is a difference in data for each of the first storage areas A, B, C, . . . for the primary volume 611 and the secondary volume 621. The second storage 62 further includes a save volume 622 and a third storage unit 623. The save volume 622 copies and stores all data of the volume 621. The third storage means 623 stores, for each of the secondary volume 621 and the backup volume 622, second difference information indicating whether or not there is a difference that occurred during a copy operation that ensures the order of data from the primary volume 611 to the secondary volume 621 via the first storage means 612, for each of specified second storage areas a, b, c, ....

[0106] When the copy operation that guarantees the data order from the primary volume 611 to the secondary volume 621 via the first storage means 612 is stopped, the storage system 60 copies each piece of data that is determined to have a difference based on the second difference information from the secondary volume 621 to the evacuation volume 622 before copying each piece of data that is determined to have a difference based on the first difference information stored in the second storage means 613 during the stopped period from the primary volume 611 to the secondary volume 621 (step S1).

[0107] The storage system 60 then copies each piece of data that is determined to have a difference based on the first difference information stored in the second storage unit 613 during the suspension period from the primary volume 611 to the secondary volume 621 (step S2).

[0108] The storage system 60 then resumes the copy operation, with data order guaranteed, from the primary volume 611 to the secondary volume 621 via the first storage means 612 (step S3).

[0109] As shown in FIG. 27, the control method for the storage system 60 according to the embodiment of the present invention may include at least the above steps S1, S2, and S3.

[0110] The correspondence between the components of the present invention and the components of the embodiment is as follows: "Storage system" corresponds to the storage system 3. "First storage" corresponds to the storage 10. "Second storage" corresponds to the storage 20. "Primary volume" corresponds to the primary volume 18. "Communication line" corresponds to the remote line 50. "Secondary volume" corresponds to the secondary volume 28. "Saving volume" corresponds to the saving volume 29. "First storage means" corresponds to the order guarantee buffer 14. "First storage area" corresponds to areas A (RA), B (RB), C (RC), and D (RD). "Second storage means" corresponds to the difference information buffer 17. "First difference information" corresponds to information indicating whether there is a difference or not between areas A (RA), B (RB), C (RC), and D (RD). "Second storage area" corresponds to areas A (RA), B (RB), C (RC), and D (RD). The "second difference information" corresponds to information indicating whether there is a difference or not between areas A (RA), B (RB), C (RC), and D (RD). The "third storage means" corresponds to difference information buffer 27. Note that the above correspondence is a correspondence with one configuration example of the components of the present invention, and does not limit the components of the present invention.

[0111] [Note] A part or all of the above-described embodiments can be described as, but are not limited to, the following notes.

[0112] (Appendix 1) a first storage having a primary volume; a second storage connected to the first storage via a communication line and including a secondary volume set as a copy pair with the primary volume; Equipped with the first storage further comprises a first storage means for temporarily storing data copied from the primary volume to the secondary volume with the order guaranteed, and a second storage means for storing first difference information indicating whether or not there is a difference in data between the primary volume and the secondary volume for each predetermined first storage area; the second storage further comprises a save volume for copying and storing all data of the secondary volume, and a third storage means for storing, for each predetermined second storage area, second difference information for the secondary volume and the save volume, which indicates whether or not there is a difference that has occurred during a copy operation that ensures data order from the primary volume to the secondary volume via the first storage means; When the copy operation is stopped, before copying each piece of data that is determined to have a difference based on the second difference information stored in the second storage means during the stop period from the primary volume to the secondary volume, each piece of data that is determined to have a difference based on the second difference information is copied from the secondary volume to the save volume; Then, each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the suspension period is copied from the primary volume to the secondary volume, Then, the copy operation is resumed. Storage system.

[0113] (Appendix 2) copying each piece of data that is determined to have a difference based on the second difference information from the secondary volume to the save volume; copying each piece of data that is determined to have a difference based on the first difference information from the primary volume to the secondary volume; This is performed in parallel for each of the first and second storage areas. 2. The storage system of claim 1.

[0114] (Appendix 3) When the copying operation is stopped, copying of each piece of data that is determined to have a difference based on the second difference information from the secondary volume to the save volume is performed after the copying operation is stopped. 3. The storage system of claim 1 or 2. [Explanation of symbols]

[0115] 3, 60...storage system, 10, 20...storage, 100, 200...host computer, SC1, SC2...storage controller, 30, 40...storage array, 11, 21...I / O processing unit, 12, 22...cache memory, 13, 23...order assurance processing unit, 14, 24...order assurance buffer, 15...remote transmission processing unit, 16, 26...difference management processing unit, 17, 27...difference information buffer, 18, 611...primary volume, 25...remote reception processing unit, 28, 621...secondary volume, 29, 622...evacuation volume, 50...remote line, 61...first storage, 62...second storage, 612...first storage means, 613...second storage means, 623...third storage means, 71...communication line

Claims

1. a first storage including a primary volume; a second storage connected to the first storage via a communication line and including a secondary volume set as a copy pair with the primary volume; Equipped with the first storage further comprises a first storage means for temporarily holding data copied from the primary volume to the secondary volume with order guaranteed, and a second storage means for storing first difference information indicating whether or not there is a difference in data between the primary volume and the secondary volume for each predetermined first storage area; the second storage further comprises a save volume for copying and storing all data of the secondary volume, and a third storage means for storing, for each predetermined second storage area, second difference information for the secondary volume and the save volume, which indicates whether or not there is a difference that has occurred during a copy operation that ensures data order from the primary volume to the secondary volume via the first storage means; When the copy operation is stopped, before copying each piece of data that is determined to have a difference based on the second difference information stored in the second storage means during the stop period from the primary volume to the secondary volume, each piece of data that is determined to have a difference based on the second difference information is copied from the secondary volume to the save volume; Then, each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the suspension period is copied from the primary volume to the secondary volume; Then, the copy operation is resumed. Storage system.

2. copying each piece of data that is determined to have a difference based on the second difference information from the secondary volume to the save volume; copying each piece of data that is determined to have a difference based on the first difference information from the primary volume to the secondary volume; This is performed in parallel for each of the first and second storage areas. The storage system according to claim 1 .

3. When the copying operation is stopped, copying of each piece of data that is determined to have a difference based on the second difference information from the secondary volume to the save volume is performed after the copying operation is stopped. The storage system according to claim 1 .

4. A first storage device includes a primary volume and is connected via a communication line to a second storage device includes a secondary volume that is set as a copy pair with the primary volume, the first storage further comprises a first storage means for temporarily holding data copied from the primary volume to the secondary volume with order guaranteed, and a second storage means for storing first difference information indicating whether or not there is a difference in data between the primary volume and the secondary volume for each predetermined first storage area; the second storage comprises: the secondary volume; a save volume for copying and storing all data of the secondary volume; and a third storage means for storing, for each predetermined second storage area of ​​the secondary volume and the save volume, second difference information indicating whether or not there is a difference that has occurred during a copy operation that ensures data order from the primary volume to the secondary volume via the first storage means; When the copy operation is stopped, each piece of data that is determined to have a difference based on the second difference information in the second storage is copied from the secondary volume to the save volume, and then each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the stoppage period is copied from the primary volume to the secondary volume; Then, each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the suspension period is copied from the primary volume to the secondary volume; Then, the copy operation is resumed. Storage.

5. A second storage device is connected to a first storage device having a primary volume via a communication line, and has a secondary volume set as a copy pair with the primary volume, the first storage comprises: the primary volume; a first storage means for temporarily holding data copied from the primary volume to the secondary volume with order guaranteed; and a second storage means for storing first difference information indicating whether or not there is a difference in data between the primary volume and the secondary volume for each predetermined first storage area; the second storage further comprises a save volume for copying and storing all data of the secondary volume, and a third storage means for storing, for each predetermined second storage area, second difference information for the secondary volume and the save volume, which indicates whether or not there is a difference that has occurred during a copy operation that ensures data order from the primary volume to the secondary volume via the first storage means; When the copy operation is stopped, before each piece of data that is determined to have a difference based on the second difference information stored in the second storage means during the stop period is copied from the primary volume to the secondary volume, each piece of data that is determined to have a difference based on the second difference information is copied from the secondary volume to the save volume; Then, each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the suspension period is copied from the primary volume to the secondary volume; Then, the copy operation is resumed. Storage.

6. a first storage including a primary volume; a second storage connected to the first storage via a communication line and including a secondary volume set as a copy pair with the primary volume; A control method for controlling the first storage further comprises a first storage means for temporarily holding data copied from the primary volume to the secondary volume with order guaranteed, and a second storage means for storing first difference information indicating whether or not there is a difference in data between the primary volume and the secondary volume for each predetermined first storage area; the second storage further comprises a save volume for copying and storing all data of the secondary volume, and a third storage means for storing, for each predetermined second storage area, second difference information for the secondary volume and the save volume, which indicates whether or not there is a difference that has occurred during a copy operation that ensures data order from the primary volume to the secondary volume via the first storage means; when the copy operation is stopped, copying each piece of data that is determined to have a difference based on the second difference information from the secondary volume to the save volume before copying each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the stop period from the primary volume to the secondary volume; thereafter, copying each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the suspension period from the primary volume to the secondary volume; thereafter, resuming the copy operation; A control method for a storage system comprising:

7. a first storage including a primary volume; a second storage connected to the first storage via a communication line and including a secondary volume set as a copy pair with the primary volume; Equipped with the first storage further comprises a first storage means for temporarily holding data copied from the primary volume to the secondary volume with order guaranteed, and a second storage means for storing first difference information indicating whether or not there is a difference in data between the primary volume and the secondary volume for each predetermined first storage area; a computer of the first storage in a storage system comprising: the second storage, the secondary volume; a save volume for copying and storing all data of the secondary volume; and a third storage means for storing second difference information for each predetermined second storage area for the secondary volume and the save volume, the second difference information indicating whether or not there is a difference that occurred during a copy operation that ensures the order of data from the primary volume to the secondary volume via the first storage means, a means for copying, when the copy operation is stopped, each piece of data that is determined to have a difference based on the second difference information in the second storage from the secondary volume to the save volume, after the data has been copied from the secondary volume to the save volume, each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the stoppage of the copy operation, from the primary volume to the secondary volume; thereafter, a means for copying each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the suspension period from the primary volume to the secondary volume; Thereafter, means for resuming said copying operation; A program that functions as a

8. A system comprising: a first storage having a primary volume; and a second storage connected to the first storage via a communication line and having a secondary volume set as a copy pair with the primary volume; the first storage further comprises a first storage means for temporarily holding data copied from the primary volume to the secondary volume with order guaranteed, and a second storage means for storing first difference information indicating whether or not there is a difference in data between the primary volume and the secondary volume for each predetermined first storage area; a computer of the second storage in a storage system comprising: the secondary volume; a save volume for copying and storing all data of the secondary volume; and a third storage means for storing second difference information for each predetermined second storage area for the secondary volume and the save volume, the second difference information indicating whether or not there is a difference that occurred during a copy operation that ensures the order of data from the primary volume to the secondary volume via the first storage means, a means for copying, when the copy operation is stopped, each piece of data determined to have a difference based on the second difference information from the secondary volume to the save volume before each piece of data determined to have a difference based on the first difference information stored in the second storage means during the stoppage period is copied from the primary volume to the secondary volume; thereafter, a means for copying each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the suspension period from the primary volume to the secondary volume; Thereafter, the means for resuming the copying operation A program that functions as a

Citation Information

Patent Citations

  • Apparatus and method for multiple generation remote backup and fast restore

    JP2003242011A

  • Remote copy system

    JP2008181288A

  • Data backup management system, computer system and program recording medium

    JP2011048500A

  • Copy controller, copy control method, and copy control program

    JP2015052844A

  • Storage device and control program

    JP2019185661A