[go: up one dir, main page]

JP7553136B1 - STORAGE SYSTEM, STORAGE, AND METHOD AND PROGRAM FOR CONTROLLING STORAGE SYSTEM - Google Patents

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

Info

Publication number
JP7553136B1
JP7553136B1 JP2023034239A JP2023034239A JP7553136B1 JP 7553136 B1 JP7553136 B1 JP 7553136B1 JP 2023034239 A JP2023034239 A JP 2023034239A JP 2023034239 A JP2023034239 A JP 2023034239A JP 7553136 B1 JP7553136 B1 JP 7553136B1
Authority
JP
Japan
Prior art keywords
volume
data
storage
difference
secondary volume
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
JP2023034239A
Other languages
Japanese (ja)
Other versions
JP2024129169A (en
Inventor
春輝 野中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Platforms Ltd
Original Assignee
NEC Platforms Ltd
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 NEC Platforms Ltd filed Critical NEC Platforms Ltd
Priority to JP2023034239A priority Critical patent/JP7553136B1/en
Application granted granted Critical
Publication of JP7553136B1 publication Critical patent/JP7553136B1/en
Publication of JP2024129169A publication Critical patent/JP2024129169A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Figure 0007553136000001

【課題】正ボリュームから副ボリュームへの順序性を保証したデータのコピー動作を、停止した後、再開する場合に、副ボリュームのデータを適切に退避させる。
【解決手段】ストレージシステムは、正ボリュームから副ボリュームへの順序性を保証したコピー動作が停止した場合、その停止期間中に正ボリュームと副ボリューム間で差分があるとされた各データを正ボリュームから副ボリュームへコピーする前に、正ボリュームから副ボリュームへの順序性を保証したコピー動作中に副ボリュームと退避ボリューム間で差分があるとされた各データを副ボリュームから退避ボリュームへコピーし、その後、第2記憶手段に記憶されている第1差分情報に基づいて差分があるとされた各データを正ボリュームから副ボリュームへコピーし、その後、コピー動作を再開する。
【選択図】図26

Figure 0007553136000001

When a data copy operation with guaranteed order from a primary volume to a secondary volume is stopped and then restarted, data in the secondary volume is appropriately evacuated.
[Solution] When a copy operation that guarantees order from the primary volume to the secondary volume is stopped, the storage system copies each piece of data that is determined to have a difference between the secondary volume and the save volume during the copy operation that guarantees order from the primary volume to the secondary volume from the secondary volume to the save volume before copying each piece of data that is determined to have a difference between the primary volume and the secondary volume during the stopped period from the primary volume to the secondary volume, and then copies each piece of data that is determined to have a difference based on first difference information stored in a second storage means from the primary volume to the secondary volume, and then resumes the copy operation.
[Selection] Figure 26

Description

本発明は、ストレージシステム、ストレージ、ストレージシステムの制御方法およびプログラムに関する。 The present invention relates to a storage system, storage, a control method for a storage system, and a program.

メインサイトのストレージのデータをリモートサイトのストレージにバックアップする方式には、メインサイトのデータ更新とリモートサイトのデータコピーとをデータの順序性を保持した上で非同期に実行する方式がある(例えば特許文献1)。この方式では、例えばコピーするデータを一時的に保持するバッファがあふれた場合、コピー動作を停止し、整合性がとれるまで差分コピーを実行した後、コピー動作が再開される。この差分コピーはデータの順序性を意識せず実行されるので、差分コピーを実行している状態でメインサイトに障害が発生するとリモートサイトのデータは無意味なデータとなってしまう(特許文献1の段落0007~0009)。この問題に対しては、リモートサイトに差分コピー実行前の状態を保持する退避領域を設けることで、少なくとも差分コピー前の整合性のあるデータを復旧することができる(特許文献1の段落0010~0011)。退避領域を設ける場合、差分データを上書きする前に上書きされるデータを退避するため、空きエリアの探索と、データの退避と、データが格納されていた位置と退避先などを表す情報の作成と記憶とを行う必要がある(特許文献1の先行特許文献(特開平11-15604号公報の段落0052))。また、退避領域を設ける場合、ボリューム容量として現状の2倍の容量を用意する必要がある(特許文献1の段落0014) One method for backing up data from a main site storage to a remote site storage is to perform data updates at the main site and data copies at the remote site asynchronously while maintaining the order of data (see, for example, Patent Document 1). In this method, for example, if a buffer that temporarily holds the data to be copied overflows, the copy operation is stopped, differential copying is performed until consistency is achieved, and then the copy operation is resumed. This differential copying is performed without considering the order of data, so if a failure occurs at the main site while the differential copying is being performed, the data at the remote site becomes meaningless (see paragraphs 0007 to 0009 of Patent Document 1). To address this problem, a backup area that holds the state before the differential copying is performed at the remote site can be provided to restore at least the data that is consistent before the differential copying (see paragraphs 0010 to 0011 of Patent Document 1). When providing a backup area, in order to backup the data to be overwritten before overwriting the differential data, it is necessary to search for an empty area, backup the data, and create and store information indicating the location where the data was stored and the backup destination, etc. (see the patent document prior to Patent Document 1 (Patent Publication No. 11-15604, paragraph 0052)). In addition, if a backup area is provided, it will be necessary to prepare a volume capacity that is twice the current capacity (paragraph 0014 of Patent Document 1).

また、上述したメインサイトとリモートサイト間の差分コピー時の問題は、例えばリモートサイトにあるコピー先の副ボリュームのレプリカを設けて、副ボリュームの全データをレプリカにバックアップしておくことで解決することができる(特許文献2)。この場合、障害発生時の退避ボリュームを用いたデータの復旧は、副ボリュームのデータをレプリカにバックアップした時点のデータに基づいて行われる。この特許文献2に記載されているリモートコピーシステムでは、予め設定した予約時刻で副ボリュームからレプリカへデータがバックアップされる。 The above-mentioned problems with differential copying between the main site and the remote site can be solved, for example, by providing a replica of the secondary volume of the copy destination at the remote site and backing up all data of the secondary volume to the replica (Patent Document 2). In this case, data recovery using the save volume when a failure occurs is performed based on the data at the time when the data of the secondary volume was backed up to the replica. In the remote copy system described in Patent Document 2, data is backed up from the secondary volume to the replica at a preset scheduled time.

特開2015-52844号公報JP 2015-52844 A 特開2008-181288号公報JP 2008-181288 A

特許文献1に記載されているようにメインサイトからリモートサイトへ差分コピーが行われる際に上書きされるデータを退避領域に退避させる場合、差分コピーの内容に応じて退避領域の確保や退避したデータに関する情報の作成と記憶とを行わなければならない。このため、場合によっては退避に要する処理や記憶容量が問題となることがある。 As described in Patent Document 1, when data to be overwritten is evacuated to a backup area during a differential copy from a main site to a remote site, the backup area must be secured and information about the evacuated data must be created and stored according to the contents of the differential copy. For this reason, the processing and storage capacity required for the backup may become an issue in some cases.

また、特許文献2に記載されているように予め設定した予約時刻にレプリカを作成する場合、障害発生時刻と予約時刻との間隔によっては、復旧できるデータ量が問題となることがある。 In addition, when creating a replica at a preset scheduled time as described in Patent Document 2, the amount of data that can be recovered can be an issue depending on the interval between the time the failure occurred and the scheduled time.

本発明は、上述の課題を解決するストレージシステム、ストレージ、ストレージシステムの制御方法およびプログラムを提供することを目的とする。 The present invention aims to provide a storage system, storage, a control method for a storage system, and a program that solve the above-mentioned problems.

本発明の一態様は、正ボリュームを備える第1ストレージと、前記第1ストレージに通信回線を介して接続され、前記正ボリュームとコピーペアに設定された副ボリュームを備える第2ストレージとを備え、前記第1ストレージが、さらに、前記正ボリュームから前記副ボリュームへ順序性を保証してコピーされるデータを一時的に保持する第1記憶手段と、前記正ボリュームと前記副ボリュームについて所定の第1記憶領域毎にデータに差分があるか否かを表す第1差分情報を記憶する第2記憶手段とを備え、前記第2ストレージが、さらに、前記副ボリュームの全データをコピーして記憶する退避ボリュームと、前記副ボリュームと前記退避ボリュームについて、所定の第2記憶領域毎に、前記第1記憶手段を介した前記正ボリュームから前記副ボリュームへのデータの順序性を保証したコピー動作中に発生した差分があるか否かを表す第2差分情報を記憶する第3記憶手段とを備え、前記コピー動作が停止した場合、その停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データを前記正ボリュームから前記副ボリュームへコピーする前に、前記第2差分情報に基づいて差分があるとされた各データを前記副ボリュームから前記退避ボリュームへコピーし、その後、前記停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データを前記正ボリュームから前記副ボリュームへコピーし、その後、前記コピー動作を再開する、ストレージシステムである。 One aspect of the present invention comprises a first storage having a primary volume, and a second storage connected to the first storage via a communication line and having a secondary volume set as a copy pair with the primary volume, the first storage further comprising a first storage means for temporarily holding data copied from the primary volume to the secondary volume with guaranteed order, and a second storage means for storing first difference information indicating whether there is a difference in data for each of a predetermined first storage area for the primary volume and the secondary volume, the second storage further comprising a save volume for copying and storing all data of the secondary volume, and a previous copy of the data for the secondary volume and the save volume via the first storage means for each of a predetermined second storage area for the secondary volume and the save volume. and a third storage means for storing second difference information indicating whether or not there is a difference that occurred during a copy operation that ensures the order of data from the primary volume to the secondary volume. When the copy operation is stopped, before copying each piece of data that is determined to have a difference based on the second difference information stored in the second storage means during the stop period from the primary volume to the secondary volume, the storage system copies each piece of data that is determined to have a difference based on the second difference information from the secondary volume to the save volume, and then copies each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the stop period from the primary volume to the secondary volume, and then resumes the copy operation.

本発明の一態様は、正ボリュームを備え、前記正ボリュームとコピーペアに設定された副ボリュームを備える第2ストレージに通信回線を介して接続された第1ストレージであって、前記第1ストレージが、さらに、前記正ボリュームから前記副ボリュームへ順序性を保証してコピーされるデータを一時的に保持する第1記憶手段と、前記正ボリュームと前記副ボリュームについて所定の第1記憶領域毎にデータに差分があるか否かを表す第1差分情報を記憶する第2記憶手段とを備え、前記第2ストレージが、前記副ボリュームと、前記副ボリュームの全データをコピーして記憶する退避ボリュームと、前記副ボリュームと前記退避ボリュームについて、所定の第2記憶領域毎に、前記第1記憶手段を介した前記正ボリュームから前記副ボリュームへのデータの順序性を保証したコピー動作中に発生した差分があるか否かを表す第2差分情報を記憶する第3記憶手段とを備え、前記コピー動作が停止した場合、その停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データが前記正ボリュームから前記副ボリュームへコピーされる前に、前記第2差分情報に基づいて差分があるとされた各データが前記副ボリュームから前記退避ボリュームへコピーされ、その後、前記停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データが前記正ボリュームから前記副ボリュームへコピーされ、その後、前記コピー動作が再開される、ストレージである。 One aspect of the present invention is a first storage device comprising a primary volume and connected via a communication line to a second storage device comprising a secondary volume set as a copy pair with the primary volume, the first storage device further comprising a first storage means for temporarily holding data copied from the primary volume to the secondary volume with guaranteed order, and a second storage means for storing first difference information indicating whether or not there is a difference in data for each predetermined first storage area for the primary volume and the secondary volume, the second storage device further comprising a secondary volume, a save volume for copying and storing all data of the secondary volume, and a second storage means for storing first difference information indicating whether or not there is a difference in data for each predetermined second storage area for the secondary volume and the save volume, the second storage device further comprising a first storage means for temporarily holding data copied from the primary volume to the secondary volume with guaranteed order, and a second storage means for storing first difference information indicating whether or not there is a difference in data for each predetermined first storage area for the secondary volume and the save volume, the second storage device further comprising a second storage means for temporarily ... and a third storage means for storing second difference information indicating whether or not there is a difference that occurred during a copy operation that ensures the order of data from the primary volume to the secondary volume, and when the copy operation is stopped, each piece of data that is determined to have a difference based on the second difference information is copied from the secondary volume to the save volume before each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the stop period is copied from the primary volume to the secondary volume, and then each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the stop period is copied from the primary volume to the secondary volume, and then the copy operation is resumed.

本発明の一態様は、正ボリュームを備える第1ストレージに通信回線を介して接続され、前記正ボリュームとコピーペアに設定された副ボリュームを備える第2ストレージであって、前記第1ストレージが、前記正ボリュームと、前記正ボリュームから前記副ボリュームへ順序性を保証してコピーされるデータを一時的に保持する第1記憶手段と、前記正ボリュームと前記副ボリュームについて所定の第1記憶領域毎にデータに差分があるか否かを表す第1差分情報を記憶する第2記憶手段とを備え、前記第2ストレージが、さらに、前記副ボリュームの全データをコピーして記憶する退避ボリュームと、前記副ボリュームと前記退避ボリュームについて、所定の第2記憶領域毎に、前記第1記憶手段を介した前記正ボリュームから前記副ボリュームへのデータの順序性を保証したコピー動作中に発生した差分があるか否かを表す第2差分情報を記憶する第3記憶手段とを備え、前記コピー動作が停止した場合、その停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データが前記正ボリュームから前記副ボリュームへコピーされる前に、前記第2差分情報に基づいて差分があるとされた各データが前記副ボリュームから前記退避ボリュームへコピーされ、その後、前記停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データが前記正ボリュームから前記副ボリュームへコピーされ、その後、前記コピー動作が再開される、ストレージである。 One aspect of the present invention is a second storage connected via a communication line to a first storage having a primary volume and having a secondary volume set as a copy pair with the primary volume, the first storage comprising: the primary volume; a first storage means for temporarily holding data copied from the primary volume to the secondary volume with guaranteed order; and a second storage means for storing first difference information indicating whether there is a difference in data for each predetermined first storage area for the primary volume and the secondary volume; the second storage further comprises a save volume for copying and storing all data of the secondary volume; and a second storage means for storing first difference information indicating whether there is a difference in data for each predetermined second storage area for the secondary volume and the save volume, the second storage further comprising: a save volume for copying and storing all data of the secondary volume; and a third storage means for storing second difference information indicating whether or not there is a difference that occurred during a copy operation that ensures the order of data from the primary volume to the secondary volume, and when the copy operation is stopped, each piece of data that is determined to have a difference based on the second difference information is copied from the secondary volume to the save volume before each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the stop period is copied from the primary volume to the secondary volume, and then each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the stop period is copied from the primary volume to the secondary volume, and then the copy operation is resumed.

本発明の一態様は、正ボリュームを備える第1ストレージと、前記第1ストレージに通信回線を介して接続され、前記正ボリュームとコピーペアに設定された副ボリュームを備える第2ストレージとを制御する制御方法であって、前記第1ストレージが、さらに、前記正ボリュームから前記副ボリュームへ順序性を保証してコピーされるデータを一時的に保持する第1記憶手段と、前記正ボリュームと前記副ボリュームについて所定の第1記憶領域毎にデータに差分があるか否かを表す第1差分情報を記憶する第2記憶手段とを備え、前記第2ストレージが、さらに、前記副ボリュームの全データをコピーして記憶する退避ボリュームと、前記副ボリュームと前記退避ボリュームについて、所定の第2記憶領域毎に、前記第1記憶手段を介した前記正ボリュームから前記副ボリュームへのデータの順序性を保証したコピー動作中に発生した差分があるか否かを表す第2差分情報を記憶する第3記憶手段とを備え、前記コピー動作が停止した場合、その停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データを前記正ボリュームから前記副ボリュームへコピーする前に、前記第2差分情報に基づいて差分があるとされた各データを前記副ボリュームから前記退避ボリュームへコピーするステップと、その後、前記停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データを前記正ボリュームから前記副ボリュームへコピーするステップと、その後、前記コピー動作を再開するステップとを含むストレージシステムの制御方法である。 One aspect of the present invention is a control method for controlling a first storage having a primary volume and a second storage connected to the first storage via a communication line and having a secondary volume set as a copy pair with the primary volume, the first storage further comprising a first storage means for temporarily holding data copied from the primary volume to the secondary volume with guaranteed order, and a second storage means for storing first difference information indicating whether or not there is a difference in data for each of a predetermined first storage area for the primary volume and the secondary volume, the second storage further comprising a save volume for copying and storing all data of the secondary volume, and a control method for controlling the primary volume via the first storage means for each of a predetermined second storage area for the secondary volume and the save volume. and a third storage means for storing second difference information indicating whether or not there is a difference that occurred during a copy operation that ensures the order of data from the primary volume to the secondary volume, and the method includes, when the copy operation is stopped, a step of copying each piece of data that is determined to have a difference based on the second difference information from the secondary volume to the save volume before copying each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the stop period from the primary volume to the secondary volume, a step of subsequently copying each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the stop period from the primary volume to the secondary volume, and a step of subsequently resuming the copy operation.

本発明の一態様は、正ボリュームを備える第1ストレージと、前記第1ストレージに通信回線を介して接続され、前記正ボリュームとコピーペアに設定された副ボリュームを備える第2ストレージとを制御する際に、前記第1ストレージが、さらに、前記正ボリュームから前記副ボリュームへ順序性を保証してコピーされるデータを一時的に保持する第1記憶手段と、前記正ボリュームと前記副ボリュームについて所定の第1記憶領域毎にデータに差分があるか否かを表す第1差分情報を記憶する第2記憶手段とを備え、前記第2ストレージが、さらに、前記副ボリュームの全データをコピーして記憶する退避ボリュームと、前記副ボリュームと前記退避ボリュームについて、所定の第2記憶領域毎に、前記第1記憶手段を介した前記正ボリュームから前記副ボリュームへのデータの順序性を保証したコピー動作中に発生した差分があるか否かを表す第2差分情報を記憶する第3記憶手段とを備え、前記コピー動作が停止した場合、その停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データを前記正ボリュームから前記副ボリュームへコピーする前に、前記第2差分情報に基づいて差分があるとされた各データを前記副ボリュームから前記退避ボリュームへコピーするステップと、その後、前記停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データを前記正ボリュームから前記副ボリュームへコピーするステップと、その後、前記コピー動作を再開するステップとをコンピュータに実行させるプログラムである。 In one aspect of the present invention, when controlling a first storage having a primary volume and a second storage connected to the first storage via a communication line and having a secondary volume set as a copy pair with the primary volume, the first storage further comprises a first storage means for temporarily holding data copied from the primary volume to the secondary volume with guaranteed order, and a second storage means for storing first difference information indicating whether or not there is a difference in data for each predetermined first storage area for the primary volume and the secondary volume, and the second storage further comprises a save volume for copying and storing all data of the secondary volume, and a second storage means for storing first difference information indicating whether or not there is a difference in data for each predetermined second storage area for the secondary volume and the save volume from the primary volume via the first storage means. and a third storage means for storing second difference information indicating whether or not there is a difference that occurred during a copy operation that ensures the order of data to the secondary volume. When the copy operation is stopped, the program causes a computer to execute the steps of copying each piece of data that is determined to have a difference based on the second difference information from the secondary volume to the save volume before copying each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the stop period from the primary volume to the secondary volume, then copying each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the stop period from the primary volume to the secondary volume, and then resuming the copy operation.

本発明のストレージシステム、ストレージ、ストレージシステムの制御方法およびプログラムによれば、正ボリュームから副ボリュームへの順序性を保証したデータのコピー動作を、停止した後、再開する場合に、副ボリュームのデータを適切に退避させることができる。 The storage system, storage, storage system control method, and program of the present invention make it possible to appropriately evacuate data from the secondary volume when the operation of copying data from the primary volume to the secondary volume with guaranteed order is stopped and then resumed.

本発明の実施形態に係るストレージシステムの構成例を説明するためのブロック図である。1 is a block diagram illustrating an example of the configuration of a storage system according to an embodiment of the present invention. 本発明の実施形態で順序保証コピーのグループを設定する際の処理の例を示すフローチャートである。11 is a flowchart illustrating an example of processing when a group for order-guaranteed copying is set in the embodiment of the present invention. 本発明の実施形態における順序保証コピーのグループの設定例を示す模式図である。11 is a schematic diagram showing an example of group settings for order-guaranteed copying according to an embodiment of the present invention; FIG. 本発明の実施形態で順序保証コピーのボリュームを構築する際の動作例を示すフローチャートである。11 is a flowchart illustrating an example of an operation when a volume for order-guaranteed copying is constructed in the embodiment of the present invention. 本発明の実施形態で順序保証コピーのボリュームを構築する際のデータの流れの例を説明するための模式図である。1 is a schematic diagram illustrating an example of a data flow when a volume for order-guaranteed copying is constructed in an embodiment of the present invention; 本発明の実施形態で順序保証コピーのボリュームを構築する際の差分情報バッファの内容の例を説明するための模式図である。11 is a schematic diagram illustrating an example of the contents of a difference information buffer when a volume for order-guaranteed copying is constructed in an embodiment of the present invention. FIG. 本発明の実施形態で順序保証コピーの退避ボリュームを構築する際の動作例を示すフローチャートである。11 is a flowchart illustrating an example of an operation when constructing a save volume for order guarantee copying in an embodiment of the present invention. 本発明の実施形態で順序保証コピーの退避ボリュームを構築する際のデータの流れの例を説明するための模式図である。1 is a schematic diagram illustrating an example of a data flow when a save volume for order guarantee copying is constructed in an embodiment of the present invention; 本発明の実施形態で順序保証コピーの退避ボリュームを構築する際の差分情報バッファの内容の例を説明するための模式図である。11 is a schematic diagram illustrating an example of the contents of a difference information buffer when a save volume for order guarantee copying is constructed in an embodiment of the present invention. FIG. 本発明の実施形態における順序保証コピーの動作例を示すフローチャートである。11 is a flowchart illustrating an example of an operation of an order guarantee copy in an embodiment of the present invention. 本発明の実施形態に係る順序保証コピーの動作例におけるデータの流れの例を説明するための模式図である。FIG. 11 is a schematic diagram for explaining an example of data flow in an example of the operation of order guarantee copying according to an embodiment of the present invention; 本発明の実施形態における順序保証コピーを停止する際の動作例を示すフローチャートである。11 is a flowchart illustrating an example of an operation performed when stopping order guarantee copying according to an embodiment of the present invention. 本発明の実施形態における順序保証コピーを停止した状態でのホストからの書き込みの際の動作例を示すフローチャートである。11 is a flowchart showing an example of an operation performed when writing from a host in a state in which order guarantee copying is stopped in an embodiment of the present invention. 本発明の実施形態において順序保証コピーを停止した状態でのホストからの書き込みの際の動作例におけるデータの流れの例を説明するための模式図である。10 is a schematic diagram illustrating an example of data flow in an example of an operation performed when writing from a host in a state in which order guarantee copying is stopped in an embodiment of the present invention. FIG. 本発明の実施形態において順序保証コピーを停止した状態でのホストからの書き込みの際の動作例における差分情報バッファの内容の例を説明するための模式図である。13 is a schematic diagram illustrating an example of the contents of a difference information buffer in an example of an operation performed when writing from a host in a state in which order assurance copying is stopped in an embodiment of the present invention. FIG. 本発明の第1実施形態において順序保証コピーを再開する際の動作例を示すフローチャートである。10 is a flowchart illustrating an example of an operation when resuming order guarantee copying in the first embodiment of the present invention. 本発明の第1実施形態において順序保証コピーを再開する際の退避ボリュームへのコピー動作の例を示すフローチャートである。10 is a flowchart illustrating an example of a copy operation to a save volume when resuming order guarantee copying in the first embodiment of the present invention. 本発明の第1実施形態において順序保証コピーを再開する際の動作例におけるデータの流れの例を説明するための模式図である。10 is a schematic diagram illustrating an example of data flow in an operation example when resuming order assurance copying in the first embodiment of the present invention; FIG. 本発明の第1実施形態において順序保証コピーを再開する際の差分情報バッファの内容の例を説明するための模式図である。11 is a schematic diagram illustrating an example of the contents of a difference information buffer when resuming order assurance copying in the first embodiment of the present invention; FIG. 本発明の第1実施形態において順序保証コピーを再開する際の正ボリュームから副ボリュームへの差分コピーの動作例を示すフローチャートである。10 is a flowchart showing an example of an operation of differential copying from a primary volume to a secondary volume when order guarantee copying is resumed in the first embodiment of the present invention. 本発明の第1実施形態において順序保証コピーを再開する際の動作例におけるデータの流れの例を説明するための模式図である。10 is a schematic diagram illustrating an example of data flow in an operation example when resuming order assurance copying in the first embodiment of the present invention; FIG. 本発明の第1実施形態において順序保証コピーを再開する際の差分情報バッファの内容の例を説明するための模式図である。11 is a schematic diagram illustrating an example of the contents of a difference information buffer when resuming order assurance copying in the first embodiment of the present invention; FIG. 本発明の第2実施形態において順序保証コピーを再開する際の動作例を示すフローチャートである。13 is a flowchart illustrating an example of an operation when resuming order guarantee copying in the second embodiment of the present invention. 本発明の第2実施形態において順序保証コピーを再開する際の正ボリュームから副ボリュームへの差分コピーの動作例を示すフローチャートである。13 is a flowchart showing an example of an operation of differential copying from a primary volume to a secondary volume when order guarantee copying is resumed in the second embodiment of the present invention. 本発明の第3実施形態における順序保証コピーを停止する際の動作例を示すフローチャートである。13 is a flowchart illustrating an example of an operation performed when stopping an order guarantee copy in the third embodiment of the present invention. 本発明の実施形態に係る構成の最小構成例を示すブロック図である。FIG. 2 is a block diagram showing an example of a minimum configuration according to an embodiment of the present invention. 本発明の実施形態に係る動作の最小構成例を示すフローチャートである。10 is a flowchart illustrating an example of a minimum configuration of an operation according to an embodiment of the present invention. 少なくとも1つの実施形態に係るコンピュータの構成を示す概略ブロック図である。FIG. 1 is a schematic block diagram illustrating a configuration of a computer according to at least one embodiment.

以下、図面を参照して本発明の実施形態について説明する。なお、各図において同一または対応する構成には同一の符号を用いて説明を適宜省略する。 Hereinafter, an embodiment of the present invention will be described with reference to the drawings. Note that the same or corresponding components in each drawing will be designated by the same reference numerals and their explanations will be omitted as appropriate.

[第1実施形態]
(ストレージシステムの構成)
図1は、本発明の実施形態(第1実施形態、第2実施形態および第3実施形態)に係るストレージシステムの構成例を説明するためのブロック図である。図1に示すストレージシステム3は、メインサイト1に設置されたストレージ10とリモートサイト2に設置されたストレージ20とを備える。リモートサイト2は例えばディザスタリカバリを目的としてメインサイト1から離れた地域に配置されている。なお、以下では、「メインサイト1に設置されたストレージ10」を、単に「メインサイト1」ともいう。また、「リモートサイト2に設置されたストレージ20」を、単に「リモートサイト2」ともいう。メインサイト1とリモートサイト2は、LAN(Local Area Network)、WAN(Wide Area Network)等の遠隔回線(通信回線)50で接続されている。
[First embodiment]
(Storage System Configuration)
FIG. 1 is a block diagram for explaining an example of the configuration of a storage system according to the first, second and third embodiments of the present invention. The storage system 3 shown in FIG. 1 includes a storage 10 installed at a main site 1 and a storage 20 installed at a remote site 2. The remote site 2 is located in an area away from the main site 1 for the purpose of disaster recovery, for example. In the following, the "storage 10 installed at the main site 1" will also be simply referred to as the "main site 1". Furthermore, the "storage 20 installed at the remote site 2" will also be simply referred to as the "remote site 2". The main site 1 and the remote site 2 are connected by a remote line (communication line) 50 such as a LAN (Local Area Network) or a WAN (Wide Area Network).

ストレージ10はSAN(Storage Area Network)等の通信回線51を介してホストコンピュータ(以下、単に「ホスト」という)100に接続されている。ホスト100は、ストレージ10に対してデータの書き込み、および、データの読み出しを行うとともに、ストレージシステム3の動作条件等の設定等を行う。また、ストレージ20は通信回線52を介してホスト200に接続されている。ホスト200は、ストレージ20に対してデータの書き込み、および、データの読み出しを行うとともに、ストレージシステム3の動作条件等の設定等を行う。なお、ホスト100とホスト200は、ストレージシステム3に含まれていてもよいし、含まれてなくてもよい。また、ホスト200は省略してもよい。また、ホスト100とホスト200はそれぞれ複数であってもよい。以下では、ホスト100からストレージ10へのデータの書き込み動作を「I/O」(入力または出力)または「ホストI/O」という。また、書き込まれたデータを「I/Oデータ」ともいう。なお、I/Oデータは、例えば、ホスト100上で稼働するOS(Operating System)によって管理される。I/Oデータは、例えば、書き込み先のボリュームとボリューム内の格納領域とを指定して所定のブロック単位でストレージ10への書き込みが要求されるという形態で発行される。 The storage 10 is connected to a host computer (hereinafter simply referred to as "host") 100 via a communication line 51 such as a SAN (Storage Area Network). The host 100 writes data to the storage 10 and reads data, and also sets the operating conditions of the storage system 3. The storage 20 is connected to the host 200 via a communication line 52. The host 200 writes data to the storage 20 and reads data, and also sets the operating conditions of the storage system 3. The host 100 and the host 200 may or may not be included in the storage system 3. The host 200 may be omitted. There may be multiple hosts 100 and 200. In the following, the operation of writing data from the host 100 to the storage 10 is referred to as "I/O" (input or output) or "host I/O". The written data is also referred to as "I/O data". The I/O data is managed, for example, by an operating system (OS) running on the host 100. The I/O data is issued, for example, in the form of a request to write to the storage 10 in a specific block unit by specifying the destination volume and the storage area within the volume.

ストレージ10は、ストレージコントローラ(ストレージプロセッサ、アレイコントローラ等とも呼ばれる)SC1と、ストレージアレイ30とを備える。ストレージ20は、ストレージコントローラSC2と、ストレージアレイ40とを備える。ストレージアレイ30および40は、例えば複数のディスクドライブとコントローラとを備える。ストレージアレイ30および40には複数のボリュームが設定される。ボリュームは、ストレージ(外部記憶装置)におけるデータの管理上の単位であり、論理ボリュームとも呼ばれる。複数のボリュームはグループ分けすることができる。各グループ(ボリュームグループともいう)は複数のボリュームを含むことができる。同一グループに属するボリュームは、同一のタイミングでデータの整合性が保たれる。 Storage 10 comprises a storage controller (also called a storage processor, array controller, etc.) SC1 and a storage array 30. Storage 20 comprises a storage controller SC2 and a storage array 40. Storage arrays 30 and 40 each comprise, for example, a plurality of disk drives and a controller. A plurality of volumes are set in storage arrays 30 and 40. A volume is a unit of data management in storage (external storage device) and is also called a logical volume. The multiple volumes can be divided into groups. Each group (also called a volume group) can contain multiple volumes. Volumes belonging to the same group maintain data consistency at the same time.

本実施形態のストレージシステム3では、ホスト100が更新した正ボリュームのデータは、そのコピーが順序保証されてメインサイト1内のバッファ(メモリやディスク等の記憶領域)に格納される。また、メインサイト1内のバッファに格納されたデータは、別途ホストI/Oとは非同期にリモートサイト2のストレージ20へ転送される。そして、リモートサイト2のストレージ20上に更新順序が保証された副ボリュームが作成される。以下、正ボリュームで更新されたデータのコピーが、順序性を保証された状態で副ボリュームへ書き込まれる一連の動作を「順序保証コピー」あるいは「順序保証コピー動作」という。また、順序保証コピーによってコピーされるデータを順序保証データともいう。 In the storage system 3 of this embodiment, data of the primary volume updated by the host 100 is copied and stored in a buffer (storage area such as memory or disk) in the main site 1 with order guaranteed. The data stored in the buffer in the main site 1 is transferred to the storage 20 in the remote site 2 separately asynchronously with the host I/O. A secondary volume with the update order guaranteed is then created on the storage 20 in the remote site 2. Hereinafter, the series of operations in which a copy of data updated in the primary volume is written to the secondary volume with order guaranteed is referred to as "order guaranteed copy" or "order guaranteed copy operation". Data copied by order guaranteed copy is also referred to as order guaranteed data.

本実施形態では、一例として、ストレージアレイ30に正ボリューム18(以下、単に「ボリューム18」ともいう)が設定され、ストレージアレイ40に正ボリューム18のコピーペアとして副ボリューム28(以下、単に「ボリューム28」ともいう)が設定される。また、ストレージアレイ40には、副ボリューム28の全データをコピーして記憶する退避ボリューム29が設定される。また、「ボリューム18」と「ボリューム28」は「グループ3」に属すると設定される。以下、必要に応じて、正ボリューム18、副ボリューム28および退避ボリューム29を例示して構成および動作について説明する。 In this embodiment, as an example, a primary volume 18 (hereinafter also simply referred to as "volume 18") is set in the storage array 30, and a secondary volume 28 (hereinafter also simply referred to as "volume 28") is set in the storage array 40 as a copy pair of the primary volume 18. Also, a save volume 29 that copies and stores all data of the secondary volume 28 is set in the storage array 40. Also, "volume 18" and "volume 28" are set to belong to "group 3". Below, the configuration and operation will be explained using examples of the primary volume 18, secondary volume 28, and save volume 29 as necessary.

なお、ボリューム18、28および退避ボリューム29は、互いに対応する領域A(RA)、領域B(RB)、領域C(RC)、領域D(RD)、および、領域E(RE)を含んでいる。例えば、順序保証コピーの実行時には、ボリューム18の領域Dとボリューム28の領域Dに同一のデータが保持され、また、ボリューム28の領域Dと退避ボリューム29の領域Dに同一のデータが保持される。 Volumes 18, 28 and evacuation volume 29 each include a corresponding area A (RA), area B (RB), area C (RC), area D (RD), and area E (RE). For example, when performing an order-guaranteed copy, the same data is stored in area D of volume 18 and area D of volume 28, and the same data is stored in area D of volume 28 and area D of evacuation volume 29.

(ストレージコントローラの構成)
ストレージコントローラSC1は、コンピュータと、そのコンピュータの周辺回路や周辺装置等のハードウェアと、そのコンピュータが実行するプログラム等のソフトウェアとの組み合わせ等から構成される機能的構成として次の各部を備える。すなわち、ストレージコントローラSC1は、I/O処理部11、キャッシュメモリ12、順序保証処理部13、順序保証バッファ14、リモート送信処理部15、差分管理処理部16、および、差分情報バッファ17を備える。
(Storage Controller Configuration)
The storage controller SC1 has the following functional components, which are configured by a combination of a computer, hardware such as peripheral circuits and devices of the computer, and software such as programs executed by the computer: The storage controller SC1 has an I/O processing unit 11, a cache memory 12, an order assurance processing unit 13, an order assurance buffer 14, a remote transmission processing unit 15, a difference management processing unit 16, and a difference information buffer 17.

まず、順序保証バッファ14と差分情報バッファ17について説明する。順序保証バッファ14は、順序保証コピーのデータを格納するメモリやディスク等の記憶領域である。順序保証バッファ14には、順序保証コピーの実行時にホスト100から正ボリューム18に対して発行されたI/Oデータが関係データとともに順序保証処理部13によって格納される。ここで、関係データとは、例えば、更新された正ボリューム18の位置、タイムスタンプ、シーケンス番号等を表すデータを含む。なお、以下では順序保証バッファ14が格納したデータを順序保証バッファデータともいう。 First, the order assurance buffer 14 and the difference information buffer 17 will be described. The order assurance buffer 14 is a storage area such as a memory or a disk that stores data for order assurance copying. In the order assurance buffer 14, I/O data issued from the host 100 to the primary volume 18 when performing order assurance copying is stored together with relational data by the order assurance processing unit 13. Here, relational data includes data representing, for example, the position, timestamp, sequence number, etc. of the updated primary volume 18. Note that, hereinafter, the data stored in the order assurance buffer 14 is also referred to as order assurance buffer data.

差分情報バッファ17は差分情報を格納するメモリやディスク等の記憶領域である。差分情報バッファ17は、メインサイト1で、ボリューム18とリモートサイト2のボリューム28との差分管理用として用いられる。差分情報バッファ17は、例えば図6に示すように、ボリューム18の各領域A(RA)、B(RB)、C(RC)、D(RD)、E(RE)、…について、ボリューム28の各領域A(RA)、B(RB)、C(RC)、D(RD)、E(RE)、…とデータが一致している場合には「差分なし」とのデータを保持し、一致していない場合には「差分あり」とのデータを保持する。なお、図6は、本発明の実施形態で順序保証コピーのボリュームを構築する際の差分情報バッファ(差分情報バッファ17および27)の内容の例を説明するための模式図である。また、差分情報バッファ17の内容は差分管理処理部16によって更新される。また、差分情報バッファ17には有効または無効の設定があり、差分管理処理部16によって設定され、無効の場合には内容の更新は行われない。 The difference information buffer 17 is a storage area such as a memory or a disk that stores difference information. The difference information buffer 17 is used at the main site 1 for managing the difference between the volume 18 and the volume 28 at the remote site 2. As shown in FIG. 6, for each area A (RA), B (RB), C (RC), D (RD), E (RE), ... of the volume 18, the difference information buffer 17 holds data "no difference" when the data matches with each area A (RA), B (RB), C (RC), D (RD), E (RE), ... of the volume 28, and holds data "difference" when they do not match. Note that FIG. 6 is a schematic diagram for explaining an example of the contents of the difference information buffer (difference information buffers 17 and 27) when constructing a volume for order-guaranteed copying in an embodiment of the present invention. The contents of the difference information buffer 17 are updated by the difference management processing unit 16. The difference information buffer 17 has a setting of valid or invalid, which is set by the difference management processing unit 16, and if invalid, the contents are not updated.

次に、I/O処理部11は、ホスト100からのI/Oデータを受信して処理する。I/O処理部11は、例えば、ホスト100から書き込まれたI/Oデータをキャッシュメモリ12に受信し、順序保証処理部13を呼ぶ。これに対し、順序保証処理部13は、後述するように順序保証バッファ14にデータをコピーし、I/O処理部11に終了を報告する。また、I/O処理部11は、順序保証処理部13から順序保証バッファ14へのデータのコピーの終了報告を受けた場合、差分管理処理部16を呼び、差分管理処理部16によって差分情報バッファ17に差分ありを設定する。また、I/O処理部11は、順序保証処理部13から順序保証バッファ14へのI/Oデータのコピーの終了報告を受けた場合、ホスト100に終了を報告する。また、I/O処理部11は、なお、キャッシュメモリ12に書き込まれたI/OデータをホストI/Oとは非同期にボリューム18に書き込む。 Next, the I/O processing unit 11 receives and processes I/O data from the host 100. For example, the I/O processing unit 11 receives I/O data written from the host 100 in the cache memory 12 and calls the order assurance processing unit 13. In response to this, the order assurance processing unit 13 copies the data to the order assurance buffer 14 as described below, and reports the completion to the I/O processing unit 11. Furthermore, when the I/O processing unit 11 receives a report from the order assurance processing unit 13 that the data has been copied to the order assurance buffer 14, it calls the difference management processing unit 16, and the difference management processing unit 16 sets the difference information buffer 17 to indicate that there is a difference. Furthermore, when the I/O processing unit 11 receives a report from the order assurance processing unit 13 that the I/O data has been copied to the order assurance buffer 14, it reports the completion to the host 100. Furthermore, the I/O processing unit 11 writes the I/O data written to the cache memory 12 to the volume 18 asynchronously with the host I/O.

キャッシュメモリ12は、メモリやディスク等の記憶領域である。 Cache memory 12 is a storage area such as a memory or disk.

順序保証処理部13は、I/Oの順序を処理する。順序保証処理部13は、例えばホスト100からの指示に基づき、順序保証コピーのグループを構築する。順序保証処理部13は、例えば、ボリューム18、28および退避ボリューム29の設定、順序保証バッファ14および24の設定、差分情報バッファ17および27の設定等を行う。また、順序保証処理部13は、順序保証コピーを再開した場合に、リモートサイト2の差分管理処理部26にボリューム28のデータの退避ボリューム29へのコピーを指示する。また、順序保証処理部13は、I/O処理部11からの呼び出しに応じて、キャッシュメモリ12に格納されているI/Oデータを順序保証バッファ14にコピーし、I/O処理部11に終了を報告する。また、順序保証コピーの実行時に、順序保証処理部13は、順序保証バッファ14のI/Oデータのリモートサイト2への転送をリモート送信処理部15に対して指示する。また、順序保証コピーを停止した場合、順序保証処理部13は順序保証バッファ14へのI/Oデータのコピーを停止する。 The order assurance processing unit 13 processes the order of I/O. The order assurance processing unit 13 constructs a group of order assurance copies based on, for example, instructions from the host 100. The order assurance processing unit 13 performs, for example, setting of volumes 18, 28 and evacuation volume 29, setting of order assurance buffers 14 and 24, setting of difference information buffers 17 and 27, etc. When the order assurance processing unit 13 resumes the order assurance copy, it instructs the difference management processing unit 26 of the remote site 2 to copy the data of volume 28 to the evacuation volume 29. In addition, in response to a call from the I/O processing unit 11, the order assurance processing unit 13 copies the I/O data stored in the cache memory 12 to the order assurance buffer 14 and reports the completion to the I/O processing unit 11. In addition, when the order assurance copy is executed, the order assurance processing unit 13 instructs the remote transmission processing unit 15 to transfer the I/O data in the order assurance buffer 14 to the remote site 2. In addition, when the order assurance copy is stopped, the order assurance processing unit 13 stops copying I/O data to the order assurance buffer 14.

リモート送信処理部15は、順序保証処理部13または差分管理処理部16からの指示に応じて、順序保証バッファ14のコピーおよび差分コピーをリモートサイト2に送信する処理を行う。ここで、順序保証バッファ14のコピーは、順序保証バッファ14に格納されている順序保証バッファデータを複製したデータである。また、差分コピーは、順序保証コピー再開時に差分情報バッファ17の内容に基づいて(「差分あり」の場合に)正ボリューム18のデータを複製したデータである。 The remote transmission processing unit 15 performs processing to transmit a copy of the order assurance buffer 14 and a differential copy to the remote site 2 in response to instructions from the order assurance processing unit 13 or the differential management processing unit 16. Here, the copy of the order assurance buffer 14 is data obtained by duplicating the order assurance buffer data stored in the order assurance buffer 14. In addition, the differential copy is data obtained by duplicating the data of the primary volume 18 based on the contents of the differential information buffer 17 (if "differences exist") when the order assurance copy is resumed.

差分管理処理部16は、差分コピーを実施する。差分管理処理部16は、差分情報バッファ17の有効または無効の設定と、差分情報バッファ17の内容(「差分あり」または「差分なし」)の設定とを管理する。正ボリューム18のコピーペアである副ボリューム28の構築時に、差分管理処理部16は、ボリューム18の全データをボリューム28へコピーするため、ボリューム18の全データをリモート送信処理部15からリモートサイト2に転送する。また、順序保証コピーの再開時には、差分管理処理部16は、差分情報バッファ17の内容に基づき、ボリューム18のデータの差分コピーをリモート送信処理部15からリモートサイト2に転送する。 The differential management processing unit 16 performs differential copying. The differential management processing unit 16 manages the setting of the differential information buffer 17 as enabled or disabled, and the setting of the contents of the differential information buffer 17 ("with difference" or "without difference"). When constructing the secondary volume 28, which is a copy pair of the primary volume 18, the differential management processing unit 16 transfers all data of volume 18 from the remote transmission processing unit 15 to the remote site 2 in order to copy all data of volume 18 to volume 28. In addition, when resuming the order-guaranteed copy, the differential management processing unit 16 transfers a differential copy of the data of volume 18 from the remote transmission processing unit 15 to the remote site 2 based on the contents of the differential information buffer 17.

ストレージコントローラSC2は、コンピュータと、そのコンピュータの周辺回路や周辺装置等のハードウェアと、そのコンピュータが実行するプログラム等のソフトウェアとの組み合わせ等から構成される機能的構成として次の各部を備える。すなわち、ストレージコントローラSC2は、I/O処理部21、キャッシュメモリ22、順序保証処理部23、順序保証バッファ24、リモート受信処理部25、差分管理処理部26、および、差分情報バッファ27を備える。 The storage controller SC2 has the following functional components, which are made up of a combination of hardware such as a computer, peripheral circuits and devices of the computer, and software such as programs executed by the computer. That is, the storage controller SC2 has an I/O processing unit 21, a cache memory 22, an order assurance processing unit 23, an order assurance buffer 24, a remote reception processing unit 25, a difference management processing unit 26, and a difference information buffer 27.

まず、順序保証バッファ24と差分情報バッファ27について説明する。順序保証バッファ24は、順序保証データを格納するメモリやディスク等の記憶領域である。順序保証バッファ24には、順序保証コピーの実行時にメインサイト1から受信した順序保証バッファデータが関係データとともに順序保証処理部23によって格納される。 First, the order assurance buffer 24 and the difference information buffer 27 will be described. The order assurance buffer 24 is a storage area such as a memory or a disk that stores order assurance data. In the order assurance buffer 24, the order assurance processing unit 23 stores the order assurance buffer data received from the main site 1 when performing order assurance copying, together with related data.

差分情報バッファ27は、差分情報を格納するメモリやディスク等の記憶領域である。差分情報バッファ27は、リモートサイト2で、ボリューム28と退避ボリューム29との差分管理用として用いられる。差分情報バッファ27は、例えば図6に示すように、ボリューム28の各領域A(RA)、B(RB)、C(RC)、D(RD)、E(RE)、…について、ボリューム29の各領域A(RA)、B(RB)、C(RC)、D(RD)、E(RE)、…とデータが一致している場合には「差分なし」とのデータを保持し、一致していない場合には「差分あり」とのデータを保持する。また、差分情報バッファ27の内容は差分管理処理部26によって更新される。なお、この例では、差分情報バッファ27と差分情報バッファ17で差分のありなしを管理する領域の大きさを同一としているが、領域の大きさは異なっていてもよい。例えば、差分情報バッファ27では、差分情報バッファ17が管理する領域A(RA)とB(RB)の2つの領域をまとめて1つの領域として差分のありなしを管理してもよい。 The differential information buffer 27 is a storage area such as a memory or a disk that stores differential information. The differential information buffer 27 is used at the remote site 2 for managing the differences between the volume 28 and the backup volume 29. As shown in FIG. 6, for each area A (RA), B (RB), C (RC), D (RD), E (RE), ... of the volume 28, the differential information buffer 27 holds data of "no difference" when the data matches with each area A (RA), B (RB), C (RC), D (RD), E (RE), ... of the volume 29, and holds data of "difference" when the data does not match. The contents of the differential information buffer 27 are updated by the differential management processing unit 26. In this example, the size of the area for managing the presence or absence of differences in the differential information buffer 27 and the differential information buffer 17 is the same, but the size of the area may be different. For example, the difference information buffer 27 may combine the two areas A (RA) and B (RB) managed by the difference information buffer 17 into a single area to manage whether or not there is a difference.

I/O処理部21は受信したI/Oを処理する。リモート受信処理部25がデータを受信した場合、I/O処理部21は、リモート受信処理部25に呼び出され、順序保証処理部23を呼んで順序保証バッファ24にデータを受信させる。また、リモート受信処理部25がデータを受信した場合、I/O処理部21は、リモート受信処理部25に呼び出され、差分管理処理部26を呼んで差分情報バッファ27に差分ありを設定することを指示する。また、I/O処理部21は、順序保証処理部23から順序保証バッファ24へのデータの受信が終了したという報告を受けた場合リモート受信処理部25に終了を報告する。 The I/O processing unit 21 processes the received I/O. When the remote reception processing unit 25 receives data, the I/O processing unit 21 is called by the remote reception processing unit 25, and calls the order assurance processing unit 23 to have the order assurance buffer 24 receive the data. Also, when the remote reception processing unit 25 receives data, the I/O processing unit 21 is called by the remote reception processing unit 25, and calls the difference management processing unit 26 to instruct it to set the difference information buffer 27 to indicate that there is a difference. Also, when the I/O processing unit 21 receives a report from the order assurance processing unit 23 that the reception of data to the order assurance buffer 24 has been completed, it reports the completion to the remote reception processing unit 25.

キャッシュメモリ22はデータを保存するメモリやディスク等の記憶領域である。キャッシュメモリ22は例えばホスト200が送信したI/Oデータを一時的に保持する。 The cache memory 22 is a storage area such as a memory or disk that stores data. The cache memory 22 temporarily holds I/O data sent by the host 200, for example.

順序保証処理部23はメインサイト1から受信した順序保証バッファデータを処理する。リモート受信処理部25がデータを受信した場合、順序保証処理部23は、I/O処理部21に呼び出され、順序保証バッファ24にデータを受信し、I/O処理部21に終了を報告する。また、リモート受信処理部25がデータを受信した場合、順序保証処理部23は、I/O処理部21に呼び出され、差分管理処理部26呼び、差分情報バッファ27に差分ありを設定させる。また、順序保証処理部23はボリューム28に順序保証バッファ24のデータをコピーする。 The order assurance processing unit 23 processes the order assurance buffer data received from the main site 1. When the remote reception processing unit 25 receives data, the order assurance processing unit 23 is called by the I/O processing unit 21, receives the data into the order assurance buffer 24, and reports completion to the I/O processing unit 21. Also, when the remote reception processing unit 25 receives data, the order assurance processing unit 23 is called by the I/O processing unit 21, calls the difference management processing unit 26, and sets the difference information buffer 27 to indicate that there is a difference. Also, the order assurance processing unit 23 copies the data in the order assurance buffer 24 to the volume 28.

順序保証バッファ24は受信した順序保証データを格納するメモリやディスク等の記憶領域である。 The order assurance buffer 24 is a storage area such as a memory or disk that stores the received order assurance data.

リモート受信処理部25はメインサイト1からの順序保証バッファ14のコピーおよびボリューム18からの差分コピーを受信する。リモート受信処理部25はデータを受信するとI/O処理部21を呼ぶ。また、リモート受信処理部25は、I/O処理部21から終了を報告されると、リモート受信処理部25はメインサイト1のリモート送信処理部15に終了を報告する。 The remote reception processing unit 25 receives a copy of the in-order guarantee buffer 14 from the main site 1 and a differential copy from the volume 18. When the remote reception processing unit 25 receives the data, it calls the I/O processing unit 21. When the I/O processing unit 21 reports completion to the remote reception processing unit 25, the remote reception processing unit 25 reports completion to the remote transmission processing unit 15 at the main site 1.

差分管理処理部26は差分コピーを実施する。また、差分管理処理部26は差分情報バッファ27の内容を更新する。また、差分管理処理部26は、ボリューム構築時に、順序保証処理部13からの指示に応じて、ボリューム28のデータを退避ボリューム29へコピーする。また、差分管理処理部26は、順序保証コピー動作時に設定された差分情報バッファ27の差分ありの領域に対して、ボリューム28から退避ボリューム29へデータのコピーを実施する。 The difference management processing unit 26 performs differential copying. The difference management processing unit 26 also updates the contents of the difference information buffer 27. The difference management processing unit 26 also copies data from the volume 28 to the evacuation volume 29 in response to instructions from the order assurance processing unit 13 when constructing a volume. The difference management processing unit 26 also copies data from the volume 28 to the evacuation volume 29 for the area with differences in the difference information buffer 27 that was set during the order assurance copying operation.

(ストレージシステムの動作例)
次に図1に示すストレージシステム3の動作例について説明する。なお、この動作例の説明では、動作およびデータの流れとして次の例を用いる。すなわち、ボリューム18の領域D(RD)にデータD0が記憶されている状態を初期状態とする。次に、順序保証コピーのコピーペアを構築する。次に、順序保証コピーを実行中にホスト100からボリューム18の領域D(RD)にデータD1が書き込まれる。次に順序保証コピーの動作を停止する。次に、順序保証コピーの停止中にホスト100からボリューム18の領域D(RD)にデータD2が書き込まれる。その後、順序保証コピーを再開する処理を行う。
(Example of storage system operation)
Next, an example of the operation of the storage system 3 shown in FIG. 1 will be described. In the description of this example of the operation, the following example is used as the flow of operations and data. That is, the initial state is a state in which data D0 is stored in area D (RD) of volume 18. Next, a copy pair for order-guaranteed copying is constructed. Next, data D1 is written from the host 100 to area D (RD) of volume 18 while order-guaranteed copying is being performed. Next, the operation of order-guaranteed copying is stopped. Next, data D2 is written from the host 100 to area D (RD) of volume 18 while order-guaranteed copying is stopped. After that, a process for resuming order-guaranteed copying is performed.

(順序保証コピーのグループの構築)
まず、図2を参照して、順序保証処理部13が、順序保証コピーのグループを構築する手順について説明する。なお、本実施形態では、1つのグループにペアを1つ設定しているが、2つ以上あってもよい。図2は、本発明の実施形態で順序保証コピーのグループを設定する際の処理の例を示すフローチャートである。図2に示す処理は、例えばホスト100とメインサイト1間で所定のユーザインタフェースを用いたやりとりに応じて実行される。
(Building a group of ordered copies)
First, the procedure by which the order assurance processing unit 13 constructs a group for order assurance copying will be described with reference to Fig. 2. Note that in this embodiment, one pair is set in one group, but two or more pairs may be set. Fig. 2 is a flowchart showing an example of processing when a group for order assurance copying is set in an embodiment of the present invention. The processing shown in Fig. 2 is executed, for example, in response to an exchange between the host 100 and the main site 1 using a specified user interface.

図2に示す処理では、まず、メインサイト1で順序保証バッファ14を「グループ3」に設定する(ステップS101)。次にリモートサイト2で順序保証バッファ24を「グループ3」に設定する(ステップS102)。次にメインサイト1のボリューム18とリモートサイト2のボリューム28をペア(コピーペア)として設定する(ステップS103)。次にメインサイト1でボリューム18とリモートサイト2のボリューム28の差分管理用として、差分情報バッファ17を設定する(ステップS104)。次にボリューム18とボリューム28を「グループ3」として設定する(ステップS105)。次にボリューム28に退避ボリューム29を設定する(ステップS106)。次にリモートサイト2でボリューム28と退避ボリューム29の差分管理用として、差分情報バッファ27を設定する(ステップS107)。次にメインサイト1の差分管理処理部16に構築時のボリューム18のデータコピーを指示する(ステップS108)。次にリモートサイト2の差分管理処理部26に構築時のボリューム28のデータコピーを指示する(ステップS109)。 In the process shown in FIG. 2, first, the order assurance buffer 14 is set to "group 3" at the main site 1 (step S101). Next, the order assurance buffer 24 is set to "group 3" at the remote site 2 (step S102). Next, the volume 18 at the main site 1 and the volume 28 at the remote site 2 are set as a pair (copy pair) (step S103). Next, the difference information buffer 17 is set at the main site 1 for difference management between the volume 18 and the volume 28 at the remote site 2 (step S104). Next, the volumes 18 and 28 are set as "group 3" (step S105). Next, the save volume 29 is set in the volume 28 (step S106). Next, the difference information buffer 27 is set at the remote site 2 for difference management between the volume 28 and the save volume 29 (step S107). Next, the difference management processing unit 16 at the main site 1 is instructed to copy data of the volume 18 at the time of construction (step S108). Next, the differential management processing unit 26 at the remote site 2 is instructed to copy the data of the volume 28 during construction (step S109).

ステップS101からステップS109までの処理が実施されると、「グループ3」の設定状況は図3に示すようになる。図3は本発明の実施形態における順序保証コピーのグループの設定例を示す模式図である。メインサイト1ではボリューム18と順序保証バッファ14と差分情報バッファ17が「グループ3」に設定される。リモートサイト2ではボリューム28と退避ボリューム29と順序保証バッファ24と差分情報バッファ27が「グループ3」に設定される。 When the processes from step S101 to step S109 have been carried out, the setting status of "group 3" will be as shown in FIG. 3. FIG. 3 is a schematic diagram showing an example of group settings for order-guaranteed copying in an embodiment of the present invention. At the main site 1, volume 18, order-guaranteed buffer 14, and difference information buffer 17 are set to "group 3". At the remote site 2, volume 28, evacuation volume 29, order-guaranteed buffer 24, and difference information buffer 27 are set to "group 3".

(順序保証コピーのグループ構築時のボリュームのデータのコピー)
次に図4を参照してメインサイト1のグループ構築時に図2のステップS108でボリュームのデータコピー指示を受けた差分管理処理部16の動作とリモートサイト2の受信動作について説明する。図4は本発明の実施形態で順序保証コピーのボリュームを構築する際の動作例を示すフローチャートである。グループ構築時のボリュームのデータコピー指示は例えばホスト100の操作に基づいて発せられる。なお、データをコピーする前は、差分情報バッファ17の各領域の内容は差分ありに設定されていて、差分情報バッファ27の各領域の内容は差分なしに設定されている。
(Copying volume data when constructing a group for order-guaranteed copying)
Next, the operation of the difference management processing unit 16 that receives a volume data copy instruction in step S108 of Fig. 2 when a group is constructed at the main site 1, and the receiving operation at the remote site 2 will be described with reference to Fig. 4. Fig. 4 is a flowchart showing an example of the operation when constructing a volume for order-guaranteed copying in an embodiment of the present invention. The volume data copy instruction when constructing a group is issued based on, for example, the operation of the host 100. Note that before data is copied, the contents of each area of the difference information buffer 17 are set to have differences, and the contents of each area of the difference information buffer 27 are set to have no differences.

図4に示す処理では、まず、メインサイト1の差分管理処理部16が、ボリューム18の領域DのデータD0をリモート送信処理部15からリモートサイト2に転送する(ステップS201)。リモートサイト2のリモート受信処理部25はデータD0を受信し、I/O処理部21を呼ぶ(ステップS202)。次にリモートサイト2のI/O処理部21は差分管理処理部26に指示し、差分管理処理部26は差分情報バッファ27のボリューム28の領域Dに差分ありを設定する(ステップS203)。次にリモートサイト2のI/O処理部21は、メインサイト1から受信したデータD0をボリューム28にコピーし、メインサイト1に終了を報告する(ステップS204)。メインサイト1の差分管理処理部16は、差分情報バッファ17のボリューム18の領域Dに差分なしを設定する(ステップS205)。 In the process shown in FIG. 4, first, the differential management processing unit 16 of the main site 1 transfers data D0 in area D of volume 18 from the remote transmission processing unit 15 to the remote site 2 (step S201). The remote reception processing unit 25 of the remote site 2 receives the data D0 and calls the I/O processing unit 21 (step S202). Next, the I/O processing unit 21 of the remote site 2 instructs the differential management processing unit 26, which sets area D of volume 28 in the differential information buffer 27 to indicate that there is a difference (step S203). Next, the I/O processing unit 21 of the remote site 2 copies data D0 received from the main site 1 to volume 28 and reports completion to the main site 1 (step S204). The differential management processing unit 16 of the main site 1 sets area D of volume 18 in the differential information buffer 17 to indicate that there is no difference (step S205).

メインサイト1のボリューム18の全体のコピーが完了するまでステップS201からステップ205までの処理が繰り返し実行される(ステップS201~S205とステップS206でいいえの繰り返し)。全体のコピーが完了すると差分管理処理部16は呼び元の順序保証処理部13に終了を報告する。 The processes from step S201 to step S205 are repeated until the entire copy of volume 18 at main site 1 is completed (repeated steps S201 to S205 and step S206: No). When the entire copy is completed, the differential management processing unit 16 reports the completion to the calling order assurance processing unit 13.

なお、「グループ3」に2つ以上のペアが設定されている場合は、ステップS201~S206を繰り返して、「グループ3」のすべてのペアに対してコピーを実施する。構築時のコピーが終了すると、ボリューム18とボリューム28のデータは一致した状態となる。領域D(RD)でみるとボリューム18とボリューム28はデータD0となる(図5)。また、差分情報バッファ17は差分なしとなり、差分情報バッファ27は差分ありとなる(図6)。なお、図5は、本発明の実施形態で順序保証コピーのボリュームを構築する際のデータの流れの例を説明するための模式図である。 If two or more pairs are set in "group 3", steps S201 to S206 are repeated to perform copying for all pairs in "group 3". When the copying during construction is completed, the data in volumes 18 and 28 will match. When viewed from area D (RD), volumes 18 and 28 will be data D0 (Figure 5). Furthermore, difference information buffer 17 will show no differences, and difference information buffer 27 will show differences (Figure 6). Figure 5 is a schematic diagram for explaining an example of the data flow when constructing a volume for order-guaranteed copying in an embodiment of the present invention.

(グループ構築時のボリューム28のデータコピー指示を受けた差分管理処理部26の動作)
次に図7を参照して、リモートサイト2のグループ構築時に図2のステップS109でボリューム28のデータコピー指示を受けた差分管理処理部26の動作について説明する。図7は本発明の実施形態で順序保証コピーの退避ボリュームを構築する際の動作例を示すフローチャートである。
(Operation of the difference management processing unit 26 that receives an instruction to copy data of the volume 28 when constructing a group)
7, the operation of the differential management processing unit 26 that receives an instruction to copy data of the volume 28 in step S109 of Fig. 2 when constructing a group at the remote site 2 will be described. Fig. 7 is a flowchart showing an example of the operation when constructing a save volume for order guarantee copying in an embodiment of the present invention.

図7に示す処理では、まず、差分管理処理部26が、ボリューム28の領域D(RD)のデータD0を退避ボリューム29の領域D(RD)へコピーする(ステップS301)。次に差分管理処理部26は、差分バッファ27の領域D(RD)に差分なしを設定する(ステップS302)。差分管理処理部26は、ボリューム全体のコピーが完了するまでステップS301~S303を繰り返す(ステップS301~S302とステップS303でいいえの繰り返し)。全体のコピーが完了すると差分管理処理部26は、呼び元の順序保証処理部13に終了を報告する。 In the process shown in FIG. 7, first, the difference management processing unit 26 copies data D0 in area D (RD) of volume 28 to area D (RD) of the save volume 29 (step S301). Next, the difference management processing unit 26 sets area D (RD) of the difference buffer 27 to no difference (step S302). The difference management processing unit 26 repeats steps S301 to S303 until copying of the entire volume is complete (repeating steps S301 to S302 and No in step S303). When copying of the entire volume is complete, the difference management processing unit 26 reports completion to the calling order assurance processing unit 13.

なお、「グループ3」に2つ以上のペアが設定されている場合は、ステップS301~S303を繰り返して、「グループ3」のすべてのペアに対してコピーを実施する。 If two or more pairs are set in "Group 3," steps S301 to S303 are repeated to perform copying for all pairs in "Group 3."

リモートサイト2のボリューム28から退避ボリューム29へのコピーが終了すると、ボリューム28と退避ボリュームのデータは一致した状態となる。領域D(RD)でみるとボリューム28と退避ボリューム29はデータD0となる(図8)。また、差分情報バッファ28は差分なしとなる(図9)。なお、図8は本発明の実施形態で順序保証コピーの退避ボリューム29を構築する際のデータの流れの例を説明するための模式図である。図9は本発明の実施形態で順序保証コピーの退避ボリューム29を構築する際の差分情報バッファ27の内容の例を説明するための模式図である。 When copying from volume 28 at remote site 2 to save volume 29 is complete, the data in volume 28 and the save volume will be consistent. When viewed from area D (RD), volume 28 and save volume 29 will be data D0 (Figure 8). Furthermore, the difference information buffer 28 will have no differences (Figure 9). Note that Figure 8 is a schematic diagram for explaining an example of the data flow when constructing a save volume 29 for order-guaranteed copying in an embodiment of the present invention. Figure 9 is a schematic diagram for explaining an example of the contents of the difference information buffer 27 when constructing a save volume 29 for order-guaranteed copying in an embodiment of the present invention.

(順序保証コピー動作)
次に、図10を参照して、ホスト100からボリューム18への書き込みが実施された場合の順序保証コピー動作を説明する。図10は本発明の実施形態における順序保証コピーの動作例を示すフローチャートである。
(Order-guaranteed copy operation)
Next, an order guarantee copy operation when a write is performed from the host 100 to the volume 18 will be described with reference to Fig. 10. Fig. 10 is a flowchart showing an example of the order guarantee copy operation in the embodiment of the present invention.

図10に示す処理では、I/O処理部11はホスト100から書き込まれたデータD1をキャッシュメモリ12に受信し、順序保証処理部13を呼ぶ(ステップS401)。次に順序保証処理部13は、順序保証バッファ14にデータD1をコピーし、I/O処理部11に終了を報告する(ステップS402)。次にI/O処理部11はホスト100に終了を報告する(ステップS403)。なお、キャッシュメモリ12に書き込まれたデータD1は非同期にボリューム18に書き込まれる。 In the process shown in FIG. 10, the I/O processing unit 11 receives data D1 written from the host 100 into the cache memory 12 and calls the order assurance processing unit 13 (step S401). Next, the order assurance processing unit 13 copies data D1 to the order assurance buffer 14 and reports completion to the I/O processing unit 11 (step S402). Next, the I/O processing unit 11 reports completion to the host 100 (step S403). Note that the data D1 written to the cache memory 12 is written asynchronously to the volume 18.

次に順序保証処理部13はリモート送信処理部15に順序保証バッファ14のデータD1のリモートサイト2への転送を指示する。また、リモート送信処理部15はリモートサイト2にデータを転送する(ステップS404)。 Next, the order assurance processing unit 13 instructs the remote transmission processing unit 15 to transfer data D1 in the order assurance buffer 14 to the remote site 2. The remote transmission processing unit 15 also transfers the data to the remote site 2 (step S404).

一方、リモートサイト2のリモート受信処理部25はI/O処理部21を呼び、I/O処理部21は順序保証処理部23を呼ぶ(ステップS405)。次に順序保証処理部23は順序保証バッファ24にデータD1を受信し、I/O処理部21に終了を報告する(ステップS406)。次にI/O処理部21はリモート受信処理部25に終了を報告し、リモート受信処理部25はメインサイト1のリモート送信処理部15に終了を報告する(ステップS407)。 Meanwhile, the remote receiving processor 25 at the remote site 2 calls the I/O processor 21, which then calls the order assurance processor 23 (step S405). The order assurance processor 23 then receives the data D1 into the order assurance buffer 24 and reports completion to the I/O processor 21 (step S406). The I/O processor 21 then reports completion to the remote receiving processor 25, which then reports completion to the remote sending processor 15 at the main site 1 (step S407).

次に順序保証処理部23は差分管理処理部26呼び、差分管理処理部26は差分情報バッファ27(この例では差分情報バッファ27のボリューム28の領域D(RD)に対応する格納領域)に差分ありを設定する(ステップS408)。 Next, the order assurance processing unit 23 calls the difference management processing unit 26, which sets the presence of a difference in the difference information buffer 27 (in this example, the storage area of the difference information buffer 27 corresponding to area D (RD) of volume 28) (step S408).

その後、順序保証処理部23はボリューム28の領域D(RD)にデータD1をコピーする(ステップS409)。 Then, the order assurance processing unit 23 copies the data D1 to area D (RD) of the volume 28 (step S409).

順序保証コピーが実施されると、ボリューム18とボリューム28の領域D(RD)はデータD1と同じ状態となり、退避ボリューム29の領域D(RD)へはコピーされていないのでデータD0のままとなる(図11)。図11は、本発明の実施形態に係る順序保証コピーの動作例におけるデータの流れの例を説明するための模式図である。 When the order-guaranteed copy is performed, the area D (RD) of volume 18 and volume 28 will be in the same state as data D1, and data will remain as D0 because it has not been copied to the area D (RD) of the evacuation volume 29 (Figure 11). Figure 11 is a schematic diagram for explaining an example of data flow in an example of the operation of order-guaranteed copy according to an embodiment of the present invention.

(順序保証コピーの停止)
次に、図12を参照して順序保証コピーを停止する場合について説明する。順序保証コピー動作は、例えば、順序保証バッファ14があふれそうになった場合に停止される。図12は本発明の実施形態における順序保証コピーを停止する際の動作例を示すフローチャートである。図12に示す処理では、まず、メインサイト1の順序保証処理部13が順序保証バッファ14へのコピーを停止する(ステップS501)。次に差分管理処理部16は差分情報バッファ17を有効にする(ステップS502)。
(Stopping sequence-guaranteed copying)
Next, a case where order guarantee copying is stopped will be described with reference to Fig. 12. The order guarantee copying operation is stopped, for example, when the order guarantee buffer 14 is about to overflow. Fig. 12 is a flowchart showing an example of the operation when order guarantee copying is stopped in an embodiment of the present invention. In the process shown in Fig. 12, first, the order guarantee processing unit 13 of the main site 1 stops copying to the order guarantee buffer 14 (step S501). Next, the difference management processing unit 16 enables the difference information buffer 17 (step S502).

(順序保証コピーを停止状態でのホスト100からボリューム18への書き込み)
次に、図13を参照して、順序保証コピーの停止状態でホスト100からボリューム18への書き込みが実施された場合について説明する。図13は本発明の実施形態における順序保証コピーを停止した状態でのホスト100からの書き込みの際の動作例を示すフローチャートである。
(Writing from the host 100 to the volume 18 while the order-guaranteed copy is stopped)
Next, a case where writing is performed from the host 100 to the volume 18 while order guarantee copying is stopped will be described with reference to Fig. 13. Fig. 13 is a flowchart showing an example of the operation when writing from the host 100 while order guarantee copying is stopped in an embodiment of the present invention.

図13に示す処理では、まず、I/O処理部11が、ホスト100から書き込まれたデータD2をキャッシュメモリ12に受信する(ステップS601)。次にI/O処理部11は差分管理処理部16を呼び(ステップS602)、差分管理処理部16は差分情報バッファ17のボリューム18の領域D(RD)に差分ありを設定し、I/O処理部11に終了を報告する(ステップS603)。 In the process shown in FIG. 13, first, the I/O processing unit 11 receives data D2 written from the host 100 into the cache memory 12 (step S601). Next, the I/O processing unit 11 calls the difference management processing unit 16 (step S602), and the difference management processing unit 16 sets the area D (RD) of the volume 18 in the difference information buffer 17 to indicate that there is a difference, and reports completion to the I/O processing unit 11 (step S603).

次にI/O処理部11は、ホスト100に終了を報告する(ステップS604)。なお、キャッシュメモリ12に書き込まれたデータD2は非同期にボリューム18に書き込まれる。この場合、データD2は、ボリューム18には書き込まれるが、順序保証バッファ14には格納されず、差分情報バッファ17のボリューム18の領域Dに対応する格納領域に差分ありが記録される。 The I/O processing unit 11 then reports completion to the host 100 (step S604). The data D2 written to the cache memory 12 is written to the volume 18 asynchronously. In this case, the data D2 is written to the volume 18, but is not stored in the order assurance buffer 14, and a difference is recorded in the storage area of the difference information buffer 17 corresponding to area D of the volume 18.

ボリューム18は、ホスト100からボリューム18への書き込みが行われた領域D(RD)がデータD2となる(図14)。また、差分バッファ17は、ホスト100からボリューム18への書き込みが行われた領域Dが差分ありとなる(図15)。図14は本発明の実施形態において順序保証コピーを停止した状態でのホスト100からの書き込みの際の動作例におけるデータの流れの例を説明するための模式図である。図15は本発明の実施形態において順序保証コピーを停止した状態でのホスト100からの書き込みの際の動作例における差分情報バッファ17の内容の例を説明するための模式図である。 In volume 18, area D (RD) where writing has been performed from host 100 to volume 18 becomes data D2 (Figure 14). Also, in the difference buffer 17, area D where writing has been performed from host 100 to volume 18 becomes a differential (Figure 15). Figure 14 is a schematic diagram for explaining an example of data flow in an operation example when writing from host 100 with order assurance copying stopped in an embodiment of the present invention. Figure 15 is a schematic diagram for explaining an example of the contents of difference information buffer 17 in an operation example when writing from host 100 with order assurance copying stopped in an embodiment of the present invention.

図14は、順序保証コピーの実行時にホスト100がデータD1をボリューム18の領域Dに書き込み、その後、順序保証コピーの停止時にホスト100がデータD2をボリューム18の領域Dに書き込んだ状態を示す。この場合、メインサイト1では、キャッシュメモリ12にはデータD2が格納されていて、ボリューム18の領域D(RD)にはデータD2が格納されている。また、順序保証バッファ14には、データD1が格納されている。一方、リモートサイト2では、順序保証バッファ24にデータD1が格納されていて、ボリューム28の領域D(RD)にはデータD1が格納されている。また、退避ボリューム29の領域D(RD)にはデータD0が格納されている。 Figure 14 shows a state in which the host 100 writes data D1 to region D of volume 18 when performing order-guaranteed copying, and then writes data D2 to region D of volume 18 when order-guaranteed copying is stopped. In this case, at the main site 1, data D2 is stored in the cache memory 12, and data D2 is stored in region D (RD) of volume 18. Data D1 is also stored in the order-guaranteed buffer 14. Meanwhile, at the remote site 2, data D1 is stored in the order-guaranteed buffer 24, and data D1 is stored in region D (RD) of volume 28. Data D0 is also stored in region D (RD) of the evacuation volume 29.

(順序保証コピーの再開)
次に、図16を参照して順序保証コピーを再開する場合について説明する。図16は本発明の第1実施形態において順序保証コピーを再開する際の動作例を示すフローチャートである。順序保証コピーの再開は、例えば、ホスト100からの指示に応じて、あるいは、停止の際の原因が解消した場合に、再開される。
(Resuming sequence-guaranteed copying)
Next, the case where order guarantee copying is resumed will be described with reference to Fig. 16. Fig. 16 is a flowchart showing an example of operation when order guarantee copying is resumed in the first embodiment of the present invention. Order guarantee copying is resumed, for example, in response to an instruction from the host 100, or when the cause of the suspension has been eliminated.

図16に示す処理において、まず、順序保証処理部13は、リモートサイト2の差分管理処理部26にボリューム28のデータの退避ボリューム29へのコピーを指示する(ステップS701)。 In the process shown in FIG. 16, first, the order assurance processing unit 13 instructs the differential management processing unit 26 at the remote site 2 to copy the data in the volume 28 to the backup volume 29 (step S701).

次に順序保証処理部13は、メインサイト1の差分管理処理部16にボリューム18からボリューム28へのコピーを指示する(ステップS702)。 Next, the order assurance processing unit 13 instructs the difference management processing unit 16 at the main site 1 to copy from volume 18 to volume 28 (step S702).

次に差分管理処理部13は順序保証バッファ14を有効にする(ステップS703)。以降、ホスト100からの書き込みは順序保証バッファ14を利用した順序保証コピーとなる。 Next, the differential management processing unit 13 enables the order guarantee buffer 14 (step S703). After this, writing from the host 100 becomes an order guarantee copy using the order guarantee buffer 14.

(順序保証コピーの再開の際のボリューム28のデータの退避ボリューム29へコピー)
次に、図17を参照して、図16のステップS701におけるボリューム28のデータの退避ボリューム29へのコピーについて説明する。図17は本発明の第1実施形態において順序保証コピーを再開する際の退避ボリューム29へのコピー動作の例を示すフローチャートである。
(Copying data from volume 28 to save volume 29 when resuming order-guaranteed copying)
Next, copying of data from the volume 28 to the save volume 29 in step S701 in Fig. 16 will be described with reference to Fig. 17. Fig. 17 is a flowchart showing an example of a copying operation to the save volume 29 when resuming order guarantee copying in the first embodiment of the present invention.

図17に示す処理では、差分管理処理部26が、まず、順序保証コピー動作時に図10のステップS408で設定された差分情報バッファ27の差分ありの領域Dに対して、ボリューム28から退避ボリューム29へデータD1のコピーを実施する(ステップS801→ステップS802:はい→ステップS803)。なお、ステップS801では、差分管理処理部26が差分情報バッファ27から差分あり領域を算出する。また、ステップS802では、差分管理処理部26が差分あり領域があるか否かを判定する。また、ステップS802では、差分管理処理部26がボリューム28から差分あり領域のデータを読み出して退避ボリューム29へコピーする。 In the process shown in FIG. 17, the difference management processing unit 26 first copies data D1 from the volume 28 to the save volume 29 for the area D with differences in the difference information buffer 27 that was set in step S408 of FIG. 10 during the order-guaranteed copy operation (step S801 -> step S802: Yes -> step S803). Note that in step S801, the difference management processing unit 26 calculates the area with differences from the difference information buffer 27. Also, in step S802, the difference management processing unit 26 determines whether or not there is an area with differences. Also, in step S802, the difference management processing unit 26 reads data of the area with differences from the volume 28 and copies it to the save volume 29.

次に差分管理処理部26は、差分情報バッファ27のコピーした領域Dを差分なしに設定する(ステップS804)。 Next, the difference management processing unit 26 sets the copied area D of the difference information buffer 27 to no difference (step S804).

差分管理処理部26は、差分ありの領域がすべてなくなるまで、ステップS801~804を繰り返す。 The difference management processing unit 26 repeats steps S801 to S804 until all areas with differences are gone.

なお、グループに2つ以上のペアがある場合は、ステップS801~804を繰り返す。 If there are two or more pairs in the group, steps S801 to S804 are repeated.

コピーが終了すると退避ボリューム29の領域DはデータD1となる(図18)。また、差分バッファ27のボリューム28の領域Dは差分なしの状態となる(図19)。図18は本発明の第1実施形態において順序保証コピーを再開する際の動作例におけるデータの流れの例を説明するための模式図である。図19は本発明の第1実施形態において順序保証コピーを再開する際の差分情報バッファ27の内容の例を説明するための模式図である。 When the copying is completed, area D of the save volume 29 becomes data D1 (Figure 18). Also, area D of volume 28 in the difference buffer 27 becomes in a state of no difference (Figure 19). Figure 18 is a schematic diagram for explaining an example of the data flow in an operation example when resuming order assurance copying in the first embodiment of the present invention. Figure 19 is a schematic diagram for explaining an example of the contents of the difference information buffer 27 when resuming order assurance copying in the first embodiment of the present invention.

図18は、順序保証コピーの停止状態から順序保証コピーを再開する前に、ボリューム28のデータを退避ボリューム29へコピー(退避)した段階の状態を示す。この場合、メインサイト1では、キャッシュメモリ12にはデータD2が格納されていて、ボリューム18の領域D(RD)にはデータD2が格納されている。また、順序保証バッファ14には、データD1が格納されている。一方、リモートサイト2では、順序保証バッファ24にデータD1が格納されていて、ボリューム28の領域D(RD)にはデータD1が格納されている。また、退避ボリューム29の領域D(RD)にはデータD1が格納されている。 Figure 18 shows the state at the stage where data in volume 28 has been copied (evacuated) to evacuation volume 29 before resuming order assurance copying from a stopped state. In this case, at the main site 1, data D2 is stored in the cache memory 12, and data D2 is stored in area D (RD) of volume 18. Data D1 is also stored in the order assurance buffer 14. Meanwhile, at the remote site 2, data D1 is stored in the order assurance buffer 24, and data D1 is stored in area D (RD) of volume 28. Data D1 is also stored in area D (RD) of evacuation volume 29.

(順序保証コピーの再開の際のメインサイト1のボリューム18からリモートサイト2のボリューム28への差分コピー)。
次に、図20を参照して、図16のステップS702におけるメインサイト1のボリューム18からリモートサイト2のボリューム28への差分コピーについて説明する。図20は、本発明の第1実施形態において順序保証コピーを再開する際の正ボリューム18から副ボリューム28への差分コピーの動作例を示すフローチャートである。
(Differential copying from the volume 18 of the main site 1 to the volume 28 of the remote site 2 when resuming the order-guaranteed copying).
Next, the differential copying from the volume 18 at the main site 1 to the volume 28 at the remote site 2 in step S702 in Fig. 16 will be described with reference to Fig. 20. Fig. 20 is a flowchart showing an example of the operation of differential copying from the primary volume 18 to the secondary volume 28 when resuming order guarantee copying in the first embodiment of the present invention.

図20に示す処理では、まず、差分管理処理部16が、順序保証コピー停止時に差分情報バッファ17に設定された差分ありの領域(この例では領域D(RD))に対して、ボリューム18からボリューム28へデータD2のコピーを実施する(ステップS901→ステップS902:はい→ステップS903)。なお、ステップS901では差分管理処理部16が差分情報バッファ17に差分あり領域を算出する。ステップS902では差分管理処理部16が差分あり領域があるか否かを判定する。ステップS903ではボリューム18の差分ありのデータをリモート送信処理部15からリモートサイト2に転送する。 In the process shown in FIG. 20, first, the differential management processing unit 16 copies data D2 from volume 18 to volume 28 for the area with a difference (area D (RD) in this example) set in the differential information buffer 17 when the order-guaranteed copy was stopped (step S901 → step S902: Yes → step S903). Note that in step S901, the differential management processing unit 16 calculates the area with a difference in the differential information buffer 17. In step S902, the differential management processing unit 16 determines whether or not there is an area with a difference. In step S903, the data with a difference in volume 18 is transferred from the remote transmission processing unit 15 to the remote site 2.

リモートサイト2の差分管理処理部26は構築時のコピーと同様に差分情報バッファ27に差分ありを設定して、ボリューム28へデータをコピーして、終了を報告する(ステップS904~S906)。なお、ステップS904ではリモート受信処理部25がデータを受信してI/O処理部21を呼ぶ。ステップS905ではI/O処理部21が差分管理処理部26に指示し、差分情報バッファ27に差分ありを設定する。ステップS906ではI/O処理部21が、メインサイト1から受信したデータD2をボリューム28にコピーし、メインサイト1に終了を報告する。 The differential management processing unit 26 at the remote site 2 sets the differential information buffer 27 to indicate that there is a difference, in the same way as when copying during construction, copies the data to the volume 28, and reports completion (steps S904 to S906). In step S904, the remote receiving processing unit 25 receives the data and calls the I/O processing unit 21. In step S905, the I/O processing unit 21 instructs the differential management processing unit 26 to set the differential information buffer 27 to indicate that there is a difference. In step S906, the I/O processing unit 21 copies the data D2 received from the main site 1 to the volume 28, and reports completion to the main site 1.

メインサイト1では、終了の報告を受けた後、差分管理処理部16が、差分情報バッファ17にコピーした領域を差分なしに設定する(ステップS907)。差分情報バッファ17の差分ありの領域をすべてコピーするまでステップS901からステップS907が繰り返される(ステップS901→ステップS902:はい→ステップS903~ステップS907の繰り返し)。 After receiving the completion report at the main site 1, the difference management processing unit 16 sets the area copied to the difference information buffer 17 to no differences (step S907). Steps S901 to S907 are repeated until all areas with differences in the difference information buffer 17 have been copied (step S901 → step S902: yes → repeat steps S903 to S907).

なお、「グループ3」に2つ以上のペアがある場合は、ステップS901~S907をペア毎に繰り返し実行する。 If there are two or more pairs in "Group 3," steps S901 to S907 are repeated for each pair.

コピーが終了するとボリューム28の領域DはデータD2となる(図21)。差分バッファ17は差分なしとなり、差分バッファ28はコピーされた領域が差分ありとなる(図22)。図21は本発明の第1実施形態において順序保証コピーを再開する際の動作例におけるデータの流れの例を説明するための模式図である。図22は本発明の第1実施形態において順序保証コピーを再開する際の差分情報バッファの内容の例を説明するための模式図である。 When copying is complete, area D of volume 28 becomes data D2 (Figure 21). The difference buffer 17 has no difference, and the copied area of the difference buffer 28 has a difference (Figure 22). Figure 21 is a schematic diagram for explaining an example of data flow in an operation example when resuming order assurance copying in the first embodiment of the present invention. Figure 22 is a schematic diagram for explaining an example of the contents of the difference information buffer when resuming order assurance copying in the first embodiment of the present invention.

図21は、順序保証コピーの停止状態から順序保証コピーを再開する前に、ボリューム28のデータを退避ボリューム29へコピーが完了した後、ボリューム18からボリューム28へ差分ありのデータをコピーした段階の状態を示す。この場合、メインサイト1では、キャッシュメモリ12にはデータD2が格納されていて、ボリューム18の領域D(RD)にはデータD2が格納されている。また、順序保証バッファ14には、データD1が格納されている。一方、リモートサイト2では、順序保証バッファ24にデータD1が格納されていて、ボリューム28の領域D(RD)にはデータD2が格納されている。また、退避ボリューム29の領域D(RD)にはメインサイト1からリモートサイト2へ順序保証コピー動作において転送されたデータD1が格納されている。 Figure 21 shows the state at the stage where data with differences has been copied from volume 18 to volume 28 after the data of volume 28 has been copied to evacuation volume 29 and before resuming order assurance copying from the stopped state. In this case, at main site 1, data D2 is stored in cache memory 12, and data D2 is stored in area D (RD) of volume 18. Data D1 is also stored in order assurance buffer 14. Meanwhile, at remote site 2, data D1 is stored in order assurance buffer 24, and data D2 is stored in area D (RD) of volume 28. Data D1 transferred from main site 1 to remote site 2 in the order assurance copying operation is also stored in area D (RD) of evacuation volume 29.

(作用・効果)
本実施形態によれば、順序保証コピーの再開時にメインサイト1の差分情報バッファ17を使った差分コピーを実施する前に、順序保証コピーを停止した時点のボリューム28のデータD1を退避ボリューム29に自動的にコピーすることで、順序保証コピーの停止前のデータD1を順序性を保持して確保することができる。すなわち、第1実施形態によれば、正ボリュームから副ボリュームへの順序性を保証したデータのコピー動作を、停止した後、再開する場合に、副ボリュームのデータを適切に退避させることができる。
(Action and Effects)
According to this embodiment, when order assurance copying is resumed, before differential copying is performed using the difference information buffer 17 at the main site 1, data D1 in volume 28 at the time when order assurance copying was stopped is automatically copied to the evacuation volume 29, making it possible to secure the data D1 before the order assurance copying was stopped while maintaining its order. That is, according to the first embodiment, when the operation of copying data with order assurance from the primary volume to the secondary volume is resumed after being stopped, the data in the secondary volume can be appropriately evacuated.

[第2実施形態]
本発明に係るストレージシステムの第2実施形態について図23および図24を参照して説明する。図23は本発明の第2実施形態において順序保証コピーを再開する際の動作例を示すフローチャートである。図23に示す処理は、第1実施形態における図16に示す処理に対応する。図24は本発明の第2実施形態において順序保証コピーを再開する際の正ボリュームから副ボリュームへの差分コピーの動作例を示すフローチャートである。図24に示す処理は、第1実施形態における図17に示す処理と図20に示す処理との組み合わせに対応する。
[Second embodiment]
A second embodiment of a storage system according to the present invention will be described with reference to Figs. 23 and 24. Fig. 23 is a flowchart showing an example of operation when order guarantee copying is resumed in the second embodiment of the present invention. The process shown in Fig. 23 corresponds to the process shown in Fig. 16 in the first embodiment. Fig. 24 is a flowchart showing an example of operation of differential copying from a primary volume to a secondary volume when order guarantee copying is resumed in the second embodiment of the present invention. The process shown in Fig. 24 corresponds to a combination of the process shown in Fig. 17 and the process shown in Fig. 20 in the first embodiment.

第1実施形態では、図16、図17および図20を参照して説明したように、まず、順序保証コピーの再開の際、再開前に、ボリューム28で差分ありのデータを退避ボリューム29へコピーし(図16のステップS701、図17)、終了後にボリューム18で差分ありのデータをボリューム28へ差分コピーする(図16のステップS702、図20)。一方、第2実施形態では、順序保証コピーの再開の際、再開前に、ボリューム28から退避ボリューム29へのコピーとボリューム18で差分ありのデータのボリューム28への差分コピーを領域毎に並列して実行する。他の構成および動作については、第1実施形態と第2実施形態とで基本的に同一である。以下、第1実施形態と異なる部分について説明する。 In the first embodiment, as described with reference to Figures 16, 17 and 20, first, when resuming order-guaranteed copying, before the resumption, data with differences in volume 28 is copied to evacuation volume 29 (step S701 in Figure 16, Figure 17), and after completion, data with differences in volume 18 is differentially copied to volume 28 (step S702 in Figure 16, Figure 20). On the other hand, in the second embodiment, when resuming order-guaranteed copying, before the resumption, copying from volume 28 to evacuation volume 29 and differential copying of data with differences in volume 18 to volume 28 are performed in parallel for each area. Other configurations and operations are basically the same in the first and second embodiments. Below, the parts that differ from the first embodiment are described.

第2実施形態において、図23に示す再開の処理では、まず、順序保証処理部13が、リモートサイト2の差分管理処理部26にボリューム28から退避ボリューム29へのデータのコピーを指示する(ステップS1001)。次にリモートサイト2の差分管理処理部26はコピーが完了するのを待たずに、メインサイト1の順序保証処理部13に終了を報告する(ステップS1002)。次に順序保証処理部13は、差分管理処理部16に順序保証コピー停止中にボリューム18へ書き込まれたデータのコピーを指示する(ステップS1003)。次に差分管理処理部16は順序保証バッファ14を有効にする(ステップS1004)。以降、ホスト100からの書き込みは順序保証バッファ14を利用した順序保証コピーとなる。 In the second embodiment, in the restart process shown in FIG. 23, first, the order assurance processing unit 13 instructs the difference management processing unit 26 at the remote site 2 to copy data from the volume 28 to the evacuation volume 29 (step S1001). Next, the difference management processing unit 26 at the remote site 2 reports completion to the order assurance processing unit 13 at the main site 1 without waiting for the copy to be completed (step S1002). Next, the order assurance processing unit 13 instructs the difference management processing unit 16 to copy data that was written to the volume 18 while the order assurance copy was stopped (step S1003). Next, the difference management processing unit 16 enables the order assurance buffer 14 (step S1004). Thereafter, writing from the host 100 becomes an order assurance copy using the order assurance buffer 14.

次に、図24を参照して、図23のステップS1003における差分管理処理部16のボリューム18からボリューム28へのコピー動作について説明する。図24に示す処理では、まず、差分管理処理部16が、順序保証コピー停止時に差分情報バッファ17に設定された差分ありの領域に対して、ボリューム18の領域D(RD)のデータD2をリモート送信処理部15にリモート転送を指示し、リモートサイト2にデータを送信する(ステップS1101→ステップS1102:はい→ステップS1103)。なお、ステップS1101では差分管理処理部16が差分情報バッファ17に差分あり領域を算出する。ステップS1102では差分管理処理部16が差分あり領域があるか否かを判定する。ステップS1103ではボリューム18の差分ありのデータをリモート送信処理部15からリモートサイト2に転送する。 Next, referring to FIG. 24, the copy operation from volume 18 to volume 28 by the differential management processing unit 16 in step S1003 in FIG. 23 will be described. In the process shown in FIG. 24, first, the differential management processing unit 16 instructs the remote transmission processing unit 15 to remotely transfer data D2 in area D (RD) of volume 18 to the area with a difference set in the differential information buffer 17 when the order guarantee copy was stopped, and transmits the data to the remote site 2 (step S1101 → step S1102: Yes → step S1103). In step S1101, the differential management processing unit 16 calculates the area with a difference in the differential information buffer 17. In step S1102, the differential management processing unit 16 determines whether or not there is an area with a difference. In step S1103, the data with a difference in volume 18 is transferred from the remote transmission processing unit 15 to the remote site 2.

次にリモートサイト2のリモート受信処理部25はデータ受信する(ステップS1104)。次にリモートサイト2の差分管理処理部26は、順序保証コピー動作時に設定された差分情報バッファ27の差分ありの領域の場合(ステップS1105→ステップS1106:はいの場合)は、ボリューム28から退避ボリューム29への領域D(RD)のデータD1のコピーを実施してから(ステップS1107~S1108)、ボリューム18の領域D(RD)のデータD2をボリューム28へコピーする(ステップS1109~S1110)。一方、差分なしの領域の場合は(ステップS1105→ステップS1106:いいえの場合)、そのままボリューム18の領域D(RD)のデータD2をボリューム28へコピーする(ステップS1109~S1110)。 Next, the remote reception processing unit 25 of the remote site 2 receives the data (step S1104). Next, if the area in the differential information buffer 27 set during the sequence guarantee copy operation has a difference (step S1105 → step S1106: Yes), the differential management processing unit 26 of the remote site 2 copies data D1 of area D (RD) from volume 28 to the evacuation volume 29 (steps S1107 to S1108), and then copies data D2 of area D (RD) of volume 18 to volume 28 (steps S1109 to S1110). On the other hand, if the area does not have a difference (step S1105 → step S1106: No), the data D2 of area D (RD) of volume 18 is copied directly to volume 28 (steps S1109 to S1110).

なお、ステップS1104ではリモート受信処理部25がデータを受信する。ステップS1105では差分管理処理部26が差分情報バッファ27を確認する。ステップS1106では差分管理処理部26が差分ありの領域か否かを判定する。ステップS1107では差分管理処理部26がボリューム28から退避ボリューム29へデータをコピーする。ステップS1108では差分管理処理部26が差分情報バッファ27に差分なしを設定する。ステップS1109では差分管理処理部26が差分情報バッファ27に差分ありを設定する。ステップS1110では差分管理処理部26がボリューム18領域D(RD)ののデータD2をボリューム28へコピーし、リモートサイト2はメインサイト1に終了を報告する。 In step S1104, the remote reception processing unit 25 receives the data. In step S1105, the difference management processing unit 26 checks the difference information buffer 27. In step S1106, the difference management processing unit 26 determines whether or not the area has a difference. In step S1107, the difference management processing unit 26 copies data from the volume 28 to the save volume 29. In step S1108, the difference management processing unit 26 sets the difference information buffer 27 to no difference. In step S1109, the difference management processing unit 26 sets the difference information buffer 27 to have a difference. In step S1110, the difference management processing unit 26 copies data D2 in area D (RD) of volume 18 to volume 28, and the remote site 2 reports completion to the main site 1.

メインサイト1では差分管理処理部16が差分情報バッファ17にコピーした領域を差分なしに設定する(ステップS1111)。 At the main site 1, the difference management processing unit 16 sets the area copied to the difference information buffer 17 to no differences (step S1111).

差分情報バッファ17の差分ありの領域すべてのコピーが終わるまでステップS1101~S1111の処理が繰り返し実行される(ステップS1111→ステップS1102:はい→S1103~S1111の繰り返し)。 The processing of steps S1101 to S1111 is repeated until all areas with differences in the difference information buffer 17 have been copied (step S1111 → step S1102: Yes → repeat S1103 to S1111).

なお、グループに2つ以上のペアがある場合は、ステップS1101~S1111が繰り返し実行される。 If there are two or more pairs in the group, steps S1101 to S1111 are repeated.

以上のように、第2実施形態では、差分あり領域の事前コピー処理(ステップS1106:はい→ステップS1107およびS1108)を追加することで順序保証コピー停止前の順序保証データD1が退避ボリューム29に確保できる。また、ボリューム28から退避ボリューム29へのコピー完了を待たずにボリューム18からボリューム28への差分コピーを領域毎に並行して行うことで、順序保証コピー再開までの時間を短縮することができる。なお、上述したように、差分情報バッファ17の各領域の大きさと差分情報バッファ27の各領域の大きさを異ならせる場合には、図25に示す判定処理を大きさの違いを考慮した判定処理にする。 As described above, in the second embodiment, by adding a pre-copy process for areas with differences (step S1106: Yes → steps S1107 and S1108), the order assurance data D1 before the order assurance copying was stopped can be secured in the evacuation volume 29. Also, by performing differential copying from volume 18 to volume 28 in parallel for each area without waiting for the copy from volume 28 to the evacuation volume 29 to be completed, the time until the order assurance copying is resumed can be shortened. Note that, as described above, if the size of each area of the difference information buffer 17 and the size of each area of the difference information buffer 27 are made different, the determination process shown in FIG. 25 is made to take the difference in size into consideration.

[第3実施形態]
本発明に係るストレージシステムの第3実施形態について図25を参照して説明する。図25は本発明の第3実施形態における順序保証コピーを停止する際の動作例を示すフローチャートである。図25に示す処理は、第1実施形態における図12に示す処理と図17に示す処理との組み合わせに対応する。
[Third embodiment]
A third embodiment of a storage system according to the present invention will be described with reference to Fig. 25. Fig. 25 is a flowchart showing an example of an operation when stopping order guarantee copying in the third embodiment of the present invention. The process shown in Fig. 25 corresponds to a combination of the process shown in Fig. 12 and the process shown in Fig. 17 in the first embodiment.

第1実施形態では、順序保証コピーの再開の際、再開前に、ボリューム28で差分ありのデータを退避ボリューム29へコピーした(図16のステップS701、図17)。一方、第3実施形態では、順序保証コピーの停止の際、停止後に、例えば再開の条件が整う前に、ボリューム28の退避ボリューム29へのコピーが実行される。他の構成および動作については、第1実施形態と第3実施形態とで基本的に同一である。以下、第1実施形態と異なる部分について説明する。 In the first embodiment, when resuming order-guaranteed copying, data with differences in volume 28 is copied to evacuation volume 29 before the resumption (step S701 in FIG. 16, FIG. 17). On the other hand, in the third embodiment, when order-guaranteed copying is stopped, copying of volume 28 to evacuation volume 29 is executed after the stop, for example before the conditions for restart are met. Other configurations and operations are basically the same in the first and third embodiments. Below, the parts that differ from the first embodiment are explained.

図25に示す処理では、順序保証処理部13は、順序保証コピーを停止したあとで、リモートサイト2の差分管理処理部26にボリューム28から退避ボリューム29へのデータのコピーを指示する(ステップS1201~S1203)。なお、ステップS1201では順序保証処理部13が順序保証バッファ14へのコピーを停止する。ステップS1202では順序保証処理部13がリモートサイト2の差分情報バッファ27を有効にする。ステップS1203では順序保証処理部13がリモートサイト2のボリューム28から退避ボリューム29へのコピー開始を指示する。 In the process shown in FIG. 25, after the order assurance processing unit 13 stops the order assurance copy, it instructs the difference management processing unit 26 at the remote site 2 to copy data from the volume 28 to the evacuation volume 29 (steps S1201 to S1203). Note that in step S1201, the order assurance processing unit 13 stops copying to the order assurance buffer 14. In step S1202, the order assurance processing unit 13 enables the difference information buffer 27 at the remote site 2. In step S1203, the order assurance processing unit 13 instructs the start of copying from the volume 28 at the remote site 2 to the evacuation volume 29.

差分管理処理部26は、差分情報バッファ27の差分ありの領域に対して、ボリューム28から退避ボリューム29へデータD1をコピーする(ステップS1204~S1207)。その際、コピーが完了した領域は差分情報バッファ27に差分なしを設定する(ステップS1207)。差分情報バッファ27のすべての差分ありの領域のコピーが終わるまで(ステップS1205:いいえ、まで)、ステップS1204~S1207の処理が繰り返し実行される。なお、ステップS1204では差分管理処理部26が、差分情報バッファ27から差分あり領域を算出する。ステップS1205では差分管理処理部26が、差分情報バッファ27に差分あり領域があるか否かを判定する。ステップS1206では差分管理処理部26が、ボリューム28から差分あり領域のデータを読み出して、退避ボリューム29へコピーする。ステップS1207では差分管理処理部26は、差分情報バッファ27に差分なしを設定する。 The difference management processing unit 26 copies data D1 from the volume 28 to the save volume 29 for the area with difference in the difference information buffer 27 (steps S1204 to S1207). At this time, the difference information buffer 27 is set to "no difference" for the area where copying has been completed (step S1207). The processing of steps S1204 to S1207 is repeated until copying of all areas with difference in the difference information buffer 27 is completed (until step S1205: No). In step S1204, the difference management processing unit 26 calculates the area with difference from the difference information buffer 27. In step S1205, the difference management processing unit 26 determines whether or not there is an area with difference in the difference information buffer 27. In step S1206, the difference management processing unit 26 reads data of the area with difference from the volume 28 and copies it to the save volume 29. In step S1207, the difference management processing unit 26 sets "no difference" in the difference information buffer 27.

なお、「グループ3」に2つ以上のペアがある場合は、すべてのペアに対してステップS1204~S1207の処理を繰り返し実行する。 If there are two or more pairs in "Group 3," steps S1204 to S1207 are repeated for all pairs.

第3実施形態では、以上の処理を順序保証コピーの停止時から実施することで、順序保証コピー再開時には退避ボリューム29へのデータをコピーする時間を短縮することができる。 In the third embodiment, the above process is performed from the time when the order-guaranteed copy is stopped, thereby shortening the time it takes to copy data to the evacuation volume 29 when the order-guaranteed copy is resumed.

[各実施形態の作用・効果]
順序保証コピー動作では、停止した動作を再開した場合に、リモートサイトの副ボリュームが一時的に順序保証されていない状態となる場合がある。この順序保証されていない期間に例えばメインサイトが利用不可となると、リモートサイトのストレージのボリュームを使った業務再開が困難となることがある。このため、順序保証されたデータを維持し、かつ、データを維持するのに要する時間を短縮が課題となることがあった。これに対し、本発明に係る各実施形態では、正ボリューム18のデータをリモートサイト2の副ボリューム28へコピーする前に、リモートサイト2の差分情報バッファ27を用いてボリューム28のデータを退避ボリューム29へコピーして退避する。これにより、退避ボリューム29に順序保証された状態のボリューム28のデータが維持される。すなわち、本実施形態のストレージシステムは、正ボリュームから副ボリュームへの順序性を保証したコピー動作が停止した場合、その停止期間中に正ボリュームと副ボリューム間で差分があるとされた各データを正ボリュームから副ボリュームへコピーする前に、停止前の正ボリュームから副ボリュームへの順序性を保証したコピー動作中に副ボリュームと退避ボリューム間で差分があるとされた各データを副ボリュームから退避ボリュームへコピーし、その後、差分があるとされた各データを正ボリュームから副ボリュームへコピーし、その後、コピー動作を再開する。したがって、本実施形態によれば、正ボリュームから副ボリュームへの順序性を保証したデータのコピー動作を、停止した後、再開する場合に、副ボリュームのデータを適切に退避させることができる。また、第2実施形態では、ボリューム28から退避ボリューム29へのコピーとボリューム18からボリューム28へのコピーを同時にすることで、順序保証再開までの時間を短縮することができる。
[Actions and Effects of Each Embodiment]
In the in-order copy operation, when the stopped operation is resumed, the secondary volume at the remote site may temporarily be in an in-order-guaranteed state. If, for example, the main site becomes unavailable during this period when the in-order is not guaranteed, it may be difficult to resume operations using the volume of the storage at the remote site. For this reason, maintaining in-order guaranteed data and reducing the time required to maintain the data may be an issue. In response to this, in each embodiment of the present invention, before copying the data of the primary volume 18 to the secondary volume 28 at the remote site 2, the data of the volume 28 is copied and evacuated to the evacuation volume 29 using the difference information buffer 27 at the remote site 2. As a result, the data of the volume 28 in an in-order guaranteed state is maintained in the evacuation volume 29. That is, in the storage system of this embodiment, when the copy operation that guarantees the order from the primary volume to the secondary volume is stopped, before copying each data that is determined to have a difference between the primary volume and the secondary volume during the stop period from the primary volume to the secondary volume, each data that is determined to have a difference between the secondary volume and the save volume during the copy operation that guarantees the order from the primary volume to the secondary volume before the stop is copied from the secondary volume to the save volume, and then each data that is determined to have a difference is copied from the primary volume to the secondary volume, and then the copy operation is resumed. Therefore, according to this embodiment, when the copy operation of data that guarantees the order from the primary volume to the secondary volume is stopped and then resumed, the data of the secondary volume can be appropriately saved. Also, in the second embodiment, the time until the order guarantee is resumed can be shortened by simultaneously copying from the volume 28 to the save volume 29 and copying from the volume 18 to the volume 28.

[コンピュータの構成]
図28は、少なくとも1つの実施形態に係るコンピュータの構成を示す概略ブロック図である。コンピュータ700は、CPU(Central Processing Unit)710、主記憶装置720、補助記憶装置730、およびインタフェース740を備える。インタフェース740には例えば不揮発性記憶媒体750が接続される。上述のホストコンピュータ100、ホストコンピュータ200、ストレージ10、ストレージ20、ストレージコントローラSC1、ストレージコントローラSC2、ストレージアレイ30、および、ストレージアレイ40は、コンピュータ700と同様の構成を備えてよい。そして、上述した各処理部の動作は、プログラムの形式で補助記憶装置730に記憶されている。CPU710は、プログラムを補助記憶装置730から読み出して主記憶装置720に展開し、当該プログラムに従って上記処理を実行する。また、CPU710は、プログラムに従って、上述した各記憶部に対応する記憶領域を主記憶装置720に確保する。
[Computer Configuration]
FIG. 28 is a schematic block diagram showing the configuration of a computer according to at least one embodiment. The computer 700 includes a CPU (Central Processing Unit) 710, a main storage device 720, an auxiliary storage device 730, and an interface 740. For example, a non-volatile storage medium 750 is connected to the interface 740. The above-mentioned host computer 100, host computer 200, storage 10, storage 20, storage controller SC1, storage controller SC2, storage array 30, and storage array 40 may have the same configuration as the computer 700. The operation of each of the above-mentioned processing units is stored in the auxiliary storage device 730 in the form of a program. The CPU 710 reads the program from the auxiliary storage device 730 and deploys it in the main storage device 720, and executes the above-mentioned processing according to the program. The CPU 710 also secures a storage area corresponding to each of the above-mentioned storage units in the main storage device 720 according to the program.

プログラムは、コンピュータ700に発揮させる機能の一部を実現するためのものであってもよい。例えば、プログラムは、補助記憶装置730に既に記憶されている他のプログラムとの組み合わせ、または他の装置に実装された他のプログラムとの組み合わせによって機能を発揮させるものであってもよい。なお、他の実施形態においては、コンピュータは、上記構成に加えて、または上記構成に代えてPLD(Programmable Logic Device)などのカスタムLSI(Large Scale Integrated Circuit)を備えてもよい。PLDの例としては、PAL(Programmable Array Logic)、GAL(Generic Array Logic)、CPLD(Complex Programmable Logic Device)、FPGA(Field Programmable Gate Array)等が挙げられる。この場合、CPU710によって実現される機能の一部または全部が当該集積回路によって実現されてよい。 The program may be for implementing some of the functions to be performed by the computer 700. For example, the program may be implemented by combining it with other programs already stored in the auxiliary storage device 730, or by combining it with other programs implemented in other devices. In other embodiments, the computer may include a custom LSI (Large Scale Integrated Circuit) such as a PLD (Programmable Logic Device) in addition to or instead of the above configuration. Examples of PLDs include PAL (Programmable Array Logic), GAL (Generic Array Logic), CPLD (Complex Programmable Logic Device), and FPGA (Field Programmable Gate Array). In this case, some or all of the functions implemented by the CPU 710 may be implemented by the integrated circuit.

補助記憶装置730の例としては、HDD(Hard Disk Drive)、SSD(Solid State Drive)、磁気ディスク、光磁気ディスク、CD-ROM(Compact Disc Read Only Memory)、DVD-ROM(Digital Versatile Disc Read Only Memory)、半導体メモリ等が挙げられる。補助記憶装置730は、コンピュータ700のバスに直接接続された内部メディアであってもよいし、インタフェース740または通信回線を介してコンピュータ700に接続される外部メディアであってもよい。また、このプログラムが通信回線によってコンピュータ700に配信される場合、配信を受けたコンピュータ700が当該プログラムを主記憶装置720に展開し、上記処理を実行してもよい。少なくとも1つの実施形態において、補助記憶装置730は、一時的でない有形の記憶媒体である。 Examples of the auxiliary storage device 730 include a hard disk drive (HDD), a solid state drive (SSD), a magnetic disk, a magneto-optical disk, a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), and a semiconductor memory. The auxiliary storage device 730 may be an internal medium directly connected to the bus of the computer 700, or an external medium connected to the computer 700 via the interface 740 or a communication line. In addition, when the program is distributed to the computer 700 via a communication line, the computer 700 that receives the program may expand the program in the main storage device 720 and execute the above-mentioned processing. In at least one embodiment, the auxiliary storage device 730 is a non-transitory tangible storage medium.

[変形例等]
以上、この発明の実施形態について図面を参照して説明してきたが、具体的な構成は上記実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計変更等も含まれる。また、上記実施形態でコンピュータが実行するプログラムの一部または全部は、コンピュータ読取可能な記録媒体や通信回線を介して頒布することができる。
[Modifications, etc.]
Although the embodiment of the present invention has been described above with reference to the drawings, the specific configuration is not limited to the above embodiment, and includes design changes and the like within the scope of the gist of the present invention. In addition, a part or all of the program executed by the computer in the above embodiment can be distributed via a computer-readable recording medium or a communication line.

[実施形態の最小構成]
図26は、本発明の実施形態に係る構成の最小構成例を示すブロック図である。図27は、本発明の実施形態に係る動作の最小構成例を示すフローチャートである。
[Minimum configuration of embodiment]
Fig. 26 is a block diagram showing an example of a minimum configuration of a configuration according to an embodiment of the present invention. Fig. 27 is a flowchart showing an example of a minimum configuration of an operation according to an embodiment of the present invention.

図26に示すように、本発明の実施形態に係るストレージシステム60は、少なくとも、第1ストレージ61と、第2ストレージ62とを備えればよい。第1ストレージ61は、正ボリューム611を備える。第2ストレージ62は、第1ストレージ61に通信回線71を介して接続され、正ボリューム611とコピーペアに設定された副ボリューム621を備える。また、第1ストレージ61は、さらに、第1記憶手段612と、第2記憶手段613とを備える。第1記憶手段612は、正ボリューム611から副ボリューム621へ順序性を保証してコピーされるデータを一時的に保持する。第2記憶手段613は、正ボリューム611と副ボリューム621について所定の第1記憶領域A、B、C、…毎にデータに差分があるか否かを表す第1差分情報を記憶する。第2ストレージ62は、さらに、退避ボリューム622と、第3記憶手段623とを備える。退避ボリューム622は、ボリューム621の全データをコピーして記憶する。第3記憶手段623は、副ボリューム621と退避ボリューム622について、所定の第2記憶領域a、b、c、…毎に、第1記憶手段612を介した正ボリューム611から副ボリューム621へのデータの順序性を保証したコピー動作中に発生した差分があるか否かを表す第2差分情報を記憶する。 As shown in FIG. 26, the storage system 60 according to the embodiment of the present invention may include at least a first storage 61 and a second storage 62. The first storage 61 includes a primary volume 611. The second storage 62 includes a secondary volume 621 that is connected to the first storage 61 via a communication line 71 and that is set as a copy pair with the primary volume 611. The first storage 61 further includes a first storage unit 612 and a second storage unit 613. The first storage unit 612 temporarily holds data that is copied from the primary volume 611 to the secondary volume 621 with the order guaranteed. The second storage unit 613 stores first difference information that indicates whether there is a difference in data for each of the first storage areas A, B, C, ... for the primary volume 611 and the secondary volume 621. The second storage 62 further includes a save volume 622 and a third storage unit 623. The save volume 622 copies and stores all data of the volume 621. The third storage means 623 stores second difference information indicating whether or not there is a difference that occurred during a copy operation that ensures the order of data from the primary volume 611 to the secondary volume 621 via the first storage means 612 for each of the specified second storage areas a, b, c, ... for the secondary volume 621 and the save volume 622.

ストレージシステム60は、第1記憶手段612を介した正ボリューム611から副ボリューム621へのデータの順序性を保証したコピー動作が停止した場合、その停止期間中に第2記憶手段613に記憶された第1差分情報に基づいて差分があるとされた各データを正ボリューム611から副ボリューム621へコピーする前に、第2差分情報に基づいて差分があるとされた各データを副ボリューム621から退避ボリューム622へコピーする(ステップS1)。 When the copy operation that ensures the order of data from the primary volume 611 to the secondary volume 621 via the first storage means 612 is stopped, the storage system 60 copies each piece of data that is determined to have a difference based on the second difference information from the secondary volume 621 to the evacuation volume 622 before copying each piece of data that is determined to have a difference based on the first difference information stored in the second storage means 613 during the stopped period from the primary volume 611 to the secondary volume 621 (step S1).

ストレージシステム60は、その後、停止期間中に第2記憶手段613に記憶された第1差分情報に基づいて差分があるとされた各データを正ボリューム611から副ボリューム621へコピーする(ステップS2)。 The storage system 60 then copies each piece of data that is determined to have a difference based on the first difference information stored in the second storage means 613 during the suspension period from the primary volume 611 to the secondary volume 621 (step S2).

ストレージシステム60は、その後、第1記憶手段612を介した正ボリューム611から副ボリューム621へのデータの順序性を保証したコピー動作を再開する(ステップS3)。 The storage system 60 then resumes the copy operation that ensures data order from the primary volume 611 to the secondary volume 621 via the first storage means 612 (step S3).

図27に示すように、本発明の実施形態に係るストレージシステム60の制御方法は、少なくとも、上記ステップS1と、ステップS2と、ステップS3とを含めばよい。 As shown in FIG. 27, the control method for the storage system 60 according to an embodiment of the present invention may include at least steps S1, S2, and S3.

なお、本発明の構成要素と実施形態の構成要素の対応関係は以下の通りである。「ストレージシステム」は、ストレージシステム3に対応する。「第1ストレージ」は、ストレージ10に対応する。「第2ストレージ」は、ストレージ20に対応する。「正ボリューム」は、正ボリューム18に対応する。「通信回線」は、遠隔回線50に対応する。「副ボリューム」は、副ボリューム28に対応する。「退避ボリューム」は、退避ボリューム29に対応する。「第1記憶手段」は、順序保証バッファ14に対応する。「第1記憶領域」は、領域A(RA)、B(RB)、C(RC)、D(RD)に対応する。「第2記憶手段」は、差分情報バッファ17に対応する。「第1差分情報」は、領域A(RA)、B(RB)、C(RC)、D(RD)の差分あり/差分なしを表す情報に対応する。「第2記憶領域」は、領域A(RA)、B(RB)、C(RC)、D(RD)に対応する。「第2差分情報」は、領域A(RA)、B(RB)、C(RC)、D(RD)の差分あり/差分なしを表す情報に対応する。「第3記憶手段」は、差分情報バッファ27に対応する。なお、以上の対応関係は、本発明の構成要素の一構成例との対応関係であって、本発明の構成要素を限定するものではない。 The correspondence between the components of the present invention and the components of the embodiment is as follows: "Storage system" corresponds to storage system 3. "First storage" corresponds to storage 10. "Second storage" corresponds to storage 20. "Primary volume" corresponds to primary volume 18. "Communication line" corresponds to remote line 50. "Secondary volume" corresponds to secondary volume 28. "Evacuation volume" corresponds to evacuation volume 29. "First storage means" corresponds to order guarantee buffer 14. "First storage area" corresponds to areas A (RA), B (RB), C (RC), and D (RD). "Second storage means" corresponds to difference information buffer 17. "First difference information" corresponds to information indicating whether there is a difference or not in areas A (RA), B (RB), C (RC), and D (RD). "Second storage area" corresponds to areas A (RA), B (RB), C (RC), and D (RD). The "second difference information" corresponds to information indicating whether there is a difference or not for areas A (RA), B (RB), C (RC), and D (RD). The "third storage means" corresponds to the difference information buffer 27. Note that the above correspondence is a correspondence with one configuration example of the components of the present invention, and does not limit the components of the present invention.

[付記]
上記実施形態の一部または全部は、以下の付記のように記載されうるが、以下には限られない。
[Additional Notes]
A part or all of the above-described embodiments can be described as, but are not limited to, the following notes.

(付記1)
正ボリュームを備える第1ストレージと、
前記第1ストレージに通信回線を介して接続され、前記正ボリュームとコピーペアに設定された副ボリュームを備える第2ストレージとを
を備え、
前記第1ストレージが、さらに、前記正ボリュームから前記副ボリュームへ順序性を保証してコピーされるデータを一時的に保持する第1記憶手段と、前記正ボリュームと前記副ボリュームについて所定の第1記憶領域毎にデータに差分があるか否かを表す第1差分情報を記憶する第2記憶手段とを備え、
前記第2ストレージが、さらに、前記副ボリュームの全データをコピーして記憶する退避ボリュームと、前記副ボリュームと前記退避ボリュームについて、所定の第2記憶領域毎に、前記第1記憶手段を介した前記正ボリュームから前記副ボリュームへのデータの順序性を保証したコピー動作中に発生した差分があるか否かを表す第2差分情報を記憶する第3記憶手段とを備え、
前記コピー動作が停止した場合、その停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データを前記正ボリュームから前記副ボリュームへコピーする前に、前記第2差分情報に基づいて差分があるとされた各データを前記副ボリュームから前記退避ボリュームへコピーし、
その後、前記停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データを前記正ボリュームから前記副ボリュームへコピーし、
その後、前記コピー動作を再開する
ストレージシステム。
(Appendix 1)
a first storage including a primary volume;
a second storage connected to the first storage via a communication line and including a secondary volume set as a copy pair with the primary volume;
the first storage further comprises a first storage means for temporarily storing data copied from the primary volume to the secondary volume with order guaranteed, and a second storage means for storing first difference information indicating whether or not there is a difference in data between the primary volume and the secondary volume for each predetermined first storage area;
the second storage further comprises a save volume for copying and storing all data of the secondary volume, and a third storage means for storing, for each predetermined second storage area, second difference information for the secondary volume and the save volume, which indicates whether or not there is a difference that has occurred during a copy operation that ensures the order of data from the primary volume to the secondary volume via the first storage means;
When the copy operation is stopped, before copying each piece of data that is determined to have a difference based on the second difference information stored in the second storage means during the stop period from the primary volume to the secondary volume, each piece of data that is determined to have a difference based on the second difference information is copied from the secondary volume to the save volume;
Then, each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the suspension period is copied from the primary volume to the secondary volume;
The storage system then resumes the copy operation.

(付記2)
前記第2差分情報に基づいて差分があるとされた各データの前記副ボリュームから前記退避ボリュームへのコピーと、
前記第1差分情報に基づいて差分があるとされた各データの前記正ボリュームから前記副ボリュームへのコピーとが、
第1記憶領域および第2記憶領域毎に並行して行われる
付記1に記載のストレージシステム。
(Appendix 2)
copying each piece of data that is determined to have a difference based on the second difference information from the secondary volume to the save volume;
copying each piece of data that is determined to have a difference based on the first difference information from the primary volume to the secondary volume;
2. The storage system according to claim 1, wherein the first storage area and the second storage area are processed in parallel.

(付記3)
前記第2差分情報に基づいて差分があるとされた各データの前記副ボリュームから前記退避ボリュームへのコピーが、前記コピー動作が停止した場合、停止後に行われる
付記1または付記2に記載のストレージシステム。
(Appendix 3)
The storage system according to claim 1 or 2, wherein when the copy operation is stopped, copying of each piece of data that is determined to have a difference based on the second difference information from the secondary volume to the save volume is performed after the copy operation is stopped.

3、60…ストレージシステム、10、20…ストレージ、100、200…ホストコンピュータ、SC1、SC2…ストレージコントローラ、30、40…ストレージアレイ、11、21…I/O処理部、12、22…キャッシュメモリ、13、23…順序保証処理部、14、24…順序保証バッファ、15…リモート送信処理部、16、26…差分管理処理部、17、27…差分情報バッファ、18、611…正ボリューム、25…リモート受信処理部、28、621…副ボリューム、29、622…退避ボリューム、50…遠隔回線、61…第1ストレージ、62…第2ストレージ、612…第1記憶手段、613…第2記憶手段、623…第3記憶手段、71…通信回線 3, 60...storage system, 10, 20...storage, 100, 200...host computer, SC1, SC2...storage controller, 30, 40...storage array, 11, 21...I/O processor, 12, 22...cache memory, 13, 23...order guarantee processor, 14, 24...order guarantee buffer, 15...remote transmission processor, 16, 26...difference management processor, 17, 27...difference information buffer, 18, 611...primary volume, 25...remote reception processor, 28, 621...secondary volume, 29, 622...evacuation volume, 50...remote line, 61...first storage, 62...second storage, 612...first storage means, 613...second storage means, 623...third storage means, 71...communication line

Claims (8)

正ボリュームを備える第1ストレージと、
前記第1ストレージに通信回線を介して接続され、前記正ボリュームとコピーペアに設定された副ボリュームを備える第2ストレージと、
を備え、
前記第1ストレージが、さらに、前記正ボリュームから前記副ボリュームへ順序性を保証してコピーされるデータを一時的に保持する第1記憶手段と、前記正ボリュームと前記副ボリュームについて所定の第1記憶領域毎にデータに差分があるか否かを表す第1差分情報を記憶する第2記憶手段とを備え、
前記第2ストレージが、さらに、前記副ボリュームの全データをコピーして記憶する退避ボリュームと、前記副ボリュームと前記退避ボリュームについて、所定の第2記憶領域毎に、前記第1記憶手段を介した前記正ボリュームから前記副ボリュームへのデータの順序性を保証したコピー動作中に発生した差分があるか否かを表す第2差分情報を記憶する第3記憶手段とを備え、
前記コピー動作が停止した場合、その停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データを前記正ボリュームから前記副ボリュームへコピーする前に、前記第2差分情報に基づいて差分があるとされた各データを前記副ボリュームから前記退避ボリュームへコピーし、
その後、前記停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データを前記正ボリュームから前記副ボリュームへコピーし、
その後、前記コピー動作を再開する
ストレージシステム。
a first storage including a primary volume;
a second storage connected to the first storage via a communication line and including a secondary volume set as a copy pair with the primary volume ;
Equipped with
the first storage further comprises a first storage means for temporarily storing data copied from the primary volume to the secondary volume with order guaranteed, and a second storage means for storing first difference information indicating whether or not there is a difference in data between the primary volume and the secondary volume for each predetermined first storage area;
the second storage further comprises a save volume for copying and storing all data of the secondary volume, and a third storage means for storing, for each predetermined second storage area, second difference information for the secondary volume and the save volume, which indicates whether or not there is a difference that has occurred during a copy operation that ensures the order of data from the primary volume to the secondary volume via the first storage means;
When the copy operation is stopped, before copying each piece of data that is determined to have a difference based on the second difference information stored in the second storage means during the stop period from the primary volume to the secondary volume, each piece of data that is determined to have a difference based on the second difference information is copied from the secondary volume to the save volume;
Then, each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the suspension period is copied from the primary volume to the secondary volume;
The storage system then resumes the copy operation.
前記第2差分情報に基づいて差分があるとされた各データの前記副ボリュームから前記退避ボリュームへのコピーと、
前記第1差分情報に基づいて差分があるとされた各データの前記正ボリュームから前記副ボリュームへのコピーとが、
第1記憶領域および第2記憶領域毎に並行して行われる
請求項1に記載のストレージシステム。
copying each piece of data that is determined to have a difference based on the second difference information from the secondary volume to the save volume;
copying each piece of data that is determined to have a difference based on the first difference information from the primary volume to the secondary volume;
The storage system according to claim 1 , wherein the first storage area and the second storage area are processed in parallel.
前記第2差分情報に基づいて差分があるとされた各データの前記副ボリュームから前記退避ボリュームへのコピーが、前記コピー動作が停止した場合、停止後に行われる
請求項1に記載のストレージシステム。
2. The storage system according to claim 1, wherein when the copy operation is stopped, copying of each piece of data that is determined to have a difference based on the second difference information from the secondary volume to the save volume is performed after the copy operation is stopped.
正ボリュームを備え、前記正ボリュームとコピーペアに設定された副ボリュームを備える第2ストレージに通信回線を介して接続された第1ストレージであって、
前記第1ストレージが、さらに、前記正ボリュームから前記副ボリュームへ順序性を保証してコピーされるデータを一時的に保持する第1記憶手段と、前記正ボリュームと前記副ボリュームについて所定の第1記憶領域毎にデータに差分があるか否かを表す第1差分情報を記憶する第2記憶手段とを備え、
前記第2ストレージが、前記副ボリュームと、前記副ボリュームの全データをコピーして記憶する退避ボリュームと、前記副ボリュームと前記退避ボリュームについて、所定の第2記憶領域毎に、前記第1記憶手段を介した前記正ボリュームから前記副ボリュームへのデータの順序性を保証したコピー動作中に発生した差分があるか否かを表す第2差分情報を記憶する第3記憶手段とを備え、
前記コピー動作が停止した場合、前記第2ストレージにおいて前記第2差分情報に基づいて差分があるとされた各データが前記副ボリュームから前記退避ボリュームへコピーされた後に、その停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データ前記正ボリュームから前記副ボリュームへコピー
その後、前記停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データ前記正ボリュームから前記副ボリュームへコピー
その後、前記コピー動作再開する
ストレージ。
A first storage device includes a primary volume and is connected via a communication line to a second storage device includes a secondary volume that is set as a copy pair with the primary volume,
the first storage further comprises a first storage means for temporarily storing data copied from the primary volume to the secondary volume with order guaranteed, and a second storage means for storing first difference information indicating whether or not there is a difference in data between the primary volume and the secondary volume for each predetermined first storage area;
the second storage comprises: the secondary volume; a save volume for copying and storing all data of the secondary volume; and a third storage means for storing, for each predetermined second storage area, second difference information for the secondary volume and the save volume, which indicates whether or not there is a difference that has occurred during a copy operation that ensures data order from the primary volume to the secondary volume via the first storage means;
When the copy operation is stopped, each piece of data that is determined to have a difference based on the second difference information in the second storage is copied from the secondary volume to the save volume, and then each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the stoppage period is copied from the primary volume to the secondary volume;
Then, each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the suspension period is copied from the primary volume to the secondary volume;
Then, the copy operation is resumed.
Storage.
正ボリュームを備える第1ストレージに通信回線を介して接続され、前記正ボリュームとコピーペアに設定された副ボリュームを備える第2ストレージであって、
前記第1ストレージが、前記正ボリュームと、前記正ボリュームから前記副ボリュームへ順序性を保証してコピーされるデータを一時的に保持する第1記憶手段と、前記正ボリュームと前記副ボリュームについて所定の第1記憶領域毎にデータに差分があるか否かを表す第1差分情報を記憶する第2記憶手段とを備え、
前記第2ストレージが、さらに、前記副ボリュームの全データをコピーして記憶する退避ボリュームと、前記副ボリュームと前記退避ボリュームについて、所定の第2記憶領域毎に、前記第1記憶手段を介した前記正ボリュームから前記副ボリュームへのデータの順序性を保証したコピー動作中に発生した差分があるか否かを表す第2差分情報を記憶する第3記憶手段とを備え、
前記コピー動作が停止した場合、その停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データが前記正ボリュームから前記副ボリュームへコピーされる前に、前記第2差分情報に基づいて差分があるとされた各データ前記副ボリュームから前記退避ボリュームへコピー
その後、前記停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データ前記正ボリュームから前記副ボリュームへコピー
その後、前記コピー動作再開する
ストレージ。
A second storage device is connected to a first storage device having a primary volume via a communication line, and has a secondary volume set as a copy pair with the primary volume,
the first storage comprises: the primary volume; a first storage means for temporarily holding data copied from the primary volume to the secondary volume with order guaranteed; and a second storage means for storing first difference information indicating whether or not there is a difference in data between the primary volume and the secondary volume for each predetermined first storage area;
the second storage further comprises a save volume for copying and storing all data of the secondary volume, and a third storage means for storing, for each predetermined second storage area, second difference information for the secondary volume and the save volume, which indicates whether or not there is a difference that has occurred during a copy operation that ensures the order of data from the primary volume to the secondary volume via the first storage means;
When the copy operation is stopped, before each piece of data that is determined to have a difference based on the second difference information stored in the second storage means during the stop period is copied from the primary volume to the secondary volume, each piece of data that is determined to have a difference based on the second difference information is copied from the secondary volume to the save volume;
Then, each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the suspension period is copied from the primary volume to the secondary volume;
Then, the copy operation is resumed.
Storage.
正ボリュームを備える第1ストレージと、
前記第1ストレージに通信回線を介して接続され、前記正ボリュームとコピーペアに設定された副ボリュームを備える第2ストレージと、
を制御する制御方法であって、
前記第1ストレージが、さらに、前記正ボリュームから前記副ボリュームへ順序性を保証してコピーされるデータを一時的に保持する第1記憶手段と、前記正ボリュームと前記副ボリュームについて所定の第1記憶領域毎にデータに差分があるか否かを表す第1差分情報を記憶する第2記憶手段とを備え、
前記第2ストレージが、さらに、前記副ボリュームの全データをコピーして記憶する退避ボリュームと、前記副ボリュームと前記退避ボリュームについて、所定の第2記憶領域毎に、前記第1記憶手段を介した前記正ボリュームから前記副ボリュームへのデータの順序性を保証したコピー動作中に発生した差分があるか否かを表す第2差分情報を記憶する第3記憶手段とを備え、
前記コピー動作が停止した場合、その停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データを前記正ボリュームから前記副ボリュームへコピーする前に、前記第2差分情報に基づいて差分があるとされた各データを前記副ボリュームから前記退避ボリュームへコピーするステップと、
その後、前記停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データを前記正ボリュームから前記副ボリュームへコピーするステップと、
その後、前記コピー動作を再開するステップと
を含むストレージシステムの制御方法。
a first storage including a primary volume;
a second storage connected to the first storage via a communication line and including a secondary volume set as a copy pair with the primary volume ;
A control method for controlling
the first storage further comprises a first storage means for temporarily storing data copied from the primary volume to the secondary volume with order guaranteed, and a second storage means for storing first difference information indicating whether or not there is a difference in data between the primary volume and the secondary volume for each predetermined first storage area;
the second storage further comprises a save volume for copying and storing all data of the secondary volume, and a third storage means for storing, for each predetermined second storage area, second difference information for the secondary volume and the save volume, which indicates whether or not there is a difference that has occurred during a copy operation that ensures the order of data from the primary volume to the secondary volume via the first storage means;
when the copy operation is stopped, copying each piece of data that is determined to have a difference based on the second difference information from the secondary volume to the save volume before copying each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the stop period from the primary volume to the secondary volume;
thereafter, copying each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the suspension period from the primary volume to the secondary volume;
and thereafter, resuming the copy operation.
正ボリュームを備える第1ストレージと、
前記第1ストレージに通信回線を介して接続され、前記正ボリュームとコピーペアに設定された副ボリュームを備える第2ストレージと
を備え、
前記第1ストレージが、さらに、前記正ボリュームから前記副ボリュームへ順序性を保証してコピーされるデータを一時的に保持する第1記憶手段と、前記正ボリュームと前記副ボリュームについて所定の第1記憶領域毎にデータに差分があるか否かを表す第1差分情報を記憶する第2記憶手段とを備え、
前記第2ストレージが、前記副ボリュームと、前記副ボリュームの全データをコピーして記憶する退避ボリュームと、前記副ボリュームと前記退避ボリュームについて、所定の第2記憶領域毎に、前記第1記憶手段を介した前記正ボリュームから前記副ボリュームへのデータの順序性を保証したコピー動作中に発生した差分があるか否かを表す第2差分情報を記憶する第3記憶手段とを備えるストレージシステムにおける、前記第1ストレージのコンピュータを、
前記コピー動作が停止した場合、前記第2ストレージにおいて前記第2差分情報に基づいて差分があるとされた各データが前記副ボリュームから前記退避ボリュームへコピーされた後に、その停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データを前記正ボリュームから前記副ボリュームへコピーする手段
その後、前記停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データを前記正ボリュームから前記副ボリュームへコピーする手段
その後、前記コピー動作を再開する手段、
として機能させるプログラム。
a first storage including a primary volume;
a second storage connected to the first storage via a communication line and including a secondary volume set as a copy pair with the primary volume ;
Equipped with
the first storage further comprises a first storage means for temporarily storing data copied from the primary volume to the secondary volume with order guaranteed, and a second storage means for storing first difference information indicating whether or not there is a difference in data between the primary volume and the secondary volume for each predetermined first storage area;
a computer of the first storage in a storage system comprising: the second storage, the secondary volume; a save volume for copying and storing all data of the secondary volume; and a third storage means for storing second difference information for each predetermined second storage area for the secondary volume and the save volume, the second difference information indicating whether or not there is a difference that occurred during a copy operation that ensures the order of data from the primary volume to the secondary volume via the first storage means,
a means for copying, when the copy operation is stopped, each piece of data that is determined to have a difference based on the second difference information in the second storage from the secondary volume to the save volume, after the data has been copied from the secondary volume to the save volume, each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the stoppage of the copy operation, from the primary volume to the secondary volume;
thereafter, a means for copying each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the suspension period from the primary volume to the secondary volume;
Thereafter, means for resuming said copying operation;
A program that functions as a
正ボリュームを備える第1ストレージと、前記第1ストレージに通信回線を介して接続され、前記正ボリュームとコピーペアに設定された副ボリュームを備える第2ストレージとを備え、a first storage including a primary volume; and a second storage connected to the first storage via a communication line and including a secondary volume that is set as a copy pair with the primary volume;
前記第1ストレージが、さらに、前記正ボリュームから前記副ボリュームへ順序性を保証してコピーされるデータを一時的に保持する第1記憶手段と、前記正ボリュームと前記副ボリュームについて所定の第1記憶領域毎にデータに差分があるか否かを表す第1差分情報を記憶する第2記憶手段とを備え、the first storage further comprises a first storage means for temporarily storing data copied from the primary volume to the secondary volume with order guaranteed, and a second storage means for storing first difference information indicating whether or not there is a difference in data between the primary volume and the secondary volume for each predetermined first storage area;
前記第2ストレージが、前記副ボリュームと、前記副ボリュームの全データをコピーして記憶する退避ボリュームと、前記副ボリュームと前記退避ボリュームについて、所定の第2記憶領域毎に、前記第1記憶手段を介した前記正ボリュームから前記副ボリュームへのデータの順序性を保証したコピー動作中に発生した差分があるか否かを表す第2差分情報を記憶する第3記憶手段とを備えるストレージシステムにおける、前記第2ストレージのコンピュータを、a computer of the second storage in a storage system comprising: the secondary volume; a save volume for copying and storing all data of the secondary volume; and a third storage means for storing second difference information for each predetermined second storage area for the secondary volume and the save volume, the second difference information indicating whether or not there is a difference that occurred during a copy operation that ensures the order of data from the primary volume to the secondary volume via the first storage means,
前記コピー動作が停止した場合、その停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データが前記正ボリュームから前記副ボリュームへコピーされる前に、前記第2差分情報に基づいて差分があるとされた各データを前記副ボリュームから前記退避ボリュームへコピーする手段、a means for copying, when the copy operation is stopped, each piece of data determined to have a difference based on the second difference information from the secondary volume to the save volume before each piece of data determined to have a difference based on the first difference information stored in the second storage means during the stoppage period is copied from the primary volume to the secondary volume;
その後、前記停止期間中に前記第2記憶手段に記憶された前記第1差分情報に基づいて差分があるとされた各データを前記正ボリュームから前記副ボリュームへコピーする手段、thereafter, a means for copying each piece of data that is determined to have a difference based on the first difference information stored in the second storage means during the suspension period from the primary volume to the secondary volume;
その後、前記コピー動作を再開する手段Thereafter, the means for resuming the copying operation
として機能させるプログラム。A program that functions as a
JP2023034239A 2023-03-07 2023-03-07 STORAGE SYSTEM, STORAGE, AND METHOD AND PROGRAM FOR CONTROLLING STORAGE SYSTEM Active JP7553136B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2023034239A JP7553136B1 (en) 2023-03-07 2023-03-07 STORAGE SYSTEM, STORAGE, AND METHOD AND PROGRAM FOR CONTROLLING STORAGE SYSTEM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2023034239A JP7553136B1 (en) 2023-03-07 2023-03-07 STORAGE SYSTEM, STORAGE, AND METHOD AND PROGRAM FOR CONTROLLING STORAGE SYSTEM

Publications (2)

Publication Number Publication Date
JP7553136B1 true JP7553136B1 (en) 2024-09-18
JP2024129169A JP2024129169A (en) 2024-09-27

Family

ID=92753517

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2023034239A Active JP7553136B1 (en) 2023-03-07 2023-03-07 STORAGE SYSTEM, STORAGE, AND METHOD AND PROGRAM FOR CONTROLLING STORAGE SYSTEM

Country Status (1)

Country Link
JP (1) JP7553136B1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003242011A (en) 2002-01-10 2003-08-29 Hitachi Ltd Apparatus and method for multi-generation remote backup and high-speed restoration
JP2008181288A (en) 2007-01-24 2008-08-07 Hitachi Ltd Remote copy system
JP2011048500A (en) 2009-08-25 2011-03-10 Hitachi Ltd Data backup management system, computer system and program recording medium
JP2019185661A (en) 2018-04-17 2019-10-24 富士通株式会社 Storage device and control program
JP2021086159A (en) 2019-11-25 2021-06-03 富士通株式会社 Storage system, storage control device and storage control program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003242011A (en) 2002-01-10 2003-08-29 Hitachi Ltd Apparatus and method for multi-generation remote backup and high-speed restoration
JP2008181288A (en) 2007-01-24 2008-08-07 Hitachi Ltd Remote copy system
JP2011048500A (en) 2009-08-25 2011-03-10 Hitachi Ltd Data backup management system, computer system and program recording medium
JP2019185661A (en) 2018-04-17 2019-10-24 富士通株式会社 Storage device and control program
JP2021086159A (en) 2019-11-25 2021-06-03 富士通株式会社 Storage system, storage control device and storage control program

Also Published As

Publication number Publication date
JP2024129169A (en) 2024-09-27

Similar Documents

Publication Publication Date Title
JP4282464B2 (en) Remote copy system
US7921269B2 (en) Storage subsystem and storage system for updating snapshot management information
JP4993913B2 (en) Storage control device and data management method thereof
JP4856955B2 (en) NAS system and remote copy method
US8504765B2 (en) Method of improving efficiency of capacity of volume used for copy function and apparatus thereof
JP5425922B2 (en) Method, system, and computer program for performing data writing on a storage device
JP3968207B2 (en) Data multiplexing method and data multiplexing system
JP4843687B2 (en) Backup control device, storage system, backup control program, and backup control method
JP2004258944A (en) Storage device and its management method
US20060085608A1 (en) System and method for controlling the updating of storage device
JP2008250695A (en) Disk array controller and disk array system therewith
JP4508798B2 (en) Storage remote copy method
JP2003162378A (en) Data copy method
JP2004005358A (en) Backup / restore management method between replicated volumes and storage controller used for this method
CN109491605A (en) A kind of date storage method based on COW, device and medium
JP2015052844A (en) Copy controller, copy control method, and copy control program
JP7553136B1 (en) STORAGE SYSTEM, STORAGE, AND METHOD AND PROGRAM FOR CONTROLLING STORAGE SYSTEM
JP2004348174A (en) Storage system
JP2014038551A (en) Data storage device, method for controlling data storage device, and control program of data storage device
JP4790283B2 (en) Storage subsystem and storage system
JPH08241220A (en) Online storage capacity expansion method for external storage device
JP7276959B2 (en) Information processing device, information processing method and program
WO2014069007A1 (en) Storage device and data backup method
JP2008186223A (en) Information processing system and replicating body changeover method
JPH08110840A (en) Restoration system for magnetic disk device of double redundancy constitution

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230307

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240521

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240718

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20240806

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240829

R150 Certificate of patent or registration of utility model

Ref document number: 7553136

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150