JP2004094710A - Data reduplicating method for storage subsystem and system - Google Patents

Data reduplicating method for storage subsystem and system Download PDF

Info

Publication number
JP2004094710A
JP2004094710A JP2002256492A JP2002256492A JP2004094710A JP 2004094710 A JP2004094710 A JP 2004094710A JP 2002256492 A JP2002256492 A JP 2002256492A JP 2002256492 A JP2002256492 A JP 2002256492A JP 2004094710 A JP2004094710 A JP 2004094710A
Authority
JP
Japan
Prior art keywords
storage
center side
subsystems
remote center
storage subsystem
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.)
Pending
Application number
JP2002256492A
Other languages
Japanese (ja)
Inventor
Hiroyuki Tanaka
田中 宏幸
Kimiaki Kato
加藤 公章
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2002256492A priority Critical patent/JP2004094710A/en
Publication of JP2004094710A publication Critical patent/JP2004094710A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data reduplicating method for storage subsystems and its system for securing the compatibility of data among the plurality of storage subsystems on the remote center side even if the main center side is abnormally terminated by a calamity, or the like. <P>SOLUTION: A main center 101 outputs synchronization information (CP) to all the storage subsystems at a synchronizing point for transaction. Storage subsystems 105 (110) communicate the received CP to storage subsystems 125 (140) on the remote center side 121 by means of a copying function of the subsystems 105 (110). The subsystems 125 (140) having received the CP communicate with peripheral storage subsystems. When CP acquired at the same time reaches all the subsystems 125 (140) including own storage subsystem, renewal information having reached prior to the CP is reflected in storage media 129 (145). <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、コンピュータが参照・更新するためのデータを格納する記憶サブシステムに関し、特に記憶サブシステムの保有するデータを二重化する方法およびシステムに関する。
【0002】
【従来の技術】
地震等の災害に備え、通常業務を行うメインセンタ側システムから数100km離れた場所にリモートセンタ側システムを設置し、これらのシステム間でデータ二重化を行う、いわゆる災害バックアップシステムを実現するデータ二重化システムが、既にいくつか実用化されている。
【0003】
この種のデータ二重化システムでは、メインセンタ側システムのマスタファイルを更新した情報(以降、更新情報と呼ぶ)を回線などによりリモートセンタ側システムに送信し、メインセンタ側システムでマスタファイルを更新した内容と同一の内容になる様に、リモートセンタ側システムのバックアップファイルを更新する方法を採るのが一般的である。
【0004】
また最近では、記憶サブシステムが備える記憶サブシステム間のコピー機能を利用した災害バックアップ方法が提案されており、特開2001−282628はその一例となる技術を開示している。該公報に開示の方法では、メインセンタ側で発生した更新要求の順序に従ってリモートセンタ側でバックアップファイルの更新が行われる。
【0005】
【発明が解決しようとする課題】
複数の記憶サブシステムに対して入出力を行うデータ二重化システムの場合、各々の記憶サブシステムが、任意のタイミングで遠隔地のリモートセンタへのコピーを行うと、メインセンタが被災したタイミングによっては、リモートセンタ側の複数記憶サブシステム間のデータに整合性が取れなくなり、リモートセンタ側にコピーされたデータを使用できなくなることが考えられる。
【0006】
この問題について特開2001−282628では、記憶サブシステム間で同一の時刻を共有し、リモートセンタに送信するデータに通番と時刻を付与し、メインセンタ側で発生した更新要求の順番に従ってリモートセンタ側のディスク記憶装置の更新を行う方法が提案されている。同様に、特開平6−290125号では、主事業所側の更新順序に従って二次事業所側で反映が行われる遠隔データバックアップ方法が提案されている。これらの方法では、発生した更新要求の順序で更新を行うため、例えば記憶サブシステム間で同一の時刻を共有する仕組みなどが必要である。また、更新順序で反映を行うということは、主事業所メインセンタ及び二次事業所リモートセンタに、更新順序を示す情報であるジャーナルなどを格納するためのディスクなどが必要であり、またジャーナルなどを転送するためには回線などのコストもかかるという問題がある。
【0007】
また、特開2001−282628の方法では、リモートセンタ側において、仕掛中トランザクションの決着を付ける(同期点に達していないトランザクションが行った更新はロールバック(更新の前の状態に戻す)し、同期点に達しているトランザクションが行った更新はロールフォワード(更新を有効にする)する)必要があるため、マスタファイルの他に、上位装置が取得している履歴情報(更新前後情報)についても、リモートセンタに送信する必要がある。履歴情報を見なければ、どこまでロールバックしあるいはロールフォワードすればよいか分からないからである。
【0008】
本発明は、上記従来技術における問題点に鑑み、メインセンタ側が災害等で異常終了した場合であっても、リモートセンタ側の複数の記憶サブシステム間でデータの整合性を確保することができ、その場合に、記憶サブシステム間で同一の時刻を共有したり履歴情報をリモートセンタ側に送ったりする必要がない記憶サブシステムのデータ二重化方法およびシステムを提供することを目的とする。
【0009】
【課題を解決するための手段】
上記目的を達成するため、本発明では、メインセンタ側システムが、トランザクションの同期合わせポイントで、全ての記憶サブシステムに対して同期合わせ情報(CP)を出力するようにする。記憶サブシステムは、受け付けたCPを、記憶サブシステムのコピー機能でリモートセンタ側の記憶サブシステムに連絡する。CPを受け取ったリモートセンタ側の記憶サブシステムは、周囲の記憶サブシステムと連絡を取り、メインセンタ側システムにおいて同一のタイミングに取得されたCPが、リモートセンタ側の全ての記憶サブシステムに届くまでの間、前回のCP受信以降に届いたファイルの更新情報をバッファ装置に保持し、記憶媒体には反映しないこととする。同一のタイミングに取得されたCPが、全ての記憶サブシステムに届いた場合、それ以前に届いた更新情報を記憶媒体に反映する。このようにして、リモートセンタ側記憶サブシステム間のマスタファイルの整合性を確保することを特徴とする。
【0010】
【発明の実施の形態】
以下、本発明による実施の形態について詳細に説明する。
【0011】
図1は、本発明を適用したシステムの全体構成を示したものである。このシステムは、メインセンタ101と、リモートセンタ121を備える。メインセンタ101は、オンラインプログラム等が動作する上位装置102と複数の記憶サブシステムを備える。図1では、2台の記憶サブシステム105及び110を例として説明する。
【0012】
上位装置102は、データ処理を行う中央処理装置(CPU)を持つメインセンタ内のホストコンピュータであり、ファイル更新制御103とCP書き込み制御104を備えている。ファイル更新制御103は、メインセンタ内の記憶サブシステム105(110)に対して入出力要求を発行する。CP書き込み制御104は、メインセンタ内の全ての記憶サブシステム105(110)に対して、トランザクションの同期合わせポイントで、同期合わせ情報(CP)を出力する。
【0013】
メインセンタ101に複数台存在する記憶サブシステム105(110)は、入出力制御106(111)と、送信制御107(112)と、記憶媒体108(113)を備え、ファイル更新制御103からの入出力要求に従って、入出力処理を行う。入出力制御106(111)は、記憶媒体108(113)への入出力処理を行う。送信制御107(112)は、遠隔地にあるリモートセンタ121へのデータ送信(データコピー)を行う。
【0014】
メインセンタ101から十分に離れた位置にあるリモートセンタ121には、記憶サブシステムが複数台設けられている。図1では、2台の記憶サブシステム125及び140を例として説明する。リモートセンタ121は、メインセンタの記憶サブシステム105(110)から送信されて来る更新情報を記憶媒体に反映する。
【0015】
記憶サブシステム125(140)は、入出力制御126(141)、受信制御127(142)、記憶媒体129(145)に加えて、媒体反映制御130(146)とバッファ装置128(143)を備える。入出力制御126(141)は、メインセンタ101の記憶サブシステム105(110)から受信したデータを各バッファ装置128(143)に記憶する制御を行う。受信制御127(142)は、遠隔地からのデータ受信を制御する。記憶媒体129(145)は、メインセンタ101の記憶サブシステム105(110)のデータのバックアップ(二重化)用である。媒体反映制御130(146)は、更新情報を記憶媒体129(145)に反映する制御を行う。この制御により、リモートセンタ121の全ての記憶サブシステム125(140)がお互いに連絡を取り、全ての記憶サブシステム125(140)が同一の通番を持つCPを受信した場合にのみ、それ以前の更新情報を記憶媒体129(145)に反映する。CPが揃うまでは、バッファ装置128(143)に更新情報を蓄積する。
【0016】
図2は、図1のシステムにおけるデータの流れについて説明する図である。
【0017】
メインセンタ101内の上位装置102が、記憶サブシステム105と110に対して、各々、更新情報(CPUが記憶サブシステムに書き込み要求を出したデータ)A1と更新情報A2、及び、更新情報B1と更新情報B2と更新情報B3を出力したとする(図2中の▲1▼)。この処理は、ファイル更新制御103が行う。このとき、トランザクションの同期合わせポイントにおいて、同期合わせ情報CP1とCP2を、全ての記憶サブシステム105と110に対して出力する。この処理は、CP書き込み制御104が行う。
【0018】
データを受けた記憶サブシステム105と110は、各々記憶媒体108と113に対して、CPを除く更新情報のデータの部分を出力する。この処理は、入出力制御106(111)が行う。その後、記憶サブシステム105と110は、リモートセンタ121側の各々対応する記憶サブシステム125と140に対して、CPを含むデータを転送する(図2中の▲2▼)。この処理は、送信制御107(112)が行う。
【0019】
リモートセンタ121側の記憶サブシステム125と140は、受信したデータを各々バッファ装置128と143に記憶する。この処理は、入出力制御126(141)が行う。なお、このとき、記憶サブシステム110側のCP2は、記憶サブシステム140には届いていないものとする。メインセンタ101側の記憶サブシステムからリモートセンタ121側の記憶サブシステムへのデータ転送は、各記憶サブシステムごとに独立で非同期に行われる。従って、記憶サブシステム110側のCP2のみがリモートセンタ側に届いていないことがあり得る。
【0020】
リモートセンタ121内の記憶サブシステム125と140は、お互いに連絡をとり、CP1までが全ての記憶サブシステム125と140に到着していることを確認し、CP1以前のデータを記憶媒体に出力する(図2中の▲3▼)。この処理は、媒体反映制御130(146)が行う。
【0021】
このような流れにより、リモートセンタ121側の記憶サブシステム125(140)の状態は、メインセンタ側101でCP1が出力された時点の整合性がとれた状態とすることができる。CPはトランザクションの途中で発行されることはなく、CPが発行されたときにはそれまでのトランザクションはすべて処理済になっているはずだからである。
【0022】
この時点でメインセンタ101側が被災した場合、リモートセンタ121側では、履歴情報を使用した回復処理を行わなくても、メインセンタ101でCP1が出力された時点の状態で、システムを継続することができる。
【0023】
図2を参照して具体例を説明する。いま、記憶サブシステム108と113はともに銀行口座の情報を記憶したデータベースとする。記憶サブシステム108内の口座から1万円を引き出し、記憶サブシステム113内の口座にその1万円を振り込む処理を実行したとする。その直後にメインセンタ101が被災し、記憶サブシステム108の更新情報(1万円を引き出したという情報)のみがリモートセンタ121ヘ届いて、記憶サブシステム113の更新情報(1万円を振込んだという情報)がリモートセンタ121ヘ届いていないと、従来方式では1万円が消えてしまう。あるいは、通信の順序性が保証できない為、記憶サブシステム113の更新情報が先に届いて、記憶サブシステム108の更新情報が届かない場合もあり、この場合は1万円を引き出していないこととなる。
【0024】
本実施形態のシステムでは、上記のような問題が発生すること防ぐために、メインセンタ101側の整合性のある瞬間のDBの状態が、そのままリモートセンタ121側に作られるようにしている。これを同期合わせ情報CPを確認することで実現している。すなわち、リモートセンタ121内の全ての記憶サブシステムが受信したCP以前のデータを記憶媒体に出力する。CPはトランザクションの同期合わせポイントで出力されるので、上記の例であれば、1万円を引き出す処理の更新情報がリモートセンタ121ヘ届き、1万円を振り込む処理の更新情報がリモートセンタ121ヘ届いていないとすると、それらの処理に対応するCPはリモートセンタ121に届いていないことになる。従って、リモートセンタ121側で1万円を引き出す処理の更新情報はバッファには書き込まれているかもしれないがDBには書き込まれていないので、DBの整合性は保たれている。この場合、上記の引き出しと振り込みについては履歴情報から復元する必要がある。もし、リモートセンタ121ヘCPが届いていれば、1万円を引き出す処理と1万円を振り込む処理の両方の更新情報がリモートセンタ121ヘ届きDBに反映されていると言うことである。この際、1万円を引き出す処理の更新情報と1万円を振り込む処理の更新情報は非同期にリモートセンタ121側へ送られ、どちらが先に届いていてもよい。CPが届いたときにそこまでの更新情報をDBに反映させることで、リモートセンタ121のDBの整合性が常に保たれる。
【0025】
図3は、メインセンタ101側におけるファイル更新制御103とCP書き込み制御104の処理手順を示す。ファイル更新制御103の処理は各記憶サブシステムごとに実行され、CP書き込み制御104の処理は全記憶サブシステムに対して1つ実行される。
【0026】
ステップ301で、ファイル更新制御103は、CPUからの更新要求を受け、記憶サブシステム105(110)にその更新要求を発行する。ステップ302で、CP取得タイミングであるかどうかを判断する。CP取得タイミングでなかった場合、ステップ301に戻る。CP書き込み制御104からのCP取得タイミングの連絡を受け取ったとき、ステップ302から303に進み、CP取得準備完了をCP書き込み制御104に連絡する。次に、ステップ304と305で、全ての記憶サブシステムのCPの取得が完了するまで待つ。CP書き込み制御104からCP取得完了の連絡があったら、ステップ301に戻る。
【0027】
CP書き込み制御104は、ステップ311で、CP取得タイミングになるまで所定の時間を待つ。CP取得タイミングになったら、ステップ312で、CP取得タイミングをファイル更新制御103に連絡する。ステップ313と314で、全ての記憶サブシステム105(110)に対応するファイル更新制御103がCP取得準備を完了するまで待つ。全てのファイル更新制御103でCP取得準備を完了した場合、ステップ315で、全ての記憶サブシステム105(110)に対して同じ通番のCPを出力し、そのCPを取得させる。ステップ316で、全ての記憶サブシステム105(110)のファイル更新制御103にCP取得の完了を連絡し、ステップ311に戻る。
【0028】
図4は、リモートセンタ121の各記憶サブシステムの媒体反映制御130(146)の処理のフローチャート例を示す。本処理は、メインセンタ101からのデータの受信を開始するときに動作を開始する。
【0029】
ステップ401で、自記憶サブシステムを含めた全ての記憶サブシステムに届いているバッファ装置内のCPの通番を確認する(相互に連絡をとる)。ステップ402で、未出力(まだ記憶媒体に出力していない)かつ自記憶サブシステムを含めた全ての記憶サブシステムに共通する通番があるかどうかを判定する。バッファ装置内に未出力のCPが無い、又は未出力のCPがあっても全ての記憶サブシステムに共通する通番(全ての記憶サブシステムのバッファ装置内にある未出力のCPの通番を確認する)で無い場合は、ステップ405に移る。該当するCPがある場合は、ステップ403で、当該CP以前のデータを記憶媒体に出力する。そして、ステップ404で、当該CPを含むそれ以前のデータをバッファ装置から削除する。
【0030】
ステップ405で、全ての記憶サブシステムでの受信処理が終了、又はリモートセンタ121側のオペレータによる終了指示(メインセンタ101被災による反映処理中断)があるかを判定し、そうであれば処理を終了する。そうでない場合は、ステップ406に進んで適当な待ち時間の後、ステップ401に戻る。
【0031】
図5は、CPのデータ形式例を示した図である。CPは、当該データがCPであることを識別するためのCP識別子501と、メインセンタ側のCP書き込み制御が付与した通番502を含む。なお、通番の代わりに、CPを発行した時間などを用いてもよい。
【0032】
【発明の効果】
以上述べたように本発明によれば、上位装置に手を加えることで、メインセンタ側の複数の記憶サブシステム間で同一の時刻を共有しなくても、リモートセンタ側の複数の記憶サブシステム間でデータの整合性を確保することができる。また、仕掛中トランザクションの決着を付ける必要が無いため、上位装置が取得している履歴情報をリモートセンタ側に送信する必要がなくなった。さらに、従来のメインセンタ側の更新順序に従ってリモートセンタ側でデータを反映する方式では、ジャーナルなどを格納するディスク等が必要で、そのジャーナルなどを転送する回線コストなども必要であったが、本発明では更新順序を転送する必要がないので、ジャーナル等を転送する必要もなく、回線コスト等を削減することができる。
【図面の簡単な説明】
【図1】本発明を適用した記憶サブシステムのデータ二重化システムの全体構成を示す図である。
【図2】本発明によるデータの流れについて説明するものである。
【図3】メインセンタ側の処理手順を示す図である。
【図4】本実施の形態による媒体反映制御の処理のフローチャートのー例を示す図である。
【図5】本発明によるCPのデータ形式例を示した図である。
【符号の説明】
101・・・メインセンタ
102・・・上位装置
103・・・ファイル更新制御
104・・・CP書き込み制御
105,110・・・記憶サブシステム
106,111・・・入出力制御
107,112・・・送信制御
108,113・・・記憶媒体
121・・・リモートセンタ
125,140・・・記憶サブシステム
126,141・・・入出力制御
127,142・・・受信制御
128,143・・・バッファ装置
129,145・・・記憶媒体
130,146・・・媒体反映制御
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a storage subsystem for storing data to be referenced and updated by a computer, and more particularly to a method and system for duplicating data held by the storage subsystem.
[0002]
[Prior art]
In preparation for a disaster such as an earthquake, a remote center system is installed at a location several hundred kilometers away from the main center system that normally performs business, and data is duplicated between these systems. However, some are already in practical use.
[0003]
In this type of data duplication system, information on updating the master file of the main center system (hereinafter referred to as update information) is transmitted to the remote center system via a line or the like, and the contents of updating the master file in the main center system Generally, a method of updating the backup file of the remote center side system so as to have the same contents as described above is adopted.
[0004]
Recently, a disaster backup method using a copy function between storage subsystems included in a storage subsystem has been proposed, and Japanese Patent Application Laid-Open No. 2001-282628 discloses a technique as an example. According to the method disclosed in the publication, the backup file is updated on the remote center side in accordance with the order of the update requests generated on the main center side.
[0005]
[Problems to be solved by the invention]
In the case of a data duplication system that performs input / output to a plurality of storage subsystems, if each storage subsystem copies to a remote center at a remote location at an arbitrary timing, depending on the timing at which the main center is damaged, It is conceivable that the data between the plurality of storage subsystems on the remote center side becomes inconsistent and the data copied to the remote center side cannot be used.
[0006]
Regarding this problem, Japanese Patent Application Laid-Open No. 2001-282628 discloses that the same time is shared between storage subsystems, a serial number and a time are given to data to be transmitted to the remote center, and the remote center side A method of updating the disk storage device has been proposed. Similarly, Japanese Patent Application Laid-Open No. 6-290125 proposes a remote data backup method in which the data is reflected on the secondary business site in accordance with the update order on the main business site. In these methods, since updates are performed in the order of the generated update requests, for example, a mechanism for sharing the same time between storage subsystems is required. To reflect in the update order means that the main office main center and the secondary office remote center need a disk or the like to store a journal, etc., which is information indicating the update order. There is a problem that the cost of a line or the like is required to transfer the data.
[0007]
In the method of Japanese Patent Application Laid-Open No. 2001-282628, the in-flight transaction is settled on the remote center side (updates performed by transactions that have not reached the synchronization point are rolled back (returned to the state before the update) and synchronized). Since the update performed by the transaction that has reached the point needs to be rolled forward (validating the update), in addition to the master file, the history information (post-update information) acquired by the higher-level device is also It needs to be sent to the remote center. This is because it is impossible to know how far to roll back or roll forward without looking at the history information.
[0008]
The present invention has been made in view of the above-described problems in the related art, and can ensure data consistency among a plurality of storage subsystems on a remote center side even when the main center side is abnormally terminated due to a disaster or the like. In this case, an object of the present invention is to provide a method and system for data duplication of a storage subsystem in which it is not necessary to share the same time between storage subsystems or to send history information to a remote center.
[0009]
[Means for Solving the Problems]
To achieve the above object, in the present invention, the main center side system outputs synchronization information (CP) to all the storage subsystems at the transaction synchronization point. The storage subsystem notifies the received CP to the storage subsystem on the remote center side by the copy function of the storage subsystem. The storage subsystem on the remote center side that has received the CP contacts the surrounding storage subsystems, and the CP obtained at the same timing in the system on the main center side reaches all the storage subsystems on the remote center side. During this time, the update information of the file received after the previous CP reception is held in the buffer device, and is not reflected on the storage medium. When the CP acquired at the same timing reaches all the storage subsystems, the update information that has arrived before that is reflected on the storage medium. In this manner, consistency of the master file between the remote center-side storage subsystems is ensured.
[0010]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments according to the present invention will be described in detail.
[0011]
FIG. 1 shows the overall configuration of a system to which the present invention is applied. This system includes a main center 101 and a remote center 121. The main center 101 includes a host device 102 on which an online program or the like operates and a plurality of storage subsystems. In FIG. 1, two storage subsystems 105 and 110 will be described as an example.
[0012]
The host device 102 is a host computer in a main center having a central processing unit (CPU) that performs data processing, and includes a file update control 103 and a CP write control 104. The file update control 103 issues an input / output request to the storage subsystem 105 (110) in the main center. The CP write control 104 outputs synchronization information (CP) to all the storage subsystems 105 (110) in the main center at the transaction synchronization point.
[0013]
A plurality of storage subsystems 105 (110) in the main center 101 include an input / output control 106 (111), a transmission control 107 (112), and a storage medium 108 (113). Input / output processing is performed according to the output request. The input / output control 106 (111) performs input / output processing on the storage medium 108 (113). The transmission control 107 (112) performs data transmission (data copy) to the remote center 121 at a remote location.
[0014]
The remote center 121 located sufficiently away from the main center 101 is provided with a plurality of storage subsystems. FIG. 1 illustrates two storage subsystems 125 and 140 as an example. The remote center 121 reflects the update information transmitted from the storage subsystem 105 (110) of the main center on the storage medium.
[0015]
The storage subsystem 125 (140) includes a medium reflection control 130 (146) and a buffer device 128 (143) in addition to the input / output control 126 (141), the reception control 127 (142), and the storage medium 129 (145). . The input / output control 126 (141) performs control of storing data received from the storage subsystem 105 (110) of the main center 101 in each buffer device 128 (143). The reception control 127 (142) controls data reception from a remote place. The storage medium 129 (145) is for backing up (duplicating) data of the storage subsystem 105 (110) of the main center 101. The medium reflection control 130 (146) performs control to reflect the update information on the storage medium 129 (145). With this control, all the storage subsystems 125 (140) of the remote center 121 communicate with each other, and only when all the storage subsystems 125 (140) receive a CP having the same serial number, The update information is reflected on the storage medium 129 (145). Until CPs are collected, the update information is accumulated in the buffer device 128 (143).
[0016]
FIG. 2 is a diagram illustrating a data flow in the system of FIG.
[0017]
The host device 102 in the main center 101 sends update information (data for which the CPU has issued a write request to the storage subsystem) A1, update information A2, and update information B1 to the storage subsystems 105 and 110, respectively. It is assumed that the update information B2 and the update information B3 have been output ((1) in FIG. 2). This process is performed by the file update control 103. At this time, at the transaction synchronization point, the synchronization information CP1 and CP2 are output to all the storage subsystems 105 and 110. This process is performed by the CP writing control 104.
[0018]
Upon receiving the data, the storage subsystems 105 and 110 output the data portion of the update information excluding the CP to the storage media 108 and 113, respectively. This processing is performed by the input / output control 106 (111). Thereafter, the storage subsystems 105 and 110 transfer the data including the CP to the corresponding storage subsystems 125 and 140 on the remote center 121 side ((2) in FIG. 2). This processing is performed by the transmission control 107 (112).
[0019]
The storage subsystems 125 and 140 of the remote center 121 store the received data in the buffer devices 128 and 143, respectively. This processing is performed by the input / output control 126 (141). At this time, it is assumed that the CP 2 of the storage subsystem 110 has not reached the storage subsystem 140. Data transfer from the storage subsystem of the main center 101 to the storage subsystem of the remote center 121 is performed independently and asynchronously for each storage subsystem. Therefore, only the CP 2 of the storage subsystem 110 may not reach the remote center.
[0020]
The storage subsystems 125 and 140 in the remote center 121 communicate with each other, confirm that all the storage subsystems 125 and 140 have reached CP1, and output data before CP1 to the storage medium. ((3) in FIG. 2). This process is performed by the medium reflection control 130 (146).
[0021]
By such a flow, the state of the storage subsystem 125 (140) on the remote center 121 side can be a state where consistency at the time when the CP1 is output on the main center side 101 is ensured. This is because a CP is not issued in the middle of a transaction, and when the CP is issued, all transactions up to that point must have been processed.
[0022]
If the main center 101 is damaged at this time, the remote center 121 can continue the system in the state at the time when the main center 101 outputs CP1 without performing the recovery process using the history information. it can.
[0023]
A specific example will be described with reference to FIG. Now, the storage subsystems 108 and 113 are both databases storing information on bank accounts. It is assumed that a process of withdrawing 10,000 yen from the account in the storage subsystem 108 and transferring the 10,000 yen to an account in the storage subsystem 113 is executed. Immediately thereafter, the main center 101 is damaged and only the update information of the storage subsystem 108 (information that 10,000 yen has been drawn) reaches the remote center 121, and the update information of the storage subsystem 113 (10,000 yen is transferred). If the information does not reach the remote center 121, 10,000 yen will be lost in the conventional method. Alternatively, since the order of communication cannot be guaranteed, the update information of the storage subsystem 113 may arrive first and the update information of the storage subsystem 108 may not arrive. In this case, it is assumed that 10,000 yen has not been withdrawn. Become.
[0024]
In the system according to the present embodiment, in order to prevent the above-mentioned problem from occurring, the state of the DB at the moment when there is consistency on the main center 101 side is created on the remote center 121 side as it is. This is realized by checking the synchronization information CP. That is, the data before the CP received by all the storage subsystems in the remote center 121 is output to the storage medium. Since the CP is output at the transaction synchronization point, in the above example, the update information of the process of withdrawing 10,000 yen reaches the remote center 121, and the update information of the process of transferring 10,000 yen reaches the remote center 121. If it has not arrived, the CP corresponding to those processes has not reached the remote center 121. Therefore, the update information of the process of extracting 10,000 yen on the remote center 121 side may be written in the buffer, but is not written in the DB, so that the consistency of the DB is maintained. In this case, it is necessary to restore the withdrawal and the transfer from the history information. If the CP arrives at the remote center 121, it means that the update information of both the process of withdrawing 10,000 yen and the process of depositing 10,000 yen is reflected on the DB which has reached the remote center 121. At this time, the update information of the process of withdrawing 10,000 yen and the update information of the process of transferring 10,000 yen are sent to the remote center 121 side asynchronously, and whichever has arrived first. When the CP arrives, the update information up to that point is reflected in the DB, so that the consistency of the DB of the remote center 121 is always maintained.
[0025]
FIG. 3 shows a processing procedure of the file update control 103 and the CP write control 104 on the main center 101 side. The process of the file update control 103 is executed for each storage subsystem, and the process of the CP write control 104 is executed once for all the storage subsystems.
[0026]
In step 301, the file update control 103 receives an update request from the CPU and issues the update request to the storage subsystem 105 (110). In step 302, it is determined whether it is the CP acquisition timing. If it is not the CP acquisition timing, the process returns to step 301. When the notification of the CP acquisition timing is received from the CP writing control 104, the process proceeds from step 302 to step 303, and the completion of preparation for CP acquisition is notified to the CP writing control 104. Next, in steps 304 and 305, the process waits until acquisition of CPs of all storage subsystems is completed. When the CP writing control 104 notifies that the CP acquisition has been completed, the process returns to step 301.
[0027]
In step 311, the CP writing control 104 waits for a predetermined time until the CP acquisition timing comes. When the CP acquisition timing comes, in step 312, the CP acquisition timing is notified to the file update control 103. In steps 313 and 314, the process waits until the file update control 103 corresponding to all the storage subsystems 105 (110) completes preparation for CP acquisition. When the preparation of the CP acquisition is completed in all the file update controls 103, the same serial number CP is output to all the storage subsystems 105 (110) in step 315, and the CP is acquired. In step 316, the completion of CP acquisition is notified to the file update controls 103 of all the storage subsystems 105 (110), and the process returns to step 311.
[0028]
FIG. 4 shows a flowchart example of the processing of the medium reflection control 130 (146) of each storage subsystem of the remote center 121. This processing starts when data reception from the main center 101 is started.
[0029]
In step 401, the serial numbers of the CPs in the buffer device that reach all the storage subsystems including the self storage subsystem are confirmed (communication is established). In step 402, it is determined whether or not there is a serial number that has not been output (not yet output to a storage medium) and is common to all storage subsystems including its own storage subsystem. There is no unoutput CP in the buffer device, or even if there is an unoutput CP, a serial number common to all the storage subsystems (confirm the serial number of the unoutput CP in the buffer devices of all the storage subsystems) If not, go to step 405. If there is a corresponding CP, in step 403, data before the CP is output to the storage medium. Then, in step 404, the data before that including the CP is deleted from the buffer device.
[0030]
In step 405, it is determined whether the reception processing in all the storage subsystems has been completed or there is an end instruction (interruption of the reflection processing due to the damage of the main center 101) by the operator on the remote center 121 side. I do. Otherwise, proceed to step 406 and after an appropriate waiting time, return to step 401.
[0031]
FIG. 5 is a diagram showing an example of the data format of the CP. The CP includes a CP identifier 501 for identifying that the data is a CP, and a serial number 502 assigned by the CP writing control on the main center side. Instead of the serial number, the time at which the CP was issued may be used.
[0032]
【The invention's effect】
As described above, according to the present invention, by modifying the host device, a plurality of storage subsystems on the remote center side can be shared without sharing the same time among the plurality of storage subsystems on the main center side. Data consistency can be ensured between them. Further, since it is not necessary to determine the transaction in progress, it is not necessary to transmit the history information acquired by the higher-level device to the remote center. Furthermore, in the conventional method in which data is reflected on the remote center side according to the update order on the main center side, a disk or the like for storing a journal or the like is required, and a line cost for transferring the journal or the like is also required. In the present invention, there is no need to transfer the update order, so there is no need to transfer journals and the like, and line costs and the like can be reduced.
[Brief description of the drawings]
FIG. 1 is a diagram showing an overall configuration of a data duplication system of a storage subsystem to which the present invention is applied.
FIG. 2 illustrates the flow of data according to the present invention.
FIG. 3 is a diagram showing a processing procedure on the main center side.
FIG. 4 is a diagram illustrating an example of a flowchart of a medium reflection control process according to the embodiment;
FIG. 5 is a diagram showing an example of a data format of a CP according to the present invention.
[Explanation of symbols]
101: Main center 102: Host device 103: File update control 104: CP writing control 105, 110 ... Storage subsystems 106, 111 ... I / O control 107, 112 ... Transmission control 108, 113 Storage medium 121 Remote center 125, 140 Storage subsystem 126, 141 Input / output control 127, 142 reception control 128, 143 Buffer device 129, 145 ... storage media 130, 146 ... medium reflection control

Claims (2)

メインセンタの複数の記憶サブシステムとリモートセンタの複数の記憶サブシステムとの間でデータの二重化を実現する記憶サブシステムのデータ二重化方法であって、
メインセンタ側において、受信したファイルの更新情報を、メインセンタ側の所定の記憶サブシステムの記憶媒体に反映するステップと、
メインセンタ側において、トランザクションの同期合わせポイントで該メインセンタ側の全ての記憶サブシステムに対して同期合わせ情報(以降、CPと呼ぶ)を出力するステップと、
メインセンタ側の各記憶サブシステムからリモートセンタ側の各記憶サブシステムに、各記憶サブシステムが備えているコピー機能を利用してそれぞれ非同期で、前記ファイルの更新情報及び前記CPを送信するステップと、
リモートセンタ側の各記憶サブシステムにおいて、受信したファイルの更新情報及び前記CPをバッファ装置に保持するステップと、
リモートセンタ側の各記憶サブシステムにおいて、自記憶サブシステムを含めたリモートセンタ側の全ての記憶サブシステムで前記CPが揃ったかどうかを判断するステップと、
リモートセンタ側の全ての記憶サブシステムで前記CPが揃ったとき、前記バッファ装置に保持してある前記CP以前のファイルの更新情報を、記憶媒体に反映するステップと
を備えることを特徴とする記憶サブシステムのデータ二重化方法。
A data duplication method for a storage subsystem that realizes data duplication between a plurality of storage subsystems of a main center and a plurality of storage subsystems of a remote center,
On the main center side, reflecting the received file update information on a storage medium of a predetermined storage subsystem on the main center side;
Outputting the synchronization information (hereinafter, referred to as CP) to all the storage subsystems on the main center side at the transaction synchronization point on the main center side;
Transmitting the file update information and the CP asynchronously from each storage subsystem on the main center side to each storage subsystem on the remote center side using the copy function of each storage subsystem; ,
In each of the storage subsystems on the remote center side, a step of storing the received file update information and the CP in a buffer device;
In each storage subsystem on the remote center side, a step of determining whether or not the CP has been prepared in all the storage subsystems on the remote center side including the own storage subsystem;
Reflecting the update information of the file before the CP stored in the buffer device in a storage medium when the CPs are prepared in all the storage subsystems on the remote center side. Subsystem data duplication method.
メインセンタの複数の記憶サブシステムとリモートセンタの複数の記憶サブシステムとの間でデータの二重化を実現する記憶サブシステムのデータ二重化システムであって、
メインセンタ側において、受信したファイルの更新情報を、メインセンタ側の所定の記憶サブシステムの記憶媒体に反映する手段と、
メインセンタ側において、トランザクションの同期合わせポイントで該メインセンタ側の全ての記憶サブシステムに対して同期合わせ情報(以降、CPと呼ぶ)を出力する手段と、
メインセンタ側の各記憶サブシステムからリモートセンタ側の各記憶サブシステムに、各記憶サブシステムが備えているコピー機能を利用してそれぞれ非同期で、前記ファイルの更新情報及び前記CPを送信する手段と、
リモートセンタ側の各記憶サブシステムにおいて、受信したファイルの更新情報及び前記CPをバッファ装置に保持する手段と、
リモートセンタ側の各記憶サブシステムにおいて、自記憶サブシステムを含めたリモートセンタ側の全ての記憶サブシステムで前記CPが揃ったかどうかを判断する手段と、
リモートセンタ側の全ての記憶サブシステムで前記CPが揃ったとき、前記バッファ装置に保持してある前記CP以前のファイルの更新情報を、記憶媒体に反映する手段と
を備えることを特徴とする記憶サブシステムのデータ二重化方法。
A data duplication system of a storage subsystem that realizes data duplication between a plurality of storage subsystems of a main center and a plurality of storage subsystems of a remote center,
Means for reflecting, on the main center side, the received file update information in a storage medium of a predetermined storage subsystem on the main center side;
Means for outputting synchronization information (hereinafter, referred to as CP) to all storage subsystems on the main center side at a synchronization synchronization point of the transaction on the main center side;
Means for transmitting the file update information and the CP asynchronously from each of the storage subsystems on the main center side to each of the storage subsystems on the remote center side using the copy function of each storage subsystem. ,
Means for holding the received file update information and the CP in a buffer device in each storage subsystem on the remote center side;
Means for determining whether or not the CP has been prepared in all the storage subsystems on the remote center side, including the self storage subsystem, in each storage subsystem on the remote center side;
Means for reflecting, on a storage medium, update information of a file before the CP held in the buffer device when the CPs are prepared in all storage subsystems on the remote center side. Subsystem data duplication method.
JP2002256492A 2002-09-02 2002-09-02 Data reduplicating method for storage subsystem and system Pending JP2004094710A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002256492A JP2004094710A (en) 2002-09-02 2002-09-02 Data reduplicating method for storage subsystem and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002256492A JP2004094710A (en) 2002-09-02 2002-09-02 Data reduplicating method for storage subsystem and system

Publications (1)

Publication Number Publication Date
JP2004094710A true JP2004094710A (en) 2004-03-25

Family

ID=32061703

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002256492A Pending JP2004094710A (en) 2002-09-02 2002-09-02 Data reduplicating method for storage subsystem and system

Country Status (1)

Country Link
JP (1) JP2004094710A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006004031A (en) * 2004-06-16 2006-01-05 Hitachi Ltd Data processing method, system, storage device method, and its processing program
JP2006023889A (en) * 2004-07-07 2006-01-26 Hitachi Ltd Remote copy system and storage system
JP2006048103A (en) * 2004-07-30 2006-02-16 Hitachi Ltd Disaster recovery system, program, and duplication method of data
JP2006092005A (en) * 2004-09-21 2006-04-06 Hitachi Ltd Data processing method, database system, and storage device
JP2006099536A (en) * 2004-09-30 2006-04-13 Hitachi Ltd Usage of backup data and program
JP2013037450A (en) * 2011-08-04 2013-02-21 Fujitsu Ltd Database update controller, database management system, and database update control program

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006004031A (en) * 2004-06-16 2006-01-05 Hitachi Ltd Data processing method, system, storage device method, and its processing program
JP2006023889A (en) * 2004-07-07 2006-01-26 Hitachi Ltd Remote copy system and storage system
JP2006048103A (en) * 2004-07-30 2006-02-16 Hitachi Ltd Disaster recovery system, program, and duplication method of data
JP4484618B2 (en) * 2004-07-30 2010-06-16 株式会社日立製作所 Disaster recovery system, program, and data replication method
JP2006092005A (en) * 2004-09-21 2006-04-06 Hitachi Ltd Data processing method, database system, and storage device
JP4549793B2 (en) * 2004-09-21 2010-09-22 株式会社日立製作所 Data processing method, database system, and storage device
US8041674B2 (en) 2004-09-21 2011-10-18 Hitachi, Ltd. Method and system for data processing with data replication for the same
JP2006099536A (en) * 2004-09-30 2006-04-13 Hitachi Ltd Usage of backup data and program
JP4489550B2 (en) * 2004-09-30 2010-06-23 株式会社日立製作所 Backup data creation management method
US8725686B2 (en) 2004-09-30 2014-05-13 Hitachi, Ltd. Method and program for creating determinate backup data in a database backup system
JP2013037450A (en) * 2011-08-04 2013-02-21 Fujitsu Ltd Database update controller, database management system, and database update control program

Similar Documents

Publication Publication Date Title
JP4833734B2 (en) Database system, storage device, initial copy method, and log application method
CA2376242C (en) Improved remote data copy using a prospective suspend command
JP2894676B2 (en) Asynchronous remote copy system and asynchronous remote copy method
US7958306B2 (en) Computer system and control method for the computer system
JP5559821B2 (en) Method for storing data, method for mirroring data, machine-readable medium carrying an instruction sequence, and program for causing a computer to execute the method
CN101889268B (en) Determining whether to use a repository to store data updated during a resynchronization
US7334101B2 (en) Point in time remote copy for multiple sites
EP1764693B1 (en) Data restoring apparatus using journal data and identification information
US6754792B2 (en) Method and apparatus for resynchronizing paired volumes via communication line
JP3730907B2 (en) Remote data copy method between disk array devices
US6189079B1 (en) Data copy between peer-to-peer controllers
JP3968207B2 (en) Data multiplexing method and data multiplexing system
US20070113034A1 (en) Storage remote copy system
CN101755257B (en) Managing the copying of writes from primary storages to secondary storages across different networks
US20060107007A1 (en) Data processing system
US20100281229A1 (en) Computer System Storing Data On Multiple Storage Systems
JP2005018506A (en) Storage system
CN101334748A (en) Asynchronous remote copy system and control method for the same
JP2001282628A (en) Method and system for data doubling of storage subsystem
JP2005309793A (en) Data processing system
JP2004094710A (en) Data reduplicating method for storage subsystem and system
JP2003099306A (en) Computer system, and backup method in the computer system
JP2006285336A (en) Storage, storage system, and control method thereof
US20060090050A1 (en) Remote management commands in a mass storage system
JP4452494B2 (en) Data synchronization method after stopping remote copy on multiple remote storages

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041001

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080212

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080221

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080617