WO2018078718A1 - Storage system - Google Patents

Storage system Download PDF

Info

Publication number
WO2018078718A1
WO2018078718A1 PCT/JP2016/081560 JP2016081560W WO2018078718A1 WO 2018078718 A1 WO2018078718 A1 WO 2018078718A1 JP 2016081560 W JP2016081560 W JP 2016081560W WO 2018078718 A1 WO2018078718 A1 WO 2018078718A1
Authority
WO
WIPO (PCT)
Prior art keywords
write
volume
journal
host
data
Prior art date
Application number
PCT/JP2016/081560
Other languages
French (fr)
Japanese (ja)
Inventor
元希 武井
京介 坂本
昌宏 井出
友哉 後藤
Original Assignee
株式会社日立製作所
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 株式会社日立製作所 filed Critical 株式会社日立製作所
Priority to PCT/JP2016/081560 priority Critical patent/WO2018078718A1/en
Publication of WO2018078718A1 publication Critical patent/WO2018078718A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures

Definitions

  • the present invention relates to a storage system.
  • JP-A-2007-86972 discloses a technology capable of realizing control including efficient duplexing recovery with reduced host load and user trouble in a storage device capable of dual writing. Specifically, the following matters are disclosed.
  • Double-write data from the host to the primary and secondary storage device data volumes Each storage device holds information including update data from the host as a journal (update data history information).
  • update data from the host As a journal (update data history information).
  • the storage device communicates with the journal without going through the host, and A part of the data held after the most recent synchronization point necessary for volume synchronization is transferred to the recovery target system by data copy, and then the volume is restored and synchronized ( For example, summary).
  • a remote copy system that backs up data using asynchronous remote copy technology is known.
  • the system stores the same data in two storage devices installed at sufficiently separated primary and secondary sites.
  • the data in the primary storage device volume (primary volume) is updated, the update is asynchronously reflected in the secondary storage device volume (secondary volume) by remote copy.
  • primary volume primary volume
  • secondary volume secondary volume
  • the secondary storage device puts the write data transferred from the host and the copy data transferred from the primary storage device into one secondary volume. It will write against.
  • the secondary storage device uses data transferred by two different processes: a host I / O process that operates in synchronization with data transfer from the host, and a copy process that operates asynchronously with data transfer from the host. Update the secondary volume.
  • the data transmission order from the host may not match the data reception order in the secondary storage device. Therefore, there is a demand for a technique that can reduce the possibility of data inconsistency in a volume pair in a system that implements both the host dual write function and asynchronous remote copy.
  • One aspect of the present invention is a storage system including a first storage device that provides a first volume to a host, and a second storage device that provides a second volume to the host, The first volume and the second volume form an asynchronous copy pair, and the second storage device writes a host double write to the first volume and the second volume from the host.
  • the host write data information includes the write destination of the host write data and the host write data.
  • Receiving a journal for the second volume from the first storage device, including the time associated with The journal includes journal data, a write destination of the journal data, and a time associated with the journal data, and is associated with write data of the same write destination as the journal data in the first management information.
  • the journal data is written to the second volume, and in the first management information, the same write destination host write data as the journal data If the latest time associated with is newer than the time associated with the journal data, it decides not to write the journal data to the second volume.
  • the structural example of a computer system is shown typically.
  • the structural example of a management apparatus is shown typically.
  • An example of the composition of a storage device is shown typically.
  • An example of a control program executed by the storage apparatus is shown.
  • the structural example of copy pair management information is shown.
  • the structural example of secondary journal (SJNL) management information is shown.
  • the structural example of comparison journal (CJNL) management information is shown.
  • An example of a journal volume setting image displayed by the management apparatus is shown.
  • An example of a remote copy pair setting image displayed by the management apparatus is shown.
  • 6 shows a flowchart of processing of a write command from a host computer by the primary storage apparatus.
  • 6 shows a flowchart of processing of a write command from the host computer by the secondary storage device.
  • the structural example of a journal transfer command is shown.
  • the structural example of the return value (response) with respect to a journal transfer command is shown.
  • 5 shows a flowchart of processing of the secondary storage device in journal transfer from the primary storage device to the secondary storage device.
  • 7 shows a flowchart of processing for reflecting journal data in a secondary volume in a secondary storage apparatus.
  • FIG. 1 schematically shows a configuration example of a computer system of this embodiment.
  • the computer system includes a system at the primary site 10 and a system at the secondary site 20.
  • the secondary site 20 is physically located away from the primary site 10.
  • a primary storage device (also referred to as MDKC) 120 is installed at the primary site 10.
  • a secondary storage device (also referred to as RDKC) 220 is installed at the secondary site 20.
  • the host computer 100 on which the business program runs, the primary storage device 120, and the secondary storage device 220 are connected by a data network 161.
  • the platform of the host computer 100 is an open system or a mainframe.
  • the data network 161 is a data communication network, and is a SAN (Storage Area Network) in this configuration.
  • the data network 161 may be a network other than SAN as long as it is a data communication network, for example, an IP network.
  • the host computer 100, the storage devices 120 and 220, and the management device 140 are connected by a management network 162.
  • the management network 162 is an IP network in this configuration.
  • the management network 162 may be a network other than the IP network, for example, a SAN, as long as it is a network for management data communication.
  • the data network 161 and the management network 162 may be the same network.
  • the primary storage apparatus 120 includes three primary volumes (PVOL) 121A to 121C and a primary journal volume (PJVOL) 122.
  • the secondary storage apparatus 220 includes three secondary volumes (SVOL) 221A to 221C, a secondary journal volume (SJVOL) 222, and a comparison journal volume (CJVOL) 223.
  • the primary volume and the secondary volume store user data from the host computer 100.
  • the journal volume stores the update history of writes to the data volume.
  • the primary storage device 120 and the secondary storage device 220 are communicably connected via an inter-storage network 163.
  • the primary storage device 120 and the secondary storage device 220 execute asynchronous remote copy of the data volume.
  • Asynchronous remote copy returns an I / O completion response to the host computer 100 after writing data to the primary volume and before completing writing to the secondary volume. Note that in the following description, writing to a volume means writing to a cache or a storage drive unless otherwise specified.
  • the primary storage apparatus 120 stores the write data received from the host computer 100 in one of the primary volumes 121A to 121C and the primary journal volume 122.
  • User data stored in the primary journal volume 122 is also referred to as journal data.
  • the primary storage device 120 transfers the journal data of the primary journal volume 122 to the secondary storage device 220.
  • Secondary storage device 220 stores the journal data received from primary storage device 120 in secondary journal volume 222.
  • the secondary storage device 220 stores the journal data stored in the secondary journal volume 222 in one of the secondary volumes 221A to 221C.
  • the data of the primary volumes 121A to 121C can be copied to the secondary volumes 221A to 221C.
  • Data copy between the storage apparatuses is executed asynchronously with the write from the host computer 100.
  • Remote copy is performed between data volumes that make up a copy pair.
  • the primary volume 121A constitutes a copy pair with the secondary volume 221A
  • the primary volume 121B constitutes a copy pair with the secondary volume 221B
  • the primary volume 121C constitutes a copy pair with the secondary volume 221C.
  • the consistency group A includes primary volumes 121A to 121C, a primary journal volume 122, secondary volumes 221A to 221C, a secondary journal volume 222, and a comparison journal volume 223.
  • the number of various volumes included in the consistency group varies depending on the design.
  • a consistency group can include multiple primary, secondary, or comparison journal volumes.
  • Asynchronous remote copy matches the copy order to the secondary volume with the data write order (data update order) to the primary volume.
  • data write order data update order
  • a partial copy to the secondary volume may be omitted.
  • Order matching is maintained in the consistency group. That is, the data write order to the primary volume of the consistency group in the primary storage apparatus 120 matches the write order (copy order) to the secondary volume of the consistency group in the secondary storage apparatus 220.
  • the write data write order to the secondary volumes 221A to 221C matches the host data write order to the primary volumes 121A to 121C.
  • the system manages the data write order by the sequential number and the time stamp.
  • journal stored in the primary and secondary journal volumes is a set of journal data (write data) and its management information.
  • the journal stored in the comparison journal volume is composed of only management information or a combination of management information and journal data.
  • Journal is transferred between storage devices.
  • the journal includes a sequential number and a write time indicating the order and time of writing to the primary volumes 121A to 121C in the consistency group.
  • the computer system of this embodiment implements a double writing function.
  • the host computer 100 sends the same write command and write data to each of the primary volume and the secondary volume that constitute the copy pair.
  • the primary storage device 120 and the secondary storage device 220 each write the received write data to the target volume.
  • Asynchronous remote copy is not executed in double writing.
  • the write command includes a double write flag and indicates whether or not the write command is a double write command.
  • the primary storage apparatus 120 refers to the double write flag in the received write command and determines whether to start the asynchronous remote copy process for the received write data.
  • the secondary storage device 220 When the secondary storage device 220 receives the double write command, it writes the write data to the secondary volume and stores the write command history information (journal) in the comparison journal volume 223.
  • the journal of the comparison journal volume 223 includes information on the write destination and write time of write data (write command).
  • the journal of the comparison journal volume 223 may or may not include write data. By not storing write data, resources can be used efficiently.
  • the secondary storage apparatus 220 selects a journal from the secondary journal volume 222 in the data reflection process from the secondary journal volume 222 to the secondary volume.
  • the secondary storage device 220 searches the comparison journal volume 223 for a journal having a write destination common to the selected journal and indicating the latest write time.
  • FIG. 2 schematically shows a configuration example of the management device 140.
  • the management device 140 a program for managing the storage devices 120 and 220 operates.
  • the management device 140 includes a processor 201, a memory 202, a secondary storage device 203, a management interface (I / F) 204, an output device 205, and an input device 206, which are connected to each other.
  • the output device 205 is typically a liquid crystal display device
  • the input device 206 is typically a keyboard and a mouse.
  • the administrator can acquire necessary information in the output device 205 and input necessary information with the input device 206.
  • the management I / F 204 is an interface device connected to the management network 162.
  • the processor 201 realizes a predetermined function by operating according to a program stored in the memory 202.
  • Programs and data stored in the secondary storage device 203 are loaded into the memory 302.
  • the memory 202 stores a storage management program 210.
  • the storage management program 210 manages the storage device 120 or 220.
  • the storage management program 210 provides the user with a user interface for setting and controlling volumes and copy pairs. Examples of images in the user interface will be described later.
  • the storage management program 310 defines the volume configuration and copy pair configuration in the storage apparatuses 120 and 220 according to the user.
  • the host computer 100 can have a general computer configuration.
  • the host computer 100 includes an interface device for connecting to the data network 161 in addition to the hardware configuration similar to that of the management apparatus 140.
  • FIG. 3A schematically shows a configuration example of the storage device 120/220.
  • the storage apparatus 120/220 includes a host I / F 106, a management I / F 107, a storage controller 109 (109A, 109B), at least one cache memory 110, at least one shared memory 111, and storage drives 113 (113A to 113D). .
  • a set of the host I / F 106, the management I / F 107, the storage controller 109, the cache memory 110, the shared memory 111, and the bus 112 may be referred to as a storage controller.
  • the host I / F 106 is an interface device used for the storage apparatus 120/220 to communicate with the host computer 100. Commands (read command, write command, etc.) issued for the host computer 100 to access the volume arrive at the host I / F 106.
  • the storage apparatus 120/220 returns information (for example, read data or write response) from the host I / F 106 to the host computer 100.
  • the management I / F 107 is an interface device for the storage apparatus 120/220 to communicate with the management apparatus 140.
  • a command from the management apparatus 140 arrives at the management I / F 107.
  • the storage device 120/220 returns information from the management I / F 107 to the management device 140.
  • the cache memory 110 is composed of a volatile or non-volatile memory, and temporarily stores data read / written to / from the storage drive 113.
  • the shared memory 111 is configured by a volatile or non-volatile memory, and stores programs that operate on the storage controller 109, configuration information, and the like.
  • the storage controller 109 is a package board having a processor 119 and a local memory 118.
  • the processor 119 is a device that executes a program for performing various controls of the storage apparatus 120/220.
  • the local memory 118 is used for temporarily storing programs executed by the processor 119 and information used by the processor 119.
  • the number of storage controllers 109 varies depending on the design.
  • the cache memory 110 is used to temporarily store write data for the volume (storage drive 113) or read data from the volume (storage drive 113).
  • the shared memory 111 is a storage area for storing management information used by the storage controller 109 (the processor 119 thereof). Unlike the local memory 118, the cache memory 110 and the shared memory 111 can be accessed from the processor 119 of any storage controller 109.
  • the storage drive 113 is a storage device having a nonvolatile storage medium for finally storing write data from the host 101.
  • a plurality of storage drives 113 may constitute one RAID group.
  • the storage drive 113 can use a non-volatile semiconductor such as a magnetic disk or a flash memory as a storage medium.
  • An example of the storage drive is an SSD (Solid State Drive).
  • the storage drive 113 provides one or more logical storage areas (logical volumes) based on the RAID group.
  • FIG. 3B shows an example of a control program executed by the storage apparatus 120/220.
  • the control program is stored in the local memory 118 and includes an input / output control program 181, a copy control program 182, a journal request program 183, a journal transfer program 184, and a secondary volume reflection program 185.
  • one storage device can function as a primary storage device and a secondary storage device.
  • FIG. 3B shows a program when the storage apparatus operates as both types of storage apparatuses.
  • a storage device that functions only as one type of storage device of the primary storage device or the secondary storage device may have only the programs and information required by the one type of storage device.
  • the input / output control program 181 processes an I / O command (read command or write command) from the host computer 100.
  • the input / output control program 181 generates a journal from the write command and the write data, and stores the journal in the journal volume 122.
  • the copy control program 182 controls the copy pair according to a command from the management apparatus 140 or the host computer 100.
  • the journal request program 183 is executed in the secondary storage device, and requests untransferred journal data from the primary storage device.
  • the journal request program 183 operates asynchronously with the input / output control program 181.
  • the journal transfer program 184 is executed in the primary storage device and transfers journal data from the secondary storage device in response to a request.
  • the secondary volume reflection program 185 is executed in the secondary storage device.
  • the secondary volume reflection program 185 reflects (stores) the journal data stored in the secondary journal volume to the secondary volume based on the management information stored in the secondary journal volume.
  • the processor operates as a functional unit (means) that realizes a predetermined function by operating according to a program. Therefore, in the present embodiment and other embodiments, the description with the program as the subject may be the description with the processor, apparatus, or system that executes the program as the subject. In this embodiment and other embodiments, the information used by the system may be expressed in any data structure without depending on the data structure.
  • FIG. 4 shows a configuration example of the copy pair management information 400.
  • the copy pair management information 400 is stored in the shared memory 111 of each of the storage apparatuses 120 and 220.
  • the copy pair management information 400 includes information for managing each copy pair.
  • the copy pair management information 400 is represented by a table, and has a plurality of columns.
  • a plurality of columns are a copy pair ID column 401, a consistency group (CTG) ID column 402, a volume (VOL) ID column 403, a partner device ID column 404, a partner volume (VOL) ID column 405, a pair status column 406, a volume (VOL) type column 407 is included.
  • the plurality of columns further include a journal volume (JVOL) ID column 408, a partner journal volume (JVOL) ID column 409, a comparison journal (CJNL) flag column 410, and a comparison journal volume (CJVOL) ID column 411.
  • JVOL journal volume
  • JVOL partner journal volume
  • CJNL comparison journal
  • CJVOL comparison journal volume
  • the copy pair ID column 401 indicates the ID of each copy pair.
  • the consistency group ID column 402 indicates the ID of the consistency group that includes the copy pair.
  • a volume ID column 403 indicates the volume ID of the own device in the copy pair. For example, when the copy pair management information 400 is stored in the primary storage apparatus 120, the volume ID column 403 indicates the ID of the primary volume of the primary storage apparatus 120.
  • the counterpart device ID column 404 indicates the ID of the storage device that stores the other volume of the copy pair.
  • the partner volume ID column 405 indicates the ID of the other volume of the copy pair.
  • the pair status column 406 indicates the pair status of the copy pair. An example of the pair status will be described later.
  • the volume (VOL) type column 407 indicates the type of the volume of the own device in the copy pair, and indicates either the primary type or the secondary type.
  • the journal volume ID column 408 indicates the ID of the journal volume of the own device used for copy data transfer in the copy pair.
  • the partner journal volume ID column 409 shows the ID of the journal volume of the partner device used for copy data transfer in the copy pair.
  • the comparison journal flag column 410 indicates whether or not double writing is applied to the copy pair. If the comparison journal flag indicates valid, a comparison journal volume for the copy pair is defined.
  • the comparison journal volume (CJVOL) ID column 411 indicates the ID of the comparison journal volume used in duplex writing for the copy pair.
  • the pair status of the copy pair is, for example, a DUPLEX state, a SUSPEND state, a SIMPLEX state, or a FAILURE state.
  • DUPLEX state the update of the primary volume is reflected in the secondary volume.
  • SUSPEND state the copy process is temporarily stopped.
  • FAILURE state remote copy is impossible due to a communication failure or the like.
  • FAILURE remote copy is impossible due to a communication failure or the like.
  • SIMPLEX state the copy pair is released.
  • the copy control program 182 performs copy pair control processing. Examples of processing executed in copy control by the copy control program 182 are creation, suspension, resync, pair deletion, and status acquisition.
  • the host computer 100 or the management apparatus 140 can request the copy control program 182 for any of the above processes.
  • the copy control program 182 creates a new copy pair. The copy pair changes from the SIMPLEX state to the DUPLEX state.
  • the temporary stop process temporarily stops data copying from the primary volume to the secondary volume.
  • the copy pair changes from the DUPLEX state to the SUSPEND state.
  • the copy control program 182 does not reflect the data change of the primary volume to the secondary volume thereafter.
  • the copy control program 182 stops the data copy between the two volumes after copying the latest update of the primary volume to the secondary volume.
  • the resync process indicates a process of synchronizing the primary volume data and the secondary volume data by synchronizing the primary volume and the secondary volume.
  • the copy pair changes from the FAILURE state or the SUSPEND state to the DUPLEX state.
  • the copy control program 422 matches the two volume data and then restarts the copy process between them.
  • the pair deletion process is to cancel the pair created by the creation process.
  • the copy pair changes from a state other than the SIMPLEX state to the SIMPLEX state.
  • the copy control program 182 transmits copy pair status information to the request source.
  • the status information of the volumes constituting the copy pair is included in the copy pair management information 400.
  • the copy control program 182 updates the copy pair management information 400 when executing the creation process, the resync process, and the primary stop process.
  • FIG. 5 shows a configuration example of secondary journal (SJNL) management information 500.
  • the secondary journal management information 500 is stored in the secondary journal volume 222 and updated by the journal request program 183.
  • the secondary journal management information 500 includes information for managing journal data transferred from the primary journal volume to the secondary journal volume.
  • the secondary journal management information 500 is represented by a table and has a plurality of columns.
  • the plurality of columns include a consistency group ID column 501, a journal volume address column 502, a write address column 503, a sequential number column 504, a write time column 505, a comparison journal flag column 506, and an entry flag column 507.
  • the consistency group ID column 501 indicates the consistency group ID of a copy pair in which journal data is stored.
  • the in-journal volume address column 502 indicates the address of the secondary journal volume in which the journal data indicated by the entry is stored. A set of one entry of the secondary journal management information 500 and journal data indicated by the entry is one journal. Instead of the address where the journal data is stored, journal data may be stored.
  • the write address column 503 directly or indirectly indicates the storage location of journal data.
  • the write address column 503 indicates, for example, the ID of the secondary volume and the in-volume address (for example, composed of a set of a start address and an end address).
  • the write address column 503 indicates the ID of the primary volume and the address in the volume, and the address may be converted when writing to the secondary volume.
  • a sequential number column 504 indicates a sequential number assigned to journal data. The sequential number indicates the write order within the consistency group.
  • the write time column 505 indicates the time associated with writing the journal data (write data) to the primary volume. For example, the write time column 505 indicates the time when the corresponding write command is received or the time when the write data is written to the primary volume.
  • the primary storage apparatus 120 gives the write time to journal data (write data).
  • the write time may be given by the host computer 100. For example, the host computer 100 includes the write command issue time in the write command.
  • the comparison journal flag column 506 indicates whether dual writing is applied to the secondary volume in which journal data is stored and a comparison journal volume is allocated. When the comparison journal flag indicates valid, dual writing is applied to the secondary volume in which journal data is stored.
  • An entry flag column 507 indicates whether an entry is valid or invalid. The entry flag indicates validity when an entry is added, and indicates invalidity after the journal data is reflected on the secondary volume.
  • Primary journal management information (not shown) can also be represented by the same table configuration as the secondary journal management information 500.
  • the primary journal management information is stored in the primary journal volume and updated to the input / output control program 181.
  • the journal volume address column indicates an address in the primary journal volume 122.
  • the write address column indicates, for example, the address of the secondary volume.
  • the primary storage apparatus 120 can identify the secondary volume storing journal data with reference to the copy pair management information 400.
  • the write address column may indicate the address of the primary volume.
  • FIG. 6 shows a configuration example of the comparison journal (CJNL) management information 600.
  • the comparison journal management information 600 is stored in the comparison journal volume 223 and updated to the input / output control program 181 and the secondary volume reflection program 185.
  • the comparison journal management information 600 includes information for managing write data stored in the secondary volume by double writing.
  • the comparison journal management information 600 is represented by a table and has a plurality of columns.
  • the plurality of columns include a consistency group ID column 601, a write address column 602, a write time column 603, and an entry flag column 604.
  • One entry indicates data written by one double writing.
  • the consistency group ID column 601 indicates the ID of the consistency group that includes the write data storage destination secondary volume.
  • the write address column 602 indicates a write destination of the write data, and indicates, for example, an ID of the secondary volume and an address in the volume (for example, a set of a start address and an end address).
  • the write time column 603 indicates the time associated with writing the write data to the secondary volume.
  • the write time for dual writing is determined by the same method as the write time given to the asynchronous remote copy journal data.
  • the value of the write time column 603 is determined by the same method as the value of the write time column 505.
  • the write time column 603 indicates the time when the corresponding write command is received or the time when the write data is written to the secondary volume.
  • the secondary storage device 120 gives the write time to the write data that is written twice.
  • the write time may be given by the host computer 100.
  • the host computer 100 includes the write command issue time in the write command.
  • the entry flag column 604 indicates whether the entry is valid or invalid.
  • the entry flag indicates validity when an entry is added, and the entry flag of an unnecessary entry indicates invalid after the reflection processing to the secondary volume.
  • the comparison journal management information 600 indicates a write data storage destination address in the comparison journal volume 223 or includes write data.
  • FIG. 7 shows an example of a journal volume setting image displayed by the management apparatus 140.
  • the storage management program 210 displays a journal volume setting image on the output device 205.
  • the user inputs necessary information via the input device 206.
  • the storage management program 210 accepts designation of journal volumes and their types included in the consistency group in the journal volume setting image.
  • the “standard” journal volume is a primary or secondary journal volume
  • the “host double write” journal volume is a comparison journal volume.
  • the comparison journal volume is set only in the secondary storage device.
  • the input information is transferred to the primary storage device 120 and the secondary storage device 220 by the storage management program 210 and reflected in the management information including the copy pair management information 400.
  • FIG. 8 shows an example of a remote copy pair setting image displayed by the management apparatus 140.
  • the storage management program 210 displays the remote copy pair setting image on the output device 205.
  • the storage management program 210 accepts designation of the remote copy type and the consistency group including the remote copy pair in the remote copy pair setting image.
  • the storage management program 210 further accepts designation of a primary volume and a secondary volume that constitute a remote copy pair, and a journal volume that stores journal data or dual-write management information.
  • the comparison journal volume is not specified for copy pairs to which dual writing is not applied.
  • FIG. 9 shows a flowchart of processing of a write command from the host computer 100 by the primary storage apparatus 120.
  • the primary storage apparatus 120 receives a write command and write data from the host computer 100 (S101).
  • the write command and write data are temporarily stored in the buffer of the host I / F 106.
  • the input / output control program 181 acquires and analyzes the write command (S102).
  • the input / output control program 181 identifies the target volume of the write command, and refers to the copy pair management information 400 to determine whether the target volume is a primary volume of an asynchronous remote copy pair (S103).
  • the I / O control program 181 writes the write data to the target volume (S106).
  • the I / O control program 181 determines whether the write command is double writing (S104). When the double write flag of the write command indicates valid (S104: YES), the input / output control program 181 sets the host double write flag to ON on the local memory 118 (S105), and writes the write data to the target volume. Writing is performed (S106). If the write command is not double writing (S104: NO), step S105 is skipped.
  • the I / O control program 181 After writing the write data to the target volume (S106), the I / O control program 181 returns a write completion response to the host computer 100 (S107).
  • the input / output control program 181 refers to the host double write flag in the local memory 118 (S108). When the host double write flag is ON (S108: YES), the input / output control program 181 ends this flow. Thereby, it is possible to omit generation of an unnecessary journal in the case of double writing.
  • the I / O control program 181 refers to the copy pair management information 400 and indicates whether there is a pair volume of the write target volume and the copy pair including the write target volume. The state is identified (S109).
  • the I / O control program 181 When the pair volume exists and the pair status is the DUPLEX status (S109: YES), the I / O control program 181 creates a new journal corresponding to the received write command and stores it in the primary journal volume 122 (S110). ). Data copying is not required when there is no pair volume or in another pair status.
  • a journal (journal data and management information) can be stored in the primary journal volume 122 when writing to the primary volume of the asynchronous remote copy pair alone.
  • the I / O control program 181 refers to the copy pair management information 400 when creating a new journal, and checks the consistency group of the target primary volume, the secondary volume of the pair, and whether or not dual writing is applied. it can.
  • the input / output control program 181 determines the write time based on the reception of the write command, storage in the primary volume, or information included in the write command. The entry flag of the added entry indicates validity.
  • the input / output control program 181 ends this flow. According to this flow, asynchronous remote copy processing can be executed appropriately and efficiently in accordance with the pair status of the remote copy pair.
  • FIG. 10 shows a flowchart of processing of a write command from the host computer 100 by the secondary storage apparatus 220.
  • the secondary storage apparatus 220 receives a write command and write data from the host computer 100 (S151).
  • the write command and write data are temporarily stored in the buffer of the host I / F 106.
  • the input / output control program 181 acquires and analyzes the write command (S152).
  • the input / output control program 181 identifies the target volume of the write command, refers to the copy pair management information 400, and determines whether the target volume is a secondary volume of an asynchronous remote copy pair (S153).
  • the I / O control program 181 When the target volume of the write command is not the secondary volume of the asynchronous remote copy pair (S153: NO), the I / O control program 181 writes the write data to the target volume (S154) and sends a write completion response to the host computer 100. Return (S155), and the flow ends.
  • the I / O control program 181 determines whether the write command is double writing (S156). If the write command is not double writing (S156: NO), the input / output control program 181 proceeds to step S154.
  • the input / output control program 181 sets the host double write flag to ON on the local memory 118 (S157). Next, the input / output control program 181 refers to the copy pair management information 400 to identify the status of the copy pair including the write target volume (S158, S159).
  • the input / output control program 181 proceeds to step S154. If the pair status is neither the SUSPEND status, the SIMPLEX status, or the DUPLEX status (S158: NO, S159: NO), that is, if the pair status is the FAILURE status, the I / O control program 181 reports an error to the host computer 100. (S160).
  • the input / output control program 181 refers to the host double write flag in the local memory 118 (S161).
  • the host double write flag is OFF (S161: NO)
  • the input / output control program 181 reports an error to the host computer 100 (S160).
  • the I / O control program 181 If the host double write flag is ON (S161: YES), the I / O control program 181 writes the write data to the secondary volume (S162), and returns a write completion response to the host computer 100 (S163).
  • the input / output control program 181 further adds a new entry corresponding to the write command (write data) to the comparison journal management information 600.
  • the entry flag of the added entry indicates validity.
  • the I / O control program 181 can identify the consistency group of the write target volume with reference to the copy pair management information 400.
  • the write address is indicated in the write command.
  • the input / output control program 181 determines the write time based on the reception of the write command, storage in the primary volume, or information included in the write command.
  • the entry flag of the added entry indicates validity.
  • journal transfer between storage devices will be described.
  • the primary storage apparatus 120 transmits a return value.
  • FIG. 11 shows a configuration example of the journal transfer command 250.
  • the journal transfer command 250 is a command for transferring the journal of the primary storage device 120 to the secondary storage device 220.
  • the journal request program 183 of the secondary storage device 220 creates a journal transfer command 250 and issues it to the primary storage device 120.
  • the journal transfer command 250 includes an instruction code field 251, a consistency group ID field 252, a sequential number field 253 of a journal already reflected in the secondary volume, and a received sequential number field 254.
  • the instruction code field 251 stores the instruction type of the command, that is, data indicating a journal transfer command.
  • the consistency group ID field 252 stores the consistency group ID of the journal requested to be transferred.
  • the field 254 stores the last written journal, that is, the sequential number of the latest reflected journal in the consistency group to which the transfer requested journal belongs.
  • the received sequential number section field 255 is the sequential number of the journal last received by the secondary storage system 220 in the consistency group to which the journal requested to be transferred belongs. That is, it is the sequential number of the latest journal held in the secondary journal management information 500.
  • the journal request program 183 refers to the secondary journal management information 500 and generates a journal transfer command 250.
  • the journal request program 183 inputs the latest sequential number indicated by the secondary journal management information 500 in the received sequential number field 254.
  • the journal request program 183 inputs the latest sequential number indicating that the entry flag is invalid in the sequential number field 253 of the journal already reflected in the SVOL.
  • the journal transfer program 424 of the primary storage device 120 transmits a return value including a journal in response to the journal transfer command 250 from the secondary storage device 220.
  • FIG. 12 shows a configuration example of a return value (response) 350 for the journal transfer command.
  • the journal transfer program 424 of the primary storage device 120 transmits a return value 350 to the secondary storage device 220 as a response to the journal transfer command.
  • the return value 350 includes a consistency group ID field 351, a journal field 352, and a latest sequential number field 353.
  • the consistency group ID field 351 stores the consistency group ID of the requested journal. This value is the same as the value in the consistency group ID field 252 in the journal transfer command 250.
  • the journal field 352 includes one or more journals transferred in response to the journal transfer request command. In the example of FIG. 12, three journals are included. The number of journals stored depends on the number or data volume of untransferred journals and the design. Each journal includes journal data, a write address, a sequential number, a write time, and a comparison journal flag.
  • the journal transfer program 184 acquires a prescribed number of journals from the primary journal volume 122 from the sequential number next to the number indicated by the received sequential number field 254.
  • the journal transfer program 184 inputs journal data acquired from the primary journal volume 122 and information acquired from primary journal management information (not shown) in the journal field 352.
  • the primary journal management information has the same configuration as the secondary journal management information 500, and stores information on the write address, sequential number, write time, and comparison journal flag.
  • the journal transfer program 184 inputs the latest sequential number when the journal transfer command 250 is received in the primary journal management information in the latest sequential number field 353.
  • the journal transfer program 184 changes the entry flag of the journal data entry already reflected in the secondary volume to invalid.
  • the journal transfer program 184 changes the entry flag to invalid in the entry of the sequential number before the sequential number indicated by the sequential number field 253 of the journal that has been reflected in the secondary volume of the journal transfer command 250.
  • the journal transfer program 184 may change the entry flag of the transferred journal data entry to invalid.
  • the journal transfer program 184 changes the entry flag to invalid in the entry of the sequential number before the latest sequential number in the return value 350 transferred this time.
  • the journal data of the invalidated entry is deleted.
  • the journal request program 183 of the secondary storage apparatus 220 extracts a journal from the received return value 350 and stores it in the secondary journal volume 222.
  • the journal request program 183 converts the journal if necessary. For example, when the write address indicates the primary volume, the journal request program 183 converts the write address and stores it in the secondary journal management information 500.
  • FIG. 13 shows a flowchart of processing of the secondary storage apparatus 220 in journal transfer from the primary storage apparatus 120 to the secondary storage apparatus 220.
  • journal transfer is executed asynchronously with the write from the host computer 100.
  • journal transfer is executed for the selected consistency group.
  • the journal request program 183 of the secondary storage device 220 requests the primary storage device 120 to transfer an untransferred journal at a predetermined timing (S201).
  • the journal request program 183 When it is time to request journal transfer (S201: YES), the journal request program 183 refers to the copy pair management information 400 and confirms the pair status of the consistency group (S202). If the pair status is not the DUPLEX status (S202: NO), the data copy is unnecessary, and the journal request program 183 ends this flow.
  • journal request program 183 When the pair status is the DUPLEX status (S202: YES), the journal request program 183 requests journal transfer to the primary storage device 120 (S203). The journal request program 183 generates a journal transfer command 250 and transmits it to the primary storage device 120. Details of the journal transfer command have been described with reference to FIG.
  • the journal transfer program 184 transmits a return value 350 of the journal transfer command to the secondary storage device 220.
  • the secondary storage device 220 receives the return value 350 (S204). Details of the return value 350 of the journal transfer command have been described with reference to FIG.
  • the journal request program 183 of the secondary storage apparatus 220 stores the journal included in the received return value in the secondary journal volume 222. Specifically, the journal request program 183 stores the received journal data in the secondary journal volume 222, and adds new journal data management information to the secondary journal management information 500. The journal request program 183 may repeatedly transmit the journal transfer command 250 until the journal having the latest sequence number indicated by the return value 350 is received.
  • the secondary storage apparatus 220 can receive the untransferred journal of the selected consistency group from the primary storage apparatus 120.
  • FIG. 14 shows a flowchart of the process of reflecting journal data to the secondary volume in the secondary storage apparatus 220.
  • the secondary volume reflection program 185 repeatedly executes the process at a predetermined timing. This process is executed synchronously or asynchronously with the journal reincarnation process.
  • the secondary volume reflection program 185 refers to the secondary journal management information 500 and selects the oldest entry (comparison source secondary journal entry) indicating that the entry flag is valid (S301). The secondary volume reflection program 185 determines whether the comparison journal flag of the selected comparison source secondary journal entry indicates validity (S302).
  • the secondary volume reflection program 185 stores the journal data of the comparison source secondary journal entry in the secondary volume area indicated by the write address (S305). Since double writing is not applied to the copy pair, comparison with the comparison journal management information 600 is unnecessary, and the processing is made efficient.
  • comparison journal flag is valid (S302: NO)
  • double writing is applied to the copy pair. There is a possibility that write data that is newer than the comparison source secondary journal entry has been written to the secondary volume by host double writing.
  • the secondary volume reflection program 185 searches the comparison journal management information 600 for the latest valid entry having the same address as the write address indicated by the comparison source secondary journal entry (S303).
  • the access by the write command or the address size in the journal is constant.
  • the journal data of the comparison source secondary journal entry is the latest data.
  • the secondary volume reflection program 185 stores the journal data in the secondary volume area indicated by the write address (S305).
  • the secondary volume reflection program 185 changes the entry flag of the comparison source secondary journal entry to invalid (S306).
  • the journal data of the entry whose entry flag is invalidated is deleted.
  • the secondary volume reflection program 185 determines the latest write time in the comparison journal management information 600 and the comparison source for each overlapping address area. The write time of the secondary journal entry is compared (S309).
  • the secondary volume reflection program 185 stores the journal data in the secondary volume area indicated by the write address (S305).
  • the secondary volume reflection program 185 changes the entry flag of the comparison source secondary journal entry to invalid (S306).
  • the secondary volume reflection program 185 stores the entry data of the comparison source secondary journal entry without storing the journal data in the secondary volume area indicated by the write address. Is changed to invalid (S306).
  • the secondary volume reflection program 185 returns to step S302.
  • the secondary volume reflection program 185 in the comparison journal management information 600 determines the last in the secondary journal management information 500.
  • the entry flag of the entry before the entry write time is set to invalid (S311). This makes it possible to invalidate entries that are unnecessary in future comparison processing, and to make the comparison processing more efficient.
  • the transfer time from the primary storage device 120 may be managed instead of the write time.
  • journal data is not stored in the secondary volume. As a result, it is possible to prevent old journal data from overwriting new host data.
  • the secondary journal management information 500 includes the comparison journal flag
  • the secondary storage apparatus 220 can efficiently know whether double writing is applied to journal data.
  • the above example further includes a comparative journal flag in the journal. As a result, it is possible to know whether or not the double writing is applied to the journal data more efficiently.
  • the comparison journal flag is omitted in the journal, and the secondary storage apparatus 220 adds the comparison journal flag to the secondary journal management information 500 with reference to the comparison journal flag column 410 of the copy pair management information 400. Also good.
  • the comparison journal flag may be omitted in the secondary journal management information 500, and the secondary storage apparatus 220 may refer to the comparison journal flag column 410 of the copy pair management information 400.
  • the above example invalidates the entry by setting the entry flag of the unnecessary entry in the management information invalid, but the entry may be invalidated by deleting the unnecessary entry.
  • the write command and journal write address range need not be constant.
  • the secondary volume reflection program 185 searches the comparison journal management information 500 for the latest valid entry that overlaps (at least partially matches) the write address of the comparison source secondary journal entry.
  • the comparison journal volume may not be defined.
  • the comparison journal management information 500 may be stored in the shared memory 111.
  • the secondary volume reflection program 185 compares the write time between the secondary journal and the comparison journal for each overlapping address range. In the secondary journal, data in an address range that does not match the address of any valid comparison journal is reflected in the secondary volume.
  • the above configuration example compares the time of the journal data and the host double write data in reflecting the secondary journal data, and writes the host data to the secondary volume without comparing with the journal data in the host double write. This effectively avoids overwriting new data with old data.
  • the secondary storage device 220 may compare the write time between the host data and the journal data in the host double writing. Normally, data transfer by asynchronous remote copy is slower than data transfer by host write. Therefore, the write times may be compared in storing journal data in the secondary volume. By comparing the write times of host data and journal data in host double writing, the reliability of data consistency can be improved.
  • the time included in the write command from the host computer 100 is used as the write time.
  • the input / output control program 181 searches the secondary journal management information 500 for the latest invalid entry having the same address as the host write data address.
  • the I / O control program 181 If newer journal data than the host write data has already been written to the secondary volume, the I / O control program 181 returns a write completion application to the host computer 100 without writing the host write data to the secondary volume.
  • the entry of the host write data that has not been written to the secondary volume is set to invalid in the comparison journal management information 600.
  • the update of the secondary journal management information 500 and the processing of the entry of the host data written to the primary journal volume in the comparison journal management information 600 may be the same as the other configuration examples described above.
  • the input / output control program 181 may search for the latest entry at the same address in the valid and invalid entries.
  • the comparison when the addresses of the host write data and the journal data partially match is the same as in the above other configuration examples.
  • this invention is not limited to the above-mentioned Example, Various modifications are included.
  • the above-described embodiments have been described in detail for easy understanding of the present invention, and are not necessarily limited to those having all the configurations described.
  • a part of the configuration of one embodiment can be replaced with the configuration of another embodiment, and the configuration of another embodiment can be added to the configuration of one embodiment.
  • each of the above-described configurations, functions, processing units, and the like may be realized by hardware by designing a part or all of them with, for example, an integrated circuit.
  • Each of the above-described configurations, functions, and the like may be realized by software by interpreting and executing a program that realizes each function by the processor.
  • Information such as programs, tables, and files for realizing each function can be stored in a memory, a recording device such as a hard disk drive or SSD, or a recording medium such as an IC card or SD card.
  • the control lines and information lines are those that are considered necessary for the explanation, and not all the control lines and information lines on the product are necessarily shown. In practice, it may be considered that almost all the components are connected to each other.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A first volume of a first storage device and a second volume of a second storage device form an asynchronous copy pair. The second storage device includes first management information that is for managing information about host write data and that is written in the second volume according to a host overwriting write command from a host, receives a journal related to the second volume from the first storage device, and writes journal data in the second volume when the latest time associated with write data of a write destination identical to the journal data is earlier than the time associated with the journal data in the first management information.

Description

ストレージシステムStorage system
 本発明は、ストレージシステムに関する。 The present invention relates to a storage system.
 本開示の背景技術として、例えば、特開2007-86972号公報がある。特開2007-86972号公報は、二重書き可能なストレージ装置において、ホストの負荷及びユーザの手間を低減した効率的な二重化復帰を含む制御を実現できる技術を開示する。具体的には以下の事項が開示される。 As a background art of the present disclosure, for example, there is JP-A-2007-86972. Japanese Patent Application Laid-Open No. 2007-86972 discloses a technology capable of realizing control including efficient duplexing recovery with reduced host load and user trouble in a storage device capable of dual writing. Specifically, the following matters are disclosed.
 ホストから正副のストレージ装置のデータボリュームを対象としてデータを二重書きする。各ストレージ装置が、ホストからの更新データを含む情報を、ジャーナル(更新データ履歴情報)として保持する。二重書き対象の2つの系のうち一方が障害状態となった場合に二重化状態へ復帰させる際に、ストレージ装置間で、ホストを経由せずに、ジャーナルについて通信し、正常な系のジャーナルの一部である、ボリュームの同期化のために必要な最新の同期点以後の保持分を、復旧対象側の系へデータコピーにより転送し、それをもとにボリュームをリストアして同期化する(例えば要約)。 ∙ Double-write data from the host to the primary and secondary storage device data volumes. Each storage device holds information including update data from the host as a journal (update data history information). When one of the two systems subject to dual writing becomes faulty, when returning to the duplexed state, the storage device communicates with the journal without going through the host, and A part of the data held after the most recent synchronization point necessary for volume synchronization is transferred to the recovery target system by data copy, and then the volume is restored and synchronized ( For example, summary).
 また、非同期リモートコピー技術を利用してデータをバックアップするリモートコピーシステムが知られている。システムは、十分に離れたプライマリサイトとセカンダリサイトに設置された二つのストレージ装置に、同一のデータを格納する。プライマリストレージ装置のボリューム(プライマリボリューム)のデータが更新されると、その更新は、リモートコピーによって、セカンダリストレージ装置のボリューム(セカンダリボリューム)に非同期的に反映される。これにより、二つのストレージ装置のデータの整合性が確保される。 Also, a remote copy system that backs up data using asynchronous remote copy technology is known. The system stores the same data in two storage devices installed at sufficiently separated primary and secondary sites. When the data in the primary storage device volume (primary volume) is updated, the update is asynchronously reflected in the secondary storage device volume (secondary volume) by remote copy. As a result, data consistency between the two storage apparatuses is ensured.
特開2007-86972号公報JP 2007-86972 A
 ストレージ装置にホスト二重書き機能と非同期リモートコピーの双方を実装する場合、セカンダリストレージ装置は、ホストから転送されたライトデータ、及び、プライマリストレージ装置から転送されたコピーデータを、一つのセカンダリボリュームに対してライトすることになる。 When both the host dual write function and asynchronous remote copy are implemented in the storage device, the secondary storage device puts the write data transferred from the host and the copy data transferred from the primary storage device into one secondary volume. It will write against.
 つまり、セカンダリストレージ装置は、ホストからのデータ転送と同期して動作するホストI/O処理と、ホストからのデータ転送と非同期で動作するコピー処理との、二つの異なる処理により転送されるデータによってセカンダリボリュームを更新する。 In other words, the secondary storage device uses data transferred by two different processes: a host I / O process that operates in synchronization with data transfer from the host, and a copy process that operates asynchronously with data transfer from the host. Update the secondary volume.
 セカンダリストレージ装置は、二つの異なる処理により転送されるデータによって、セカンダリボリュームを正しい順序で更新することが重要である。つまり、セカンダリボリュームにおいて、すでに格納されているデータをより古いデータで更新することを回避することが重要である。 It is important for the secondary storage device to update the secondary volume in the correct order with data transferred by two different processes. In other words, it is important to avoid updating already stored data with older data in the secondary volume.
 しかし、システムの構成及び運用に応じて、ホストからのデータ送信順序と、セカンダリストレージ装置におけるデータ受信順序が一致しないことが起こり得る。したがって、ホスト二重書き機能と非同期リモートコピーの双方を実装システムにおいて、ボリュームペアにおけるデータ不整合の可能性を低減できる技術が望まれる。 However, depending on the system configuration and operation, the data transmission order from the host may not match the data reception order in the secondary storage device. Therefore, there is a demand for a technique that can reduce the possibility of data inconsistency in a volume pair in a system that implements both the host dual write function and asynchronous remote copy.
 本発明の一態様は、第1のボリュームをホストに提供する、第1のストレージ装置と、第2のボリュームを前記ホストに提供する、第2のストレージ装置と、を含むストレージシステムであって、前記第1のボリュームと前記第2のボリュームとが非同期コピーペアを形成し、前記第2のストレージ装置が、前記ホストからの前記第1のボリューム及び前記第2のボリュームへのホスト二重書きライトコマンドに応じて前記第2のボリュームにライトされた、ホストライトデータの情報を管理する第1の管理情報を含み、前記ホストライトデータの情報は、前記ホストライトデータのライト先及び前記ホストライトデータに関連付けられた時刻を含み、前記第1のストレージ装置から、前記第2のボリュームに対するジャーナルを受信し、前記ジャーナルは、ジャーナルデータと、前記ジャーナルデータのライト先及び前記ジャーナルデータに関連付けられた時刻を含み、前記第1の管理情報において、前記ジャーナルデータと同一のライト先のライトデータに関連付けられている最新の時刻が、前記ジャーナルデータに関連付けられた時刻より古い場合、前記ジャーナルデータを前記第2のボリュームにライトし、前記第1の管理情報において、前記ジャーナルデータと同一のライト先のホストライトデータに関連付けられている最新の時刻が、前記ジャーナルデータに関連付けられた時刻より新しい場合、前記ジャーナルデータを前記第2のボリュームにライトしないことを決定する。 One aspect of the present invention is a storage system including a first storage device that provides a first volume to a host, and a second storage device that provides a second volume to the host, The first volume and the second volume form an asynchronous copy pair, and the second storage device writes a host double write to the first volume and the second volume from the host. Including first management information for managing host write data information written to the second volume in response to a command. The host write data information includes the write destination of the host write data and the host write data. Receiving a journal for the second volume from the first storage device, including the time associated with The journal includes journal data, a write destination of the journal data, and a time associated with the journal data, and is associated with write data of the same write destination as the journal data in the first management information. If the latest time is older than the time associated with the journal data, the journal data is written to the second volume, and in the first management information, the same write destination host write data as the journal data If the latest time associated with is newer than the time associated with the journal data, it decides not to write the journal data to the second volume.
 本発明の一態様によれば、ホスト二重書き機能と非同期リモートコピー機能を実装するシステムにおいて、ボリュームペアにおけるデータ不整合の可能性を低減できる。 According to one aspect of the present invention, it is possible to reduce the possibility of data inconsistency in a volume pair in a system that implements a host double write function and an asynchronous remote copy function.
計算機システムの構成例を模式的に示す。The structural example of a computer system is shown typically. 管理装置の構成例を模式的に示す。The structural example of a management apparatus is shown typically. ストレージ装置の構成例を模式的に示す。An example of the composition of a storage device is shown typically. ストレージ装置により実行される制御プログラム例を示す。An example of a control program executed by the storage apparatus is shown. コピーペア管理情報の構成例を示す。The structural example of copy pair management information is shown. セカンダリジャーナル(SJNL)管理情報の構成例を示す。The structural example of secondary journal (SJNL) management information is shown. 比較ジャーナル(CJNL)管理情報の構成例を示す。The structural example of comparison journal (CJNL) management information is shown. 管理装置により表示される、ジャーナルボリューム設定画像の例を示す。An example of a journal volume setting image displayed by the management apparatus is shown. 管理装置により表示される、リモートコピーペア設定画像の例を示す。An example of a remote copy pair setting image displayed by the management apparatus is shown. プライマリストレージ装置によるホスト計算機からのライトコマンドの処理のフローチャートを示す。6 shows a flowchart of processing of a write command from a host computer by the primary storage apparatus. セカンダリストレージ装置によるホスト計算機からのライトコマンドの処理のフローチャートを示す。6 shows a flowchart of processing of a write command from the host computer by the secondary storage device. ジャーナル転送コマンドの構成例を示す。The structural example of a journal transfer command is shown. ジャーナル転送コマンドに対する返り値(応答)の構成例を示す。The structural example of the return value (response) with respect to a journal transfer command is shown. プライマリストレージ装置からセカンダリストレージ装置へのジャーナル転送における、セカンダリストレージ装置の処理のフローチャートを示す。5 shows a flowchart of processing of the secondary storage device in journal transfer from the primary storage device to the secondary storage device. セカンダリストレージ装置における、ジャーナルデータをセカンダリボリュームに反映する処理のフローチャートを示す。7 shows a flowchart of processing for reflecting journal data in a secondary volume in a secondary storage apparatus.
 以下において、本発明の実施の形態を説明する。説明の明確化のため、以下の記載及び図面は、適宜、省略及び簡略化がなされている。又、説明の明確化のため、必要に応じて重複説明は省略されている。 Hereinafter, embodiments of the present invention will be described. For clarity of explanation, the following description and drawings are omitted and simplified as appropriate. For the sake of clarity, duplicate explanation is omitted as necessary.
 図1は、本実施形態の計算機システムの構成例を模式的に示す。計算機システムは、プライマリサイト10のシステムとセカンダリサイト20のシステムとを含む。セカンダリサイト20は、プライマリサイト10から物理的に離れた位置にある。プライマリストレージ装置(MDKCとも呼ぶ)120は、プライマリサイト10に設置されている。セカンダリストレージ装置(RDKCとも呼ぶ)220は、セカンダリサイト20に設置されている。 FIG. 1 schematically shows a configuration example of a computer system of this embodiment. The computer system includes a system at the primary site 10 and a system at the secondary site 20. The secondary site 20 is physically located away from the primary site 10. A primary storage device (also referred to as MDKC) 120 is installed at the primary site 10. A secondary storage device (also referred to as RDKC) 220 is installed at the secondary site 20.
 業務プログラムが稼働するホスト計算機100と、プライマリストレージ装置120及びセカンダリストレージ装置220とは、データネットワーク161により接続されている。ホスト計算機100のプラットフォームはオープンシステム又はメインフレームである。 The host computer 100 on which the business program runs, the primary storage device 120, and the secondary storage device 220 are connected by a data network 161. The platform of the host computer 100 is an open system or a mainframe.
 データネットワーク161は、データ通信用ネットワークであって、本構成においては、SAN(Storage Area Network)である。データネットワーク161は、データ通信用のネットワークであればSAN以外のネットワークでもよく、例えばIPネットワークでもよい。 The data network 161 is a data communication network, and is a SAN (Storage Area Network) in this configuration. The data network 161 may be a network other than SAN as long as it is a data communication network, for example, an IP network.
 ホスト計算機100、ストレージ装置120、220及び管理装置140は、管理ネットワーク162で接続されている。管理ネットワーク162は、本構成においては、IPネットワークである。管理ネットワーク162は、管理データ通信用のネットワークであればIPネットワーク以外のネットワークでもよく、例えばSANでもよい。データネットワーク161及び管理ネットワーク162は、同一のネットワークであってもよい。 The host computer 100, the storage devices 120 and 220, and the management device 140 are connected by a management network 162. The management network 162 is an IP network in this configuration. The management network 162 may be a network other than the IP network, for example, a SAN, as long as it is a network for management data communication. The data network 161 and the management network 162 may be the same network.
 図1の構成例において、プライマリストレージ装置120は、三つのプライマリボリューム(PVOL)121A~121Cと、プライマリジャーナルボリューム(PJVOL)122を含む。セカンダリストレージ装置220は、三つのセカンダリボリューム(SVOL)221A~221Cと、セカンダリジャーナルボリューム(SJVOL)222と、比較ジャーナルボリューム(CJVOL)223を含む。 1, the primary storage apparatus 120 includes three primary volumes (PVOL) 121A to 121C and a primary journal volume (PJVOL) 122. The secondary storage apparatus 220 includes three secondary volumes (SVOL) 221A to 221C, a secondary journal volume (SJVOL) 222, and a comparison journal volume (CJVOL) 223.
 プライマリボリューム及びセカンダリボリューム(データボリューム)は、ホスト計算機100からのユーザデータを格納する。ジャーナルボリュームは、データボリュームへのライトの更新履歴を格納する。 The primary volume and the secondary volume (data volume) store user data from the host computer 100. The journal volume stores the update history of writes to the data volume.
 プライマリストレージ装置120とセカンダリストレージ装置220とは、ストレージ間ネットワーク163により通信可能に接続している。プライマリストレージ装置120とセカンダリストレージ装置220とは、データボリュームの非同期リモートコピーを実行する。非同期リモートコピーは、プライマリボリュームへのデータライト後、セカンダリボリュームへのライト完了前に、I/O完了応答をホスト計算機100に返す。なお、以下の説明において、明示ない場合、ボリュームへのライトは、キャッシュ又は記憶ドライブへのライトを意味する。 The primary storage device 120 and the secondary storage device 220 are communicably connected via an inter-storage network 163. The primary storage device 120 and the secondary storage device 220 execute asynchronous remote copy of the data volume. Asynchronous remote copy returns an I / O completion response to the host computer 100 after writing data to the primary volume and before completing writing to the secondary volume. Note that in the following description, writing to a volume means writing to a cache or a storage drive unless otherwise specified.
 プライマリストレージ装置120は、ホスト計算機100から受信したライトデータを、プライマリボリューム121A~121Cの一つと、プライマリジャーナルボリューム122に格納する。プライマリジャーナルボリューム122格納されるユーザデータをジャーナルデータとも呼ぶ。プライマリストレージ装置120は、プライマリジャーナルボリューム122のジャーナルデータを、セカンダリストレージ装置220に転送する。 The primary storage apparatus 120 stores the write data received from the host computer 100 in one of the primary volumes 121A to 121C and the primary journal volume 122. User data stored in the primary journal volume 122 is also referred to as journal data. The primary storage device 120 transfers the journal data of the primary journal volume 122 to the secondary storage device 220.
 セカンダリストレージ装置220は、プライマリストレージ装置120から受信したジャーナルデータをセカンダリジャーナルボリューム222に格納する。セカンダリストレージ装置220は、セカンダリジャーナルボリューム222に格納されているジャーナルデータを、セカンダリボリューム221A~221Cの一つに格納する。これにより、プライマリボリューム121A~121Cのデータを、セカンダリボリューム221A~221Cにコピーすることができる。ストレージ装置間のデータコピーは、ホスト計算機100からのライトとは非同期に実行される。 Secondary storage device 220 stores the journal data received from primary storage device 120 in secondary journal volume 222. The secondary storage device 220 stores the journal data stored in the secondary journal volume 222 in one of the secondary volumes 221A to 221C. As a result, the data of the primary volumes 121A to 121C can be copied to the secondary volumes 221A to 221C. Data copy between the storage apparatuses is executed asynchronously with the write from the host computer 100.
 リモートコピーは、コピーペアを構成するデータボリューム間で行われる。例えば、プライマリボリューム121Aはセカンダリボリューム221Aとコピーペアを構成し、プライマリボリューム121Bはセカンダリボリューム221Bとコピーペアを構成し、ライマリボリューム121Cはセカンダリボリューム221Cとコピーペアを構成する。 Remote copy is performed between data volumes that make up a copy pair. For example, the primary volume 121A constitutes a copy pair with the secondary volume 221A, the primary volume 121B constitutes a copy pair with the secondary volume 221B, and the primary volume 121C constitutes a copy pair with the secondary volume 221C.
 図1の例において、コンシステンシグループAは、プライマリボリューム121A~121C、プライマリジャーナルボリューム122、セカンダリボリューム221A~221C、セカンダリジャーナルボリューム222、及び比較ジャーナルボリューム223で構成されている。コンシステンシグループに含まれる各種ボリュームの数は、設計に依存して変化する。例えば、コンシステンシグループは、複数のプライマリ、セカンダリ又は比較ジャーナルボリュームを含むことができる。 In the example of FIG. 1, the consistency group A includes primary volumes 121A to 121C, a primary journal volume 122, secondary volumes 221A to 221C, a secondary journal volume 222, and a comparison journal volume 223. The number of various volumes included in the consistency group varies depending on the design. For example, a consistency group can include multiple primary, secondary, or comparison journal volumes.
 非同期リモートコピーは、セカンダリボリュームへのコピー順序を、プライマリボリュームへのデータライト順序(データ更新順序)に一致させる。後述するように、セカンダリボリュームへの一部のコピーや省略されることがある。順序の一致は、コンシステンシグループにおいて維持される。つまり、プライマリストレージ装置120におけるコンシステングループのプライマリボリュームへのデータライト順序が、セカンダリストレージ装置220における同コンシステングループのセカンダリボリュームへのライト順序(コピー順序)に一致する。 Asynchronous remote copy matches the copy order to the secondary volume with the data write order (data update order) to the primary volume. As will be described later, a partial copy to the secondary volume may be omitted. Order matching is maintained in the consistency group. That is, the data write order to the primary volume of the consistency group in the primary storage apparatus 120 matches the write order (copy order) to the secondary volume of the consistency group in the secondary storage apparatus 220.
 図1の例において、セカンダリボリューム221A~221Cへのコピーデータのライト順序は、プライマリボリューム121A~121Cへのホストデータのライト順序と一致する。システムは、シーケンシャル番号とタイムスタンプによって、データライト順序を管理する。 In the example of FIG. 1, the write data write order to the secondary volumes 221A to 221C matches the host data write order to the primary volumes 121A to 121C. The system manages the data write order by the sequential number and the time stamp.
 本実施形態において、一回のライトの履歴情報をジャーナルと呼ぶ。後述するように、プライマリ及びセカンダリジャーナルボリュームに格納されるジャーナルは、ジャーナルデータ(ライトデータ)とその管理情報の組である。比較ジャーナルボリュームに格納されるジャーナルは、管理情報のみ又は管理情報とジャーナルデータの組で構成される。 In this embodiment, the history information of one write is called a journal. As will be described later, the journal stored in the primary and secondary journal volumes is a set of journal data (write data) and its management information. The journal stored in the comparison journal volume is composed of only management information or a combination of management information and journal data.
 ストレージ装置間において、ジャーナルが転送される。ジャーナルは、コンシステンシグループにおいて、プライマリボリューム121A~121Cへのライトの順序及び時刻を示す、シーケンシャル番号及びライト時刻を含む。 Journal is transferred between storage devices. The journal includes a sequential number and a write time indicating the order and time of writing to the primary volumes 121A to 121C in the consistency group.
 本実施形態の計算機システムは、二重書き機能を実装する。ホスト計算機100は、コピーペアを構成するプライマリボリューム及びセカンダリボリュームのそれぞれに、同じライトコマンド及びライトデータを送付する。プライマリストレージ装置120及びセカンダリストレージ装置220は、それぞれ、受信したライトデータを対象ボリュームに書き込む。二重書きにおいて、非同期リモートコピーは実行されない。 The computer system of this embodiment implements a double writing function. The host computer 100 sends the same write command and write data to each of the primary volume and the secondary volume that constitute the copy pair. The primary storage device 120 and the secondary storage device 220 each write the received write data to the target volume. Asynchronous remote copy is not executed in double writing.
 ライトコマンドは、二重書きフラグを含み、当該ライトコマンドが二重書きライトコマンドであるか否かを示す。プライマリストレージ装置120は、受信したライトコマンドにおける二重書きフラグを参照して、受信したライトデータのための、非同期リモートコピー処理を開始するか決定する。 The write command includes a double write flag and indicates whether or not the write command is a double write command. The primary storage apparatus 120 refers to the double write flag in the received write command and determines whether to start the asynchronous remote copy process for the received write data.
 セカンダリストレージ装置220は、二重書きライトコマンドを受信すると、セカンダリボリュームにライトデータを書き込むと共に、比較ジャーナルボリューム223に、ライトコマンドの履歴情報(ジャーナル)を格納する。比較ジャーナルボリューム223のジャーナルは、ライトデータ(ライトコマンド)のライト先及びライト時刻の情報を含む。比較ジャーナルボリューム223のジャーナルは、ライトデータを含んでもよいし、含まなくてもよい。ライトデータを格納しないことで、リソースの効率的使用が可能となる。 When the secondary storage device 220 receives the double write command, it writes the write data to the secondary volume and stores the write command history information (journal) in the comparison journal volume 223. The journal of the comparison journal volume 223 includes information on the write destination and write time of write data (write command). The journal of the comparison journal volume 223 may or may not include write data. By not storing write data, resources can be used efficiently.
 セカンダリストレージ装置220は、セカンダリジャーナルボリューム222からセカンダリボリュームへのデータ反映処理において、セカンダリジャーナルボリューム222から、ジャーナルを選択する。セカンダリストレージ装置220は、選択したジャーナルと共通のライト先を有し、最新のライト時刻を示すジャーナルを、比較ジャーナルボリューム223において検索する。 The secondary storage apparatus 220 selects a journal from the secondary journal volume 222 in the data reflection process from the secondary journal volume 222 to the secondary volume. The secondary storage device 220 searches the comparison journal volume 223 for a journal having a write destination common to the selected journal and indicating the latest write time.
 比較ジャーナルボリューム223に格納されているジャーナルのライト時刻が、セカンダリジャーナルボリューム222に格納されているジャーナルのライト時刻よりも遅い場合、ジャーナルデータのセカンダリボリュームへの格納を省略する。これにより、二重書きによるホストデータを、それよりも古いコピーデータで上書きすることを避けることができる。 When the write time of the journal stored in the comparison journal volume 223 is later than the write time of the journal stored in the secondary journal volume 222, storing the journal data in the secondary volume is omitted. As a result, it is possible to avoid overwriting host data by double writing with copy data older than that.
 図2は、管理装置140の構成例を模式的に示す。管理装置140において、ストレージ装置120、220を管理するプログラムが稼働する。管理装置140は、プロセッサ201、メモリ202、二次記憶装置203、管理インタフェース(I/F)204、出力装置205、入力装置206を備え、各々が接続されている。出力装置205は、典型的には液晶表示装置であり、入力装置206は典型的にはキーボード及びマウスである。管理者は、出力装置205において必要な情報を取得し、入力装置206により必要な情報を入力できる。 FIG. 2 schematically shows a configuration example of the management device 140. In the management device 140, a program for managing the storage devices 120 and 220 operates. The management device 140 includes a processor 201, a memory 202, a secondary storage device 203, a management interface (I / F) 204, an output device 205, and an input device 206, which are connected to each other. The output device 205 is typically a liquid crystal display device, and the input device 206 is typically a keyboard and a mouse. The administrator can acquire necessary information in the output device 205 and input necessary information with the input device 206.
 管理I/F204は、管理ネットワーク162に接続するインタフェースデバイスである。プロセッサ201は、メモリ202に格納されたプログラムに従って動作することで所定の機能を実現する。二次記憶装置203に格納されたプログラム及びデータがメモリ302にロードされる。図2において、メモリ202は、ストレージ管理プログラム210を格納している。 The management I / F 204 is an interface device connected to the management network 162. The processor 201 realizes a predetermined function by operating according to a program stored in the memory 202. Programs and data stored in the secondary storage device 203 are loaded into the memory 302. In FIG. 2, the memory 202 stores a storage management program 210.
 ストレージ管理プログラム210は、ストレージ装置120又は220を管理する。ストレージ管理プログラム210は、ボリューム及びコピーペアの設定及び制御のためのユーザインタフェースをユーザに提供する。ユーザインタフェースに画像例は後述される。ストレージ管理プログラム310は、ユーザに従って、ストレージ装置120、220においてボリューム構成及びコピーペア構成を定義する。 The storage management program 210 manages the storage device 120 or 220. The storage management program 210 provides the user with a user interface for setting and controlling volumes and copy pairs. Examples of images in the user interface will be described later. The storage management program 310 defines the volume configuration and copy pair configuration in the storage apparatuses 120 and 220 according to the user.
 ホスト計算機100は、一般的な計算機構成を有することができる。例えば、ホスト計算機100は、管理装置140と同様のハードウェア構成に加え、データネットワーク161に接続するためのインタフェースデバイスを含む。 The host computer 100 can have a general computer configuration. For example, the host computer 100 includes an interface device for connecting to the data network 161 in addition to the hardware configuration similar to that of the management apparatus 140.
 図3Aは、ストレージ装置120/220の構成例を模式的に示す。ストレージ装置120/220は、ホストI/F106、管理I/F107、ストレージコントローラ109(109A、109B)、少なくとも1つのキャッシュメモリ110、少なくとも1つの共有メモリ111、記憶ドライブ113(113A~113D)を有する。 FIG. 3A schematically shows a configuration example of the storage device 120/220. The storage apparatus 120/220 includes a host I / F 106, a management I / F 107, a storage controller 109 (109A, 109B), at least one cache memory 110, at least one shared memory 111, and storage drives 113 (113A to 113D). .
 これらのハードウェア構成は冗長化されているものとする。また、これらの各要素は、バス112によって相互接続されている。これらの構成要素のうち、ホストI/F106、管理I/F107、ストレージコントローラ109、キャッシュメモリ110、共有メモリ111、バス112の集合を、ストレージコントローラと呼ぶこともある。 Suppose these hardware configurations are redundant. These elements are interconnected by a bus 112. Among these components, a set of the host I / F 106, the management I / F 107, the storage controller 109, the cache memory 110, the shared memory 111, and the bus 112 may be referred to as a storage controller.
 ホストI/F106は、ストレージ装置120/220がホスト計算機100と通信するために用いられる、インタフェースデバイスである。ホスト計算機100がボリュームにアクセスするために発行するコマンド(リードコマンド、ライトコマンド等)は、ホストI/F106に到来する。ストレージ装置120/220は、ホスト計算機100にホストI/F106から情報(例えばリードデータやライト応答)を返す。 The host I / F 106 is an interface device used for the storage apparatus 120/220 to communicate with the host computer 100. Commands (read command, write command, etc.) issued for the host computer 100 to access the volume arrive at the host I / F 106. The storage apparatus 120/220 returns information (for example, read data or write response) from the host I / F 106 to the host computer 100.
 管理I/F107は、ストレージ装置120/220が管理装置140と通信するためのインタフェースデバイスである。管理装置140からのコマンドは管理I/F107に到来する。ストレージ装置120/220は、管理装置140に、管理I/F107から情報を返す。 The management I / F 107 is an interface device for the storage apparatus 120/220 to communicate with the management apparatus 140. A command from the management apparatus 140 arrives at the management I / F 107. The storage device 120/220 returns information from the management I / F 107 to the management device 140.
 キャッシュメモリ110は、揮発性又は不揮発性メモリで構成され、記憶ドライブ113に読み書きされるデータを一時的に格納する。共有メモリ111は、揮発性又は不揮発性メモリで構成され、ストレージコントローラ109で動作するプログラムや構成情報等を格納する。 The cache memory 110 is composed of a volatile or non-volatile memory, and temporarily stores data read / written to / from the storage drive 113. The shared memory 111 is configured by a volatile or non-volatile memory, and stores programs that operate on the storage controller 109, configuration information, and the like.
 ストレージコントローラ109は、プロセッサ119とローカルメモリ118を有するパッケージボードである。プロセッサ119は、ストレージ装置120/220の各種制御を行うためのプログラムを実行するデバイスである。ローカルメモリ118は、プロセッサ119が実行するプログラムや、プロセッサ119が使用する情報を一時的に保存するために用いられる。ストレージコントローラ109の数は設計により変化する。 The storage controller 109 is a package board having a processor 119 and a local memory 118. The processor 119 is a device that executes a program for performing various controls of the storage apparatus 120/220. The local memory 118 is used for temporarily storing programs executed by the processor 119 and information used by the processor 119. The number of storage controllers 109 varies depending on the design.
 キャッシュメモリ110は、ボリューム(記憶ドライブ113)に対するライトデータ、又はボリューム(記憶ドライブ113)からのリードデータを一時的に記憶するために用いられる。共有メモリ111は、ストレージコントローラ109(のプロセッサ119)が使用する管理情報を格納するための記憶領域である。キャッシュメモリ110と共有メモリ111は、ローカルメモリ118と異なり、任意のストレージコントローラ109のプロセッサ119からアクセス可能である。 The cache memory 110 is used to temporarily store write data for the volume (storage drive 113) or read data from the volume (storage drive 113). The shared memory 111 is a storage area for storing management information used by the storage controller 109 (the processor 119 thereof). Unlike the local memory 118, the cache memory 110 and the shared memory 111 can be accessed from the processor 119 of any storage controller 109.
 記憶ドライブ113は、ホスト101からのライトデータを最終的に格納するための不揮発性記憶媒体を有する記憶デバイスである。複数の記憶ドライブ113が、一つのRAIDグループを構成してもよい。記憶ドライブ113は、記憶媒体として、たとえば磁気ディスクや、フラッシュメモリ等の不揮発性半導体を用いることができる。記憶ドライブの一例は、SSD(Solid State Drive)である。記憶ドライブ113は、RAIDグループに基づいて一つ以上の論理記憶領域(論理ボリューム)を提供する。 The storage drive 113 is a storage device having a nonvolatile storage medium for finally storing write data from the host 101. A plurality of storage drives 113 may constitute one RAID group. The storage drive 113 can use a non-volatile semiconductor such as a magnetic disk or a flash memory as a storage medium. An example of the storage drive is an SSD (Solid State Drive). The storage drive 113 provides one or more logical storage areas (logical volumes) based on the RAID group.
 図3Bは、ストレージ装置120/220により実行される制御プログラム例を示す。制御プログラムは、ローカルメモリ118に格納されており、入出力制御プログラム181、コピー制御プログラム182、ジャーナル要求プログラム183、ジャーナル転送プログラム184、セカンダリボリューム反映プログラム185を含む。 FIG. 3B shows an example of a control program executed by the storage apparatus 120/220. The control program is stored in the local memory 118 and includes an input / output control program 181, a copy control program 182, a journal request program 183, a journal transfer program 184, and a secondary volume reflection program 185.
 なお、一つのストレージ装置は、プライマリストレージ装置及びセカンダリストレージ装置として機能し得る。図3Bは、ストレージ装置が、双方の種類のストレージ装置として稼働する場合のプログラムを示す。プライマリストレージ装置又はセカンダリストレージ装置の一方種類のストレージ装置としてのみ機能するストレージ装置は、その一方種類のストレージ装置が必要とするプログラム及び情報のみを有していてもよい。 Note that one storage device can function as a primary storage device and a secondary storage device. FIG. 3B shows a program when the storage apparatus operates as both types of storage apparatuses. A storage device that functions only as one type of storage device of the primary storage device or the secondary storage device may have only the programs and information required by the one type of storage device.
 入出力制御プログラム181は、ホスト計算機100からのI/Oコマンド(リードコマンド又はライトコマンド)を処理する。入出力制御プログラム181は、ライトコマンド及びライトデータからジャーナルを生成し、そのジャーナルをジャーナルボリューム122へ格納する。 The input / output control program 181 processes an I / O command (read command or write command) from the host computer 100. The input / output control program 181 generates a journal from the write command and the write data, and stores the journal in the journal volume 122.
 コピー制御プログラム182は、管理装置140又はホスト計算機100からの命令に応じて、コピーペアを制御する。ジャーナル要求プログラム183は、セカンダリストレージ装置で実行され、プライマリストレージ装置に未転送のジャーナルデータを要求する。ジャーナル要求プログラム183は、入出力制御プログラム181とは、非同期に動作する。 The copy control program 182 controls the copy pair according to a command from the management apparatus 140 or the host computer 100. The journal request program 183 is executed in the secondary storage device, and requests untransferred journal data from the primary storage device. The journal request program 183 operates asynchronously with the input / output control program 181.
 ジャーナル転送プログラム184はプライマリストレージ装置で実行され、セカンダリストレージ装置から要求に応じてジャーナルデータを転送する。セカンダリボリューム反映プログラム185は、セカンダリストレージ装置で実行される。セカンダリボリューム反映プログラム185は、セカンダリジャーナルボリュームに格納されているジャーナルデータを、セカンダリジャーナルボリュームに格納されている管理情報に基づいて、セカンダリボリュームへ反映(格納)する。 The journal transfer program 184 is executed in the primary storage device and transfers journal data from the secondary storage device in response to a request. The secondary volume reflection program 185 is executed in the secondary storage device. The secondary volume reflection program 185 reflects (stores) the journal data stored in the secondary journal volume to the secondary volume based on the management information stored in the secondary journal volume.
 なお、プロセッサは、プログラムに従って動作することによって、所定の機能を実現する機能部(手段)として動作する。従って、本実施形態及び他の実施形態においてプログラムを主語とする説明は、そのプログラムを実行するプロセッサ、装置又はシステムを主語とした説明でもよい。本実施形態及び他の実施形態において、システムが使用する情報は、データ構造に依存せずどのようなデータ構造で表現されていてもよい。 The processor operates as a functional unit (means) that realizes a predetermined function by operating according to a program. Therefore, in the present embodiment and other embodiments, the description with the program as the subject may be the description with the processor, apparatus, or system that executes the program as the subject. In this embodiment and other embodiments, the information used by the system may be expressed in any data structure without depending on the data structure.
 図4は、コピーペア管理情報400の構成例を示す。コピーペア管理情報400は、ストレージ装置120及び220それぞれの共有メモリ111に格納されている。コピーペア管理情報400は、コピーペアそれぞれを管理するための情報を含む。図4の例において、コピーペア管理情報400はテーブルにより表わされており、複数のカラムを有する。 FIG. 4 shows a configuration example of the copy pair management information 400. The copy pair management information 400 is stored in the shared memory 111 of each of the storage apparatuses 120 and 220. The copy pair management information 400 includes information for managing each copy pair. In the example of FIG. 4, the copy pair management information 400 is represented by a table, and has a plurality of columns.
 複数のカラムは、コピーペアIDカラム401、コンシステンシグループ(CTG)IDカラム402、ボリューム(VOL)IDカラム403、相手装置IDカラム404、相手ボリューム(VOL)IDカラム405、ペア状態カラム406、ボリューム(VOL)種別カラム407を含む。 A plurality of columns are a copy pair ID column 401, a consistency group (CTG) ID column 402, a volume (VOL) ID column 403, a partner device ID column 404, a partner volume (VOL) ID column 405, a pair status column 406, a volume (VOL) type column 407 is included.
 複数のカラムは、さらに、ジャーナルボリューム(JVOL)IDカラム408、相手ジャーナルボリューム(JVOL)IDカラム409、比較ジャーナル(CJNL)フラグカラム410、比較ジャーナルボリューム(CJVOL)IDカラム411を含む。 The plurality of columns further include a journal volume (JVOL) ID column 408, a partner journal volume (JVOL) ID column 409, a comparison journal (CJNL) flag column 410, and a comparison journal volume (CJVOL) ID column 411.
 コピーペアIDカラム401、各コピーペアのIDを示す。コンシステンシグループIDカラム402は、コピーペアが含まれるコンシステンシグループのIDを示す。ボリュームIDカラム403は、コピーペアにおける自装置のボリュームのIDを示す。例えば、コピーペア管理情報400がプライマリストレージ装置120に格納されている場合、ボリュームIDカラム403は、プライマリストレージ装置120のプライマリボリュームのIDを示す。 The copy pair ID column 401 indicates the ID of each copy pair. The consistency group ID column 402 indicates the ID of the consistency group that includes the copy pair. A volume ID column 403 indicates the volume ID of the own device in the copy pair. For example, when the copy pair management information 400 is stored in the primary storage apparatus 120, the volume ID column 403 indicates the ID of the primary volume of the primary storage apparatus 120.
 相手装置IDカラム404は、コピーペアの他方ボリュームを格納するストレージ装置のIDを示す。相手ボリュームIDカラム405は、コピーペアの他方のボリュームのIDを示す。ペア状態カラム406は、コピーペアのペア状態を示す。ペア状態の例は後述する。ボリューム(VOL)種別カラム407は、自装置のボリュームの、コピーペアにおける種別を示し、プライマリタイプ又はセカンダリタイプのいずれかを示す。 The counterpart device ID column 404 indicates the ID of the storage device that stores the other volume of the copy pair. The partner volume ID column 405 indicates the ID of the other volume of the copy pair. The pair status column 406 indicates the pair status of the copy pair. An example of the pair status will be described later. The volume (VOL) type column 407 indicates the type of the volume of the own device in the copy pair, and indicates either the primary type or the secondary type.
 ジャーナルボリュームIDカラム408は、コピーペアにおけるコピーデータ転送で使用される、自装置のジャーナルボリュームのIDを示す。相手ジャーナルボリュームIDカラム409は、コピーペアにおけるコピーデータ転送で使用される、相手装置のジャーナルボリュームのIDを示す。 The journal volume ID column 408 indicates the ID of the journal volume of the own device used for copy data transfer in the copy pair. The partner journal volume ID column 409 shows the ID of the journal volume of the partner device used for copy data transfer in the copy pair.
 比較ジャーナルフラグカラム410は、コピーペアにおいて二重書きが適用されるか否かを示す。比較ジャーナルフラグが有効を示す場合、コピーペアのための比較ジャーナルボリュームが定義される。比較ジャーナルボリューム(CJVOL)IDカラム411は、コピーペアに対する二重書きで使用される比較ジャーナルボリュームのIDを示す。 The comparison journal flag column 410 indicates whether or not double writing is applied to the copy pair. If the comparison journal flag indicates valid, a comparison journal volume for the copy pair is defined. The comparison journal volume (CJVOL) ID column 411 indicates the ID of the comparison journal volume used in duplex writing for the copy pair.
 以下においては、一つのコンシステンシグループに含まれる全てのコピーペアのペア状態は同一であるものとする。 In the following, it is assumed that the pair statuses of all copy pairs included in one consistency group are the same.
 非同期リモートコピーペアのペア状態について説明する。コピーペアのペア状態は、例えば、DUPLEX状態、SUSPEND状態、SIMPLEX状態、FAILURE状態である。DUPLEX状態において、プライマリボリュームの更新がセカンダリボリュームに反映される。SUSPEND状態において、コピー処理が一時停止されている。FAILURE状態において、通信障害等でリモートコピー不能である。FAILUREにおいて、通信障害等でリモートコピー不能である。SIMPLEX状態において、コピーペアが解除されている。 Explains the pair status of asynchronous remote copy pair. The pair status of the copy pair is, for example, a DUPLEX state, a SUSPEND state, a SIMPLEX state, or a FAILURE state. In the DUPLEX state, the update of the primary volume is reflected in the secondary volume. In the SUSPEND state, the copy process is temporarily stopped. In the FAILURE state, remote copy is impossible due to a communication failure or the like. In FAILURE, remote copy is impossible due to a communication failure or the like. In the SIMPLEX state, the copy pair is released.
 コピー制御プログラム182は、コピーペアの制御処理を行う。コピー制御プログラム182によるコピー制御において実行される処理例は、作成、一時停止、リシンク、ペア削除及び状態取得である。ホスト計算機100又は管理装置140は、上記処理のいずれかを、コピー制御プログラム182に要求することができる。コピーペアの作成処理において、コピー制御プログラム182は、コピーペアを新たに作成する。コピーペアは、SIMPLEX状態からDUPLEX状態に変化する。 The copy control program 182 performs copy pair control processing. Examples of processing executed in copy control by the copy control program 182 are creation, suspension, resync, pair deletion, and status acquisition. The host computer 100 or the management apparatus 140 can request the copy control program 182 for any of the above processes. In the copy pair creation process, the copy control program 182 creates a new copy pair. The copy pair changes from the SIMPLEX state to the DUPLEX state.
 一時停止処理は、プライマリボリュームからセカンダリボリュームへのデータコピーを一時停止する。コピーペアは、DUPLEX状態からSUSPEND状態に変化する。一時停止処理の指示を受けると、コピー制御プログラム182は、その後、プライマリボリュームのデータ変更を、セカンダリボリュームに反映しない。一例において、コピー制御プログラム182は、プライマリボリュームの最新の更新をセカンダリボリュームにコピーした後に、二つのボリューム間のデータコピーを停止する。 The temporary stop process temporarily stops data copying from the primary volume to the secondary volume. The copy pair changes from the DUPLEX state to the SUSPEND state. When receiving the instruction for the suspension processing, the copy control program 182 does not reflect the data change of the primary volume to the secondary volume thereafter. In one example, the copy control program 182 stops the data copy between the two volumes after copying the latest update of the primary volume to the secondary volume.
 リシンク処理は、プライマリボリュームとセカンダリボリュームを同期させ、プライマリボリュームのデータとセカンダリボリュームのデータとを一致させる処理を示す。コピーペアは、FAILURE状態又はSUSPEND状態から、DUPLEX状態に変化する。リシンク処理の一例において、コピー制御プログラム422は、二つのボリューム・データを一致させた後、それらの間のコピー処理を再開する。 The resync process indicates a process of synchronizing the primary volume data and the secondary volume data by synchronizing the primary volume and the secondary volume. The copy pair changes from the FAILURE state or the SUSPEND state to the DUPLEX state. In an example of the resync process, the copy control program 422 matches the two volume data and then restarts the copy process between them.
 ペア削除処理は、作成処理で作成したペアを解除する。コピーペアは、SIMPLEX状態以外の状態から、SIMPLEX状態に変化する。コピー制御プログラム182は、状態取得処理の要求を受けると、コピーペアの状態情報を要求の送信元に送信する。ストレージ装置120、220に備わるボリュームのうち、コピーペアを構成するボリュームの状態情報は、コピーペア管理情報400に含まれている。コピー制御プログラム182は、作成処理、リシンク処理及び一次停止処理を実行すると、コピーペア管理情報400を更新する。 The pair deletion process is to cancel the pair created by the creation process. The copy pair changes from a state other than the SIMPLEX state to the SIMPLEX state. When receiving a request for status acquisition processing, the copy control program 182 transmits copy pair status information to the request source. Among the volumes included in the storage apparatuses 120 and 220, the status information of the volumes constituting the copy pair is included in the copy pair management information 400. The copy control program 182 updates the copy pair management information 400 when executing the creation process, the resync process, and the primary stop process.
 図5は、セカンダリジャーナル(SJNL)管理情報500の構成例を示す。セカンダリジャーナル管理情報500は、セカンダリジャーナルボリューム222に格納され、ジャーナル要求プログラム183により更新される。セカンダリジャーナル管理情報500は、プライマリジャーナルボリュームからセカンダリジャーナルボリュームに転送されたジャーナルデータを管理するための情報を含む。 FIG. 5 shows a configuration example of secondary journal (SJNL) management information 500. The secondary journal management information 500 is stored in the secondary journal volume 222 and updated by the journal request program 183. The secondary journal management information 500 includes information for managing journal data transferred from the primary journal volume to the secondary journal volume.
 図5の例において、セカンダリジャーナル管理情報500はテーブルにより表わされており、複数のカラムを有する。複数のカラムは、コンシステンシグループIDカラム501、ジャーナルボリューム内アドレスカラム502、ライトアドレスカラム503、シーケンシャル番号カラム504、ライト時刻カラム505、比較ジャーナルフラグカラム506、エントリフラグカラム507を有する。 In the example of FIG. 5, the secondary journal management information 500 is represented by a table and has a plurality of columns. The plurality of columns include a consistency group ID column 501, a journal volume address column 502, a write address column 503, a sequential number column 504, a write time column 505, a comparison journal flag column 506, and an entry flag column 507.
 コンシステンシグループIDカラム501は、ジャーナルデータが格納されるコピーペアのコンシステンシグループのIDを示す。ジャーナルボリューム内アドレスカラム502は、エントリが示すジャーナルデータが格納されているセカンダリジャーナルボリュームのアドレスを示す。セカンダリジャーナル管理情報500の一つのエントリと、当該エントリが示すジャーナルデータとの組が、一つのジャーナルである。ジャーナルデータが格納されているアドレスに代えて、ジャーナルデータが格納されてもよい。 The consistency group ID column 501 indicates the consistency group ID of a copy pair in which journal data is stored. The in-journal volume address column 502 indicates the address of the secondary journal volume in which the journal data indicated by the entry is stored. A set of one entry of the secondary journal management information 500 and journal data indicated by the entry is one journal. Instead of the address where the journal data is stored, journal data may be stored.
 ライトアドレスカラム503は、ジャーナルデータの格納先を直接的又は間接的に示す。ライトアドレスカラム503は、例えば、セカンダリボリュームのID及びそのボリューム内アドレス(例えば開始アドレス及び終了アドレスの組からなる)を示す。ライトアドレスカラム503が、プライマリボリュームのID及びそのボリューム内アドレスを示し、セカンダリボリュームへのライトにおいて、当該アドレスが変換されてもよい。シーケンシャル番号カラム504は、ジャーナルデータに付与されるシーケンシャル番号を示す。シーケンシャル番号は、コンシステンシグループ内でのライト順序を示す。 The write address column 503 directly or indirectly indicates the storage location of journal data. The write address column 503 indicates, for example, the ID of the secondary volume and the in-volume address (for example, composed of a set of a start address and an end address). The write address column 503 indicates the ID of the primary volume and the address in the volume, and the address may be converted when writing to the secondary volume. A sequential number column 504 indicates a sequential number assigned to journal data. The sequential number indicates the write order within the consistency group.
 ライト時刻カラム505は、ジャーナルデータ(ライトデータ)のプライマリボリュームへのライトに関連付けられた時刻を示す。例えば、ライト時刻カラム505は、対応ライトコマンドを受信した時刻又はライトデータをプライマリボリュームにライトした時刻を示す。プライマリストレージ装置120が、ライト時刻をジャーナルデータ(ライトデータ)に付与する。ライト時刻は、ホスト計算機100によって与えられてもよい。例えば、ホスト計算機100は、ライトコマンド発行時刻を、ライトコマンドに含める。 The write time column 505 indicates the time associated with writing the journal data (write data) to the primary volume. For example, the write time column 505 indicates the time when the corresponding write command is received or the time when the write data is written to the primary volume. The primary storage apparatus 120 gives the write time to journal data (write data). The write time may be given by the host computer 100. For example, the host computer 100 includes the write command issue time in the write command.
 比較ジャーナルフラグカラム506は、ジャーナルデータが格納されるセカンダリボリュームに対して、二重書きが適用され、比較ジャーナルボリュームが割り当てられているかを示す。比較ジャーナルフラグが有効を示す場合、ジャーナルデータが格納されるセカンダリボリュームに対して、二重書きが適用されている。エントリフラグカラム507は、エントリが有効か無効かを示す。エントリフラグは、エントリ追加時に有効を示し、ジャーナルデータのセカンダリボリュームへの反映後に、無効を示す。 The comparison journal flag column 506 indicates whether dual writing is applied to the secondary volume in which journal data is stored and a comparison journal volume is allocated. When the comparison journal flag indicates valid, dual writing is applied to the secondary volume in which journal data is stored. An entry flag column 507 indicates whether an entry is valid or invalid. The entry flag indicates validity when an entry is added, and indicates invalidity after the journal data is reflected on the secondary volume.
 プライマリジャーナル管理情報(不図示)も、セカンダリジャーナル管理情報500と同様のテーブル構成で表わすことができる。プライマリジャーナル管理情報はプライマリジャーナルボリュームに格納され、入出力制御プログラム181に更新される。 Primary journal management information (not shown) can also be represented by the same table configuration as the secondary journal management information 500. The primary journal management information is stored in the primary journal volume and updated to the input / output control program 181.
 プライマリジャーナル管理情報においては、ジャーナルボリューム内アドレスカラムは、プライマリジャーナルボリューム122内のアドレスを示す。ライトアドレスカラムは、例えば、セカンダリボリュームのアドレスを示す。プライマリストレージ装置120は、コピーペア管理情報400を参照して、ジャーナルデータを格納するセカンダリボリュームを同定できる。ライトアドレスカラムは、プライマリボリュームのアドレスを示してもよい。 In the primary journal management information, the journal volume address column indicates an address in the primary journal volume 122. The write address column indicates, for example, the address of the secondary volume. The primary storage apparatus 120 can identify the secondary volume storing journal data with reference to the copy pair management information 400. The write address column may indicate the address of the primary volume.
 図6は、比較ジャーナル(CJNL)管理情報600の構成例を示す。比較ジャーナル管理情報600は、比較ジャーナルボリューム223に格納され、入出力制御プログラム181及びセカンダリボリューム反映プログラム185に更新される。比較ジャーナル管理情報600は、二重書きによりセカンダリボリュームに格納されたライトデータを管理するための情報を含む。 FIG. 6 shows a configuration example of the comparison journal (CJNL) management information 600. The comparison journal management information 600 is stored in the comparison journal volume 223 and updated to the input / output control program 181 and the secondary volume reflection program 185. The comparison journal management information 600 includes information for managing write data stored in the secondary volume by double writing.
 図6の例において、比較ジャーナル管理情報600はテーブルにより表わされており、複数のカラムを有する。複数のカラムは、コンシステンシグループIDカラム601、ライトアドレスカラム602、ライト時刻カラム603、エントリフラグカラム604を有する。一つのエントリが、1回の二重書きでライトされたデータを示す。 In the example of FIG. 6, the comparison journal management information 600 is represented by a table and has a plurality of columns. The plurality of columns include a consistency group ID column 601, a write address column 602, a write time column 603, and an entry flag column 604. One entry indicates data written by one double writing.
 コンシステンシグループIDカラム601は、ライトデータの格納先セカンダリボリュームが含まれるコンシステンシグループのIDを示す。ライトアドレスカラム602は、ライトデータのライト先を示し、例えば、セカンダリボリュームのID及びそのボリューム内アドレス(例えば開始アドレス及び終了アドレスの組)を示す。 The consistency group ID column 601 indicates the ID of the consistency group that includes the write data storage destination secondary volume. The write address column 602 indicates a write destination of the write data, and indicates, for example, an ID of the secondary volume and an address in the volume (for example, a set of a start address and an end address).
 ライト時刻カラム603は、ライトデータのセカンダリボリュームへのライトに関連付けられた時刻を示す。二重書きのライト時刻は、非同期リモートコピーのジャーナルデータに付与されるライト時刻と同様の方法で決定される。ライト時刻カラム603の値は、ライト時刻カラム505の値と同様の方法で決定される。 The write time column 603 indicates the time associated with writing the write data to the secondary volume. The write time for dual writing is determined by the same method as the write time given to the asynchronous remote copy journal data. The value of the write time column 603 is determined by the same method as the value of the write time column 505.
 例えば、ライト時刻カラム603は、対応ライトコマンドを受信した時刻又はライトデータをセカンダリボリュームにライトした時刻を示す。セカンダリストレージ装置120は、ライト時刻を二重書きされるライトデータに付与する。ライト時刻は、ホスト計算機100によって与えられてもよい。例えば、ホスト計算機100は、ライトコマンド発行時刻を、ライトコマンドに含める。 For example, the write time column 603 indicates the time when the corresponding write command is received or the time when the write data is written to the secondary volume. The secondary storage device 120 gives the write time to the write data that is written twice. The write time may be given by the host computer 100. For example, the host computer 100 includes the write command issue time in the write command.
 エントリフラグカラム604は、エントリが有効か無効かを示す。エントリフラグは、エントリ追加時に有効を示し、セカンダリボリュームへの反映処理後、不要なエントリのエントリフラグは無効を示す。比較ジャーナルボリューム223がライトデータも格納する場合、比較ジャーナル管理情報600は、比較ジャーナルボリューム223におけるライトデータの格納先アドレスを示す、又は、ライトデータを含む。 The entry flag column 604 indicates whether the entry is valid or invalid. The entry flag indicates validity when an entry is added, and the entry flag of an unnecessary entry indicates invalid after the reflection processing to the secondary volume. When the comparison journal volume 223 also stores write data, the comparison journal management information 600 indicates a write data storage destination address in the comparison journal volume 223 or includes write data.
 図7は、管理装置140により表示される、ジャーナルボリューム設定画像の例を示す。ストレージ管理プログラム210は、出力装置205において、ジャーナルボリューム設定画像を表示する。ユーザは、入力装置206を介して、必要な情報を入力する。 FIG. 7 shows an example of a journal volume setting image displayed by the management apparatus 140. The storage management program 210 displays a journal volume setting image on the output device 205. The user inputs necessary information via the input device 206.
 ストレージ管理プログラム210は、ジャーナルボリューム設定画像において、コンシステンシグループに含まれるジャーナルボリューム及びそれらの種別の指定を受け付ける。「スタンダード」ジャーナルボリュームは、プライマリ又はセカンダリジャーナルボリュームであり、「ホスト二重書き」ジャーナルボリュームは、比較ジャーナルボリュームである。比較ジャーナルボリュームは、セカンダリストレージ装置においてのみ設定される。入力された情報は、ストレージ管理プログラム210により、プライマリストレージ装置120及びセカンダリストレージ装置220に転送され、コピーペア管理情報400を含む管理情報に反映される。 The storage management program 210 accepts designation of journal volumes and their types included in the consistency group in the journal volume setting image. The “standard” journal volume is a primary or secondary journal volume, and the “host double write” journal volume is a comparison journal volume. The comparison journal volume is set only in the secondary storage device. The input information is transferred to the primary storage device 120 and the secondary storage device 220 by the storage management program 210 and reflected in the management information including the copy pair management information 400.
 図8は、管理装置140により表示される、リモートコピーペア設定画像の例を示す。ストレージ管理プログラム210は、出力装置205において、リモートコピーペア設定画像を表示する。 FIG. 8 shows an example of a remote copy pair setting image displayed by the management apparatus 140. The storage management program 210 displays the remote copy pair setting image on the output device 205.
 ストレージ管理プログラム210は、リモートコピーペア設定画像において、リモートコピーのタイプ、リモートコピーペアが含まれるコンシステンシグループ、の指定を受け付ける。ストレージ管理プログラム210は、さらに、リモートコピーペアを構成するプライマリボリューム及びセカンダリボリューム、並びに、ジャーナルデータ又は二重書きの管理情報を格納するジャーナルボリュームの指定を受け付ける。二重書きが適用されないコピーペアに対しては、比較ジャーナルボリュームは指定されない。 The storage management program 210 accepts designation of the remote copy type and the consistency group including the remote copy pair in the remote copy pair setting image. The storage management program 210 further accepts designation of a primary volume and a secondary volume that constitute a remote copy pair, and a journal volume that stores journal data or dual-write management information. The comparison journal volume is not specified for copy pairs to which dual writing is not applied.
 以下において本計算機システムの処理例を説明する。図9は、プライマリストレージ装置120によるホスト計算機100からのライトコマンドの処理のフローチャートを示す。プライマリストレージ装置120は、ホスト計算機100から、ライトコマンド及びライトデータを受信する(S101)。ライトコマンド及びライトデータは、ホストI/F106のバッファに一次的に格納される。 The processing example of this computer system will be described below. FIG. 9 shows a flowchart of processing of a write command from the host computer 100 by the primary storage apparatus 120. The primary storage apparatus 120 receives a write command and write data from the host computer 100 (S101). The write command and write data are temporarily stored in the buffer of the host I / F 106.
 入出力制御プログラム181は、ライトコマンドを取得し、解析する(S102)。入出力制御プログラム181は、ライトコマンドの対象ボリュームを同定し、コピーペア管理情報400を参照して、対象ボリュームが、非同期リモートコピーペアのプライマリボリュームか判定する(S103)。 The input / output control program 181 acquires and analyzes the write command (S102). The input / output control program 181 identifies the target volume of the write command, and refers to the copy pair management information 400 to determine whether the target volume is a primary volume of an asynchronous remote copy pair (S103).
 ライトコマンドの対象ボリュームが、非同期リモートコピーペアのプライマリボリュームではない場合(S103:NO)、入出力制御プログラム181は、対象ボリュームにライトデータをライトする(S106)。 When the target volume of the write command is not the primary volume of the asynchronous remote copy pair (S103: NO), the I / O control program 181 writes the write data to the target volume (S106).
 ライトコマンドの対象ボリュームが、非同期リモートコピーペアのプライマリボリュームである場合(S103:YES)、入出力制御プログラム181は、ライトコマンドが二重書きであるか判定する(S104)。ライトコマンドの二重書きフラグが有効を示す場合(S104:YES)、入出力制御プログラム181は、ローカルメモリ118上でホスト二重書きフラグをONに設定し(S105)、対象ボリュームにライトデータをライトする(S106)。ライトコマンドが二重書きではない場合(S104:NO)、ステップS105はスキップされる。 When the target volume of the write command is the primary volume of the asynchronous remote copy pair (S103: YES), the I / O control program 181 determines whether the write command is double writing (S104). When the double write flag of the write command indicates valid (S104: YES), the input / output control program 181 sets the host double write flag to ON on the local memory 118 (S105), and writes the write data to the target volume. Writing is performed (S106). If the write command is not double writing (S104: NO), step S105 is skipped.
 対象ボリュームにライトデータをライトした(S106)後、入出力制御プログラム181は、ライト完了応答をホスト計算機100に返す(S107)。入出力制御プログラム181は、ローカルメモリ118において、ホスト二重書きフラグを参照する(S108)。ホスト二重書きフラグがONである場合(S108:YES)、入出力制御プログラム181は、本フローを終了する。これにより、二重書きの場合に不要なジャーナルの生成を省略できる。 After writing the write data to the target volume (S106), the I / O control program 181 returns a write completion response to the host computer 100 (S107). The input / output control program 181 refers to the host double write flag in the local memory 118 (S108). When the host double write flag is ON (S108: YES), the input / output control program 181 ends this flow. Thereby, it is possible to omit generation of an unnecessary journal in the case of double writing.
 ホスト二重書きフラグがOFFである場合(S108:NO)、入出力制御プログラム181は、コピーペア管理情報400を参照して、ライト対象ボリュームのペアボリュームの有無及びライト対象ボリュームを含むコピーペアの状態を同定する(S109)。 When the host dual write flag is OFF (S108: NO), the I / O control program 181 refers to the copy pair management information 400 and indicates whether there is a pair volume of the write target volume and the copy pair including the write target volume. The state is identified (S109).
 ペアボリュームが存在し、ペア状態がDUPLEX状態である場合(S109:YES)、入出力制御プログラム181は、受信したライトコマンドに対応する新規ジャーナルを作成して、プライマリジャーナルボリューム122に格納する(S110)。ペアボリュームが存在しない場合又は他のペア状態において、データコピー不要である。非同期リモートコピーペアのプライマリボリュームに対する単独書き込みの場合に、ジャーナル(ジャーナルデータ及び管理情報)をプライマリジャーナルボリューム122に格納できる。 When the pair volume exists and the pair status is the DUPLEX status (S109: YES), the I / O control program 181 creates a new journal corresponding to the received write command and stores it in the primary journal volume 122 (S110). ). Data copying is not required when there is no pair volume or in another pair status. A journal (journal data and management information) can be stored in the primary journal volume 122 when writing to the primary volume of the asynchronous remote copy pair alone.
 上述のように、入出力制御プログラム181は、新規ジャーナルの生成において、コピーペア管理情報400を参照して、対象プライマリボリュームのコンシステンシグループ、ペアのセカンダリボリューム、及び二重書き適用の有無を確認できる。入出力制御プログラム181は、ライトコマンドの受信、プライマリボリュームへの格納、又はライトコマンドに含まれる情報に基づいて、ライト時刻を決定する。追加されたエントリのエントリフラグは有効を示す。 As described above, the I / O control program 181 refers to the copy pair management information 400 when creating a new journal, and checks the consistency group of the target primary volume, the secondary volume of the pair, and whether or not dual writing is applied. it can. The input / output control program 181 determines the write time based on the reception of the write command, storage in the primary volume, or information included in the write command. The entry flag of the added entry indicates validity.
 ペア状態がDUPLEXではない場合(S109:NO)、入出力制御プログラム181は、本フローを終了する。本フローにより、リモートコピーペアのペア状態に応じて、適切かつ効率的に非同期リモートコピー処理を実行できる。 If the pair status is not DUPLEX (S109: NO), the input / output control program 181 ends this flow. According to this flow, asynchronous remote copy processing can be executed appropriately and efficiently in accordance with the pair status of the remote copy pair.
 図10は、セカンダリストレージ装置220によるホスト計算機100からのライトコマンドの処理のフローチャートを示す。セカンダリストレージ装置220は、ホスト計算機100から、ライトコマンド及びライトデータを受信する(S151)。ライトコマンド及びライトデータは、ホストI/F106のバッファに一次的に格納される。 FIG. 10 shows a flowchart of processing of a write command from the host computer 100 by the secondary storage apparatus 220. The secondary storage apparatus 220 receives a write command and write data from the host computer 100 (S151). The write command and write data are temporarily stored in the buffer of the host I / F 106.
 入出力制御プログラム181は、ライトコマンドを取得し、解析する(S152)。入出力制御プログラム181は、ライトコマンドの対象ボリュームを同定し、コピーペア管理情報400を参照して、対象ボリュームが、非同期リモートコピーペアのセカンダリボリュームか判定する(S153)。 The input / output control program 181 acquires and analyzes the write command (S152). The input / output control program 181 identifies the target volume of the write command, refers to the copy pair management information 400, and determines whether the target volume is a secondary volume of an asynchronous remote copy pair (S153).
 ライトコマンドの対象ボリュームが、非同期リモートコピーペアのセカンダリボリュームではない場合(S153:NO)、入出力制御プログラム181は、対象ボリュームにライトデータをライトし(S154)、ライト完了応答をホスト計算機100に返して(S155)、当該フローを終了する。 When the target volume of the write command is not the secondary volume of the asynchronous remote copy pair (S153: NO), the I / O control program 181 writes the write data to the target volume (S154) and sends a write completion response to the host computer 100. Return (S155), and the flow ends.
 ライトコマンドの対象ボリュームが、非同期リモートコピーペアのセカンダリボリュームである場合(S153:YES)、入出力制御プログラム181は、ライトコマンドが二重書きであるか判定する(S156)。ライトコマンドが二重書きではない場合(S156:NO)、入出力制御プログラム181は、ステップS154に進む。 When the target volume of the write command is a secondary volume of an asynchronous remote copy pair (S153: YES), the I / O control program 181 determines whether the write command is double writing (S156). If the write command is not double writing (S156: NO), the input / output control program 181 proceeds to step S154.
 ライトコマンドの二重書きフラグが有効を示す場合(S156:YES)、入出力制御プログラム181は、ローカルメモリ118上でホスト二重書きフラグをONに設定し(S157)。次に、入出力制御プログラム181は、コピーペア管理情報400を参照して、ライト対象ボリュームを含むコピーペアの状態を同定する(S158、S159)。 When the double write flag of the write command indicates valid (S156: YES), the input / output control program 181 sets the host double write flag to ON on the local memory 118 (S157). Next, the input / output control program 181 refers to the copy pair management information 400 to identify the status of the copy pair including the write target volume (S158, S159).
 ペア状態がSUSPEND状態又はSIMPLEX状態である場合(S158:YES)、入出力制御プログラム181は、ステップS154に進む。ペア状態がSUSPEND状態、SIMPLEX状態、DUPLEX状態のいずれでもない(S158:NO、S159:NO)、つまり、ペア状態がFAILURE状態の場合、入出力制御プログラム181は、ホスト計算機100にエラーを報告する(S160)。 If the pair status is the SUSPEND status or the SIMPLEX status (S158: YES), the input / output control program 181 proceeds to step S154. If the pair status is neither the SUSPEND status, the SIMPLEX status, or the DUPLEX status (S158: NO, S159: NO), that is, if the pair status is the FAILURE status, the I / O control program 181 reports an error to the host computer 100. (S160).
 ペア状態がDUPLEX状態である場合(S158:NO、S159:YES)、入出力制御プログラム181は、ローカルメモリ118において、ホスト二重書きフラグを参照する(S161)。ホスト二重書きフラグがOFFである場合(S161:NO)、入出力制御プログラム181は、ホスト計算機100にエラーを報告する(S160)。 When the pair status is the DUPLEX status (S158: NO, S159: YES), the input / output control program 181 refers to the host double write flag in the local memory 118 (S161). When the host double write flag is OFF (S161: NO), the input / output control program 181 reports an error to the host computer 100 (S160).
 これにより、DUPLEX状態(プライマリボリュームからセカンダリボリュームへ非同期コピーを行う状態)において、セカンダリボリュームのみに対するライトコマンド(ホストホスト二重書きではないライトコマンド)による、コピーペアにおけるデータ不整合を避けることができる。 As a result, in the DUPLEX state (state in which asynchronous copying is performed from the primary volume to the secondary volume), it is possible to avoid data inconsistency in the copy pair due to a write command (write command that is not host-host duplex writing) for only the secondary volume. .
 ホスト二重書きフラグがONである場合(S161:YES)、入出力制御プログラム181は、セカンダリボリュームにライトデータをライトし(S162)、ライト完了応答をホスト計算機100に返す(S163)。入出力制御プログラム181は、さらに、比較ジャーナル管理情報600に、当該ライトコマンド(ライトデータ)に対応する新たなエントリを追加する。追加されたエントリのエントリフラグは有効を示す。 If the host double write flag is ON (S161: YES), the I / O control program 181 writes the write data to the secondary volume (S162), and returns a write completion response to the host computer 100 (S163). The input / output control program 181 further adds a new entry corresponding to the write command (write data) to the comparison journal management information 600. The entry flag of the added entry indicates validity.
 入出力制御プログラム181は、コピーペア管理情報400を参照して、ライト対象ボリュームのコンシステンシグループを同定できる。ライトアドレスは、ライトコマンドに示されている。入出力制御プログラム181は、ライトコマンドの受信、プライマリボリュームへの格納、又はライトコマンドに含まれる情報に基づいて、ライト時刻を決定する。追加されたエントリのエントリフラグは有効を示す。 The I / O control program 181 can identify the consistency group of the write target volume with reference to the copy pair management information 400. The write address is indicated in the write command. The input / output control program 181 determines the write time based on the reception of the write command, storage in the primary volume, or information included in the write command. The entry flag of the added entry indicates validity.
 上記フローにより、セカンダリボリュームに対する二重書きライトコマンドに応じて、比較ジャーナル管理情報600を適切に更新することができる、他の種類のライトコマンドも適切に処理することができる。 According to the above flow, other types of write commands that can appropriately update the comparison journal management information 600 in accordance with the double write command for the secondary volume can be appropriately processed.
 次に、ストレージ装置間のジャーナル転送を説明する。セカンダリストレージ装置220からのジャーナル転送コマンドに応答して、プライマリストレージ装置120が、返り値を送信する。 Next, journal transfer between storage devices will be described. In response to the journal transfer command from the secondary storage apparatus 220, the primary storage apparatus 120 transmits a return value.
 図11は、ジャーナル転送コマンド250の構成例を示す。ジャーナル転送コマンド250は、プライマリストレージ装置120のジャーナルをセカンダリストレージ装置220へ転送するためのコマンドである。セカンダリストレージ装置220のジャーナル要求プログラム183はジャーナル転送コマンド250を作成し、プライマリストレージ装置120へ発行する。 FIG. 11 shows a configuration example of the journal transfer command 250. The journal transfer command 250 is a command for transferring the journal of the primary storage device 120 to the secondary storage device 220. The journal request program 183 of the secondary storage device 220 creates a journal transfer command 250 and issues it to the primary storage device 120.
 ジャーナル転送コマンド250は、命令コードのフィールド251、コンシステンシグループIDのフィールド252、セカンダリボリュームへの反映済みジャーナルのシーケンシャル番号のフィールド253、受信済みシーケンシャル番号のフィールド254を有する。 The journal transfer command 250 includes an instruction code field 251, a consistency group ID field 252, a sequential number field 253 of a journal already reflected in the secondary volume, and a received sequential number field 254.
 命令コードのフィールド251は、コマンドの命令種別、つまり、ジャーナル転送コマンドであることを示すデータを格納する。コンシステンシグループIDのフィールド252は、転送を要求されるジャーナルのコンシステンシグループIDを格納する。フィールド254は、転送要求されるジャーナルが属するコンシステンシグループにおいて、最後にセカンダリボリュームに書き込まれたジャーナル、つまり、最新の反映済みジャーナルのシーケンシャル番号を格納する。 The instruction code field 251 stores the instruction type of the command, that is, data indicating a journal transfer command. The consistency group ID field 252 stores the consistency group ID of the journal requested to be transferred. The field 254 stores the last written journal, that is, the sequential number of the latest reflected journal in the consistency group to which the transfer requested journal belongs.
 受信済みシーケンシャル番号のセクションフィールド255は、転送要求されるジャーナルが属するコンシステンシグループにおいて、最後にセカンダリストレージ装置220が受信したジャーナルのシーケンシャル番号である。つまり、セカンダリジャーナル管理情報500が保持している最新ジャーナルのシーケンシャル番号である。 The received sequential number section field 255 is the sequential number of the journal last received by the secondary storage system 220 in the consistency group to which the journal requested to be transferred belongs. That is, it is the sequential number of the latest journal held in the secondary journal management information 500.
 ジャーナル要求プログラム183は、セカンダリジャーナル管理情報500を参照して、ジャーナル転送コマンド250を生成する。ジャーナル要求プログラム183は、セカンダリジャーナル管理情報500が示す最新のシーケンシャル番号を、受信済みシーケンシャル番号のフィールド254に入力する。ジャーナル要求プログラム183は、エントリフラグが無効を示す最新のシーケンシャル番号を、SVOLへ反映済みジャーナルのシーケンシャル番号のフィールド253に入力する。 The journal request program 183 refers to the secondary journal management information 500 and generates a journal transfer command 250. The journal request program 183 inputs the latest sequential number indicated by the secondary journal management information 500 in the received sequential number field 254. The journal request program 183 inputs the latest sequential number indicating that the entry flag is invalid in the sequential number field 253 of the journal already reflected in the SVOL.
 プライマリストレージ装置120のジャーナル転送プログラム424は、セカンダリストレージ装置220からのジャーナル転送コマンド250に応答して、ジャーナルを含む返り値を送信する。 The journal transfer program 424 of the primary storage device 120 transmits a return value including a journal in response to the journal transfer command 250 from the secondary storage device 220.
 図12は、ジャーナル転送コマンドに対する返り値(応答)350の構成例を示す。プライマリストレージ装置120のジャーナル転送プログラム424は、ジャーナル転送コマンドへの応答として、返り値350をセカンダリストレージ装置220に送信する。 FIG. 12 shows a configuration example of a return value (response) 350 for the journal transfer command. The journal transfer program 424 of the primary storage device 120 transmits a return value 350 to the secondary storage device 220 as a response to the journal transfer command.
 返り値350は、コンシステンシグループIDのフィールド351、ジャーナルのフィールド352、最新シーケンシャル番号のフィールド353を有する。コンシステンシグループIDのフィールド351は、要求されたジャーナルのコンシステンシグループIDを格納する。この値は、ジャーナル転送コマンド250における、コンシステンシグループIDのフィールド252の値と同一である。 The return value 350 includes a consistency group ID field 351, a journal field 352, and a latest sequential number field 353. The consistency group ID field 351 stores the consistency group ID of the requested journal. This value is the same as the value in the consistency group ID field 252 in the journal transfer command 250.
 ジャーナルのフィールド352は、ジャーナル転送要求コマンドに応答して転送される1又は複数のジャーナルを含む。図12の例においては、三つのジャーナルが含まれている。格納されるジャーナル数は、未転送ジャーナルの数又はデータ量及び設計に依存する。各ジャーナルは、ジャーナルデータ、ライトアドレス、シーケンシャル番号、ライト時刻、及び比較ジャーナルフラグを含む。 The journal field 352 includes one or more journals transferred in response to the journal transfer request command. In the example of FIG. 12, three journals are included. The number of journals stored depends on the number or data volume of untransferred journals and the design. Each journal includes journal data, a write address, a sequential number, a write time, and a comparison journal flag.
 ジャーナル転送プログラム184は、受信済みシーケンシャル番号のフィールド254が示す番号の次のシーケンシャル番号から、規定数のジャーナルをプライマリジャーナルボリューム122から取得する。 The journal transfer program 184 acquires a prescribed number of journals from the primary journal volume 122 from the sequential number next to the number indicated by the received sequential number field 254.
 ジャーナル転送プログラム184は、プライマリジャーナルボリューム122から取得したジャーナルデータ及びプライマリジャーナル管理情報(不図示)から取得した情報を、ジャーナルのフィールド352に入力する。上述のように、プライマリジャーナル管理情報は、セカンダリジャーナル管理情報500と同様の構成を有しており、ライトアドレス、シーケンシャル番号、ライト時刻、及び比較ジャーナルフラグの情報を格納している。 The journal transfer program 184 inputs journal data acquired from the primary journal volume 122 and information acquired from primary journal management information (not shown) in the journal field 352. As described above, the primary journal management information has the same configuration as the secondary journal management information 500, and stores information on the write address, sequential number, write time, and comparison journal flag.
 ジャーナル転送プログラム184は、プライマリジャーナル管理情報における、ジャーナル転送コマンド250受信時の最新のシーケンシャル番号を、最新シーケンシャル番号のフィールド353に入力する。 The journal transfer program 184 inputs the latest sequential number when the journal transfer command 250 is received in the primary journal management information in the latest sequential number field 353.
 ジャーナル転送プログラム184は、セカンダリボリュームに反映済みのジャーナルデータのエントリのエントリフラグを無効に変更する。ジャーナル転送プログラム184は、ジャーナル転送コマンド250のセカンダリボリュームへの反映済みジャーナルのシーケンシャル番号のフィールド253が示すシーケンシャル番号以前のシーケンシャル番号のエントリにおいて、エントリフラグを無効に変更する。 The journal transfer program 184 changes the entry flag of the journal data entry already reflected in the secondary volume to invalid. The journal transfer program 184 changes the entry flag to invalid in the entry of the sequential number before the sequential number indicated by the sequential number field 253 of the journal that has been reflected in the secondary volume of the journal transfer command 250.
 ジャーナル転送プログラム184は、転送済みジャーナルデータのエントリのエントリフラグを無効に変更してもよい。ジャーナル転送プログラム184は、今回転送した返り値350における最新シーケンシャル番号以前のシーケンシャル番号のエントリにおいて、エントリフラグを無効に変更する。無効にされたエントリのジャーナルデータは削除される。 The journal transfer program 184 may change the entry flag of the transferred journal data entry to invalid. The journal transfer program 184 changes the entry flag to invalid in the entry of the sequential number before the latest sequential number in the return value 350 transferred this time. The journal data of the invalidated entry is deleted.
 セカンダリストレージ装置220のジャーナル要求プログラム183は、受信した返り値350からジャーナルを抽出し、セカンダリジャーナルボリューム222に格納する。ジャーナル要求プログラム183は、必要であればジャーナルを変換し、例えばライトアドレスがプライマリボリュームを示す場合にライトアドレスを変換して、セカンダリジャーナル管理情報500に格納する。 The journal request program 183 of the secondary storage apparatus 220 extracts a journal from the received return value 350 and stores it in the secondary journal volume 222. The journal request program 183 converts the journal if necessary. For example, when the write address indicates the primary volume, the journal request program 183 converts the write address and stores it in the secondary journal management information 500.
 図13は、プライマリストレージ装置120からセカンダリストレージ装置220へのジャーナル転送における、セカンダリストレージ装置220の処理のフローチャートを示す。本実施形態において、ジャーナル転送は、ホスト計算機100からのライトと非同期に実行される。また、本実施形態において、ジャーナル転送は、選択されたコンシステンシグループのために実行される。 FIG. 13 shows a flowchart of processing of the secondary storage apparatus 220 in journal transfer from the primary storage apparatus 120 to the secondary storage apparatus 220. In this embodiment, journal transfer is executed asynchronously with the write from the host computer 100. In the present embodiment, journal transfer is executed for the selected consistency group.
 セカンダリストレージ装置220のジャーナル要求プログラム183は、所定のタイミングで(S201)、プライマリストレージ装置120に対して未転送ジャーナルの転送を要求する。 The journal request program 183 of the secondary storage device 220 requests the primary storage device 120 to transfer an untransferred journal at a predetermined timing (S201).
 ジャーナルの転送を要求すべき時が到来している場合(S201:YES)、ジャーナル要求プログラム183は、コピーペア管理情報400を参照して、当該コンシステンシグループのペア状態を確認する(S202)。ペア状態がDUPLEX状態ではない場合(S202:NO)、データコピーが不要であるので、ジャーナル要求プログラム183は、本フローを終了する。 When it is time to request journal transfer (S201: YES), the journal request program 183 refers to the copy pair management information 400 and confirms the pair status of the consistency group (S202). If the pair status is not the DUPLEX status (S202: NO), the data copy is unnecessary, and the journal request program 183 ends this flow.
 ペア状態がDUPLEX状態である場合(S202:YES)、ジャーナル要求プログラム183は、プライマリストレージ装置120にジャーナル転送を要求する(S203)。ジャーナル要求プログラム183は、ジャーナル転送コマンド250を生成し、プライマリストレージ装置120に送信する。ジャーナル転送コマンドの詳細は、図11を参照して説明した。 When the pair status is the DUPLEX status (S202: YES), the journal request program 183 requests journal transfer to the primary storage device 120 (S203). The journal request program 183 generates a journal transfer command 250 and transmits it to the primary storage device 120. Details of the journal transfer command have been described with reference to FIG.
 プライマリストレージ装置120がジャーナル転送コマンドを受信すると、ジャーナル転送プログラム184が、ジャーナル転送コマンドの返り値350をセカンダリストレージ装置220に送信する。セカンダリストレージ装置220は、その返り値350を受信する(S204)。ジャーナル転送コマンドの返り値350の詳細は、図12を参照して説明した。 When the primary storage device 120 receives the journal transfer command, the journal transfer program 184 transmits a return value 350 of the journal transfer command to the secondary storage device 220. The secondary storage device 220 receives the return value 350 (S204). Details of the return value 350 of the journal transfer command have been described with reference to FIG.
 セカンダリストレージ装置220のジャーナル要求プログラム183は、受信した返り値が含むジャーナルを、セカンダリジャーナルボリューム222に格納する。具体的には、ジャーナル要求プログラム183は、受信したジャーナルデータをセカンダリジャーナルボリューム222に格納し、セカンダリジャーナル管理情報500に新たなジャーナルデータの管理情報を追加する。ジャーナル要求プログラム183は、返り値350が示す最新シーケンス番号のジャーナルを受信するまで、繰り返しジャーナル転送コマンド250を送信してもよい。 The journal request program 183 of the secondary storage apparatus 220 stores the journal included in the received return value in the secondary journal volume 222. Specifically, the journal request program 183 stores the received journal data in the secondary journal volume 222, and adds new journal data management information to the secondary journal management information 500. The journal request program 183 may repeatedly transmit the journal transfer command 250 until the journal having the latest sequence number indicated by the return value 350 is received.
 以上の処理により、セカンダリストレージ装置220は、プライマリストレージ装置120から、選択したコンシステンシグループの未転送ジャーナルを受信することができる。 Through the above processing, the secondary storage apparatus 220 can receive the untransferred journal of the selected consistency group from the primary storage apparatus 120.
 図14は、セカンダリストレージ装置220における、ジャーナルデータをセカンダリボリュームに反映する処理のフローチャートを示す。セカンダリボリューム反映プログラム185は、所定タイミングで当該処理を繰り返し実行する。本処理は、ジャーナル転生処理と同期又は非同期に実行される。 FIG. 14 shows a flowchart of the process of reflecting journal data to the secondary volume in the secondary storage apparatus 220. The secondary volume reflection program 185 repeatedly executes the process at a predetermined timing. This process is executed synchronously or asynchronously with the journal reincarnation process.
 セカンダリボリューム反映プログラム185は、セカンダリジャーナル管理情報500を参照し、エントリフラグが有効を示す最古のエントリ(比較元セカンダリジャーナルエントリ)を選択する(S301)。セカンダリボリューム反映プログラム185は、選択した比較元セカンダリジャーナルエントリの比較ジャーナルフラグが有効を示すか判定する(S302)。 The secondary volume reflection program 185 refers to the secondary journal management information 500 and selects the oldest entry (comparison source secondary journal entry) indicating that the entry flag is valid (S301). The secondary volume reflection program 185 determines whether the comparison journal flag of the selected comparison source secondary journal entry indicates validity (S302).
 比較ジャーナルフラグが無効を示す場合(S302:NO)、セカンダリボリューム反映プログラム185は、比較元セカンダリジャーナルエントリのジャーナルデータを、ライトアドレスが示すセカンダリボリュームの領域に格納する(S305)。当該コピーペアには二重書きが適用されないため、比較ジャーナル管理情報600との比較は不要であり、処理を効率化する。 When the comparison journal flag indicates invalid (S302: NO), the secondary volume reflection program 185 stores the journal data of the comparison source secondary journal entry in the secondary volume area indicated by the write address (S305). Since double writing is not applied to the copy pair, comparison with the comparison journal management information 600 is unnecessary, and the processing is made efficient.
 比較ジャーナルフラグが有効を示す場合(S302:NO)、当該コピーペアには二重書きが適用される。比較元セカンダリジャーナルエントリよりも新しいライトデータが、ホスト二重書きによって、セカンダリボリュームにライトされている可能性がある。 If the comparison journal flag is valid (S302: NO), double writing is applied to the copy pair. There is a possibility that write data that is newer than the comparison source secondary journal entry has been written to the secondary volume by host double writing.
 したがって、セカンダリボリューム反映プログラム185は、比較ジャーナル管理情報600において比較元セカンダリジャーナルエントリが示すライトアドレスと同アドレスの最新の有効エントリを検索する(S303)。ここで、ライトコマンドによるアクセス又はジャーナルにおけるアドレスサイズは、一定であるとする。 Therefore, the secondary volume reflection program 185 searches the comparison journal management information 600 for the latest valid entry having the same address as the write address indicated by the comparison source secondary journal entry (S303). Here, it is assumed that the access by the write command or the address size in the journal is constant.
 同一ライトアドレスの有効エントリが比較ジャーナル管理情報600において存在しない場合(S304:NO)、比較元セカンダリジャーナルエントリのジャーナルデータは、最新データである。セカンダリボリューム反映プログラム185は、当該ジャーナルデータを、ライトアドレスが示すセカンダリボリュームの領域に格納する(S305)。セカンダリボリューム反映プログラム185は、比較元セカンダリジャーナルエントリのエントリフラグを無効に変更する(S306)。エントリフラグが無効にされたエントリのジャーナルデータは削除される。 If no valid entry with the same write address exists in the comparison journal management information 600 (S304: NO), the journal data of the comparison source secondary journal entry is the latest data. The secondary volume reflection program 185 stores the journal data in the secondary volume area indicated by the write address (S305). The secondary volume reflection program 185 changes the entry flag of the comparison source secondary journal entry to invalid (S306). The journal data of the entry whose entry flag is invalidated is deleted.
 同一ライトアドレスの有効エントリが比較ジャーナル管理情報600において存在する場合(S304:YES)、セカンダリボリューム反映プログラム185は、重複するアドレス領域それぞれについて、比較ジャーナル管理情報600における最新のライト時刻と、比較元セカンダリジャーナルエントリのライト時刻とを比較する(S309)。 When a valid entry with the same write address exists in the comparison journal management information 600 (S304: YES), the secondary volume reflection program 185 determines the latest write time in the comparison journal management information 600 and the comparison source for each overlapping address area. The write time of the secondary journal entry is compared (S309).
 比較元セカンダリジャーナルエントリのライト時刻が新しい場合(S310:YES)、セカンダリボリューム反映プログラム185は、当該ジャーナルデータを、ライトアドレスが示すセカンダリボリュームの領域に格納する(S305)。セカンダリボリューム反映プログラム185は、比較元セカンダリジャーナルエントリのエントリフラグを無効に変更する(S306)。 When the write time of the comparison source secondary journal entry is new (S310: YES), the secondary volume reflection program 185 stores the journal data in the secondary volume area indicated by the write address (S305). The secondary volume reflection program 185 changes the entry flag of the comparison source secondary journal entry to invalid (S306).
 比較元セカンダリジャーナルエントリのライト時刻が古い場合(S310:NO)、セカンダリボリューム反映プログラム185は、当該ジャーナルデータをライトアドレスが示すセカンダリボリュームの領域に格納することなく、比較元セカンダリジャーナルエントリのエントリフラグを無効に変更する(S306)。 If the write time of the comparison source secondary journal entry is old (S310: NO), the secondary volume reflection program 185 stores the entry data of the comparison source secondary journal entry without storing the journal data in the secondary volume area indicated by the write address. Is changed to invalid (S306).
 選択した比較元セカンダリジャーナルエントリが、セカンダリジャーナル管理情報500にける最終の有効エントリではない場合(S307:NO)、セカンダリボリューム反映プログラム185は、ステップS302に戻る。 When the selected comparison source secondary journal entry is not the last valid entry in the secondary journal management information 500 (S307: NO), the secondary volume reflection program 185 returns to step S302.
 選択した比較元セカンダリジャーナルエントリが、セカンダリジャーナル管理情報500にける最終の有効エントリである場合(S307:YES)、セカンダリボリューム反映プログラム185は、比較ジャーナル管理情報600において、セカンダリジャーナル管理情報500における最終エントリのライト時刻以前以前のエントリのエントリフラグを無効に設定する(S311)。これにより、今後の比較処理において不要となるエントリを無効に設定し、比較処理を効率化できる。なお、セカンダリジャーナル管理情報500において、ライト時刻に代えて、プライマリストレージ装置120からの転送時刻が管理されていてもよい。 When the selected comparison source secondary journal entry is the last valid entry in the secondary journal management information 500 (S307: YES), the secondary volume reflection program 185 in the comparison journal management information 600 determines the last in the secondary journal management information 500. The entry flag of the entry before the entry write time is set to invalid (S311). This makes it possible to invalidate entries that are unnecessary in future comparison processing, and to make the comparison processing more efficient. In the secondary journal management information 500, the transfer time from the primary storage device 120 may be managed instead of the write time.
 上述のように、プライマリストレージ装置120から転送されたジャーナルデータよりも新しいデータがホスト二重書きによりセカンダリボリュームにライト済みの場合、ジャーナルデータは、セカンダリボリュームに格納されない。これにより、古いジャーナルデータが新しいホストデータを上書きすることを回避することができる。 As described above, when data newer than the journal data transferred from the primary storage device 120 has been written to the secondary volume by the host double writing, the journal data is not stored in the secondary volume. As a result, it is possible to prevent old journal data from overwriting new host data.
 上述のように、セカンダリジャーナル管理情報500が比較ジャーナルフラグを含むことで、セカンダリストレージ装置220が効率的にジャーナルデータに対する二重書き適用の有無を知ることができる。上記例は、さらに、ジャーナルに比較ジャーナルフラグを含める。これにより、さらに効率的にジャーナルデータに対する二重書き適用の有無を知ることができる。 As described above, since the secondary journal management information 500 includes the comparison journal flag, the secondary storage apparatus 220 can efficiently know whether double writing is applied to journal data. The above example further includes a comparative journal flag in the journal. As a result, it is possible to know whether or not the double writing is applied to the journal data more efficiently.
 これに代えて、ジャーナルにおいて比較ジャーナルフラグを省略し、セカンダリストレージ装置220は、コピーペア管理情報400の比較ジャーナルフラグカラム410を参照して、セカンダリジャーナル管理情報500に、比較ジャーナルフラグを追加してもよい。セカンダリジャーナル管理情報500において比較ジャーナルフラグを省略し、セカンダリストレージ装置220は、コピーペア管理情報400の比較ジャーナルフラグカラム410を参照してもよい。 Instead, the comparison journal flag is omitted in the journal, and the secondary storage apparatus 220 adds the comparison journal flag to the secondary journal management information 500 with reference to the comparison journal flag column 410 of the copy pair management information 400. Also good. The comparison journal flag may be omitted in the secondary journal management information 500, and the secondary storage apparatus 220 may refer to the comparison journal flag column 410 of the copy pair management information 400.
 上記例は、管理情報において不要なエントリのエントリフラグを無効に設定することで、当該エントリを無効にするが、不要なエントリを削除することで当該エントリを無効にしてもよい。ライトコマンド及びジャーナルのライトアドレス範囲は一定でなくてもよい。セカンダリボリューム反映プログラム185は、比較元セカンダリジャーナルエントリのライトアドレスと重複する(少なくとも一部が一致する)、最新有効エントリを、比較ジャーナル管理情報500において検索する。比較ジャーナルボリュームは定義されていなくてもよく、例えば、比較ジャーナル管理情報500は共有メモリ111に格納されてもよい。 The above example invalidates the entry by setting the entry flag of the unnecessary entry in the management information invalid, but the entry may be invalidated by deleting the unnecessary entry. The write command and journal write address range need not be constant. The secondary volume reflection program 185 searches the comparison journal management information 500 for the latest valid entry that overlaps (at least partially matches) the write address of the comparison source secondary journal entry. The comparison journal volume may not be defined. For example, the comparison journal management information 500 may be stored in the shared memory 111.
 セカンダリボリューム反映プログラム185は、重複するアドレス範囲それぞれについて、セカンダリジャーナルと比較ジャーナルとの間でライト時刻を比較する。セカンダリジャーナルにおいて、いずれの有効比較ジャーナルのアドレスとも一致しないアドレス範囲のデータは、セカンダリボリュームに反映される。 The secondary volume reflection program 185 compares the write time between the secondary journal and the comparison journal for each overlapping address range. In the secondary journal, data in an address range that does not match the address of any valid comparison journal is reflected in the secondary volume.
 上記構成例は、セカンダリジャーナルデータの反映において、ジャーナルデータとホスト二重書きデータの時刻を比較し、ホスト二重書きにおいて、ジャーナルデータと比較することなく、ホストデータをセカンダリボリュームにライトする。これにより効率的に、古いデータによる新しいデータの上書きを回避できる。 The above configuration example compares the time of the journal data and the host double write data in reflecting the secondary journal data, and writes the host data to the secondary volume without comparing with the journal data in the host double write. This effectively avoids overwriting new data with old data.
 セカンダリストレージ装置220は、ホスト二重書きにおいて、ホストデータとジャーナルデータとの間で、ライト時刻を比較してもよい。通常、非同期リモートコピーによるデータ転送は、ホストライトによるデータ転送より遅い。したがって、ジャーナルデータのセカンダリボリュームへの格納において、ライト時刻を比較すればよい。ホスト二重書きにおいて、ホストデータとジャーナルデータのライト時刻を比較することで、データ整合性に対する信頼性を高めることができる。 The secondary storage device 220 may compare the write time between the host data and the journal data in the host double writing. Normally, data transfer by asynchronous remote copy is slower than data transfer by host write. Therefore, the write times may be compared in storing journal data in the secondary volume. By comparing the write times of host data and journal data in host double writing, the reliability of data consistency can be improved.
 ライト時刻は、ホスト計算機100からのライトコマンドに含まれる時刻が使用される。入出力制御プログラム181は、ホストライトデータのアドレスと同一アドレスの最新無効エントリを、セカンダリジャーナル管理情報500において検索する。 The time included in the write command from the host computer 100 is used as the write time. The input / output control program 181 searches the secondary journal management information 500 for the latest invalid entry having the same address as the host write data address.
 ホストライトデータよりも新しいジャーナルデータが既にセカンダリボリュームに書き込み済みの場合、入出力制御プログラム181は、ホストライトデータをセカンダリボリュームにライトすることなく、ホスト計算機100にライト完了応用を返す。セカンダリボリュームにライトされなかったホストライトデータのエントリは、比較ジャーナル管理情報600において、無効に設定される。 If newer journal data than the host write data has already been written to the secondary volume, the I / O control program 181 returns a write completion application to the host computer 100 without writing the host write data to the secondary volume. The entry of the host write data that has not been written to the secondary volume is set to invalid in the comparison journal management information 600.
 セカンダリジャーナル管理情報500の更新及び比較ジャーナル管理情報600におけるプライマリジャーナルボリュームにライトされたホストデータのエントリの処理は、上記他の構成例と同様でよい。入出力制御プログラム181は、有効及び無効エントリにおいて、同一アドレスの最新エントリを検索してもよい。ホストライトデータとジャーナルデータのアドレスが一部のみ一致する場合の比較については、上記他の構成例と同様である。 The update of the secondary journal management information 500 and the processing of the entry of the host data written to the primary journal volume in the comparison journal management information 600 may be the same as the other configuration examples described above. The input / output control program 181 may search for the latest entry at the same address in the valid and invalid entries. The comparison when the addresses of the host write data and the journal data partially match is the same as in the above other configuration examples.
 なお、本発明は上記した実施例に限定されるものではなく、様々な変形例が含まれる。例えば、上記した実施例は本発明を分かりやすく説明するために詳細に説明したものであり、必ずしも説明したすべての構成を備えるものに限定されるものではない。また、ある実施例の構成の一部を他の実施例の構成に置き換えることが可能であり、また、ある実施例の構成に他の実施例の構成を加えることも可能である。また、各実施例の構成の一部について、他の構成の追加・削除・置換をすることが可能である。 In addition, this invention is not limited to the above-mentioned Example, Various modifications are included. For example, the above-described embodiments have been described in detail for easy understanding of the present invention, and are not necessarily limited to those having all the configurations described. Further, a part of the configuration of one embodiment can be replaced with the configuration of another embodiment, and the configuration of another embodiment can be added to the configuration of one embodiment. Further, it is possible to add, delete, and replace other configurations for a part of the configuration of each embodiment.
 また、上記の各構成・機能・処理部等は、それらの一部又は全部を、例えば集積回路で設計する等によりハードウェアで実現してもよい。また、上記の各構成、機能等は、プロセッサがそれぞれの機能を実現するプログラムを解釈し、実行することによりソフトウェアで実現してもよい。各機能を実現するプログラム、テーブル、ファイル等の情報は、メモリや、ハードディスクドライブ、SSD等の記録装置、または、ICカード、SDカード等の記録媒体に置くことができる。また、制御線や情報線は説明上必要と考えられるものを示しており、製品上必ずしもすべての制御線や情報線を示しているとは限らない。実際には殆どすべての構成が相互に接続されていると考えてもよい。 In addition, each of the above-described configurations, functions, processing units, and the like may be realized by hardware by designing a part or all of them with, for example, an integrated circuit. Each of the above-described configurations, functions, and the like may be realized by software by interpreting and executing a program that realizes each function by the processor. Information such as programs, tables, and files for realizing each function can be stored in a memory, a recording device such as a hard disk drive or SSD, or a recording medium such as an IC card or SD card. In addition, the control lines and information lines are those that are considered necessary for the explanation, and not all the control lines and information lines on the product are necessarily shown. In practice, it may be considered that almost all the components are connected to each other.

Claims (12)

  1.  第1のボリュームをホストに提供する、第1のストレージ装置と、
     第2のボリュームを前記ホストに提供する、第2のストレージ装置と、を含むストレージシステムであって、
     前記第1のボリュームと前記第2のボリュームとが非同期コピーペアを形成し、
     前記第2のストレージ装置は、
     前記ホストからの前記第1のボリューム及び前記第2のボリュームへのホスト二重書きライトコマンドに応じて前記第2のボリュームにライトされた、ホストライトデータの情報を管理する第1の管理情報を含み、前記ホストライトデータの情報は、前記ホストライトデータのライト先及び前記ホストライトデータに関連付けられた時刻を含み、
     前記第1のストレージ装置から、前記第2のボリュームに対するジャーナルを受信し、前記ジャーナルは、ジャーナルデータと、前記ジャーナルデータのライト先及び前記ジャーナルデータに関連付けられた時刻を含み、
     前記第1の管理情報において、前記ジャーナルデータと同一のライト先のライトデータに関連付けられている最新の時刻が、前記ジャーナルデータに関連付けられた時刻より古い場合、前記ジャーナルデータを前記第2のボリュームにライトし、
     前記第1の管理情報において、前記ジャーナルデータと同一のライト先のホストライトデータに関連付けられている最新の時刻が、前記ジャーナルデータに関連付けられた時刻より新しい場合、前記ジャーナルデータを前記第2のボリュームにライトしないことを決定する、ストレージシステム。
    A first storage device that provides a first volume to a host;
    A second storage apparatus that provides a second volume to the host, the storage system comprising:
    The first volume and the second volume form an asynchronous copy pair;
    The second storage device
    First management information for managing host write data information written to the second volume in response to a host double write command from the host to the first volume and the second volume. The host write data information includes a write destination of the host write data and a time associated with the host write data,
    Receiving a journal for the second volume from the first storage device, the journal including journal data, a write destination of the journal data, and a time associated with the journal data;
    In the first management information, when the latest time associated with the write data of the same write destination as the journal data is older than the time associated with the journal data, the journal data is stored in the second volume. Write to
    In the first management information, when the latest time associated with the same host write data as the journal data is newer than the time associated with the journal data, the journal data is stored in the second management information. A storage system that decides not to write to a volume.
  2.  請求項1に記載のストレージシステムであって、
     前記第2のストレージ装置は、前記第1のストレージ装置から送信されたジャーナルの情報を管理する、第2の管理情報を含み、
     前記第2の管理情報は、前記ジャーナルデータのライト先及び前記ジャーナルデータに関連付けられた時刻を含み、
     前記ホストからの前記第1のボリューム及び前記第2のボリュームへの第1のホスト二重書きライトコマンドと第1のホストライトデータと、を受信し、
     前記第1のホストライトデータの情報を、前記第1の管理情報に追加し、
     前記第1のホストライトデータを、前記第2の管理情報を参照することなく、前記第2のボリュームにライトする、ストレージシステム。
    The storage system according to claim 1,
    The second storage device includes second management information for managing journal information transmitted from the first storage device,
    The second management information includes a write destination of the journal data and a time associated with the journal data,
    Receiving a first host double write command and first host write data from the host to the first volume and the second volume;
    Adding the information of the first host write data to the first management information;
    A storage system that writes the first host write data to the second volume without referring to the second management information.
  3.  請求項1に記載のストレージシステムであって、
     前記第2のストレージ装置は、
     前記第1の管理情報と前記ジャーナルデータに関連付けられた時刻との比較の後、前記第1の管理情報において、前記ジャーナルデータと関連付けられた時刻以前のホストライトデータの情報を無効にする、ストレージシステム。
    The storage system according to claim 1,
    The second storage device
    A storage that invalidates information of host write data before the time associated with the journal data in the first management information after the comparison between the first management information and the time associated with the journal data. system.
  4.  請求項1に記載のストレージシステムであって、
     前記第2のストレージ装置は、
     前記第1のストレージ装置から送信されるジャーナルデータを格納するジャーナル記憶領域と、前記第1のストレージ装置から送信されるジャーナルデータのライト先に対して、ホスト二重書きが適用されるかを示す第3の管理情報と、を含み、
     前記第3の管理情報が、前記ジャーナル記憶領域における第1のジャーナルデータのライト先にホスト二重書きが適用されることを示す場合、前記第1のジャーナルデータに関連付けられた時刻と前記第1の管理情報とを比較し、
     前記第3の管理情報が、前記第1のジャーナルデータのライト先にホスト二重書きが適用されないことを示す場合、前記第1の管理情報を参照することなく前記第1のジャーナルデータを対象ボリュームにライトする、ストレージシステム。
    The storage system according to claim 1,
    The second storage device
    Indicates whether the host dual write is applied to the journal storage area for storing the journal data transmitted from the first storage device and the write destination of the journal data transmitted from the first storage device. Third management information, and
    When the third management information indicates that host dual writing is applied to the write destination of the first journal data in the journal storage area, the time associated with the first journal data and the first Compared with the management information of
    When the third management information indicates that host dual writing is not applied to the write destination of the first journal data, the first journal data is transferred to the target volume without referring to the first management information. To write to the storage system.
  5.  請求項1に記載のストレージシステムであって、
     前記第1のボリュームと前記第2のボリュームの非同期コピーペアの状態を管理する第4の管理情報を含み、
     前記第2のストレージ装置は、
     前記ホストから受信した第1のライトコマンドを解析して、前記第1のライトコマンドのライト先及び前記第1のライトコマンドがホスト二重書きであるか判定し、
     前記第1のライトコマンドのライト先が前記第2のボリュームであり、前記第1のライトコマンドがホスト二重書きではなく、前記第4の管理情報が、前記非同期コピーペアの状態は、前記第1のボリュームから第2のボリュームに非同期コピーを行う状態であることを示す場合、前記ホストにエラーを返す、ストレージシステム。
    The storage system according to claim 1,
    Including fourth management information for managing a status of an asynchronous copy pair of the first volume and the second volume;
    The second storage device
    Analyzing the first write command received from the host to determine whether the write destination of the first write command and the first write command are host double writing;
    The write destination of the first write command is the second volume, the first write command is not host double writing, the fourth management information is the status of the asynchronous copy pair A storage system that returns an error to the host when indicating that it is in a state of performing asynchronous copy from one volume to a second volume.
  6.  請求項1に記載のストレージシステムであって、
     前記第1のストレージ装置は、
     前記第1のボリュームへの前記ホストから第2のライトコマンドと第2のホストライトデータとを受信し、
     前記第2のライトコマンドを解析し、
     前記第2のライトコマンドがホスト二重書きライトコマンドである場合、前記第2のホストライトデータを前記第2のボリュームへ転送することなく、前記第2のホストライトデータを前記第1のボリュームにライトし、
     前記第2のライトコマンドがホスト二重書きライトコマンドでない場合、前記第2のホストライトデータを前記第2のボリュームへ転送するストレージシステム。
    The storage system according to claim 1,
    The first storage device
    Receiving a second write command and second host write data from the host to the first volume;
    Analyzing the second write command;
    If the second write command is a host double write command, the second host write data is transferred to the first volume without transferring the second host write data to the second volume. Write and
    A storage system for transferring the second host write data to the second volume when the second write command is not a host dual write command.
  7.  第1のボリュームをホストに提供する、第1のストレージ装置と、第2のボリュームを前記ホストに提供する、第2のストレージ装置と、を含み、前記第1のボリュームと前記第2のボリュームとが非同期コピーペアを形成する、ストレージシステムの制御方法であって、
     前記第2のストレージ装置が、前記ホストからの前記第1のボリューム及び前記第2のボリュームへのホスト二重書きライトコマンドに応じて前記第2のボリュームにライトされた、ホストライトデータの情報を管理する第1の管理情報を含み、前記ホストライトデータの情報は、前記ホストライトデータのライト先及び前記ホストライトデータに関連付けられた時刻を含み、
     前記第2のストレージ装置が、前記第1のストレージ装置から、前記第2のボリュームに対するジャーナルを受信し、前記ジャーナルは、ジャーナルデータと、前記ジャーナルデータのライト先及び前記ジャーナルデータに関連付けられた時刻を含み、
     前記第2のストレージ装置が、前記第1の管理情報において、前記ジャーナルデータと同一のライト先のライトデータに関連付けられている最新の時刻が、前記ジャーナルデータに関連付けられた時刻より古い場合、前記ジャーナルデータを前記第2のボリュームにライトし、
     前記第2のストレージ装置が、前記第1の管理情報において、前記ジャーナルデータと同一のライト先のホストライトデータに関連付けられている最新の時刻が、前記ジャーナルデータに関連付けられた時刻より新しい場合、前記ジャーナルデータを前記第2のボリュームにライトしないことを決定する、方法。
    A first storage device that provides a first volume to the host, and a second storage device that provides a second volume to the host, the first volume and the second volume, Is a storage system control method for forming an asynchronous copy pair,
    Information on host write data written to the second volume in response to a host double write command from the host to the first volume and the second volume is sent from the second storage device. Including first management information to be managed, the host write data information includes a write destination of the host write data and a time associated with the host write data,
    The second storage device receives a journal for the second volume from the first storage device, and the journal is associated with journal data, a write destination of the journal data, and the journal data. Including
    In the first management information, when the latest time associated with the write data of the same write destination as the journal data is older than the time associated with the journal data, the second storage device Write journal data to the second volume,
    When the latest time associated with the same write destination host write data as the journal data is newer than the time associated with the journal data in the first management information, A method of determining not to write the journal data to the second volume.
  8.  請求項7に記載の方法であって、
     前記第2のストレージ装置は、前記第1のストレージ装置から送信されたジャーナルの情報を管理する、第2の管理情報を含み、
     前記第2の管理情報は、前記ジャーナルデータのライト先及び前記ジャーナルデータに関連付けられた時刻を含み、
     前記方法は、
     前記第2のストレージ装置が、前記ホストからの前記第1のボリューム及び前記第2のボリュームへの第1のホスト二重書きライトコマンドと第1のホストライトデータと、を受信し、
     前記第2のストレージ装置が、前記第1のホストライトデータの情報を、前記第1の管理情報に追加し、
     前記第2のストレージ装置が、前記第1のホストライトデータを、前記第2の管理情報を参照することなく、前記第2のボリュームにライトする、方法。
    The method of claim 7, comprising:
    The second storage device includes second management information for managing journal information transmitted from the first storage device,
    The second management information includes a write destination of the journal data and a time associated with the journal data,
    The method
    The second storage device receives the first host double write command and the first host write data from the host to the first volume and the second volume;
    The second storage device adds the information of the first host write data to the first management information;
    A method in which the second storage device writes the first host write data to the second volume without referring to the second management information.
  9.  請求項7に記載の方法であって、
     前記第2のストレージ装置が、前記第1の管理情報と前記ジャーナルデータに関連付けられた時刻との比較の後、前記第1の管理情報において、前記ジャーナルデータと関連付けられた時刻以前のホストライトデータの情報を無効にする、方法。
    The method of claim 7, comprising:
    After the second storage device compares the first management information and the time associated with the journal data, host write data before the time associated with the journal data in the first management information How to invalidate information.
  10.  請求項7に記載の方法であって、
     前記第2のストレージ装置が、前記第1のストレージ装置から送信されるジャーナルデータを格納するジャーナル記憶領域と、前記第1のストレージ装置から送信されるジャーナルデータのライト先に対して、ホスト二重書きが適用されるかを示す第3の管理情報を含み、
     前記第2のストレージ装置が、前記第3の管理情報が、前記ジャーナル記憶領域における第1のジャーナルデータのライト先にホスト二重書きが適用されることを示す場合、前記第1のジャーナルデータに関連付けられた時刻と前記第1の管理情報とを比較し、
     前記第2のストレージ装置が、前記第3の管理情報が、前記第1のジャーナルデータのライト先にホスト二重書きが適用されないことを示す場合、前記第1の管理情報を参照することなく前記第1のジャーナルデータを対象ボリュームにライトする、方法。
    The method of claim 7, comprising:
    The second storage device has a host duplex for a journal storage area for storing journal data transmitted from the first storage device and a write destination for journal data transmitted from the first storage device. Including third management information indicating whether the writing is applied;
    When the second storage device indicates that the host management write is applied to the write destination of the first journal data in the journal storage area, the third management information is added to the first journal data. Comparing the associated time with the first management information;
    When the second storage device indicates that the host management write is not applied to the write destination of the first journal data, the third management information does not refer to the first management information. A method of writing first journal data to a target volume.
  11.  請求項7に記載の方法であって、
     前記第2のストレージ装置は、前記第1のボリュームと前記第2のボリュームの非同期コピーペアの状態を管理する第4の管理情報を含み、
     前記方法は、
     前記第2のストレージ装置が、前記ホストから受信した第1のライトコマンドを解析して、前記第1のライトコマンドのライト先及び前記第1のライトコマンドがホスト二重書きであるか判定し、
     前記第2のストレージ装置が、前記第1のライトコマンドのライト先が前記第2のボリュームであり、前記第1のライトコマンドがホスト二重書きではなく、前記第4の管理情報が、前記非同期コピーペアの状態は、前記第1のボリュームから第2のボリュームに非同期コピーを行う状態であることを示す場合、前記ホストにエラーを返す、方法。
    The method of claim 7, comprising:
    The second storage device includes fourth management information for managing a status of an asynchronous copy pair of the first volume and the second volume,
    The method
    The second storage device analyzes the first write command received from the host and determines whether the write destination of the first write command and the first write command are host double writing;
    In the second storage device, the write destination of the first write command is the second volume, the first write command is not host double write, and the fourth management information is the asynchronous A method of returning an error to the host when the status of the copy pair indicates that asynchronous copy is performed from the first volume to the second volume.
  12.  請求項7に記載の方法であって、
     前記第1のストレージ装置が、前記第1のボリュームへの前記ホストから第2のライトコマンドと第2のホストライトデータとを受信し、
     前記第1のストレージ装置が、前記第2のライトコマンドを解析し、
     前記第1のストレージ装置が、前記第2のライトコマンドがホスト二重書きライトコマンドである場合、前記第2のホストライトデータを前記第2のボリュームへ転送することなく、前記第2のホストライトデータを前記第1のボリュームにライトし、
     前記第1のストレージ装置が、前記第2のライトコマンドがホスト二重書きライトコマンドでない場合、前記第2のホストライトデータを前記第2のボリュームへ転送する、方法。
    The method of claim 7, comprising:
    The first storage device receives a second write command and second host write data from the host to the first volume;
    The first storage device analyzes the second write command;
    When the second write command is a host double write command, the first storage device transfers the second host write data without transferring the second host write data to the second volume. Write data to the first volume;
    A method in which the first storage device transfers the second host write data to the second volume when the second write command is not a host double write command.
PCT/JP2016/081560 2016-10-25 2016-10-25 Storage system WO2018078718A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/JP2016/081560 WO2018078718A1 (en) 2016-10-25 2016-10-25 Storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2016/081560 WO2018078718A1 (en) 2016-10-25 2016-10-25 Storage system

Publications (1)

Publication Number Publication Date
WO2018078718A1 true WO2018078718A1 (en) 2018-05-03

Family

ID=62023265

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2016/081560 WO2018078718A1 (en) 2016-10-25 2016-10-25 Storage system

Country Status (1)

Country Link
WO (1) WO2018078718A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014181406A1 (en) * 2013-05-08 2014-11-13 株式会社日立製作所 Storage system and method for managing data
WO2016084156A1 (en) * 2014-11-26 2016-06-02 株式会社日立製作所 Storage system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014181406A1 (en) * 2013-05-08 2014-11-13 株式会社日立製作所 Storage system and method for managing data
WO2016084156A1 (en) * 2014-11-26 2016-06-02 株式会社日立製作所 Storage system

Similar Documents

Publication Publication Date Title
US9037816B1 (en) Reversing a communication path between storage devices
US6862632B1 (en) Dynamic RDF system for transferring initial data between source and destination volume wherein data maybe restored to either volume at same time other data is written
US9606881B1 (en) Method and system for rapid failback of a computer system in a disaster recovery environment
JP4727437B2 (en) Storage control method for storage system having database
US7461100B2 (en) Method for fast reverse restore
US7409510B2 (en) Instant virtual copy to a primary mirroring portion of data
US8271438B2 (en) Asynchronous remote copy system and storage control method
JP4756992B2 (en) Storage system and storage control method
KR101154620B1 (en) An efficient method and apparatus for keeping track of in flight data in a dual node storage controller
US8375004B2 (en) Asynchronous remote copy system and storage control method
JP2005301590A (en) Storage system and data copying method
WO2005045606A2 (en) Data replication in data storage systems
US7200725B2 (en) Storage remote copy system
US20110196825A1 (en) Storage system and data duplication method in the same
US6701392B1 (en) Hierarchical approach to indentifying changing device characteristics
JP2005190455A (en) Storage control apparatus and storage control method
WO2018078718A1 (en) Storage system
US10656867B2 (en) Computer system, data management method, and data management program
CN112805949A (en) Method for processing snapshot creation request and storage device
EP1507207A1 (en) Hierarchical approach to identifying changing device characteristics

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16920076

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16920076

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP