[go: up one dir, main page]

JP7007017B2 - Storage systems, control methods, and programs - Google Patents

Storage systems, control methods, and programs Download PDF

Info

Publication number
JP7007017B2
JP7007017B2 JP2018054496A JP2018054496A JP7007017B2 JP 7007017 B2 JP7007017 B2 JP 7007017B2 JP 2018054496 A JP2018054496 A JP 2018054496A JP 2018054496 A JP2018054496 A JP 2018054496A JP 7007017 B2 JP7007017 B2 JP 7007017B2
Authority
JP
Japan
Prior art keywords
volume
database
failure
journal
primary
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
JP2018054496A
Other languages
Japanese (ja)
Other versions
JP2019168797A (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 Solution Innovators Ltd
Original Assignee
NEC Solution Innovators 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 Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP2018054496A priority Critical patent/JP7007017B2/en
Publication of JP2019168797A publication Critical patent/JP2019168797A/en
Application granted granted Critical
Publication of JP7007017B2 publication Critical patent/JP7007017B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、ストレージシステム、制御方法、及びプログラムに関する。特に、ソフトウェアによるボリューム二重化と、遠隔データリプリケーションとを適用したストレージシステム、制御方法、及びプログラムに関する。 The present invention relates to storage systems, control methods, and programs. In particular, it relates to storage systems, control methods, and programs to which software-based volume duplication and remote data replication are applied.

ソフトウェアによるボリューム二重化と、遠隔データリプリケーション(RDR:Remote Data Replication)とを適用したストレージシステムが提案されている。このようなストレージシステムは、主系サイト側に、正系サーバと、正系ボリュームを有する正系ストレージ装置と、副系ボリュームを有する副系ストレージ装置とを有する。従系サイト側に、従系サーバと、複製ボリュームを有する複製ストレージ装置とを有する。また、正系ボリュームと複製ボリュームとはネットワークで接続されている。 A storage system to which volume duplication by software and remote data replication (RDR) is applied has been proposed. Such a storage system has a primary server, a primary storage device having a primary volume, and a secondary storage device having a secondary volume on the main site side. The slave site side has a slave server and a replication storage device having a replication volume. In addition, the primary volume and the duplicate volume are connected by a network.

ところで、上述したストレージシステムにおいては、正系ボリュームに障害が発生している状況で、主系サイト側が被災した場合、障害が発生した正系ボリュームのデータベースは更新されない。そのため、従系サーバは、複製ボリュームのデータベースと基底ジャーナルとを利用して、ロールバック処理を実行しても、データベースの整合性を確保できない。基底ジャーナルとは、トランザクション開始と、トランザクション終了と、データベースの更新前データとを有するジャーナルである。 By the way, in the above-mentioned storage system, if a failure occurs in the primary volume and the main site side is damaged, the database of the failed primary volume is not updated. Therefore, the slave server cannot ensure the integrity of the database even if the rollback process is executed by using the database of the duplicate volume and the base journal. The base journal is a journal that has a transaction start, a transaction end, and pre-update data in the database.

従って、複製ボリュームのデータベースを利用して業務を再開するためには、静止点を確保した状態で採取されたバックアップからデータベースをリストアしなければならない。その結果、ストレージシステムは、バックアップを採取した時点から、業務を再開することになる。 Therefore, in order to resume business using the database of the duplicate volume, the database must be restored from the backup taken with the quiesced point secured. As a result, the storage system will resume operations from the time the backup is taken.

また、関連する技術として特許文献1には、正系ボリュームに障害が発生した状況でも、副系ボリュームを利用して、複製ボリュームの更新を継続するストレージシステムが開示されている。このストレージシステムによれば、正系ボリュームに障害が発生しても、複製ボリュームのコピー元が副系ボリュームに切り替わるため、複製ボリュームに対して、バックアップからデータベースをリストアしなくてもよい。 Further, as a related technique, Patent Document 1 discloses a storage system that continuously updates a duplicate volume by using a secondary volume even when a failure occurs in the primary volume. According to this storage system, even if a failure occurs in the primary volume, the copy source of the duplicate volume is switched to the secondary volume, so that it is not necessary to restore the database from the backup for the duplicate volume.

特開2006-285336号公報Japanese Unexamined Patent Publication No. 2006-285336

しかしながら、特許文献1に開示されているストレージシステムにおいて、正系サーバは、正系ボリューム及び副系ボリュームに対して、同時に更新要求を行うが、正系ボリューム自体の更新と副系ボリューム自体の更新は記録装置毎に非同期に行われる。そのため、正系ボリュームと副系ボリュームのデータベースと基底ジャーナルとはかならずしも一致しない。 However, in the storage system disclosed in Patent Document 1, the primary server simultaneously requests the primary volume and the secondary volume to be updated, but the primary volume itself is updated and the secondary volume itself is updated. Is performed asynchronously for each recording device. Therefore, the database of the primary volume and the secondary volume and the base journal do not always match.

従って、正系ボリュームから副系ボリュームに切り替わった直後は、複製ボリュームと正系ボリュームとの間ではデータベースの整合性が確保されているが、複製ボリュームと副系ボリュームとの間ではデータベースの整合性が確保できていない。そのため、従系サーバは、正系ボリュームから副系ボリュームに切り替わったことを検出した後、複製ボリ
ュームと副系ボリュームのデータベースの整合性が確保されるまで(同期状態になるまで)の間に被災した場合は、やはりバックアップからデータベースをリストアしなくてはならない。
Therefore, immediately after switching from the primary volume to the secondary volume, the database consistency is ensured between the duplicate volume and the primary volume, but the database consistency is ensured between the duplicate volume and the secondary volume. Has not been secured. Therefore, after detecting that the primary volume has been switched to the secondary volume, the slave server is damaged until the database integrity of the duplicate volume and secondary volume is ensured (until the synchronization state is reached). If you do, you still have to restore the database from backup.

本発明の目的の一例は、障害発生時刻の直前までデータベースの整合性を確保できるストレージシステム、制御方法、及びプログラムを提供することにある。 An example of an object of the present invention is to provide a storage system, a control method, and a program capable of ensuring database integrity until immediately before the time of failure occurrence.

上記目的を達成するため、本発明の一側面におけるストレージシステムは、
データベースと基底ジャーナルと障害情報とを記憶する、正系ボリュームと、
前記正系ボリュームとともに、前記データベースと前記基底ジャーナルと前記障害情報とを記憶する、副系ボリュームと、
前記正系ボリュームから転送された、前記データベースと前記基底ジャーナルと前記障害情報とを記憶する、複製ボリュームと、
前記正系ボリューム及び副系ボリュームを更新する、主系サーバと、
前記複製ボリュームに記憶された障害情報に含まれる障害発生時刻を用いて、前記複製ボリュームに記憶された前記基底ジャーナルを参照し、前記障害発生時刻に実行されたトランザクションに対応するトランザクション開始を検出し、前記複製ボリュームの全てのデータベースに対して前記トランザクション開始までロールバック処理を実行する、従系サーバと、
を有することを特徴とする。
In order to achieve the above object, the storage system in one aspect of the present invention is
A primary volume that stores the database, base journal, and failure information,
A secondary volume that stores the database, the base journal, and the failure information together with the primary volume.
A duplicate volume that stores the database, the base journal, and the failure information transferred from the primary volume.
The main server that updates the primary and secondary volumes, and
Using the failure occurrence time included in the failure information stored in the replication volume, the base journal stored in the replication volume is referred to, and the transaction start corresponding to the transaction executed at the failure occurrence time is detected. , A slave server that executes rollback processing until the transaction starts for all databases of the duplicate volume.
It is characterized by having.

また、上記目的を達成するため、本発明の一側面におけるストレージシステムは、
データベースと基底ジャーナルと障害情報と累積ジャーナルとを記憶する、正系ボリュームと、
前記正系ボリュームとともに、前記データベースと前記基底ジャーナルと前記障害情報と前記累積ジャーナルとを記憶する、副系ボリュームと、
前記正系ボリュームから転送された、前記データベースと前記基底ジャーナルと前記障害情報と前記累積ジャーナルとを記憶する、複製ボリュームと、
前記正系ボリューム及び副系ボリュームを更新する、主系サーバと、
前記複製ボリュームに記憶された障害情報に含まれる、障害発生時刻と、障害が発生した記憶媒体を示す障害記憶媒体特定情報とを用いて、前記複製ボリュームに記憶された、前記正系ボリュームにおいて障害が発生した前記記憶媒体に存在するデータベースに対応する前記累積ジャーナルを参照し、前記障害発生時刻に実行されたトランザクションにおけるトランザクションレコードを検出し、前記正系ボリュームにおいて障害が発生した前記記憶媒体に対応する、前記複製ボリュームに存在するデータベースに対して、検出した前記トランザクションレコードからロールフォワード処理を実行する、従系サーバと、
を有することを特徴とする。
Further, in order to achieve the above object, the storage system in one aspect of the present invention is used.
A primary volume that stores the database, the base journal, the failure information, and the cumulative journal,
A secondary volume that stores the database, the base journal, the failure information, and the cumulative journal, together with the primary volume.
A duplicate volume that stores the database, the base journal, the failure information, and the cumulative journal transferred from the primary volume.
The main server that updates the primary and secondary volumes, and
A failure occurs in the primary volume stored in the duplicate volume using the failure occurrence time included in the failure information stored in the duplicate volume and the failure storage medium identification information indicating the storage medium in which the failure has occurred. Refers to the cumulative journal corresponding to the database existing in the storage medium in which the error occurred, detects the transaction record in the transaction executed at the failure occurrence time, and corresponds to the storage medium in which the failure occurred in the primary volume. A slave server that executes roll-forward processing from the detected transaction record for the database existing in the duplicate volume.
It is characterized by having.

上記目的を達成するため、本発明の一側面におけるストレージシステムの制御方法は、
データベースと基底ジャーナルと障害情報とを記憶する正系ボリュームと、前記正系ボリュームとともに、前記データベースと前記基底ジャーナルと前記障害情報とを記憶する副系ボリュームと、前記正系ボリュームから転送された、前記データベースと前記基底ジャーナルと前記障害情報とを記憶する複製ボリュームと、前記正系ボリューム及び副系ボリュームを更新する主系サーバと、前記複製ボリュームを制御する従系サーバと、を有するストレージシステムの制御方法であって、
(A)前記複製ボリュームに記憶された前記障害情報に含まれる障害発生時刻を用いて、前記複製ボリュームに記憶された前記基底ジャーナルを参照し、前記障害発生時刻に実行されたトランザクションに対応するトランザクション開始を検出する、ステップと、
(B)前記複製ボリュームの全てのデータベースに対して前記トランザクション開始まで
ロールバック処理を実行する、ステップと、
を有することを特徴とする。
In order to achieve the above object, the control method of the storage system in one aspect of the present invention is:
A primary volume that stores a database, a base journal, and failure information, a secondary volume that stores the database, the base journal, and the failure information together with the primary volume, and a secondary volume that is transferred from the primary volume. A storage system having a duplicate volume for storing the database, the base journal, and the failure information, a master server for updating the primary volume and the secondary volume, and a slave server for controlling the duplicate volume. It ’s a control method,
(A) A transaction corresponding to a transaction executed at the failure occurrence time by referring to the base journal stored in the replication volume using the failure occurrence time included in the failure information stored in the replication volume. Steps to detect the start, and
(B) A step of executing rollback processing until the start of the transaction for all databases of the duplicate volume, and
It is characterized by having.

また、上記目的を達成するため、本発明の一側面におけるストレージシステムの制御方法は、
データベースと基底ジャーナルと障害情報と累積ジャーナルとを記憶する正系ボリュームと、前記正系ボリュームとともに、前記データベースと前記基底ジャーナルと前記障害情報と前記累積ジャーナルとを記憶する副系ボリュームと、前記正系ボリュームから転送された、前記データベースと前記基底ジャーナルと前記障害情報と前記累積ジャーナルとを記憶する複製ボリュームと、前記正系ボリューム及び副系ボリュームを更新する主系サーバと、前記複製ボリュームを制御する従系サーバと、を有するストレージシステムの制御方法であって、
(C)前記複製ボリュームに記憶された前記障害情報に含まれる、障害発生時刻と、障害が発生した記憶媒体を示す障害記憶媒体特定情報とを用いて、前記複製ボリュームに記憶された、前記正系ボリュームにおいて障害が発生した前記記憶媒体に存在するデータベースに対応する前記累積ジャーナルを参照し、前記障害発生時刻に実行されたトランザクションにおけるトランザクションレコードを検出する、ステップと、
(D)前記正系ボリュームにおいて障害が発生した前記記憶媒体に存在するデータベースに対応する、前記複製ボリュームのデータベースに対して、検出した前記トランザクションレコードからロールフォワード処理を実行する、ステップと、
を有することを特徴とする。
Further, in order to achieve the above object, the control method of the storage system in one aspect of the present invention is:
A primary volume that stores a database, a base journal, failure information, and a cumulative journal, a secondary volume that stores the database, the base journal, the failure information, and the cumulative journal, along with the primary volume, and the positive volume. Controls the duplicate volume that stores the database, the base journal, the failure information, and the cumulative journal transferred from the system volume, the main server that updates the primary volume and the secondary volume, and the duplicate volume. A method of controlling a storage system that has a secondary server and
(C) The positive data stored in the duplicate volume using the failure occurrence time included in the failure information stored in the duplicate volume and the failure storage medium identification information indicating the storage medium in which the failure has occurred. A step of referring to the cumulative journal corresponding to the database existing in the storage medium in which the failure occurred in the system volume and finding the transaction record in the transaction executed at the time of the failure.
(D) A step of executing roll-forward processing from the detected transaction record for the database of the duplicate volume corresponding to the database existing in the storage medium in which the failure occurred in the primary volume.
It is characterized by having.

上記目的を達成するため、本発明の一側面における制御プログラムは、
データベースと基底ジャーナルと障害情報とを記憶する正系ボリュームと、前記正系ボリュームとともに、前記データベースと前記基底ジャーナルと前記障害情報とを記憶する副系ボリュームと、前記正系ボリュームから転送された、前記データベースと前記基底ジャーナルと前記障害情報とを記憶する複製ボリュームと、前記正系ボリューム及び副系ボリュームを更新する主系サーバと、を有するストレージシステムに接続されるコンピュータに実行される制御プログラムであって、
前記コンピュータに、
(A)前記複製ボリュームに記憶された前記障害情報に含まれる障害発生時刻を用いて、前記複製ボリュームに記憶された前記基底ジャーナルを参照し、前記障害発生時刻に実行されたトランザクションに対応するトランザクション開始を検出する、ステップと、
(B)前記複製ボリュームの全てのデータベースに対して前記トランザクション開始までロールバック処理を実行する、ステップと、
を実行させることを特徴とする。
In order to achieve the above object, the control program in one aspect of the present invention is:
A primary volume that stores a database, a base journal, and failure information, a secondary volume that stores the database, the base journal, and the failure information together with the primary volume, and a secondary volume that is transferred from the primary volume. A control program executed by a computer connected to a storage system having a duplicate volume for storing the database, the base journal, the failure information, and a main server for updating the primary volume and the secondary volume. There,
To the computer
(A) A transaction corresponding to a transaction executed at the failure occurrence time by referring to the base journal stored in the replication volume using the failure occurrence time included in the failure information stored in the replication volume. Steps to detect the start, and
(B) A step of executing rollback processing until the start of the transaction for all databases of the duplicate volume, and
Is characterized by executing.

また、上記目的を達成するため、本発明の一側面における制御プログラムは、
データベースと基底ジャーナルと障害情報と累積ジャーナルとを記憶する正系ボリュームと、前記正系ボリュームとともに、前記データベースと前記基底ジャーナルと前記障害情報と前記累積ジャーナルとを記憶する副系ボリュームと、前記正系ボリュームから転送された、前記データベースと前記基底ジャーナルと前記障害情報と前記累積ジャーナルとを記憶する複製ボリュームと、前記正系ボリューム及び副系ボリュームを更新する主系サーバと、を有するストレージシステムに接続されるコンピュータに実行される制御プログラムであって、
前記コンピュータに、
(C)前記複製ボリュームに記憶された前記障害情報に含まれる、障害発生時刻と、障害が発生した記憶媒体を示す障害記憶媒体特定情報とを用いて、前記複製ボリュームに記憶された、前記正系ボリュームにおいて障害が発生した前記記憶媒体に存在するデータベースに対応する前記累積ジャーナルを参照し、前記障害発生時刻に実行されたトランザクシ
ョンに対応するトランザクションレコードを検出する、ステップと、
(D)前記正系ボリュームにおいて障害が発生した前記記憶媒体に存在するデータベースに対応する、前記複製ボリュームのデータベースに対して、検出した前記トランザクションレコードからロールフォワード処理を実行する、ステップと、
を実行させることを特徴とする。
Further, in order to achieve the above object, the control program in one aspect of the present invention is provided.
A primary volume that stores a database, a base journal, failure information, and a cumulative journal, a secondary volume that stores the database, the base journal, the failure information, and the cumulative journal, along with the primary volume, and the positive volume. To a storage system having a duplicate volume that stores the database, the base journal, the failure information, and the cumulative journal transferred from the system volume, and a main server that updates the primary volume and the secondary volume. A control program that runs on the connected computer
To the computer
(C) The positive data stored in the duplicate volume using the failure occurrence time included in the failure information stored in the duplicate volume and the failure storage medium identification information indicating the storage medium in which the failure has occurred. A step of referring to the cumulative journal corresponding to the database existing in the storage medium in which the failure occurred in the system volume, and finding the transaction record corresponding to the transaction executed at the time of the failure.
(D) A step of executing roll-forward processing from the detected transaction record for the database of the duplicate volume corresponding to the database existing in the storage medium in which the failure occurred in the primary volume.
Is characterized by executing.

以上のように本発明によれば、障害発生時刻の直前までデータベースの整合性を確保できる。 As described above, according to the present invention, the integrity of the database can be ensured until immediately before the failure occurrence time.

図1は、第一の実施の形態における、ストレージシステムの一例を示す図である。FIG. 1 is a diagram showing an example of a storage system according to the first embodiment. 図2は、主系サーバを有する主系サイト側の一例を示す図である。FIG. 2 is a diagram showing an example of a main site side having a main server. 図3は、第一の実施の形態における、従系サイト側の一例を示す図である。FIG. 3 is a diagram showing an example of the slave site side in the first embodiment. 図4は、第一の実施の形態における、ストレージシステムの動作の一例を示す図である。FIG. 4 is a diagram showing an example of the operation of the storage system in the first embodiment. 図5は、第一の実施の形態における、従系サーバの動作の一例を示す図である。FIG. 5 is a diagram showing an example of the operation of the slave server in the first embodiment. 図6は、第一の実施の形態における、ロールバック処理の一例を示す図である。FIG. 6 is a diagram showing an example of rollback processing in the first embodiment. 図7は、第二の実施の形態における、ストレージシステムの一例を示す図である。FIG. 7 is a diagram showing an example of a storage system according to the second embodiment. 図8は、第二の実施の形態における、従系サイト側の一例を示す図である。FIG. 8 is a diagram showing an example of the slave site side in the second embodiment. 図9は、第二の実施の形態における、ストレージシステムの動作の一例を示す図である。FIG. 9 is a diagram showing an example of the operation of the storage system in the second embodiment. 図10は、第二の実施の形態における、従系サーバの動作の一例を示す図である。FIG. 10 is a diagram showing an example of the operation of the slave server in the second embodiment. 図11は、第二の実施の形態における、ロールフォワード処理及びロールバック処理の一例を示す図である。FIG. 11 is a diagram showing an example of rollback processing and rollback processing in the second embodiment. 図12は、従系サーバを実現するコンピュータの一例を示す図である。FIG. 12 is a diagram showing an example of a computer that realizes a slave server.

(第一の実施の形態)
以下、本発明の第一の実施の形態におけるストレージシステムについて、図1から図6を参照しながら説明する。
(First embodiment)
Hereinafter, the storage system according to the first embodiment of the present invention will be described with reference to FIGS. 1 to 6.

[システム構成]
最初に、図1を用いて、第一の実施の形態におけるストレージシステムの構成について説明する。図1は、第一の実施の形態における、ストレージシステムの一例を示す図である。
[System configuration]
First, the configuration of the storage system according to the first embodiment will be described with reference to FIG. FIG. 1 is a diagram showing an example of a storage system according to the first embodiment.

図1に示す第一の実施の形態におけるストレージシステム1は、ソフトウェアによるボリューム二重化と、遠隔データリプリケーションとを適用したシステムである。ストレージシステム1は、主系サーバ2と、正系ボリューム3aを有する正系ストレージ装置3と、副系ボリューム4aを有する副系ストレージ装置4と、複製ボリューム5aを有する複製ストレージ装置5と、従系サーバ6とを有する。正系ボリューム3a、又は副系ボリューム4a、又は複製ボリューム5aは、それぞれ複数の記憶媒体を有する。 The storage system 1 in the first embodiment shown in FIG. 1 is a system to which volume duplication by software and remote data replication are applied. The storage system 1 includes a main server 2, a primary storage device 3 having a primary volume 3a, a secondary storage device 4 having a secondary volume 4a, a duplicate storage device 5 having a duplicate volume 5a, and a slave system. It has a server 6. The primary volume 3a, the secondary volume 4a, or the duplicate volume 5a each has a plurality of storage media.

このうち、主系サーバ2は、ソフトウェアにより二重化された、正系ボリューム3aと副系ボリューム4aとを更新する。正系ボリューム3aは、副系ボリューム4aは、正系ボリュームとともに、データベース7aと基底ジャーナル8aと障害情報9aとを記憶する。なお、以降において、副系ボリューム4aに記憶される、データベース7aをデータベース7b、基底ジャーナル8aを基底ジャーナル8b、障害情報9aを障害情報9bと呼ぶ。 Of these, the main server 2 updates the primary volume 3a and the secondary volume 4a, which are duplicated by software. The primary volume 3a stores the database 7a, the basal journal 8a, and the failure information 9a together with the primary volume 4a. Hereinafter, the database 7a stored in the secondary volume 4a will be referred to as a database 7b, the base journal 8a will be referred to as a base journal 8b, and the failure information 9a will be referred to as failure information 9b.

複製ボリューム5aは、遠隔データリプリケーションにより、正系ボリューム3aから転送された、データベース7aと基底ジャーナル8aと障害情報9aとを記憶する。なお、以降において、複製ボリューム5aに記憶される、データベース7aをデータベース7c、基底ジャーナル8aを基底ジャーナル8c、障害情報9aを障害情報9cと呼ぶ。 The duplicate volume 5a stores the database 7a, the basal journal 8a, and the failure information 9a transferred from the primary volume 3a by remote data replication. Hereinafter, the database 7a stored in the duplicate volume 5a will be referred to as a database 7c, the base journal 8a will be referred to as a base journal 8c, and the failure information 9a will be referred to as failure information 9c.

正系ボリューム3aにおいて、データベース7aと、基底ジャーナル8aと、障害情報9aとは、正系ボリューム3aが有する複数の記憶媒体に分散して記憶される。また、副系ボリューム4aにおいて、データベース7bと、基底ジャーナル8bと、障害情報9bとは、副系ボリューム4aが有する複数の記憶媒体に分散して記憶される。更に、複製ボリューム5aにおいて、データベース7cと、基底ジャーナル8cと、障害情報9cとは、複製ボリューム5aが有する複数の記憶媒体に分散して記憶される。 In the canonical volume 3a, the database 7a, the base journal 8a, and the failure information 9a are distributed and stored in a plurality of storage media possessed by the canonical volume 3a. Further, in the sub system volume 4a, the database 7b, the base journal 8b, and the failure information 9b are distributed and stored in a plurality of storage media possessed by the sub system volume 4a. Further, in the duplicate volume 5a, the database 7c, the base journal 8c, and the failure information 9c are distributed and stored in a plurality of storage media included in the duplicate volume 5a.

従系サーバ6は、複製ボリューム5aに記憶された障害情報に含まれる障害発生時刻を用いて、複製ボリューム5aに記憶された基底ジャーナル8cを参照し、障害発生時刻に実行されたトランザクションに対応するトランザクション開始TSを検出する。その後、従系サーバ6は、複製ボリューム5aの全てのデータベース7cに対して検出したトランザクション開始TSまでロールバック処理を実行する。障害発生時刻は、正系ボリューム3aが有する記憶媒体に障害が発生した時刻を示す情報である。なお、時刻は、日時などを用いてもよい。 The slave server 6 refers to the base journal 8c stored in the replication volume 5a by using the failure occurrence time included in the failure information stored in the replication volume 5a, and corresponds to the transaction executed at the failure occurrence time. Detect the transaction start TS. After that, the slave server 6 executes rollback processing up to the transaction start TS detected for all the databases 7c of the duplicate volume 5a. The failure occurrence time is information indicating the time when the failure occurred in the storage medium of the primary volume 3a. The time may be the date and time.

このように、第一の実施の形態では、障害発生時刻に実行されたトランザクションに対応するトランザクション開始TSまで、複製ボリューム5aの全てのデータベース7cに対して、ロールバック処理が実行できる。そのため、正系ボリューム3aのいずれかの記憶媒体に障害が発生し、障害が発生した記憶媒体のデータが複製ボリューム5aに複製されていない状況において、更に主系サイト側が被災しても、障害発生時刻の直前まで整合性を確保できる。 As described above, in the first embodiment, the rollback process can be executed for all the databases 7c of the duplicate volume 5a up to the transaction start TS corresponding to the transaction executed at the time of failure occurrence. Therefore, in a situation where a failure occurs in any of the storage media of the primary volume 3a and the data of the storage medium in which the failure has occurred is not duplicated in the duplicate volume 5a, even if the main site side is further damaged, the failure occurs. Consistency can be ensured until just before the time.

続いて、図2、図3を用いて、第一の実施の形態におけるストレージシステム1について具体的に説明する。図2は、主系サーバを有する主系サイト側の一例を示す図である。図3は、第一の実施の形態における、従系サイト側の一例を示す図である。 Subsequently, the storage system 1 according to the first embodiment will be specifically described with reference to FIGS. 2 and 3. FIG. 2 is a diagram showing an example of a main site side having a main server. FIG. 3 is a diagram showing an example of the slave site side in the first embodiment.

主系サイト側について説明する。主系サイト側は、図2に示すように、主系サーバ2と、正系ストレージ装置3と、副系ストレージ装置4とを有する。 The main site side will be explained. As shown in FIG. 2, the main site side has a main server 2, a primary storage device 3, and a secondary storage device 4.

主系サーバ2は、少なくともトランザクション制御部21と、データベース制御部22と、ジャーナル制御部23と、障害管理部24と、二重化ボリューム操作部25とを有する。 The main server 2 has at least a transaction control unit 21, a database control unit 22, a journal control unit 23, a failure management unit 24, and a duplicate volume operation unit 25.

トランザクション制御部21は、トランザクションの開始と終了とを制御する。また、トランザクション制御部21は、基底ジャーナル8aを構成する、トランザクションの開始を示すトランザクション開始TSと、トランザクションの終了を示すトランザクション終了TEとを、ジャーナル制御部23に出力する。 The transaction control unit 21 controls the start and end of a transaction. Further, the transaction control unit 21 outputs the transaction start TS indicating the start of the transaction and the transaction end TE indicating the end of the transaction, which constitute the base journal 8a, to the journal control unit 23.

データベース制御部22は、トランザクションが実行されると、データベース7aに対して入出力されるデータの入出力を制御する。具体的には、データベース制御部22は、正系ボリューム3a又は副系ボリューム4aから、二重化ボリューム操作部25を介して、読み込むデータの入力を、制御する。また、データベース制御部22は、正系ボリューム3a及び副系ボリューム4aへ書き込むデータを、二重化ボリューム操作部25へ出力する、制御をする。また、データベース制御部22は、トランザクションが実行されると、データベース7aを更新する前のイメージBIを生成し、ジャーナル制御部23へ出力する、制御をする。 The database control unit 22 controls the input / output of data input / output to / from the database 7a when the transaction is executed. Specifically, the database control unit 22 controls the input of data to be read from the primary volume 3a or the secondary volume 4a via the duplicated volume operation unit 25. Further, the database control unit 22 controls to output the data to be written to the primary volume 3a and the secondary volume 4a to the duplicated volume operation unit 25. Further, when the transaction is executed, the database control unit 22 generates an image BI before updating the database 7a and outputs it to the journal control unit 23 for control.

ジャーナル制御部23は、トランザクションごとに取得した、トランザクション開始TSとイメージBIとトランザクション終了TEとを、トランザクション開始TS、イメージBI、トランザクション終了TEの順番に、二重化ボリューム操作部25へ出力する、制御をする。 The journal control unit 23 controls to output the transaction start TS, the image BI, and the transaction end TE acquired for each transaction to the duplicated volume operation unit 25 in the order of the transaction start TS, the image BI, and the transaction end TE. do.

障害管理部24は、正系ボリューム3a又は副系ボリューム4aが有する記憶媒体に障害が発生した場合、正系ストレージ装置3又は副系ストレージ装置4から、二重化ボリューム操作部25を介して、記憶媒体に障害が発生したことを示す障害通知を受信する。続いて、障害管理部24は、障害通知を受信すると、受信した障害通知に基づいて障害情報9aを更新するために更新障害情報を生成して、生成した更新障害情報を二重化ボリューム操作部25へ出力する。 When a failure occurs in the storage medium of the primary volume 3a or the secondary volume 4a, the failure management unit 24 receives the storage medium from the primary storage device 3 or the secondary storage device 4 via the duplicated volume operation unit 25. Receive a failure notification indicating that a failure has occurred in. Subsequently, when the failure management unit 24 receives the failure notification, it generates update failure information in order to update the failure information 9a based on the received failure notification, and transfers the generated update failure information to the duplicate volume operation unit 25. Output.

二重化ボリューム操作部25は、データベース制御部22からデータを取得すると、正系ストレージ装置3と副系ストレージ装置4とを操作して、データベース7aとデータベース7bとを更新する。また、二重化ボリューム操作部25は、ジャーナル制御部23からトランザクション開始TSとイメージBIとトランザクション終了TEとを取得すると、正系ストレージ装置3と副系ストレージ装置4とを操作して、基底ジャーナル8aと基底ジャーナル8bとを更新する。更に、二重化ボリューム操作部25は、障害管理部24から更新障害情報を取得すると、正系ストレージ装置3と副系ストレージ装置4とを操作して、障害情報9aと障害情報9bとを更新する。 When the duplicated volume operation unit 25 acquires data from the database control unit 22, it operates the primary storage device 3 and the secondary storage device 4 to update the database 7a and the database 7b. Further, when the duplicated volume operation unit 25 acquires the transaction start TS, the image BI, and the transaction end TE from the journal control unit 23, the duplicated volume operation unit 25 operates the primary storage device 3 and the secondary storage device 4 to obtain the base journal 8a. Update the base journal 8b. Further, when the duplicated volume operation unit 25 acquires the update failure information from the failure management unit 24, it operates the primary storage device 3 and the secondary storage device 4 to update the failure information 9a and the failure information 9b.

正系ストレージ装置3及び副系ストレージ装置4は、複数の記憶媒体を有する記憶装置である。正系ストレージ装置3が有する正系ボリューム3a及び副系ストレージ装置4が有する副系ボリューム4aは、例えば、HDD(Hard Disk Drive)、SSD(Solid State Drive)などの記憶媒体である。データベース7aと、基底ジャーナル8aと、障害情報9aとは、正系ボリューム3aが有する一つ以上の記憶媒体に記憶される。また、データベース7bと、基底ジャーナル8bと、障害情報9bとは、副系ボリューム4aが有する一つ以上の記憶媒体に記憶される。 The primary storage device 3 and the secondary storage device 4 are storage devices having a plurality of storage media. The primary volume 3a included in the primary storage device 3 and the secondary volume 4a included in the secondary storage device 4 are storage media such as an HDD (Hard Disk Drive) and an SSD (Solid State Drive). The database 7a, the basal journal 8a, and the failure information 9a are stored in one or more storage media of the positive volume 3a. Further, the database 7b, the basal journal 8b, and the failure information 9b are stored in one or more storage media included in the secondary volume 4a.

正系ストレージ装置3は、副系ストレージ装置4とともに、主系サーバ2により操作され、データベース7aと、基底ジャーナル8aと、障害情報9aとが更新される。また、正系ストレージ装置3は、遠隔データリプリケーションを実行して、正系ボリューム3aに記憶されているデータベース7aと、基底ジャーナル8aと、障害情報9aとを、複製ストレージ装置5が有する複製ボリューム5aに複製する。 The primary storage device 3 is operated by the main server 2 together with the secondary storage device 4, and the database 7a, the base journal 8a, and the failure information 9a are updated. Further, the primary storage device 3 executes remote data replication to store the database 7a stored in the primary volume 3a, the base journal 8a, and the failure information 9a in the duplicate volume 5a of the duplicate storage device 5. Duplicate to.

副系ストレージ装置4は、正系ストレージ装置3とともに、主系サーバ2により操作され、データベース7bと、基底ジャーナル8bと、障害情報9bとが更新される。 The secondary storage device 4 is operated by the main server 2 together with the primary storage device 3, and the database 7b, the base journal 8b, and the failure information 9b are updated.

従系サイト側について説明する。第一の実施の形態における、従系サイト側は、図3に示すように、複製ストレージ装置5と、従系サーバ6とを有する。 The subordinate site side will be explained. In the first embodiment, the slave site side has a duplicate storage device 5 and a slave server 6 as shown in FIG.

複製ストレージ装置5は、複数の記憶媒体を有する記憶装置である。複製ストレージ装置5が有する複製ボリューム5aは、例えば、HDD、SSDなどの記憶媒体である。データベース7cと、基底ジャーナル8cと、障害情報9cとは、複製ボリューム5aが有する一つ以上の記憶媒体に記憶される。 The duplication storage device 5 is a storage device having a plurality of storage media. The duplication volume 5a included in the duplication storage device 5 is, for example, a storage medium such as an HDD or SSD. The database 7c, the basal journal 8c, and the failure information 9c are stored in one or more storage media included in the duplicate volume 5a.

通常時、複製ボリューム5aには、正系ボリューム3aが実行する、遠隔データリプリケーションにより、正系ボリューム3aに記憶されているデータベース7aと、基底ジャーナル8aと、障害情報9aとが複製される。複製ボリューム5aは、従系サーバ6により、ロールバック処理が実行される。 Normally, the duplicate volume 5a is duplicated with the database 7a stored in the regular volume 3a, the base journal 8a, and the failure information 9a by the remote data replication executed by the regular volume 3a. Rollback processing of the duplicate volume 5a is executed by the slave server 6.

従系サーバ6は、複製ボリューム5aに記憶されている、基底ジャーナル8cと障害情報9cとを用いて、複製ボリューム5aに対してロールバック処理を実行する。従系サーバ6は、少なくとも複製ボリューム操作部31と、ロールバック処理部32とを有する。 The slave server 6 executes rollback processing on the duplicate volume 5a by using the base journal 8c and the failure information 9c stored in the duplicate volume 5a. The slave server 6 has at least a duplicate volume operation unit 31 and a rollback processing unit 32.

複製ボリューム操作部31は、複製ストレージ装置5を操作して、基底ジャーナル8cと、障害情報9cとを取得し、障害情報9cをロールバック処理部32へ出力する。また、複製ボリューム操作部31は、ロールバック処理部32からデータベース7cを更新するデータを取得し、複製ストレージ装置5を操作して、取得したデータを用いてデータベース7cを更新する。 The replication volume operation unit 31 operates the replication storage device 5, acquires the base journal 8c and the failure information 9c, and outputs the failure information 9c to the rollback processing unit 32. Further, the replication volume operation unit 31 acquires data for updating the database 7c from the rollback processing unit 32, operates the replication storage device 5, and updates the database 7c using the acquired data.

ロールバック処理部32は、基底ジャーナル8cと障害情報9cとを参照し、正系ボリューム3aのいずれかの記憶媒体に障害がなく、かつトランザクションが中断したか否かを判定する。すなわち、ロールバック処理部32は、トランザクション終了TEがないか否かを判定する。 The rollback processing unit 32 refers to the base journal 8c and the failure information 9c, and determines whether or not there is a failure in any of the storage media of the primary volume 3a and the transaction is interrupted. That is, the rollback processing unit 32 determines whether or not there is a transaction end TE.

続いて、ロールバック処理部32は、正系ボリューム3aのいずれかの記憶媒体に障害がなく、かつトランザクションが中断した場合、中断されたトランザクションに対応するトランザクション開始TSまで、複製ボリューム5aの全てのデータベース7cに対してロールバック処理を実行する。 Subsequently, when the storage medium of any of the primary volumes 3a has no failure and the transaction is interrupted, the rollback processing unit 32 performs all of the duplicate volume 5a up to the transaction start TS corresponding to the interrupted transaction. Rollback processing is executed for the database 7c.

また、ロールバック処理部32は、障害情報9cを参照し、正系ボリューム3aのいずれかの記憶媒体に障害あるか否かを判定する。 Further, the rollback processing unit 32 refers to the failure information 9c and determines whether or not any of the storage media of the positive volume 3a has a failure.

続いて、ロールバック処理部32は、正系ボリューム3aのいずれかの記憶媒体に障害がある場合、障害情報9cに含まれる記憶媒体に障害が発生した障害発生時刻を参照して、障害発生時刻に実行されたトランザクションに対応するトランザクション開始TSを検出する。その後、ロールバック処理部32は、当該トランザクション開始TSまで、複製ボリューム5aの全てのデータベースに対してロールバック処理を実行する。 Subsequently, when the storage medium of any of the primary volumes 3a has a failure, the rollback processing unit 32 refers to the failure occurrence time when the storage medium included in the failure information 9c has a failure, and the failure occurrence time. Detects the transaction start TS corresponding to the transaction executed in. After that, the rollback processing unit 32 executes rollback processing for all the databases of the duplicate volume 5a until the transaction start TS.

[システム動作]
次に、本発明の第一の実施の形態におけるストレージシステム及び従系サーバの動作について図4、図5、図6を用いて説明する。図4は、第一の実施の形態における、ストレージシステムの動作の一例を示す図である。図5は、第一の実施の形態における、従系サーバの動作の一例を示す図である。図6は、第一の実施の形態における、ロールバック処理の一例を示す図である。以下の説明においては、適宜図1、図2、図3を参酌する。また、第一の実施の形態では、ストレージシステムを動作させることによって、ストレージシステムの制御方法が実施される。よって、第一の実施の形態におけるストレージシステムの制御方法の説明は、以下のストレージシステム及び従系サーバの動作説明に代える。
[System operation]
Next, the operation of the storage system and the slave server in the first embodiment of the present invention will be described with reference to FIGS. 4, 5, and 6. FIG. 4 is a diagram showing an example of the operation of the storage system in the first embodiment. FIG. 5 is a diagram showing an example of the operation of the slave server in the first embodiment. FIG. 6 is a diagram showing an example of rollback processing in the first embodiment. In the following description, FIGS. 1, 2, and 3 will be referred to as appropriate. Further, in the first embodiment, the control method of the storage system is implemented by operating the storage system. Therefore, the description of the control method of the storage system in the first embodiment is replaced with the following description of the operation of the storage system and the slave server.

図4に示す動作の概要を用いて、複製ボリューム5aに基底ジャーナル8cと、障害情
報9cとを複製する方法について説明する。なお、副系ストレージ装置4の動作については、正系ストレージ装置3と同じ動作であるので説明を省略する。
A method of replicating the basal journal 8c and the failure information 9c to the replication volume 5a will be described with reference to the outline of the operation shown in FIG. Since the operation of the secondary storage device 4 is the same as that of the primary storage device 3, the description thereof will be omitted.

主系サーバ2は、トランザクションを開始すると、トランザクション開始TSを、正系ストレージ装置3へ出力する(ステップA1)。正系ストレージ装置3は、トランザクション開始TSを取得すると、正系ボリューム3aが有する基底ジャーナル8aにトランザクション開始TSを書き込む(ステップA2)。続いて、正系ストレージ装置3は、遠隔データリプリケーション処理を実行して、複製ストレージ装置5へトランザクション開始TSを出力する(ステップA3)。複製ストレージ装置5は、トランザクション開始TSを取得すると、複製ボリューム5aが有する基底ジャーナル8cにトランザクション開始TSを書き込む(ステップA4)。 When the main server 2 starts a transaction, the transaction start TS is output to the primary storage device 3 (step A1). When the primary storage device 3 acquires the transaction start TS, it writes the transaction start TS to the base journal 8a of the primary volume 3a (step A2). Subsequently, the primary storage device 3 executes the remote data replication process and outputs the transaction start TS to the duplicate storage device 5 (step A3). When the duplicate storage device 5 acquires the transaction start TS, it writes the transaction start TS to the base journal 8c of the duplicate volume 5a (step A4).

続いて、正系ストレージ装置3は、トランザクションの一連の処理に応じて、正系ストレージ装置3が有するデータベース7aからデータを取得して、主系サーバ2に出力する(ステップA5)。主系サーバ2は、当該データを取得すると(ステップA6)、データベース7aを更新する前のイメージBIを、正系ストレージ装置3へ出力する(ステップA7)。正系ストレージ装置3は、イメージBIを取得すると、正系ボリューム3aが有する基底ジャーナル8aにイメージBIを書き込む(ステップA8)。続いて、正系ストレージ装置3は、遠隔データリプリケーション処理を実行して、複製ストレージ装置5へイメージBIを出力する(ステップA9)。複製ストレージ装置5は、イメージBIを取得すると、複製ボリューム5aが有する基底ジャーナル8cにイメージBIを書き込む(ステップA10)。 Subsequently, the primary storage device 3 acquires data from the database 7a of the primary storage device 3 and outputs the data to the main server 2 in response to a series of transaction processes (step A5). When the main server 2 acquires the data (step A6), the main server 2 outputs the image BI before updating the database 7a to the primary storage device 3 (step A7). When the primary storage device 3 acquires the image BI, the primary storage device 3 writes the image BI in the base journal 8a of the primary volume 3a (step A8). Subsequently, the primary storage device 3 executes the remote data replication process and outputs the image BI to the duplicate storage device 5 (step A9). When the replication storage device 5 acquires the image BI, the replication storage device 5 writes the image BI in the base journal 8c of the replication volume 5a (step A10).

続いて、主系サーバ2は、トランザクションの一連の処理に応じて発生した更新データを、正系ストレージ装置3へ出力する(ステップA11)。正系ストレージ装置3は、更新データを取得すると、正系ボリューム3aが有するデータベース7aに更新データを書き込む(ステップA12)。続いて、正系ストレージ装置3は、遠隔データリプリケーション処理を実行して、複製ストレージ装置5へ更新データを出力する(ステップA13)。複製ストレージ装置5は、更新データを取得すると、複製ボリューム5aが有するデータベース7cに更新データを書き込む(ステップA14)。なお、トランザクションが継続している場合には、上述したステップA5からステップA14の処理を繰り返す。 Subsequently, the main server 2 outputs the update data generated in response to a series of transaction processes to the primary storage device 3 (step A11). When the primary storage device 3 acquires the update data, the primary storage device 3 writes the update data to the database 7a of the primary volume 3a (step A12). Subsequently, the primary storage device 3 executes the remote data replication process and outputs the update data to the duplicate storage device 5 (step A13). When the duplicate storage device 5 acquires the update data, it writes the update data to the database 7c of the duplicate volume 5a (step A14). If the transaction continues, the processes of steps A5 to A14 described above are repeated.

続いて、主系サーバ2は、トランザクションが終了すると、トランザクション終了TEを、正系ストレージ装置3へ出力する(ステップA15)。正系ストレージ装置3は、トランザクション終了TEを取得すると、正系ボリューム3aが有する基底ジャーナル8aにトランザクション終了TEを書き込む(ステップA16)。続いて、正系ストレージ装置3は、遠隔データリプリケーション処理を実行して、複製ストレージ装置5へトランザクション終了TEを出力する(ステップA17)。複製ストレージ装置5は、トランザクション終了TEを取得すると、複製ボリューム5aが有する基底ジャーナル8cにトランザクション終了TEを書き込む(ステップA18)。 Subsequently, when the transaction is completed, the main server 2 outputs the transaction end TE to the primary storage device 3 (step A15). When the primary storage device 3 acquires the transaction termination TE, it writes the transaction termination TE to the base journal 8a of the primary volume 3a (step A16). Subsequently, the primary storage device 3 executes the remote data replication process and outputs the transaction end TE to the duplicate storage device 5 (step A17). When the duplicate storage device 5 acquires the transaction end TE, it writes the transaction end TE to the base journal 8c of the duplicate volume 5a (step A18).

ところが、正系ボリューム3aが有する記憶媒体のいずれかに障害が発生した場合(図4の太字×を参照)、上述したステップA12において、データベース7aを更新できなくなる。そのため、上述したステップA13において、複製ボリューム5aが有するデータベース7cを更新できなくなる。 However, if any of the storage media of the primary volume 3a fails (see bold x in FIG. 4), the database 7a cannot be updated in step A12 described above. Therefore, in step A13 described above, the database 7c of the duplicate volume 5a cannot be updated.

そのような場合、主系サーバ2は、正系ボリューム3aにおいて障害が発生した記憶媒体を示す情報と、その障害が発生した時刻を示す障害発生時刻とを関連付けた更新障害情報を、正系ストレージ装置3へ出力する(ステップA19)。正系ストレージ装置3は、更新障害情報を取得すると、正系ボリューム3aが有する障害情報9aに更新障害情報を
書き込む(ステップA20)。続いて、正系ストレージ装置3は、遠隔データリプリケーション処理を実行して、複製ストレージ装置5へ更新障害情報を出力する(ステップA21)。複製ストレージ装置5は、更新障害情報を取得すると、複製ボリューム5aが有する障害情報9cに更新障害情報を書き込む(ステップA22)。
In such a case, the main server 2 stores the update failure information in which the information indicating the storage medium in which the failure occurred in the primary volume 3a and the failure occurrence time indicating the time when the failure occurred are associated with each other. Output to device 3 (step A19). When the primary storage device 3 acquires the update failure information, the primary storage device 3 writes the update failure information in the failure information 9a of the primary volume 3a (step A20). Subsequently, the primary storage device 3 executes the remote data replication process and outputs the update failure information to the duplicate storage device 5 (step A21). When the replication storage device 5 acquires the update failure information, it writes the update failure information in the failure information 9c of the replication volume 5a (step A22).

なお、上述した正系ストレージ装置3が、複製ボリューム5aの更新をするタイミングは、更新する順序を変えなければ、正系ボリューム3aと同期して実行しなくてもよい。 The timing of updating the replication volume 5a by the above-mentioned primary storage device 3 does not have to be executed in synchronization with the primary volume 3a unless the updating order is changed.

次に、図5を用いて、正系ボリューム3aが有する記憶媒体のいずれかに障害が発生しているときに、更に主系サイト側が被災した場合における、従系サーバ6の動作について説明する。 Next, with reference to FIG. 5, the operation of the slave server 6 will be described when a failure occurs in any of the storage media of the primary volume 3a and the main site side is further damaged.

従系サーバ6が有するロールバック処理部32は、障害情報9cを参照し(ステップB1)、正系ボリューム3aのいずれかの記憶媒体に障害があるか否かを判定する(ステップB2)。続いて、ロールバック処理部32は、記憶媒体に障害がある場合(ステップB2:Yes)、基底ジャーナル8cを参照し、障害発生時刻に実行されたトランザクションに対応するトランザクション開始TSを検出する(ステップB3)。そして、ロールバック処理部32は、複製ボリューム5a全てのデータベース7cに対して、検出したトランザクション開始TSまで、ロールバック処理を実行する(ステップB4)。 The rollback processing unit 32 included in the slave server 6 refers to the failure information 9c (step B1), and determines whether or not any storage medium of the primary volume 3a has a failure (step B2). Subsequently, when the storage medium has a failure (step B2: Yes), the rollback processing unit 32 refers to the base journal 8c and detects the transaction start TS corresponding to the transaction executed at the failure occurrence time (step). B3). Then, the rollback processing unit 32 executes rollback processing for all the databases 7c of the duplicate volume 5a up to the detected transaction start TS (step B4).

図6を用いて具体的に説明する。ステップB1、ステップB2において、ロールバック処理部32は、正系ボリューム3aのいずれかの記憶媒体に障害が発生した場合、障害情報9cを参照して、障害発生時刻を検出する。 This will be specifically described with reference to FIG. In step B1 and step B2, when a failure occurs in any of the storage media of the positive volume 3a, the rollback processing unit 32 detects the failure occurrence time with reference to the failure information 9c.

ステップB3において、ロールバック処理部32は、基底ジャーナル8cを参照し、障害発生時刻に実行されたトランザクションmに対応するトランザクション開始TSmを検出する。又は、ロールバック処理部32は、基底ジャーナル8cを参照し、障害発生時刻後で、最初に出力されたトランザクション終了TEmを検出し、当該トランザクション終了TEmに対応するトランザクション開始TSmを検出してもよい。 In step B3, the rollback processing unit 32 refers to the base journal 8c and detects the transaction start TSm corresponding to the transaction m executed at the time of failure occurrence. Alternatively, the rollback processing unit 32 may refer to the base journal 8c, detect the transaction end TEm first output after the failure occurrence time, and detect the transaction start TSm corresponding to the transaction end TEm. ..

ステップB4において、ロールバック処理部32は、複製ボリューム5a全てのデータベース7cに対して、検出したトランザクション開始TSmまで、ロールバック処理を実行する。その結果、障害発生時刻直前のトランザクションmまで、データベース7cを戻すことができる。 In step B4, the rollback processing unit 32 executes rollback processing for all the databases 7c of the duplicate volume 5a up to the detected transaction start TSm. As a result, the database 7c can be returned up to the transaction m immediately before the failure occurrence time.

なお、ロールバック処理部32は、記憶媒体に障害がない場合(ステップB2:No)、中断されたトランザクションに対応するトランザクション開始TSを検出する(ステップB5)。そして、ロールバック処理部32は、複製ボリューム5a全てのデータベース7cに対して、検出したトランザクション開始TSまで、ロールバック処理を実行する(ステップB6)。 If the storage medium has no failure (step B2: No), the rollback processing unit 32 detects the transaction start TS corresponding to the interrupted transaction (step B5). Then, the rollback processing unit 32 executes rollback processing for all the databases 7c of the duplicate volume 5a up to the detected transaction start TS (step B6).

[第一の実施の形態の効果]
以上のように第一の実施の形態によれば、障害発生時刻に実行されたトランザクションに対応するトランザクション開始TSmまで、複製ボリューム5aの全てのデータベース7cに対して、ロールバック処理を実行できる。そのため、正系ボリューム3aのいずれかの記憶媒体に障害が発生し、障害が発生した記憶媒体のデータが複製ボリューム5aに複製されていない状況において、更に主系サイト側が被災しても、障害発生時刻の直前まで整合性を確保できる。
[Effect of the first embodiment]
As described above, according to the first embodiment, the rollback process can be executed for all the databases 7c of the duplicate volume 5a up to the transaction start TSm corresponding to the transaction executed at the time of failure occurrence. Therefore, in a situation where a failure occurs in any of the storage media of the primary volume 3a and the data of the storage medium in which the failure has occurred is not duplicated in the duplicate volume 5a, even if the main site side is further damaged, the failure occurs. Consistency can be ensured until just before the time.

[プログラム]
本発明の第一の実施の形態におけるプログラムは、コンピュータに、図5に示すステップB1からB6を実行させるプログラムであればよい。このプログラムをコンピュータにインストールし、実行することによって、第一の実施の形態におけるストレージシステムに含まれる従系サーバとその制御方法とを実現することができる。この場合、コンピュータのプロセッサは、複製ボリューム操作部31と、ロールバック処理部32として機能し、処理を行なう。
[program]
The program according to the first embodiment of the present invention may be any program that causes a computer to execute steps B1 to B6 shown in FIG. By installing and executing this program on a computer, it is possible to realize the slave server included in the storage system and the control method thereof according to the first embodiment. In this case, the processor of the computer functions as the duplicate volume operation unit 31 and the rollback processing unit 32 to perform processing.

また、第一の実施の形態では、複製ボリューム操作部31と、ロールバック処理部32とは、コンピュータに備えられたハードディスクなどの記憶装置に、これらを構成するデータファイルを格納することによって、又はこのデータファイルが格納された記録媒体をコンピュータと接続された読取装置に搭載することによって実現されている。 Further, in the first embodiment, the replication volume operation unit 31 and the rollback processing unit 32 are stored in a storage device such as a hard disk provided in the computer, or by storing the data files constituting them, or. This is realized by mounting a recording medium in which this data file is stored in a reading device connected to a computer.

また、第一の実施の形態におけるプログラムは、複数のコンピュータによって構築されたコンピュータシステムによって実行されてもよい。この場合は、例えば、各コンピュータが、それぞれ、複製ボリューム操作部31、ロールバック処理部32のいずれかとして機能してもよい。 Further, the program in the first embodiment may be executed by a computer system constructed by a plurality of computers. In this case, for example, each computer may function as either the duplicate volume operation unit 31 or the rollback processing unit 32, respectively.

(第二の実施の形態)
次に、本発明の第二の実施の形態におけるストレージシステムについて、図7から図11を参照しながら説明する。
(Second embodiment)
Next, the storage system according to the second embodiment of the present invention will be described with reference to FIGS. 7 to 11.

[システム構成]
最初に、図7を用いて、第二の実施の形態におけるストレージシステムの構成について説明する。図7は、第二の実施の形態における、ストレージシステムの一例を示す図である。
[System configuration]
First, the configuration of the storage system according to the second embodiment will be described with reference to FIG. 7. FIG. 7 is a diagram showing an example of a storage system according to the second embodiment.

図7に示す第二の実施の形態におけるストレージシステム1は、ソフトウェアによるボリューム二重化と、遠隔データリプリケーションとを適用したシステムである。ストレージシステム1は、主系サーバ2と、正系ボリューム3aを有する正系ストレージ装置3と、副系ボリューム4aを有する副系ストレージ装置4と、複製ボリューム5aを有する複製ストレージ装置5と、従系サーバ6とを有する。正系ボリューム3a、又は副系ボリューム4a、又は複製ボリューム5aそれぞれは、複数の記憶媒体を有する。 The storage system 1 in the second embodiment shown in FIG. 7 is a system to which volume duplication by software and remote data replication are applied. The storage system 1 includes a main server 2, a primary storage device 3 having a primary volume 3a, a secondary storage device 4 having a secondary volume 4a, a duplicate storage device 5 having a duplicate volume 5a, and a slave system. It has a server 6. Each of the primary volume 3a, the secondary volume 4a, or the duplicate volume 5a has a plurality of storage media.

このうち、第二の実施の形態における主系サーバ2は、ソフトウェアにより二重化された、正系ボリューム3aと副系ボリューム4aとを更新する。正系ボリューム3aは、データベース7aと基底ジャーナル8aと障害情報9aと、更に累積ジャーナル10aを記憶する。副系ボリューム4aは、正系ボリュームとともに、データベース7bと基底ジャーナル8bと障害情報9bと、更に累積ジャーナル10aを記憶する。なお、以降において、副系ボリューム4aに記憶される、累積ジャーナル10aを累積ジャーナル10bと呼ぶ。 Of these, the main server 2 in the second embodiment updates the primary volume 3a and the secondary volume 4a duplicated by software. The primary volume 3a stores the database 7a, the basal journal 8a, the failure information 9a, and the cumulative journal 10a. The secondary volume 4a stores the database 7b, the basal journal 8b, the failure information 9b, and the cumulative journal 10a together with the primary volume. Hereinafter, the cumulative journal 10a stored in the secondary volume 4a will be referred to as a cumulative journal 10b.

なお、累積ジャーナル10aは、データベース7aを更新した後のイメージ(トランザクションレコード)を有するジャーナルである。イメージは、トランザクションにおいて実行された操作を記憶した情報である。 The cumulative journal 10a is a journal having an image (transaction record) after updating the database 7a. An image is information that stores the operations performed in a transaction.

複製ボリューム5aは、遠隔データリプリケーションにより、正系ボリューム3aから転送された、データベース7aと基底ジャーナル8aと障害情報9aと、更に累積ジャーナル10aを記憶する。なお、以降において、複製ボリューム5aに記憶される、累積ジャーナル10aを累積ジャーナル10cと呼ぶ。 The duplicate volume 5a stores the database 7a, the base journal 8a, the failure information 9a, and the cumulative journal 10a transferred from the primary volume 3a by remote data replication. Hereinafter, the cumulative journal 10a stored in the duplicate volume 5a will be referred to as a cumulative journal 10c.

正系ボリューム3aにおいて、データベース7aと、基底ジャーナル8aと、障害情報9aと、累積ジャーナル10aとは、正系ボリューム3aが有する複数の記憶媒体に分散して記憶される。また、副系ボリューム4aにおいて、データベース7bと、基底ジャーナル8bと、障害情報9bと、累積ジャーナル10bとは、副系ボリューム4aが有する複数の記憶媒体に分散して記憶される。更に、複製ボリューム5aにおいて、データベース7cと、基底ジャーナル8cと、障害情報9cと、累積ジャーナル10cとは、複製ボリューム5aが有する複数の記憶媒体に分散して記憶される。 In the canonical volume 3a, the database 7a, the base journal 8a, the failure information 9a, and the cumulative journal 10a are distributed and stored in a plurality of storage media included in the canonical volume 3a. Further, in the sub system volume 4a, the database 7b, the base journal 8b, the failure information 9b, and the cumulative journal 10b are distributed and stored in a plurality of storage media possessed by the sub system volume 4a. Further, in the duplicate volume 5a, the database 7c, the base journal 8c, the failure information 9c, and the cumulative journal 10c are distributed and stored in a plurality of storage media included in the duplicate volume 5a.

従系サーバ6は、障害発生時刻と障害記憶媒体特定情報とを用いて、累積ジャーナル10cを参照し、障害発生時刻に実行されたトランザクションにおけるトランザクションレコードを検出する。障害記憶媒体特定情報は、正系ボリューム3aにおいて障害が発生した記憶媒体を示す情報である。 The slave server 6 refers to the cumulative journal 10c using the failure occurrence time and the failure storage medium identification information, and detects the transaction record in the transaction executed at the failure occurrence time. The fault storage medium specific information is information indicating a storage medium in which a fault has occurred in the positive volume 3a.

その後、従系サーバ6は、正系ボリューム3aにおいて障害が発生した記憶媒体に対応する、複製ボリューム5aに存在するデータベース7cに対して、検出したトランザクションレコードからロールフォワード処理を実行する。 After that, the slave server 6 executes roll-forward processing from the detected transaction record for the database 7c existing in the duplicate volume 5a, which corresponds to the storage medium in which the failure occurred in the primary volume 3a.

更に、従系サーバ6は、基底ジャーナル8cを参照し、複製ボリューム5aの全てのデータベース7cに対してロールバック処理を実行する。 Further, the slave server 6 refers to the base journal 8c and executes rollback processing for all the databases 7c of the duplicate volume 5a.

このように、第二の実施の形態では、正系ボリューム3aにおいて障害が発生した記憶媒体に対応する、複製ボリューム5aに存在するデータベース7cに対して、検出したトランザクションレコードからロールフォワード処理を実行し、更にロールバック処理が実行できる。そのため、正系ボリューム3aのいずれかの記憶媒体に障害が発生し、障害が発生した記憶媒体のデータが複製ボリューム5aに複製されていない状況において、更に主系サイト側が被災しても、主系サイト側が被災した時刻直前まで整合性を確保できる。 As described above, in the second embodiment, the rollback process is executed from the detected transaction record for the database 7c existing in the duplicate volume 5a corresponding to the storage medium in which the failure occurred in the primary volume 3a. , Further rollback processing can be executed. Therefore, even if a failure occurs in any of the storage media of the primary volume 3a and the data in the failed storage medium is not duplicated in the duplicate volume 5a, even if the main site side is further damaged, the main system Consistency can be ensured until just before the time when the site is damaged.

続いて、図2、図8を用いて、第二の実施の形態におけるストレージシステム1について具体的に説明する。図8は、第二の実施の形態における、従系サイト側の一例を示す図である。 Subsequently, the storage system 1 in the second embodiment will be specifically described with reference to FIGS. 2 and 8. FIG. 8 is a diagram showing an example of the slave site side in the second embodiment.

第一の実施の形態における主系サイト側と、第二の実施の形態における主系サイト側の違いについて説明する。 The difference between the main site side in the first embodiment and the main site side in the second embodiment will be described.

主系サーバ2は、第二の実施の形態において、少なくともトランザクション制御部21と、データベース制御部22と、ジャーナル制御部23と、障害管理部24と、二重化ボリューム操作部25とを有する。 In the second embodiment, the main server 2 has at least a transaction control unit 21, a database control unit 22, a journal control unit 23, a failure management unit 24, and a duplicate volume operation unit 25.

データベース制御部22は、第二の実施の形態において、更に、トランザクションが実行されると、データベース7aを更新した後のイメージAIを生成し、ジャーナル制御部23へ出力する、制御をする。 In the second embodiment, the database control unit 22 further controls to generate an image AI after updating the database 7a and output it to the journal control unit 23 when a transaction is executed.

ジャーナル制御部23は、第二の実施の形態において、更に、イメージAIを順番に、二重化ボリューム操作部25へ出力する、制御をする。 In the second embodiment, the journal control unit 23 further controls to output the image AI to the duplicated volume operation unit 25 in order.

二重化ボリューム操作部25は、第二の実施の形態において、更に、ジャーナル制御部23からイメージAIを取得すると、正系ストレージ装置3と副系ストレージ装置4とを操作して、累積ジャーナル10aと累積ジャーナル10bとを更新する。 In the second embodiment, when the duplicated volume operation unit 25 further acquires the image AI from the journal control unit 23, the duplicated volume operation unit 25 operates the primary storage device 3 and the secondary storage device 4 to accumulate the cumulative journal 10a and the cumulative journal 10a. Update with journal 10b.

正系ストレージ装置3が有する正系ボリューム3aは、第二の実施の形態において、デ
ータベース7aと、基底ジャーナル8aと、障害情報9aと、累積ジャーナル10aとを一つ以上の記憶媒体に記憶する。また、副系ストレージ装置4が有する副系ボリューム4aは、第二の実施の形態において、データベース7bと、基底ジャーナル8bと、障害情報9bと、累積ジャーナル10bとを一つ以上の記憶媒体に記憶する。
In the second embodiment, the primary volume 3a included in the primary storage device 3 stores the database 7a, the base journal 8a, the failure information 9a, and the cumulative journal 10a in one or more storage media. Further, in the second embodiment, the sub system volume 4a included in the sub system storage device 4 stores the database 7b, the base journal 8b, the failure information 9b, and the cumulative journal 10b in one or more storage media. do.

正系ストレージ装置3は、副系ストレージ装置4とともに、主系サーバ2により操作され、データベース7aと、基底ジャーナル8aと、障害情報9aと、累積ジャーナル10aとが更新される。また、正系ストレージ装置3は、遠隔データリプリケーションを実行して、正系ボリューム3aに記憶されているデータベース7aと、基底ジャーナル8aと、障害情報9aと、累積ジャーナル10aとを、複製ストレージ装置5が有する複製ボリューム5aに複製する。 The primary storage device 3 is operated by the main server 2 together with the secondary storage device 4, and the database 7a, the base journal 8a, the failure information 9a, and the cumulative journal 10a are updated. Further, the primary storage device 3 executes remote data replication to store the database 7a, the base journal 8a, the failure information 9a, and the cumulative journal 10a stored in the primary volume 3a in the duplicate storage device 5. It is duplicated in the duplication volume 5a possessed by.

副系ストレージ装置4は、第二の実施の形態において、正系ストレージ装置3とともに、主系サーバ2により操作され、データベース7bと、基底ジャーナル8bと、障害情報9bと、累積ジャーナル10bとが更新される。 In the second embodiment, the secondary storage device 4 is operated by the main server 2 together with the primary storage device 3, and the database 7b, the base journal 8b, the failure information 9b, and the cumulative journal 10b are updated. Will be done.

従系サイト側について説明する。第二の実施の形態における、従系サイト側は、図8に示すように、複製ストレージ装置5と、従系サーバ6とを有する。 The subordinate site side will be explained. In the second embodiment, the slave site side has a duplicate storage device 5 and a slave server 6 as shown in FIG.

複製ストレージ装置5が有する複製ボリューム5aは、第二の実施の形態において、データベース7cと、基底ジャーナル8cと、障害情報9cと、累積ジャーナル10aとを一つ以上の記憶媒体に記憶する。 In the second embodiment, the replication volume 5a included in the replication storage device 5 stores the database 7c, the basal journal 8c, the failure information 9c, and the cumulative journal 10a in one or more storage media.

通常時、複製ボリューム5aには、正系ボリューム3aが実行する、遠隔データリプリケーションにより、正系ボリューム3aに記憶されているデータベース7aと、基底ジャーナル8aと、障害情報9aと、累積ジャーナル10aが複製される。複製ボリューム5aは、従系サーバ6により、ロールフォワード処理とロールバック処理とが実行される。 Normally, the duplicate volume 5a is duplicated with the database 7a, the base journal 8a, the failure information 9a, and the cumulative journal 10a stored in the primary volume 3a by remote data replication executed by the primary volume 3a. Will be done. The replication volume 5a is executed by the slave server 6 in rollback processing and rollback processing.

従系サーバ6は、第二の実施の形態において、複製ボリューム5aに記憶されている、基底ジャーナル8cと障害情報9cと累積ジャーナル10cとを用いて、複製ボリューム5aに対してロールフォワード処理とロールバック処理を実行する。従系サーバ6は、少なくとも複製ボリューム操作部31と、ロールフォワード処理81、ロールバック処理部82とを有する。 In the second embodiment, the slave server 6 uses the base journal 8c, the failure information 9c, and the cumulative journal 10c stored in the replication volume 5a to perform roll-forward processing and roll for the replication volume 5a. Execute back processing. The slave server 6 has at least a duplicate volume operation unit 31, a rollforward processing 81, and a rollback processing unit 82.

複製ボリューム操作部31は、第二の実施の形態において、更に、複製ストレージ装置5を操作して、障害情報9cと、累積ジャーナル10cとを取得し、障害情報9cと、累積ジャーナル10cとをロールフォワード処理部81へ出力する。また、複製ボリューム操作部31は、ロールフォワード処理部81からデータベース7cを更新するデータを取得し、複製ストレージ装置5を操作して、取得したデータを用いてデータベース7cを更新する。 In the second embodiment, the replication volume operation unit 31 further operates the replication storage device 5 to acquire the failure information 9c and the cumulative journal 10c, and rolls the failure information 9c and the cumulative journal 10c. Output to the forward processing unit 81. Further, the replication volume operation unit 31 acquires data for updating the database 7c from the roll-forward processing unit 81, operates the replication storage device 5, and updates the database 7c using the acquired data.

また、複製ボリューム操作部31は、ロールフォワード処理終了後、複製ストレージ装置5を操作して、基底ジャーナル8cと、障害情報9cとを取得し、ロールバック処理部82へ出力する。また、複製ボリューム操作部31は、ロールバック処理部82からデータベース7cを更新するデータを取得し、複製ストレージ装置5を操作して、取得したデータを用いてデータベース7cを更新する。 Further, after the rollback processing is completed, the duplication volume operation unit 31 operates the duplication storage device 5 to acquire the base journal 8c and the failure information 9c and output them to the rollback processing unit 82. Further, the replication volume operation unit 31 acquires data for updating the database 7c from the rollback processing unit 82, operates the replication storage device 5, and updates the database 7c using the acquired data.

ロールフォワード処理部81は、障害情報9cを参照し、正系ボリューム3aのいずれかの記憶媒体に障害がないか否かを判定する。続いて、ロールフォワード処理部81は、正系ボリューム3aのいずれかの記憶媒体に障害がある場合、障害発生時刻と、障害記憶
媒体特定情報とを用いて、累積ジャーナル10cを参照し、障害発生時刻に実行されたトランザクションにおけるトランザクションレコードを検出する。すなわち、複製ボリューム5aに記憶された、正系ボリューム3aにおいて障害が発生した記憶媒体に存在するデータベース(データベース7cに含まれるデータベース)に対応する、累積ジャーナル10cを参照し、トランザクションレコードを検出する。
The roll-forward processing unit 81 refers to the failure information 9c and determines whether or not there is a failure in any of the storage media of the positive volume 3a. Subsequently, when the storage medium of any of the positive volumes 3a has a failure, the roll-forward processing unit 81 refers to the cumulative journal 10c using the failure occurrence time and the failure storage medium identification information, and the failure occurs. Detect transaction records in transactions executed at the time. That is, the transaction record is detected by referring to the cumulative journal 10c corresponding to the database (database included in the database 7c) stored in the duplicate volume 5a and existing in the storage medium in which the failure occurred in the primary volume 3a.

続いて、ロールフォワード処理部81は、正系ボリューム3aにおいて障害が発生した記憶媒体に対応する、複製ボリューム5aに存在するデータベース(データベース7cに含まれるデータベース)に対して、検出したトランザクションレコードからロールフォワード処理を実行する。 Subsequently, the roll-forward processing unit 81 rolls from the detected transaction record to the database (database included in the database 7c) existing in the duplicate volume 5a corresponding to the storage medium in which the failure occurred in the primary volume 3a. Execute forward processing.

更に、ロールバック処理部82は、障害情報9cと累積ジャーナル10cとを参照し、正系ボリューム3aのいずれかの記憶媒体に障害がなく、かつトランザクションが中断したか否かを判定する。すなわち、ロールバック処理部32は、トランザクション終了TEがないか否かを判定する。 Further, the rollback processing unit 82 refers to the failure information 9c and the cumulative journal 10c, and determines whether or not there is a failure in any of the storage media of the primary volume 3a and the transaction is interrupted. That is, the rollback processing unit 32 determines whether or not there is a transaction end TE.

続いて、ロールバック処理部82は、正系ボリューム3aのいずれかの記憶媒体に障害なく、かつトランザクションが中断した場合、中断されたトランザクションに対応するトランザクション開始TSまで、複製ボリューム5aの全てのデータベース7cに対してロールバック処理を実行する。 Subsequently, when the rollback processing unit 82 has no failure in any storage medium of the primary volume 3a and the transaction is interrupted, the rollback processing unit 82 describes all the databases of the duplicate volume 5a up to the transaction start TS corresponding to the interrupted transaction. Rollback processing is executed for 7c.

[システム動作]
次に、本発明の第二の実施の形態におけるストレージシステム及び従系サーバの動作について図9、図10、図11を用いて説明する。図9は、第二の実施の形態における、ストレージシステムの動作の一例を示す図である。図10は、第二の実施の形態における、従系サーバの動作の一例を示す図である。図11は、第二の実施の形態における、ロールフォワード処理及びロールバック処理の一例を示す図である。以下の説明においては、適宜図2、図7、図8を参酌する。また、第二の実施の形態では、ストレージシステムを動作させることによって、ストレージシステムの制御方法が実施される。よって、第二の実施の形態におけるストレージシステムの制御方法の説明は、以下のストレージシステム及び従系サーバの動作説明に代える。
[System operation]
Next, the operation of the storage system and the slave server in the second embodiment of the present invention will be described with reference to FIGS. 9, 10, and 11. FIG. 9 is a diagram showing an example of the operation of the storage system in the second embodiment. FIG. 10 is a diagram showing an example of the operation of the slave server in the second embodiment. FIG. 11 is a diagram showing an example of rollback processing and rollback processing in the second embodiment. In the following description, FIGS. 2, 7, and 8 will be referred to as appropriate. Further, in the second embodiment, the control method of the storage system is implemented by operating the storage system. Therefore, the description of the control method of the storage system in the second embodiment is replaced with the following description of the operation of the storage system and the slave server.

図9に示す動作の概要を用いて、本発明の第二の実施の形態において、複製ボリューム5aに、累積ジャーナル10cを複製する方法を説明する。なお、副系ストレージ装置4の動作については、正系ストレージ装置3と同じ動作であるので説明を省略する。 Using the outline of the operation shown in FIG. 9, a method of replicating the cumulative journal 10c to the replication volume 5a will be described in the second embodiment of the present invention. Since the operation of the secondary storage device 4 is the same as that of the primary storage device 3, the description thereof will be omitted.

累積ジャーナル10cを複製する処理を、図9におけるステップA91からA94に示す。主系サーバ2は、データベース7aからデータを取得すると、データベース7aを更新した後のイメージAIを、正系ストレージ装置3へ出力する(ステップA91)。正系ストレージ装置3は、イメージAIを取得すると、正系ボリューム3aが有する累積ジャーナル10aにイメージAIを書き込む(ステップA92)。続いて、正系ストレージ装置3は、遠隔データリプリケーション処理を実行して、複製ストレージ装置5へイメージAIを出力する(ステップA93)。複製ストレージ装置5は、イメージAIを取得すると、複製ボリューム5aが有する累積ジャーナル10cにイメージAIを書き込む(ステップA94)。なお、ステップA91からA94以外の処理については、第一の実施の形態において説明をしたので、説明を省略する。なお、トランザクションが継続している場合には、上述したステップA5からステップA10、ステップA91からステップA94、ステップA11からステップA14の処理を繰り返す。 The process of duplicating the cumulative journal 10c is shown in steps A91 to A94 in FIG. When the main server 2 acquires data from the database 7a, it outputs the image AI after updating the database 7a to the primary storage device 3 (step A91). When the primary storage device 3 acquires the image AI, the primary storage device 3 writes the image AI in the cumulative journal 10a of the positive volume 3a (step A92). Subsequently, the primary storage device 3 executes the remote data replication process and outputs the image AI to the duplicate storage device 5 (step A93). When the duplicate storage device 5 acquires the image AI, it writes the image AI in the cumulative journal 10c of the duplicate volume 5a (step A94). Since the processes other than steps A91 to A94 have been described in the first embodiment, the description thereof will be omitted. If the transaction continues, the processes of steps A5 to A10, steps A91 to A94, and steps A11 to A14 are repeated.

次に、図10を用いて、正系ボリューム3aが有する記憶媒体のいずれかに障害が発生
しているときに、更に主系サイト側が被災した場合における、従系サーバ6の動作について説明する。
Next, with reference to FIG. 10, the operation of the slave server 6 will be described when a failure occurs in any of the storage media of the primary volume 3a and the main site side is further damaged.

従系サーバ6が有するロールフォワード処理部81は、障害情報9cを参照し(ステップC1)、正系ボリューム3aのいずれかの記憶媒体に障害があるか否かを判定する(ステップC2)。続いて、ロールフォワード処理部81は、記憶媒体に障害がある場合(ステップC2:Yes)、累積ジャーナル10cを参照し、障害発生時刻に実行されたトランザクションにおけるトランザクションレコードを検出する(ステップC3)。そして、ロールフォワード処理部81は、正系ボリューム3aにおいて障害が発生した、記憶媒体に対応する、複製ボリューム5aに存在するデータベースに対して、検出したトランザクションレコードからロールフォワード処理を実行する(ステップC4)。 The roll-forward processing unit 81 included in the slave server 6 refers to the failure information 9c (step C1) and determines whether or not any storage medium of the primary volume 3a has a failure (step C2). Subsequently, when the storage medium has a failure (step C2: Yes), the roll-forward processing unit 81 refers to the cumulative journal 10c and detects a transaction record in the transaction executed at the time of failure occurrence (step C3). Then, the roll-forward processing unit 81 executes roll-forward processing from the detected transaction record for the database existing in the duplicate volume 5a corresponding to the storage medium in which the failure occurred in the primary volume 3a (step C4). ).

続いて、ロールバック処理部82は、基底ジャーナル8cを参照し、中断されたトランザクションに対応するトランザクション開始TSを検出する(ステップC5)。そして、ロールバック処理部82は、複製ボリューム5a全てのデータベース7cに対して、検出したトランザクション開始TSまで、ロールバック処理を実行する(ステップC6)。 Subsequently, the rollback processing unit 82 refers to the base journal 8c and detects the transaction start TS corresponding to the interrupted transaction (step C5). Then, the rollback processing unit 82 executes rollback processing for all the databases 7c of the duplicate volume 5a up to the detected transaction start TS (step C6).

図11を用いて具体的に説明する。ステップC1、ステップC2において、ロールバック処理部32は、正系ボリューム3aのいずれかの記憶媒体に障害が発生した場合、障害情報9cを参照して、障害発生時刻と、障害ボリューム記憶媒体特定情報とを検出する。 This will be specifically described with reference to FIG. In step C1 and step C2, when a failure occurs in any of the storage media of the primary volume 3a, the rollback processing unit 32 refers to the failure information 9c, the failure occurrence time, and the failure volume storage medium identification information. And detect.

ステップC3において、ロールフォワード処理部81は、累積ジャーナル10cを参照し、障害発生時刻に実行されたトランザクションkに対応するイメージAIky又はAIkz(トランザクションレコード)を検出する。 In step C3, the roll-forward processing unit 81 refers to the cumulative journal 10c and detects the image AIky or AIkz (transaction record) corresponding to the transaction k executed at the time of failure occurrence.

ステップC4において、ロールフォワード処理部81は、正系ボリューム3aにおいて障害が発生した記憶媒体に対応する、複製ボリューム5aに存在するデータベースに対して、検出したイメージAIky又はAIkz(トランザクションレコード)からロールフォワード処理を実行する。その結果、障害発生時刻直前のトランザクションkまで、データベース7cを戻すことができる。 In step C4, the roll-forward processing unit 81 rolls forward from the detected image AIky or AIkz (transaction record) to the database existing in the duplicate volume 5a corresponding to the storage medium in which the failure occurred in the primary volume 3a. Execute the process. As a result, the database 7c can be returned up to the transaction k immediately before the failure occurrence time.

ステップC5において、ロールバック処理部82は、基底ジャーナル8cを参照し、中断されたトランザクションnに対応するトランザクション開始TSnを検出する。 In step C5, the rollback processing unit 82 refers to the base journal 8c and detects the transaction start TSn corresponding to the interrupted transaction n.

ステップC6において、ロールバック処理部82は、複製ボリューム5a全てのデータベース7cに対して、検出したトランザクション開始TSnまで、ロールバック処理を実行する。その結果、主系サイト側が被災した時刻直前のトランザクションnまで、データベース7cを戻すことができる。 In step C6, the rollback processing unit 82 executes rollback processing for all the databases 7c of the duplicate volume 5a up to the detected transaction start TSn. As a result, the database 7c can be returned up to the transaction n immediately before the time when the main site side is damaged.

[第二の実施の形態の効果]
このように、第二の実施の形態では、正系ボリューム3aにおいて障害が発生した記憶媒体に対応する、複製ボリューム5aに存在するデータベース7cに対して、検出したトランザクションレコードからロールフォワード処理を実行し、更にロールバック処理が実行できる。そのため、正系ボリューム3aのいずれかの記憶媒体に障害が発生し、障害が発生した記憶媒体のデータが複製ボリューム5aに複製されていない状況において、更に主系サイト側が被災しても、主系サイト側が被災した時刻直前まで整合性を確保できる。
[Effect of the second embodiment]
As described above, in the second embodiment, the rollback process is executed from the detected transaction record for the database 7c existing in the duplicate volume 5a corresponding to the storage medium in which the failure occurred in the primary volume 3a. , Further rollback processing can be executed. Therefore, even if a failure occurs in any of the storage media of the primary volume 3a and the data in the failed storage medium is not duplicated in the duplicate volume 5a, even if the main site side is further damaged, the main system Consistency can be ensured until just before the time when the site is damaged.

[プログラム]
本発明の第二の実施の形態におけるプログラムは、コンピュータに、図10に示すステップC1からC6を実行させるプログラムであればよい。このプログラムをコンピュータ
にインストールし、実行することによって、第二の実施の形態におけるストレージシステムに含まれる従系サーバと制御方法とを実現することができる。この場合、コンピュータのプロセッサは、複製ボリューム操作部31と、ロールフォワード処理部81と、ロールバック処理部82として機能し、処理を行なう。
[program]
The program in the second embodiment of the present invention may be any program that causes a computer to execute steps C1 to C6 shown in FIG. By installing and executing this program on a computer, it is possible to realize the slave server and the control method included in the storage system according to the second embodiment. In this case, the processor of the computer functions as the replication volume operation unit 31, the rollforward processing unit 81, and the rollback processing unit 82, and performs processing.

また、第二の実施の形態では、複製ボリューム操作部31と、ロールフォワード処理部81と、ロールバック処理部82とは、コンピュータに備えられたハードディスクなどの記憶装置に、これらを構成するデータファイルを格納することによって、又はこのデータファイルが格納された記録媒体をコンピュータと接続された読取装置に搭載することによって実現されている。 Further, in the second embodiment, the duplicate volume operation unit 31, the rollforward processing unit 81, and the rollback processing unit 82 are stored in a storage device such as a hard disk provided in the computer, and the data files constituting them are stored in the storage device. It is realized by storing the data file or by mounting the recording medium in which the data file is stored in a reading device connected to a computer.

また、第二の実施の形態におけるプログラムは、複数のコンピュータによって構築されたコンピュータシステムによって実行されてもよい。この場合は、例えば、各コンピュータが、それぞれ、複製ボリューム操作部31、ロールフォワード処理部81、ロールバック処理部82のいずれかとして機能してもよい。 Further, the program in the second embodiment may be executed by a computer system constructed by a plurality of computers. In this case, for example, each computer may function as any of the duplicate volume operation unit 31, the rollforward processing unit 81, and the rollback processing unit 82, respectively.

[物理構成]
ここで、第一、第二の実施の形態におけるプログラムを実行することによって、従系サーバを実現するコンピュータについて図12を用いて説明する。図12は、本発明の実施の形態における従系サーバを実現するコンピュータの一例を示す図である。
[Physical configuration]
Here, a computer that realizes a slave server by executing the programs in the first and second embodiments will be described with reference to FIG. 12. FIG. 12 is a diagram showing an example of a computer that realizes a slave server according to the embodiment of the present invention.

図12に示すように、コンピュータ110は、CPU111と、メインメモリ112と、記憶装置113と、入力インターフェイス114と、表示コントローラ115と、データリーダ/ライタ116と、通信インターフェイス117とを備える。これらの各部は、バス121を介して、互いにデータ通信可能に接続される。なお、コンピュータ110は、CPU111に加えて、又はCPU111に代えて、GPU(Graphics Processing Unit)、又はFPGA(Field-Programmable Gate Array)を備えていてもよい。 As shown in FIG. 12, the computer 110 includes a CPU 111, a main memory 112, a storage device 113, an input interface 114, a display controller 115, a data reader / writer 116, and a communication interface 117. Each of these parts is connected to each other via a bus 121 so as to be capable of data communication. The computer 110 may include a GPU (Graphics Processing Unit) or an FPGA (Field-Programmable Gate Array) in addition to the CPU 111 or in place of the CPU 111.

CPU111は、記憶装置113に格納された、第一、第二の実施の形態におけるプログラム(コード)をメインメモリ112に展開し、これらを所定順序で実行することにより、各種の演算を実施する。メインメモリ112は、典型的には、DRAM(Dynamic Random Access Memory)などの揮発性の記憶装置である。また、第一、第二の実施の形態におけるプログラムは、コンピュータ読み取り可能な記録媒体120に格納された状態で提供される。なお、第一、第二の実施の形態におけるプログラムは、通信インターフェイス117を介して接続されたインターネット上で流通するものであってもよい。 The CPU 111 expands the programs (codes) of the first and second embodiments stored in the storage device 113 into the main memory 112, and executes them in a predetermined order to perform various operations. The main memory 112 is typically a volatile storage device such as a DRAM (Dynamic Random Access Memory). Further, the programs in the first and second embodiments are provided in a state of being stored in a computer-readable recording medium 120. The program in the first and second embodiments may be distributed on the Internet connected via the communication interface 117.

また、記憶装置113の具体例としては、ハードディスクドライブの他、フラッシュメモリ等の半導体記憶装置があげられる。入力インターフェイス114は、CPU111と、キーボード及びマウスといった入力機器118との間のデータ伝送を仲介する。表示コントローラ115は、ディスプレイ装置119と接続され、ディスプレイ装置119での表示を制御する。 Further, specific examples of the storage device 113 include a semiconductor storage device such as a flash memory in addition to a hard disk drive. The input interface 114 mediates data transmission between the CPU 111 and an input device 118 such as a keyboard and mouse. The display controller 115 is connected to the display device 119 and controls the display on the display device 119.

データリーダ/ライタ116は、CPU111と記録媒体120との間のデータ伝送を仲介し、記録媒体120からのプログラムの読み出し、及びコンピュータ110における処理結果の記録媒体120への書き込みを実行する。通信インターフェイス117は、CPU111と、他のコンピュータとの間のデータ伝送を仲介する。 The data reader / writer 116 mediates the data transmission between the CPU 111 and the recording medium 120, reads the program from the recording medium 120, and writes the processing result in the computer 110 to the recording medium 120. The communication interface 117 mediates data transmission between the CPU 111 and another computer.

また、記録媒体120の具体例としては、CF(Compact Flash(登録商標))及びSD(Secure Digital)等の汎用的な半導体記憶デバイス、フレキシブルディスク(Flexible Disk)等の磁気記録媒体、又はCD-ROM(Compact Disk Read Only Memory)など
の光学記録媒体があげられる。
Specific examples of the recording medium 120 include a general-purpose semiconductor storage device such as CF (Compact Flash (registered trademark)) and SD (Secure Digital), a magnetic recording medium such as a flexible disk, or a CD-. Examples include optical recording media such as ROM (Compact Disk Read Only Memory).

なお、第一、第二の実施の形態における従系サーバ6は、プログラムがインストールされたコンピュータではなく、各部に対応したハードウェアを用いることによっても実現可能である。更に、従系サーバ6は、一部がプログラムで実現され、残りの部分がハードウェアで実現されていてもよい。 The slave server 6 in the first and second embodiments can be realized by using hardware corresponding to each part instead of the computer in which the program is installed. Further, the slave server 6 may be partially realized by a program and the rest may be realized by hardware.

以上のように本発明によれば、障害が発生した記憶媒体のデータが複製ボリュームに複製されていない状況において、更に主系サイト側が被災しても、従系サーバは、データベースの整合性を確保できる。本発明は、データベースの整合性を確保することが必要な分野において有用である。 As described above, according to the present invention, in a situation where the data of the storage medium in which the failure has occurred is not duplicated in the duplicate volume, even if the main site side is further damaged, the slave server ensures the integrity of the database. can. The present invention is useful in fields where it is necessary to ensure the integrity of the database.

1 ストレージシステム
2 主系サーバ
3 正系ストレージ装置
3a 正系ボリューム
4 副系ストレージ装置
4a 副系ボリューンム
5 複製ストレージ装置
5a 複製ボリューム
6 従系サーバ
7a、7b、7c データベース
8a、8b、8c 基底ジャーナル
9a、9b、9c 障害情報
10a、10b、10c 累積ジャーナル
21 トランザクション制御部
22 データベース制御部
23 ジャーナル制御部
24 障害管理部
25 二重化ボリューム操作部
31 複製ボリューム操作部
32、82 ロールバック処理部
81 ロールフォワード処理部
110 コンピュータ
111 CPU
112 メインメモリ
113 記憶装置
114 入力インターフェイス
115 表示コントローラ
116 データリーダ/ライタ
117 通信インターフェイス
118 入力機器
119 ディスプレイ装置
120 記録媒体
121 バス
1 Storage system 2 Main server 3 Primary storage device 3a Primary volume 4 Secondary storage device 4a Secondary volume 5 Replica storage device 5a Replica volume 6 Subordinate server 7a, 7b, 7c Database 8a, 8b, 8c Base journal 9a , 9b, 9c Failure information 10a, 10b, 10c Cumulative journal 21 Transaction control unit 22 Database control unit 23 Journal control unit 24 Failure management unit 25 Duplex volume operation unit 31 Duplicate volume operation unit 32, 82 Rollback processing unit 81 Rollforward processing Part 110 Computer 111 CPU
112 Main memory 113 Storage device 114 Input interface 115 Display controller 116 Data reader / writer 117 Communication interface 118 Input device 119 Display device 120 Recording medium 121 Bus

Claims (9)

データベースと基底ジャーナルと障害情報とを記憶する、正系ボリュームと、
前記正系ボリュームとともに、前記データベースと前記基底ジャーナルと前記障害情報とを記憶する、副系ボリュームと、
前記正系ボリュームから転送された、前記データベースと前記基底ジャーナルと前記障害情報とを記憶する、複製ボリュームと、
前記正系ボリューム及び副系ボリュームを更新する、主系サーバと、
前記複製ボリュームに記憶された障害情報に含まれる障害発生時刻を用いて、前記複製ボリュームに記憶された前記基底ジャーナルを参照し、前記障害発生時刻に実行されたトランザクションに対応するトランザクション開始を検出し、前記複製ボリュームの全てのデータベースに対して前記トランザクション開始までロールバック処理を実行する、従系サーバと、
を有することを特徴とするストレージシステム。
A primary volume that stores the database, base journal, and failure information,
A secondary volume that stores the database, the base journal, and the failure information together with the primary volume.
A duplicate volume that stores the database, the base journal, and the failure information transferred from the primary volume.
The main server that updates the primary and secondary volumes, and
Using the failure occurrence time included in the failure information stored in the replication volume, the base journal stored in the replication volume is referred to, and the transaction start corresponding to the transaction executed at the failure occurrence time is detected. , A slave server that executes rollback processing until the transaction starts for all databases of the duplicate volume.
A storage system characterized by having.
データベースと基底ジャーナルと障害情報と累積ジャーナルとを記憶する、正系ボリュームと、
前記正系ボリュームとともに、前記データベースと前記基底ジャーナルと前記障害情報と前記累積ジャーナルとを記憶する、副系ボリュームと、
前記正系ボリュームから転送された、前記データベースと前記基底ジャーナルと前記障害情報と前記累積ジャーナルとを記憶する、複製ボリュームと、
前記正系ボリューム及び副系ボリュームを更新する、主系サーバと、
前記複製ボリュームに記憶された障害情報に含まれる、障害発生時刻と、障害が発生した記憶媒体を示す障害記憶媒体特定情報とを用いて、前記複製ボリュームに記憶された、前記正系ボリュームにおいて障害が発生した前記記憶媒体に存在するデータベースに対応する前記累積ジャーナルを参照し、前記障害発生時刻に実行されたトランザクションにおけるトランザクションレコードを検出し、前記正系ボリュームにおいて障害が発生した前記記憶媒体に対応する、前記複製ボリュームに存在するデータベースに対して、検出した前記トランザクションレコードからロールフォワード処理を実行する、従系サーバと、
を有することを特徴とするストレージシステム。
A primary volume that stores the database, the base journal, the failure information, and the cumulative journal,
A secondary volume that stores the database, the base journal, the failure information, and the cumulative journal, together with the primary volume.
A duplicate volume that stores the database, the base journal, the failure information, and the cumulative journal transferred from the primary volume.
The main server that updates the primary and secondary volumes, and
A failure occurs in the primary volume stored in the duplicate volume using the failure occurrence time included in the failure information stored in the duplicate volume and the failure storage medium identification information indicating the storage medium in which the failure has occurred. Refers to the cumulative journal corresponding to the database existing in the storage medium in which the error occurred, detects the transaction record in the transaction executed at the failure occurrence time, and corresponds to the storage medium in which the failure occurred in the primary volume. A slave server that executes roll-forward processing from the detected transaction record for the database existing in the duplicate volume.
A storage system characterized by having.
請求項2に記載のストレージシステムであって、
前記従系サーバは、前記ロールフォワード処理が終了後、前記基底ジャーナルを参照し、前記複製ボリュームの全てのデータベースに対してロールバック処理を実行する
ことを特徴とするストレージシステム。
The storage system according to claim 2.
The slave server is a storage system that refers to the base journal and executes rollback processing for all databases of the duplicate volume after the rollforward processing is completed.
データベースと基底ジャーナルと障害情報とを記憶する正系ボリュームと、前記正系ボリュームとともに、前記データベースと前記基底ジャーナルと前記障害情報とを記憶する副系ボリュームと、前記正系ボリュームから転送された、前記データベースと前記基底ジャーナルと前記障害情報とを記憶する複製ボリュームと、前記正系ボリューム及び副系ボリュームを更新する主系サーバと、前記複製ボリュームを制御する従系サーバと、を有するストレージシステムの制御方法であって、
(A)前記複製ボリュームに記憶された前記障害情報に含まれる障害発生時刻を用いて、前記複製ボリュームに記憶された前記基底ジャーナルを参照し、前記障害発生時刻に実行されたトランザクションに対応するトランザクション開始を検出する、ステップと、
(B)前記複製ボリュームの全てのデータベースに対して前記トランザクション開始までロールバック処理を実行する、ステップと、
を有することを特徴とするストレージシステムの制御方法。
A primary volume that stores a database, a base journal, and failure information, a secondary volume that stores the database, the base journal, and the failure information together with the primary volume, and a secondary volume that is transferred from the primary volume. A storage system having a duplicate volume for storing the database, the base journal, and the failure information, a master server for updating the primary volume and the secondary volume, and a slave server for controlling the duplicate volume. It ’s a control method,
(A) A transaction corresponding to a transaction executed at the failure occurrence time by referring to the base journal stored in the replication volume using the failure occurrence time included in the failure information stored in the replication volume. Steps to detect the start, and
(B) A step of executing rollback processing until the start of the transaction for all databases of the duplicate volume, and
A method of controlling a storage system, characterized in that it has.
データベースと基底ジャーナルと障害情報と累積ジャーナルとを記憶する正系ボリュー
ムと、前記正系ボリュームとともに、前記データベースと前記基底ジャーナルと前記障害情報と前記累積ジャーナルとを記憶する副系ボリュームと、前記正系ボリュームから転送された、前記データベースと前記基底ジャーナルと前記障害情報と前記累積ジャーナルとを記憶する複製ボリュームと、前記正系ボリューム及び副系ボリュームを更新する主系サーバと、前記複製ボリュームを制御する従系サーバと、を有するストレージシステムの制御方法であって、
(C)前記複製ボリュームに記憶された障害情報に含まれる、障害発生時刻と、障害が発生した記憶媒体を示す障害記憶媒体特定情報とを用いて、前記複製ボリュームに記憶された、前記正系ボリュームにおいて障害が発生した前記記憶媒体に存在するデータベースに対応する前記累積ジャーナルを参照し、前記障害発生時刻に実行されたトランザクションにおけるトランザクションレコードを検出する、ステップと、
(D)前記正系ボリュームにおいて障害が発生した前記記憶媒体に存在するデータベースに対応する、前記複製ボリュームのデータベースに対して、検出した前記トランザクションレコードからロールフォワード処理を実行する、ステップと、
を有することを特徴とするストレージシステムの制御方法。
A primary volume that stores a database, a base journal, failure information, and a cumulative journal, a secondary volume that stores the database, the base journal, the failure information, and the cumulative journal, along with the primary volume, and the positive volume. Controls the duplicate volume that stores the database, the base journal, the failure information, and the cumulative journal transferred from the system volume, the main server that updates the primary volume and the secondary volume, and the duplicate volume. A method of controlling a storage system that has a secondary server and
(C) The positive system stored in the duplicate volume using the failure occurrence time included in the failure information stored in the duplicate volume and the failure storage medium identification information indicating the storage medium in which the failure occurred. A step that refers to the cumulative journal corresponding to the database present in the storage medium in which the volume has failed and finds the transaction record in the transaction executed at the time of the failure.
(D) A step of executing roll-forward processing from the detected transaction record for the database of the duplicate volume corresponding to the database existing in the storage medium in which the failure occurred in the primary volume.
A method of controlling a storage system, characterized in that it has.
請求項5に記載のストレージシステムの制御方法であって、
(E)前記ロールフォワード処理が終了後、前記基底ジャーナルを参照し、前記複製ボリュームの全てのデータベースに対してロールバック処理を実行する、ステップと、
を有することを特徴とするストレージシステムの制御方法。
The storage system control method according to claim 5.
(E) After the rollback process is completed, the step of referring to the base journal and executing the rollback process for all the databases of the duplicate volume, and
A method of controlling a storage system, characterized in that it has.
データベースと基底ジャーナルと障害情報とを記憶する正系ボリュームと、前記正系ボリュームとともに、前記データベースと前記基底ジャーナルと前記障害情報とを記憶する副系ボリュームと、前記正系ボリュームから転送された、前記データベースと前記基底ジャーナルと前記障害情報とを記憶する複製ボリュームと、前記正系ボリューム及び副系ボリュームを更新する主系サーバと、を有するストレージシステムに接続されるコンピュータに実行される制御プログラムであって、
前記コンピュータに、
(A)前記複製ボリュームに記憶された前記障害情報に含まれる障害発生時刻を用いて、前記複製ボリュームに記憶された前記基底ジャーナルを参照し、前記障害発生時刻に実行されたトランザクションに対応するトランザクション開始を検出する、ステップと、
(B)前記複製ボリュームの全てのデータベースに対して前記トランザクション開始までロールバック処理を実行する、ステップと、
を実行させることを特徴とする制御プログラム。
A primary volume that stores a database, a base journal, and failure information, a secondary volume that stores the database, the base journal, and the failure information together with the primary volume, and a secondary volume that is transferred from the primary volume. A control program executed by a computer connected to a storage system having a duplicate volume for storing the database, the base journal, the failure information, and a main server for updating the primary volume and the secondary volume. There,
To the computer
(A) A transaction corresponding to a transaction executed at the failure occurrence time by referring to the base journal stored in the replication volume using the failure occurrence time included in the failure information stored in the replication volume. Steps to detect the start, and
(B) A step of executing rollback processing until the start of the transaction for all databases of the duplicate volume, and
A control program characterized by executing.
データベースと基底ジャーナルと障害情報と累積ジャーナルとを記憶する正系ボリュームと、前記正系ボリュームとともに、前記データベースと前記基底ジャーナルと前記障害情報と前記累積ジャーナルとを記憶する副系ボリュームと、前記正系ボリュームから転送された、前記データベースと前記基底ジャーナルと前記障害情報と前記累積ジャーナルとを記憶する複製ボリュームと、前記正系ボリューム及び副系ボリュームを更新する主系サーバと、を有するストレージシステムに接続されるコンピュータに実行される制御プログラムであって、
前記コンピュータに、
(C)前記複製ボリュームに記憶された障害情報に含まれる、障害発生時刻と、障害が発生した記憶媒体を示す障害記憶媒体特定情報とを用いて、前記複製ボリュームに記憶された、前記正系ボリュームにおいて障害が発生した前記記憶媒体に存在するデータベースに対応する前記累積ジャーナルを参照し、前記障害発生時刻に実行されたトランザクションに対応するトランザクションレコードを検出する、ステップと、
(D)前記正系ボリュームにおいて障害が発生した前記記憶媒体に存在するデータベースに対応する、前記複製ボリュームのデータベースに対して、検出した前記トランザクショ
ンレコードからロールフォワード処理を実行する、ステップと、 を実行させることを特徴とする制御プログラム。
A primary volume that stores a database, a base journal, failure information, and a cumulative journal, a secondary volume that stores the database, the base journal, the failure information, and the cumulative journal, along with the primary volume, and the positive volume. To a storage system having a duplicate volume that stores the database, the base journal, the failure information, and the cumulative journal transferred from the system volume, and a main server that updates the primary volume and the secondary volume. A control program that runs on the connected computer
To the computer
(C) The positive system stored in the duplicate volume using the failure occurrence time included in the failure information stored in the duplicate volume and the failure storage medium identification information indicating the storage medium in which the failure occurred. A step that refers to the cumulative journal corresponding to the database present in the storage medium in which the volume has failed and finds the transaction record corresponding to the transaction executed at the time of the failure.
(D) A step and a step of executing a roll-forward process from the detected transaction record for the database of the duplicate volume corresponding to the database existing in the storage medium in which the failure occurred in the primary volume is executed. A control program characterized by letting it.
請求項8に記載の制御プログラムであって、
前記コンピュータに、
(E)前記ロールフォワード処理が終了後、前記基底ジャーナルを参照し、前記複製ボリュームの全てのデータベースに対してロールバック処理を実行する、ステップと、
を実行させることを特徴とする制御プログラム。
The control program according to claim 8.
To the computer
(E) After the rollback process is completed, the step of referring to the base journal and executing the rollback process for all the databases of the duplicate volume, and
A control program characterized by executing.
JP2018054496A 2018-03-22 2018-03-22 Storage systems, control methods, and programs Active JP7007017B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018054496A JP7007017B2 (en) 2018-03-22 2018-03-22 Storage systems, control methods, and programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018054496A JP7007017B2 (en) 2018-03-22 2018-03-22 Storage systems, control methods, and programs

Publications (2)

Publication Number Publication Date
JP2019168797A JP2019168797A (en) 2019-10-03
JP7007017B2 true JP7007017B2 (en) 2022-01-24

Family

ID=68108288

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018054496A Active JP7007017B2 (en) 2018-03-22 2018-03-22 Storage systems, control methods, and programs

Country Status (1)

Country Link
JP (1) JP7007017B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001184267A (en) 1999-12-27 2001-07-06 Hitachi Ltd Storage subsystem
US20040193658A1 (en) 2003-03-31 2004-09-30 Nobuo Kawamura Disaster recovery processing method and apparatus and storage unit for the same
JP2006023889A (en) 2004-07-07 2006-01-26 Hitachi Ltd Remote copy system and storage device system
JP2008250717A (en) 2007-03-30 2008-10-16 Nec Corp Method, unit and program for database recovery
JP2016062306A (en) 2014-09-18 2016-04-25 日本電気株式会社 Storage system, control method, and control program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4878167A (en) * 1986-06-30 1989-10-31 International Business Machines Corporation Method for managing reuse of hard log space by mapping log data during state changes and discarding the log data

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001184267A (en) 1999-12-27 2001-07-06 Hitachi Ltd Storage subsystem
US20040193658A1 (en) 2003-03-31 2004-09-30 Nobuo Kawamura Disaster recovery processing method and apparatus and storage unit for the same
JP2004303025A (en) 2003-03-31 2004-10-28 Hitachi Ltd Information processing method and its execution system, its processing program, disaster recovery method and system, storage device for executing its processing, and its control processing method
JP2006023889A (en) 2004-07-07 2006-01-26 Hitachi Ltd Remote copy system and storage device system
JP2008250717A (en) 2007-03-30 2008-10-16 Nec Corp Method, unit and program for database recovery
JP2016062306A (en) 2014-09-18 2016-04-25 日本電気株式会社 Storage system, control method, and control program

Also Published As

Publication number Publication date
JP2019168797A (en) 2019-10-03

Similar Documents

Publication Publication Date Title
JP4261800B2 (en) Management method of differential backup system in client server environment
US6510500B2 (en) System and method for minimizing message transactions for fault-tolerant snapshots in a dual-controller environment
US8214612B1 (en) Ensuring consistency of replicated volumes
US7194487B1 (en) System and method for recording the order of a change caused by restoring a primary volume during ongoing replication of the primary volume
US9165012B2 (en) Periodic file system checkpoint manager
CN107870829B (en) Distributed data recovery method, server, related equipment and system
JP5337916B1 (en) Information processing system
JP4484618B2 (en) Disaster recovery system, program, and data replication method
US20070185924A1 (en) Storage control method for storage system having database
US20110099148A1 (en) Verification Of Remote Copies Of Data
CN115098299B (en) Backup method, disaster recovery method, device and equipment of virtual machine
US20080140963A1 (en) Methods and systems for storage system generation and use of differential block lists using copy-on-write snapshots
WO2007021443A2 (en) Online page restore from a database mirror
JP5292351B2 (en) Message queue management system, lock server, message queue management method, and message queue management program
US10613923B2 (en) Recovering log-structured filesystems from physical replicas
US11494271B2 (en) Dynamically updating database archive log dependency and backup copy recoverability
JP4419884B2 (en) Data replication apparatus, method, program, and storage system
JP5292350B2 (en) Message queue management system, lock server, message queue management method, and message queue management program
US10078558B2 (en) Database system control method and database system
US8010758B1 (en) System and method for performing secondary site synchronization based on a single change map
US7979651B1 (en) Method, system, and computer readable medium for asynchronously processing write operations for a data storage volume having a copy-on-write snapshot
US7418564B2 (en) Storage controller, storage control system and storage control method for mirroring volumes
US10671488B2 (en) Database in-memory protection system
CN118708130B (en) Remote replication method and device for data volume, computer equipment and storage medium
JP7007017B2 (en) Storage systems, control methods, and programs

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210204

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20211125

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: 20211207

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211227

R150 Certificate of patent or registration of utility model

Ref document number: 7007017

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150