Search

US-12625637-B2 - Computer system, remote copy control method, and remote copy control program

US12625637B2US 12625637 B2US12625637 B2US 12625637B2US-12625637-B2

Abstract

In a computer system, a storage system manages a plurality of first volumes that belong to a CTG, a storage system creates a plurality of second volumes in a distributed manner in a plurality of storage nodes, and causes a second journal volume to exist in each of the plurality of storage nodes, the storage system creates first journal volumes each corresponding to the second journal volume, and executes a write order guarantee process of controlling a process for the plurality of first volumes so that journal data is stored in the plurality of first journal volumes while a write order is ensured.

Inventors

  • Akihiro Hara
  • Akira Deguchi
  • Akiyoshi Tsuchiya

Assignees

  • HITACHI VANTARA, LTD.

Dates

Publication Date
20260512
Application Date
20240913
Priority Date
20231204

Claims (7)

  1. 1 . A computer system comprising: a first storage system; and a second storage system, wherein the first storage system manages a plurality of first volumes that belong to a consistency group that guarantees a write order of data, wherein the second storage system has a plurality of storage nodes, wherein the second storage system creates a plurality of second volumes as copy destinations of the plurality of first volumes in a distributed manner in the plurality of storage nodes, and causes a second journal volume to exist in each of the plurality of storage nodes in which the plurality of second volumes are created, the second journal volume storing journal data indicating write contents in the first volume as a copy source of the second volume, wherein the second storage system creates a second volume as a copy destination of the first volume in any one of the storage nodes, and when the second journal volume storing the journal data indicating the write contents in the first volume as the copy source of the second volume does not exist in the storage node, creates the second journal volume, and wherein the first storage system: creates a plurality of first journal volumes storing journal data for the plurality of first volumes each corresponding to the second journal volume, executes a write order guarantee process of controlling a process for the plurality of first volumes so that the journal data indicating the write contents to the plurality of first volumes is stored in the plurality of first journal volumes while an order of writing to the plurality of first journal volumes is ensured, determines whether the plurality of second volumes as the copy destinations of the plurality of first volumes are generated in one of the storage nodes in the second storage system or is generated in the plurality of storage nodes, and when the plurality of second volumes are generated in the plurality of storage nodes, prepares a first journal volume corresponding to the second journal volume generated in the plurality of storage nodes, and executes the write order guarantee process when the plurality of second volumes as the copy destinations of the plurality of first volumes are generated in the plurality of storage nodes in the second storage system.
  2. 2 . The computer system according to claim 1 , wherein the first storage system receives identification information on a consistency group storing a volume to be copied and identification information on the first volume to be copied, and executes a process of creating the second volume as a copy destination of the first volume of the received consistency group.
  3. 3 . The computer system according to claim 1 , wherein the second storage system determines one of the storage nodes for creating the second volume from the plurality of storage nodes based on a number of volumes in the storage node or a remaining capacity of the storage node.
  4. 4 . The computer system according to claim 1 , further comprising: a management device, wherein the management device determines a storage node in which the second volume is allocated based on a recovery point objective for the first volume.
  5. 5 . A computer system comprising: a first storage system; and a second storage system, wherein the first storage system manages a plurality of first volumes that belong to a consistency group that guarantees a write order of data, wherein the second storage system has a plurality of storage nodes and creates a plurality of second volumes as copy destinations of the plurality of first volumes in a distributed manner in the plurality of storage nodes, and causes a second journal volume to exist in each of the plurality of storage nodes in which the plurality of second volumes are created, the second journal volume storing journal data indicating write contents in the first volume as a copy source of the second volume, and wherein the first storage system: creates a plurality of first journal volumes storing journal data for the plurality of first volumes each corresponding to the second journal volume, and executes a write order guarantee process of controlling a process for the plurality of first volumes so that the journal data indicating the write contents to the plurality of first volumes is stored in the plurality of first journal volumes while an order of writing to the plurality of first journal volumes is ensured, wherein the write order guarantee process includes a process of preventing a write process for the plurality of first volumes when updating time information to be applied to the journal data, a storage unit that stores restriction information indicating whether to prevent a write process for a plurality of volumes when time information is updated, wherein the first storage system refers to the restriction information and determines whether to prevent the write process for the volume when updating the time information.
  6. 6 . The computer system according to claim 5 , wherein the first storage system has a plurality of storage nodes that operate independently, and one of the storage nodes in the first storage system instructs all of the other storage nodes to prevent the write process for the plurality of first volumes when updating the time information to be applied to the journal data.
  7. 7 . A remote copy control method performed by a computer system including a first storage system and a second storage system, wherein the second storage system has a plurality of storage nodes, wherein the first storage system manages a plurality of first volumes that belong to a consistency group that guarantees a write order of data, wherein the method comprises: creating, by the second storage system, a plurality of second volumes as copy destinations of the plurality of first volumes in a distributed manner in the plurality of storage nodes, and causing, by the second storage system, a second journal volume to exist in each of the plurality of storage nodes in which the plurality of second volumes are created, the second journal volume storing journal data indicating write contents in the first volume as a copy source of the second volume, and creating, by the first storage system, a plurality of first journal volumes storing journal data for the plurality of first volumes each corresponding to the second journal volume, executing, by the first storage system, a write order guarantee process of controlling a process for the plurality of first volumes so that the journal data indicating the write contents to the plurality of first volumes is stored in the plurality of first journal volumes while an order of writing to the plurality of first journal volumes is ensured, determining, by the first storage system, whether the plurality of second volumes as the copy destinations of the plurality of first volumes are generated in one of the storage nodes in the second storage system or is generated in the plurality of storage nodes, and when the plurality of second volumes are generated in the plurality of storage nodes, prepares a first journal volume corresponding to the second journal volume generated in the plurality of storage nodes, and executing, by the first storage system, the write order guarantee process when the plurality of second volumes as the copy destinations of the plurality of first volumes are generated in the plurality of storage nodes in the second storage system, creating, by the second storage system, a second volume as a copy destination of the first volume in any one of the storage nodes, and creating, by the second storage system, the second journal volume when the second journal volume storing the journal data indicating the write contents in the first volume as the copy source of the second volume does not exist in the storage node.

Description

BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data copy technology between storage systems. 2. Description of Related Art A technique of copying data between storage systems is known. For example, PTL 1 discloses a method for guaranteeing an update order of data spanning devices by determining points where data can be updated in the devices based on write order information in asynchronous remote copy between a plurality of storage devices. PTL 2 discloses a method in which, in a distributed storage system including a plurality of storage nodes, in order to maintain response performance while ensuring redundancy of data, an I/O process is shared and executed by each node, and a physical area of a certain node is preferentially assigned as a storage area handled by the node. In a computer system, a consistency group (CTG) which is a range for guaranteeing an order of writing data to a plurality of volumes may be implemented in remote copy from a primary storage system (copy source storage system) to a secondary storage system (copy destination storage system). CITATION LIST Patent Literature PTL 1: JP2007-264946APTL 2: JP2019-101702A SUMMARY OF THE INVENTION For example, when a volume in the primary storage system is asynchronously remote-copied to the secondary storage system in the computer system, the secondary storage system may be a distributed storage system including a plurality of storage nodes. In this case, volumes that are copy destinations of a plurality of volumes that belong to the same CTG in the primary storage system may be created by being distributed to a plurality of storage nodes. Thus, when a plurality of volumes that belong to the same CTG in the secondary storage system are distributed to a plurality of storage nodes, it is necessary to create a journal volume for storing data indicating updated contents of the volume for each storage node and to create a corresponding journal volume in the primary storage system, which requires time and effort for a user to set up. When a plurality of volumes that belong to the same CTG in the secondary storage system are distributed to a plurality of storage nodes, it is necessary to execute a process for guaranteeing a data update order for the plurality of volumes that belong to the CTG. On the other hand, volumes as copy destinations of a plurality of volumes that belong to the same CTG in the primary storage system may be created in one storage node. In this case, the user needs to perform a setting different from a case where a plurality of volumes that belong to the same CTG in the secondary storage system are distributed to a plurality of storage nodes, which becomes a complicated process for the user. The invention has been made in view of the above circumstances, and an object of the invention is to provide a technique capable of easily and appropriately setting and executing asynchronous remote copy from a copy source storage system to a copy destination secondary storage system including a plurality of storage nodes. In order to achieve the above object, a computer system according to one aspect is a computer system including: a first storage system; and a second storage system, in which the first storage system manages a plurality of first volumes that belong to a consistency group that guarantees a write order of data, the second storage system has a plurality of storage nodes, the second storage system creates a plurality of second volumes as copy destinations of the plurality of first volumes in a distributed manner in the plurality of storage nodes, and causes a second journal volume to exist in each of the plurality of storage nodes in which the plurality of second volumes are created, the second journal volume storing journal data indicating write contents in the first volume as a copy source of the second volume, and the first storage system creates a plurality of first journal volumes storing journal data for the plurality of first volumes each corresponding to the second journal volume, and executes a write order guarantee process of controlling a process for the plurality of first volumes so that the journal data indicating the write contents to the plurality of first volumes is stored in the plurality of first journal volumes while an order of writing to the plurality of first journal volumes is ensured. According to the invention, it is possible to easily and appropriately set and execute asynchronous remote copy from a copy source storage system to a copy destination secondary storage system including a plurality of storage nodes. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is an overall configuration diagram of a computer system according to a first embodiment; FIG. 2 is a configuration diagram of a storage node according to the first embodiment; FIG. 3 is a configuration diagram of a host computer and a management terminal according to the first embodiment; FIG. 4 is a diagram showing