JP2712819B2 - Dynamic copy control method for duplicated files - Google Patents

Dynamic copy control method for duplicated files

Info

Publication number
JP2712819B2
JP2712819B2 JP2315317A JP31531790A JP2712819B2 JP 2712819 B2 JP2712819 B2 JP 2712819B2 JP 2315317 A JP2315317 A JP 2315317A JP 31531790 A JP31531790 A JP 31531790A JP 2712819 B2 JP2712819 B2 JP 2712819B2
Authority
JP
Japan
Prior art keywords
file
input
duplicated
address
output
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.)
Expired - Fee Related
Application number
JP2315317A
Other languages
Japanese (ja)
Other versions
JPH04184639A (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 Corp
Original Assignee
NEC Corp
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 Corp filed Critical NEC Corp
Priority to JP2315317A priority Critical patent/JP2712819B2/en
Publication of JPH04184639A publication Critical patent/JPH04184639A/en
Application granted granted Critical
Publication of JP2712819B2 publication Critical patent/JP2712819B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は二重化ファイルの制御方式に関し、特に計算
機システムにおける直後アクセス可能な2次記憶装置
(例えば磁気ディスク装置等)上の二重化ファイルにお
いて、片方のファイルに障害が発生する、いわゆる片系
障害が発生した場合に、これを復旧するための二重化フ
ァイルの動的コピー制御方式に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control method of a duplicate file, and particularly to a control method of a duplicate file on a secondary storage device (for example, a magnetic disk device or the like) immediately accessible in a computer system. The present invention relates to a dynamic copy control method of a duplicate file for restoring a single-system failure in which a failure occurs in a file.

〔従来の技術〕[Conventional technology]

従来多くのシステムは、その使用するファイルの障害
に備えて、正系(マスタ)ファイルに対して、副系(コ
ピー)ファイルを用意し、常に二つのファイルを用意し
ておくことにより、突然のファイル障害に備える二重化
ファイル構成をとっている。
Conventionally, many systems prepare a secondary (copy) file for a primary (master) file and prepare two files at all times in preparation for a failure of a file to be used. It has a duplicate file structure to prepare for file failure.

この二重化ファイルは物理的に独立した二つのファイ
ルから構成され、ファイルカタログで管理されている。
This duplex file is composed of two physically independent files, and is managed by a file catalog.

また、この正系ファイルと副系ファイルは同一の外部
ファイル名を持ち、同一のファイルスペースを持ち、格
納されるデータの内容及び配置は同一である。
The primary file and the secondary file have the same external file name, have the same file space, and have the same content and arrangement of stored data.

この二重化ファイルへの入出力制御は読み込み要求で
あれば、片系への入出力要求、書き込み要求であれば、
両系への入出力要求に変換される。
If the I / O control for this duplex file is a read request, an I / O request to one system, or a write request,
Converted to I / O requests to both systems.

この二重化ファイルを使用してシステムを運転中、片
系のファイルに障害が発生し、いわゆる片系障害となる
と、該障害ファイルは閉塞され、片系運転となる。
During operation of the system using the duplicated file, if a failure occurs in one of the files and a so-called single-system failure occurs, the failed file is closed and the system becomes a single-system operation.

この片系障害の復旧方式は片系運転によって、一時停
止可能な状態になった時に、オンラインから両系のファ
イルを切り離し、正常なファイルのデータを障害の発生
しているファイルにコピーする方式がとられている。
This one-system failure recovery method is to separate the files of both systems from online and copy the data of the normal file to the failed file when the system can be temporarily stopped by one-system operation. Has been taken.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

上述した従来の二重化ファイルの片系障害の復旧方式
には以下に示す欠点がある。
The above-described conventional method for recovering from a single-system failure of a duplex file has the following disadvantages.

(1)二重化ファイルの使用を一時中断してからでない
と障害を起した側のファイル(障害系)の復旧が行えな
いので、24時間運転のオンラインシステムには適用が出
来ない。(又は、オンラインを中断して復旧作業を行う
必要がある。) (2)(1)と同様に、オンライン開始直後(例えば午
前9時)に片系で障害が発生した場合、オンライン終了
(例えば午後7時)まで片系のまま二重化ファイルの運
用を続けなければならず、迅速な復旧作業が行えないば
かりか、オンライン運転中にもう一方に障害が発生する
と両系障害となってオンラインの停止を止むなくする恐
れがある。
(1) The file (failure system) on the failed side cannot be recovered unless the use of the duplicated file is temporarily suspended, so that it cannot be applied to an online system that operates 24 hours a day. (Or, it is necessary to interrupt the online to perform the recovery work.) (2) Similarly to (1), if a failure occurs in one system immediately after the online is started (for example, 9:00 am), the online is terminated (for example, Until 7:00 pm), the operation of the duplicated file must be continued with one system, and not only quick recovery work can not be performed, but if a failure occurs during online operation on the other system, both systems will fail and stop online May stop working.

〔課題を解決するための手段〕[Means for solving the problem]

本発明の二重化ファイルの動的コピー制御方式は、二
重化ファイルへのデータの入出力要求に応じて、二重化
ファイルの両方が正常な場合には、いずれか一方の二重
化ファイルからデータを読み出し、両方の二重化ファイ
ルに対してデータを書き込むという入出力処理を行うと
ともに、いずれか一方の二重化ファイルに障害が発生し
た場合には、正常な二重化ファイルに対してのみ該入出
力処理を行う入出力制御手段と、いずれか一方の二重化
ファイルに障害が発生した場合に、正常な二重化ファイ
ルのデータを障害が発生した二重化ファイルの先頭から
順次コピーするコピー手段とを備えた二重化ファイルシ
ステムにおいて、前記入出力制御手段が、前記コピー手
段が動作中における、二重化ファイルへのデータの入出
力要求に応じて、該入出力要求に係る二重化ファイルの
アドレスの値が、前記コピー手段によりコピー中の二重
化ファイルのアドレスの値よりも小さい場合には、両方
の二重化ファイルに対してデータの入出力処理を行い、
また、該入出力要求に係る二重化ファイルのアドレスの
値が、前記コピー手段によりコピー中の二重化ファイル
のアドレスの値よりも大きい場合には、正常な二重化フ
ァイルに対してのみデータの入出力処理を行い、該入出
力処理後に、該入出力要求に係る二重化ファイルのアド
レスの値が、前記コピー手段によりコピー中の二重化フ
ァイルのアドレスの値よりも小さい場合には、該入出力
要求に係る処理を最初からやり直し、また、該入出力要
求に係る二重化ファイルのアドレスの値が、前記コピー
手段によりコピー中の二重化ファイルのアドレスの値に
等しい場合には、該コピー手段の動作完了後に該入出力
要求に係る処理を最初からやり直すことを特徴とする。
The dual file dynamic copy control method of the present invention reads data from one of the duplicated files when both of the duplicated files are normal in response to a data input / output request to the duplicated file. I / O control means for performing input / output processing of writing data to a duplex file and performing input / output processing only for a normal duplex file when one of the duplex files fails. A copy unit for sequentially copying data of a normal duplicate file from the head of the failed duplicate file when one of the duplicate files fails, the input / output control unit However, in response to a data input / output request to a duplex file while the copying means is operating, The value of the address of the duplicated files related to the output request, wherein when the copy unit smaller than the value of the address of the duplicated files in the copy performs input and output processing of data for both duplicated files,
Further, when the value of the address of the duplicated file related to the input / output request is larger than the value of the address of the duplicated file being copied by the copying means, the data input / output processing is performed only on the normal duplicated file. If the value of the address of the duplexed file related to the input / output request is smaller than the value of the address of the duplexed file being copied by the copying unit after the input / output process, the process related to the input / output request is performed. If the value of the address of the duplicated file related to the input / output request is equal to the value of the address of the duplicated file being copied by the copy unit, the operation of the input / output request is completed after the operation of the copy unit is completed. Is characterized in that the process according to the above is redone from the beginning.

〔実施例〕〔Example〕

次に本発明の一実施例について図面を参照しながら説
明する。
Next, an embodiment of the present invention will be described with reference to the drawings.

第1図を参照すると、本発明の一実施例の二重化ファ
イルの動的コピー制御方式は、アプリケーションプログ
ラム(以下AP)1と、コピー手段3と、二重化ファイル
入出力制御手段(以下DFCF)と、入出力手段(以下PI
O)と、同期制御手段5と、コントロールテーブル6
と、磁気ディスク装置(以下MSO1)7と、磁気ディスク
装置(以下MSO2)8とから構成されている。
Referring to FIG. 1, a dynamic copy control method for a duplicate file according to an embodiment of the present invention includes an application program (hereinafter, AP) 1, a copy unit 3, a duplicate file input / output control unit (hereinafter, DFCF), Input / output means (hereinafter PI
O), synchronization control means 5, and control table 6
And a magnetic disk device (hereinafter, MSO1) 7 and a magnetic disk device (hereinafter, MSO2) 8.

DFCF2はAP1のリード/ライト命令に応答して、同期制
御手段5によるコントロールテーブル6の参照/更新の
同期をとって処理を決定し、PIO4を介してMSO1;7/MSO2;
8への実入出力処理を実行する。このとき、リード命令
ならばMSO1;7/MSO2;8のいづれか一方から、又ライト命
令ならばMSO1;7/MSO2;8の両方へ、また、どちらか一方
に障害が発生しているなら正常な側へのみ実入出力を実
行する。
The DFCF2 responds to the read / write instruction of the AP1, synchronizes the reference / update of the control table 6 by the synchronization control means 5 and determines the processing, and via the PIO4 the MSO1; 7 / MSO2;
Execute the actual input / output processing to 8. At this time, if a read instruction is issued, either MSO1; 7 / MSO2; 8, if a write instruction is issued, both MSO1; 7 / MSO2; 8 are returned. Performs real I / O only to the side.

コピー手段3は二重化ファイルの片系障害が発生した
場合に実行させるための復旧手段であり、同期制御手段
5によってコントロールテーブル6の参照/更新の同期
をとりながら処理を行い、PIO4を介して正常なMSO1;7
(又はMSO2;8)から異常を発生したMSO2;8(又はMSO1;
7)へのデータコピーをMSO1;7とMSO2;8との上に作成さ
れた二重化ファイル(A,A′)の全体にわたって実行す
る。
The copy unit 3 is a recovery unit that is executed when a single-system failure of the duplicated file occurs. The copy unit 3 performs processing while synchronizing reference / update of the control table 6 by the synchronization control unit 5, and performs normal processing via the PIO 4. MSO1; 7
(Or MSO2; 8) that caused the abnormality from MSO2; 8 (or MSO1;
Data copy to 7) is performed over the duplicate file (A, A ') created on MSO1; 7 and MSO2; 8.

同期制御手段5はコントロールテーブル6のロック、
アンロックおよびDFCF2に対する待ち(WAIT)、待ち(W
AIT)状態の解除通知(POST)の機能を本計算機システ
ム内に提供する。
The synchronization control means 5 locks the control table 6,
Unlock and wait for DFSF2 (WAIT), wait (W
AIT) Provides the status release notification (POST) function in the computer system.

コントロールテーブル6は主記憶(図示せず)内に置
かれ、二重化ファイル一対につき1つの存在(第1図で
は1個のみ記載)し、コピー手段3がファイルA又はフ
ァイルA′のどのアドレスをコピー中であるかを示すフ
ァイル内相対アドレス(TTRと略記)と、コピー手段3
がこの二重化ファイル(第1図の二重化ファイル(A,
A′))に対して実行中であるか否かを示すフラグ(FLA
G1と略記)と、DFCF2が二重化ファイル(A,A′)に対し
て入出力要求を行おうとした時にそのTTRの値が一致し
たためにコピー手段3の処理の終了を待ち合わせなけれ
ばならない事を示すフラグ(FLAG2)と、を記憶してい
る。なお、コントロールテーブル6は二重化ファイル
(A,A′)が本計算機システムで初めてオープンされる
時に初期化されるべきものであることは言うまでもな
い。
The control table 6 is placed in the main memory (not shown), and one copy file exists for each pair of duplicated files (only one is shown in FIG. 1), and the copy means 3 copies which address of the file A or the file A '. A relative address in the file (abbreviated as TTR) indicating whether the file is being copied, and copying means 3
Is the duplicated file (the duplicated file (A,
A ′)) for the flag (FLA)
G1) and indicates that when the DFSF2 tries to make an I / O request to the duplexed file (A, A '), the TTR value matches and the copy unit 3 must wait for the end of processing. And a flag (FLAG2). Needless to say, the control table 6 should be initialized when the duplex file (A, A ') is opened for the first time in the computer system.

次にDFCF2の処理動作を第2図を参照して詳細に説明
する。
Next, the processing operation of DFSF2 will be described in detail with reference to FIG.

DFCF2は、先ずコントロールテーブル6を同期制御手
段5によってロックし、コントロールテーブル内のFLAG
1をチェックする(ステップ201,202)。
The DFCF2 first locks the control table 6 by the synchronization control means 5, and sets the FLAG in the control table.
Check 1 (steps 201 and 202).

FLAG1がオフの時、すなわちコピー手段3が動作して
いない場合には、DFCF2は、速やかにコントロールテー
ブル6をアンロックし、DFCF2本来の両系に対する入出
力要求を入出力手段(PIO)4に対して行った後AP1に制
御を戻す。ここで「DFCF2本来の両系に対する入出力要
求」とは、DFCF2について前述した様にリード命令なら
いずれか一方から、ライト命令なら両方へ、但しいずれ
か片方で障害が発生している(この時、障害を発生させ
た側のファイルはDFCF2によって閉塞される)なら、正
常な側に対してのみ入出力要求を行うという周知の二重
化ファイル制御の処理のことを意味する(ステップ216,
217)。
When the FLAG 1 is off, that is, when the copy means 3 is not operating, the DFSF 2 quickly unlocks the control table 6 and sends an I / O request to both the DFSF 2 original system to the I / O means (PIO) 4. After that, control is returned to AP1. Here, the “DFCF2 original I / O request to both systems” means, as described above, a failure has occurred in either one of the read instructions for DFCF2 and both in the case of write instructions, but one of them has failed (in this case, If the file on the side that caused the failure is blocked by DFSF2), this means the well-known duplex file control process of making an I / O request only to the normal side (step 216,
217).

FLAG1がオンの時すなわち、コピー手段3が動作中で
ある場合には、DFCF2は、コントロールテーブル6内のT
TRの値TTRi(コピー手段3により入出力実行中のカレン
トアドレスの値)と、DFCF2により入出力要求を実行す
べきアドレスの値TTRxとを比較する(ステップ203)。
When FLAG1 is ON, that is, when the copy means 3 is operating, DFSF2 reads T
The TR value TTR i (the value of the current address being input / output being executed by the copying means 3) is compared with the value TTR x of the address at which the input / output request is to be executed by the DFSF 2 (step 203).

TTRx<TTRiならば、このファイル上のアドレスは既に
コピー済であるので、速やかにコントロールテーブル6
がアンロックされ、両系に対する入出力要求が入出力手
段(PIO)4に対して行われた後制御がAP1に戻される
(ステップ204,205)。
If TTR x <TTR i , the address on this file has already been copied, so the control table 6
Is unlocked, an input / output request for both systems is made to the input / output means (PIO) 4, and control is returned to the AP 1 (steps 204 and 205).

FLAG1がオンで、TTRの比較の結果がTTRx≧TTRである
ならば再度TTRの比較が行われる(ステップ202,203,20
6)。
If FLAG1 is on and the result of the TTR comparison is TTR x ≧ TTR, the TTR comparison is performed again (steps 202, 203, and 20).
6).

TTRx>TTRiならば、このファイル上のアドレスはコピ
ー処理が終了していないので、速やかにコントロールテ
ーブル6がアンロックされ、正常な側のMSO1;7(MSO2;
8)への入出力要求だけが入出力手段(PIO)4に対して
行なわれる(ステップ207,208)。
If TTR x > TTR i , the address on this file has not been copied, so the control table 6 is unlocked immediately and the normal MSO1; 7 (MSO2;
Only the input / output request to 8) is made to the input / output means (PIO) 4 (steps 207 and 208).

入出力処理が終了した時点で再度コントロールテーブ
ル6がロックされ、TTRの比較が行われる(ステップ20
9,210)。これはマルチプログラミングの計算機システ
ムでコピー手段3がDFCF2の入出力処理が終わる前にそ
のアドレスに関するコピー処理を行ってしまった場合、
すなわち、DFCF2がコピー手段3に追い抜かれた場合の
ことを想定しているためである。
When the input / output processing is completed, the control table 6 is locked again, and the TTR is compared (step 20).
9,210). This is because if the copy means 3 performs the copy processing related to the address before the input / output processing of DFSF2 is completed in the multi-programming computer system,
That is, it is assumed that the DFCF 2 is overtaken by the copying means 3.

TTRx>TTRiならばDFCF2は追い抜かれていないので、
速やかにコントロールテーブル6がアンロックされて終
了し、AP1に制御が戻される(ステップ211)。
If TTR x > TTR i , DFCF2 has not been overtaken,
The control table 6 is promptly unlocked and terminated, and the control is returned to the AP 1 (step 211).

TTRx≦TTRiならばDFCF2は追い抜かれた(かまたは追
いつかれた)と見為してよいので速やかにコントロール
テーブル6がアンロックされ処理が最初からやり直され
る(ステップ212)。
If TTR x ≦ TTR i , DFCF2 may be regarded as overtaken (or overtaken), so control table 6 is unlocked immediately and the process is restarted from the beginning (step 212).

FLAG1がオンで、TTRの比較の結果がTTRx=TTRiである
ならば、DFCF2はコピー手段3の処理終了を待ち合わせ
る必要があるためFLAG2をオンにした後コントロールテ
ーブル6をアンロックし、同期制御手段5に対してウェ
イト(WAIT)を実行し、コピー手段3からの通知を待合
わせる(ステップ213,214,215)。
FLAG1 is on, if the result of the comparison TTR is TTR x = TTR i, DFCF2 will unlock the control table 6 after turning on the FLAG2 it is necessary to wait for the end of processing the copy unit 3, synchronization A wait (WAIT) is executed for the control means 5 to wait for a notification from the copy means 3 (steps 213, 214, 215).

コピー手段3からの通知が同期制御手段5を介して通
知されると、DFCF2は処理を最初からやり直す(ステッ
プ215〜201)。
When the notification from the copy unit 3 is notified via the synchronization control unit 5, the DFSF 2 restarts the processing from the beginning (steps 215 to 201).

次に、コピー手段3の処理動作を第3図を参照して詳
細に説明する。
Next, the processing operation of the copying means 3 will be described in detail with reference to FIG.

コピー手段3は、先ずコントロールテーブル6を同期
制御手段5によりロックし、コントロールテーブル6内
のFLAG1をオンにセットする(ステップ302,303)。
The copy means 3 first locks the control table 6 by the synchronization control means 5, and sets FLAG1 in the control table 6 to ON (steps 302 and 303).

次にコントロールテーブル6内のTTRにコピー処理を
実施すべきファイル内相対アドレスTTRiの値がセットさ
れた後、コントロールテーブル6がアンロックされる
(ステップ304,305)。
Next, after the value of the relative address TTR i in the file to be copied is set in the TTR in the control table 6, the control table 6 is unlocked (steps 304 and 305).

正常な側のファイルのTTRiのデータが入力され、障害
発生側のファイルのTTRiの場所にコピーされる(書込ま
れる)(ステップ306)。障害発生側のファイルについ
てはコピー手段3を動作させる前に2次記憶装置として
の障害(例えば装置不良や媒体不良)を修理/交換等の
手段(図示せず)によって戻しておく必要がある。
The TTR i data of the normal file is input and copied (written) to the TTR i location of the failed file (step 306). For the file on the failure side, it is necessary to return a failure (for example, a device failure or a medium failure) as a secondary storage device by means of repair / replacement (not shown) before operating the copy unit 3.

コピー処理が終了後コントロールテーブル6が再度ロ
ックされて、FLAG2がチェックされ、オンであればFLAG2
がオフにされた後、このファイルに関してウェイト(WA
IT)している全てのDFCF2に対して同期制御手段5を介
して待ち状態(WAIT)の解除通知手段(POST)が実行さ
れ、通知が行なわれる(ステップ307,308,309,310)。
After the copy processing is completed, the control table 6 is locked again, and FLAG2 is checked.
Is turned off, then wait (WA
Waiting state (WAIT) release notification means (POST) is executed via the synchronization control means 5 for all of the DFSFs 2 which have performed IT), and notification is performed (steps 307, 308, 309, 310).

ファイルの全てのデータをコピーし終えるまでこの処
理が繰返される(ステップ304〜311)。
This process is repeated until all data of the file has been copied (steps 304 to 311).

ファイルの全てのデータをコピーし終えたならば障害
を起した側の閉塞状態が解除され、FLAG1がオフにセッ
トし直され、コントロールテーブル6がアンロックされ
てコピー処理が終了する(ステップ312,313)。
When all the data in the file has been copied, the blocked state of the failed side is released, FLAG1 is reset to off, the control table 6 is unlocked, and the copy processing ends (steps 312 and 313). .

次に、このように構成された本実施例の二重化ファイ
ルの動的コピー方式の動作について説明する。
Next, the operation of the thus-constructed dynamic copy system of the duplex file according to the present embodiment will be described.

AP1はMSO1;7とMSO2;8との上に作成された二重化ファ
イル(A,A′)に対して、DFCF2とPIO4とを介してデータ
の入力および更新(出力)を繰返しているものとし、こ
の状態でMSO2;8に装置の障害が発生した場合を例にとっ
て説明する。
AP1 repeats data input and update (output) via the DFSF2 and the PIO4 for the duplicate file (A, A ') created on the MSO1; 7 and the MSO2; 8, An example in which a device failure occurs in MSO2; 8 in this state will be described.

MSO2;8に障害が発生するとDFCF2はMSO2;8上のファイ
ルA′を閉塞状態にした後MSO1;7を使用してファイルA
の処理を継続する。
If a failure occurs in MSO2; 8, DFSF2 closes file A 'on MSO2; 8 and then uses MSO1; 7
The processing of is continued.

次にMSO2;8の修理又は交換が行われ、ファイルA′が
再アロケートされる。但し、ファイルA′はそのエリア
の確保が行われているのみであり、参照可能なデータは
まだ書込まれていない。また、ファイルA′は依然閉塞
状態のままである。
Next, repair or replacement of MSO2; 8 is performed, and file A 'is reallocated. However, only the area of the file A 'is secured, and the data that can be referred to has not been written yet. Also, file A 'is still in the closed state.

この状態でコピー手段3はファイルAのデータを先頭
から順に読み、ファイルA′へコピーする。ファイルA
からファイルA′へのコピー処理とDFCF2との入出力処
理とが同時に行われた場合、第2図と第3図とを用いて
説明した通りにDFCF2及びコピー手段3が動作し、矛盾
なくファイルのコピーが終了する。
In this state, the copying means 3 reads the data of the file A in order from the beginning and copies it to the file A '. File A
When the copying process from the file A 'to the file A' and the input / output process with the DFSF2 are performed simultaneously, the DFSF2 and the copying means 3 operate as described with reference to FIGS. Is finished.

ファイルAからファイルA′へのデータのコピーが終
了した時点でファイルA′の閉塞が解除された後、コピ
ー手段3の動作が完了する。
When the copying of the data from the file A to the file A 'is completed, the blockage of the file A' is released, and the operation of the copying means 3 is completed.

これによって、二重化ファイル(A,A′)は正副共に
同一となり、AP1からの入出力処理を一時中断すること
なくコピーを完了し、元のままの二重化ファイルに復旧
させることが可能となる。
As a result, the duplicate file (A, A ') becomes the same for both the primary and the secondary, so that the copy can be completed without interrupting the input / output processing from the AP 1 and the original duplicate file can be restored.

なお、上記実施例では2次記憶装置として磁気ディス
ク装置を例にとって説明したが、直接アクセス可能な2
次記憶装置であれば他の2次記憶装置にも本発明が同様
に適用できることは明白である。
In the above embodiment, the magnetic disk device is described as an example of the secondary storage device.
Obviously, the present invention can be similarly applied to other secondary storage devices as long as they are secondary storage devices.

また、二重化ファイルが1個の場合を例にとって説明
したが、二重化ファイルが複数個の場合にも本発明が同
様に適用できることは明白である。
Also, the case where there is one duplex file has been described as an example, but it is obvious that the present invention can be similarly applied to a case where there are a plurality of duplex files.

さらに、アプリケーションプログラムが1個の場合を
例にとって説明したが、m個の二重化ファイルをn個の
アプリケーションプログラムが入出力する場合にも本発
明が同様に適用できることは明白である。
Furthermore, although the case where there is one application program has been described as an example, it is apparent that the present invention can be similarly applied to a case where n application programs input / output m duplicated files.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明は、 主記憶上のコントロールテーブルに、二重化ファイル
のコピー処理のカレントアドレスと、コピー処理が実行
中であることを示すフラグと、二重化ファイル入出力制
御手段とコピー手段が同一アドレスに対して処理を行お
うとした場合に二重化ファイル入出力制御手段がそのカ
レントアドレスに関するコピー処理が終了するまで待合
わせていることを示すフラグと、を記録し、二重化ファ
イル入出力制御手段とコピー手段とが同時に動作可能と
することによって、以下の効果がある。
As described above, according to the present invention, the control table on the main memory stores the current address of the duplication file copy process, the flag indicating that the copy process is being executed, the duplex file input / output control unit, and the copy unit. A flag indicating that the duplicated file input / output control means is waiting until the copy processing for the current address is completed when processing is to be performed on the same address, and the duplicated file input / output control means The following effects are obtained by enabling the copying unit and the copy unit to operate simultaneously.

(1)24時間運転のオンラインシステムでは、障害を起
した二重化ファイルの復旧をオンラインを停止させるこ
となく行うことが出来るため、システムの稼動性が向上
する。
(1) In an online system that operates 24 hours a day, a duplicated file that has failed can be recovered without stopping the online operation, thereby improving the operability of the system.

(2)24時間運転でないオンラインシステムでは、障害
を起した二重化ファイルの復旧をオンライン終了時刻ま
で待つ必要なく即刻開始できるため、片系のまま運用を
続け、二重障害発生によって二重化ファイルの両系がア
クセス不能になりひいてはオンライン停止に至るという
障害被災率を低下させることが可能となる。
(2) In an online system that is not running for 24 hours, recovery of the failed duplicated file can be started immediately without waiting for the online end time. Can become inaccessible, and eventually cause an online suspension, thereby lowering the disaster damage rate.

また、復旧作業をオンライン運転中に平行して行える
ため、オペレータの拘束時間削減となり、経済性が向上
する。
In addition, since the recovery operation can be performed in parallel during the online operation, the restraining time of the operator can be reduced, and the economy can be improved.

【図面の簡単な説明】[Brief description of the drawings]

第1図は本発明の二重化ファイルの動的コピー制御方式
の一実施例の構成を説明する図。 第2図は二重化ファイル入出力制御手段の動作を示す流
れ図。 第3図はコピー手段の処理を示す流れ図。 1…アプリケーションプログラム(AP)、2…二重化フ
ァイル入出力制御手段(DFCF)、3…コピー手段、4…
入出力手段(PIO)、5…同期制御手段、6…コントロ
ールテーブル、7,8…磁気ディスク装置(MSO1,MSO2)、
ファイルA,ファイルA′…二重化ファイル。
FIG. 1 is a diagram for explaining the configuration of an embodiment of a duplicate file dynamic copy control system according to the present invention. FIG. 2 is a flowchart showing the operation of the duplex file input / output control means. FIG. 3 is a flowchart showing the processing of the copying means. 1. Application program (AP) 2. Duplicated file input / output control unit (DFCF) 3. Copy unit 4.
Input / output means (PIO), 5: synchronization control means, 6: control table, 7, 8: magnetic disk devices (MSO1, MSO2),
File A, File A ': Duplicated file.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】二重化ファイルへのデータの入出力要求に
応じて、二重化ファイルの両方が正常な場合には、いず
れか一方の二重化ファイルからデータを読み出し、両方
の二重化ファイルに対してデータを書き込むという入出
力処理を行うとともに、いずれか一方の二重化ファイル
に障害が発生した場合には、正常な二重化ファイルに対
してのみ該入出力処理を行う入出力制御手段と、 いずれか一方の二重化ファイルに障害が発生した場合
に、正常な二重化ファイルのデータを障害が発生した二
重化ファイルの先頭から順次コピーするコピー手段とを
備えた二重化ファイルシステムにおいて、 前記入出力制御手段が、 前記コピー手段が動作中における、二重化ファイルへの
データの入出力要求に応じて、 該入出力要求に係る二重化ファイルのアドレスの値が、
前記コピー手段によりコピー中の二重化ファイルのアド
レスの値よりも小さい場合には、両方の二重化ファイル
に対してデータの入出力処理を行い、また、 該入出力要求に係る二重化ファイルのアドレスの値が、
前記コピー手段によりコピー中の二重化ファイルのアド
レスの値よりも大きい場合には、正常な二重化ファイル
に対してのみデータの入出力処理を行い、該入出力処理
後に、該入出力要求に係る二重化ファイルのアドレスの
値が、前記コピー手段によりコピー中の二重化ファイル
のアドレスの値よりも小さい場合には、該入出力要求に
係る処理を最初からやり直し、また、該入出力要求に係
る二重化ファイルのアドレスの値が、前記コピー手段に
よりコピー中の二重化ファイルのアドレスの値に等しい
場合には、該コピー手段の動作完了後に該入出力要求に
係る処理を最初からやり直すことを特徴とする二重化フ
ァイルの動的コピー制御方式。
If both of the duplicated files are normal in response to a data input / output request to the duplicated file, data is read from one of the duplicated files and data is written to both of the duplicated files. When one of the duplicated files fails, the input / output control means that performs the input / output processing only on the normal duplicated file, A copy unit for sequentially copying data of a normal duplex file from the beginning of the failed duplex file when a failure occurs, wherein the input / output control unit is operating the copy unit. In response to the request for input / output of data to / from the duplex file, the If the value of the address is
If the address value of the duplicated file being copied by the copying means is smaller than the value of the address of the duplicated file being copied, the data input / output processing is performed for both duplicated files, and the value of the address of the duplicated file related to the input / output request is ,
If the value is larger than the address value of the duplicated file being copied by the copying means, data input / output processing is performed only on the normal duplicated file, and after the input / output processing, the duplicated file associated with the input / output request is processed. If the value of the address is smaller than the value of the address of the duplicated file being copied by the copying means, the process related to the input / output request is restarted from the beginning, and the address of the duplexed file related to the input / output request is Is equal to the value of the address of the duplicated file being copied by the copying means, the processing relating to the input / output request is restarted from the beginning after the operation of the copying means is completed. Copy control method.
JP2315317A 1990-11-20 1990-11-20 Dynamic copy control method for duplicated files Expired - Fee Related JP2712819B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2315317A JP2712819B2 (en) 1990-11-20 1990-11-20 Dynamic copy control method for duplicated files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2315317A JP2712819B2 (en) 1990-11-20 1990-11-20 Dynamic copy control method for duplicated files

Publications (2)

Publication Number Publication Date
JPH04184639A JPH04184639A (en) 1992-07-01
JP2712819B2 true JP2712819B2 (en) 1998-02-16

Family

ID=18063948

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2315317A Expired - Fee Related JP2712819B2 (en) 1990-11-20 1990-11-20 Dynamic copy control method for duplicated files

Country Status (1)

Country Link
JP (1) JP2712819B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3274188B2 (en) * 1992-10-05 2002-04-15 株式会社東芝 Backup file management method and backup method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6162918A (en) * 1984-09-05 1986-03-31 Nippon Telegr & Teleph Corp <Ntt> Restoration system for duplex file
JPH01128122A (en) * 1987-11-13 1989-05-19 Nec Corp Control system for volume dynamic copying

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
発明協会 公開技報 公技番号89−19883

Also Published As

Publication number Publication date
JPH04184639A (en) 1992-07-01

Similar Documents

Publication Publication Date Title
EP0988596B1 (en) Method and system for recovery in a partitioned shared nothing database system using virtual shared disks
US6658589B1 (en) System and method for backup a parallel server data storage system
US7779295B1 (en) Method and apparatus for creating and using persistent images of distributed shared memory segments and in-memory checkpoints
JP2505928B2 (en) Checkpoint mechanism for fault tolerant systems
US20010056438A1 (en) Database system with backup and recovery mechanisms
JPH08305500A (en) Storage controller,data storage system containing it and double-pair suppression method
JP2001518210A (en) Method and apparatus for independent and simultaneous access to a common data set
JPH05210555A (en) Method and device for zero time data-backup-copy
JPH05233162A (en) Data saving system and data processing system provided with maintenance function
JPH11242566A (en) Multiplex data storage system
JP2712819B2 (en) Dynamic copy control method for duplicated files
JP4305007B2 (en) System switching system, processing method therefor, and processing program therefor
JP4428887B2 (en) Database system
JP2009265973A (en) Data synchronization system, failure recovery method, and program
JPH0616258B2 (en) Duplex disk control method
JPH07281933A (en) Computer system
JP3463696B2 (en) Online garbage collection processing method
JPH06214848A (en) Data base managing system
JPH0944317A (en) Registering system for alternate sector
JPH0581103A (en) System for restoring duplexing film
JPS6167153A (en) Partial trouble recovery processing system of direct access storage device
JPS63262737A (en) Data base updating and recording processing method
JPH0417040A (en) Method for managing program of decentralized processing system
JP2004199116A (en) Division back-up/restoration application system
JPH04256011A (en) Recorded data relieving system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071031

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081031

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091031

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091031

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101031

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees