JPH0481945A - Duplex operation control system for file - Google Patents

Duplex operation control system for file

Info

Publication number
JPH0481945A
JPH0481945A JP2195636A JP19563690A JPH0481945A JP H0481945 A JPH0481945 A JP H0481945A JP 2195636 A JP2195636 A JP 2195636A JP 19563690 A JP19563690 A JP 19563690A JP H0481945 A JPH0481945 A JP H0481945A
Authority
JP
Japan
Prior art keywords
file
update processing
copy
update
journal
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
JP2195636A
Other languages
Japanese (ja)
Inventor
Yoichi Ueda
洋一 上田
Masatsugu Omuro
大室 雅嗣
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
NEC Solution Innovators Ltd
Original Assignee
NEC Corp
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 Corp, NEC Solution Innovators Ltd filed Critical NEC Corp
Priority to JP2195636A priority Critical patent/JPH0481945A/en
Publication of JPH0481945A publication Critical patent/JPH0481945A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To easily restart the updating processing after its fault even in the case the fault of device is occurred again by copying and regenerating a file to be duplex-operated, when the device fault of device is occurred, and using this copy file as an alternate file of the file in which a fault is occurred. CONSTITUTION:In the case it is discriminated that the fault of device occurred, an updating processing temporary stop means 5 instructs a temporary stop of an updating processing of an updating processing means 2, and the updating processing means 2 holds temporarily an updating request from an updating processing request program 20, and stops temporarily the updating processing. After the updating processing is stopped temporarily, a file copy program 13 is actuated, and the updating processing is restarted with an output of a journal. Subsequently, when the file copy program 13 is finished, a copy file is used as an alternate file of the file in which the fault occurred and a dual updating processing is restarted. In such a way, no matter how many times the device fault occurred, in the program which is executing the updating processing, the updating processing can easily be restarted.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ファイルの二重化制御方式に関し、ファイル
への更新処理を行うプログラムで更新処理中に装置障害
により片方のファイル々イ破壊された時にもそれまでの
ファイルデータを保証するファイルの二重化制御方式に
関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a file duplication control method, and the present invention relates to a file duplication control method. The present invention also relates to a file duplication control method that guarantees the original file data.

〔従来の技術〕[Conventional technology]

従来のファイルの二重化制御方式は、ファイルへの更新
処理を行うプログラムで更新処理中に装置障害によりフ
ァイルが破壊された場合には、装置障害が発生した片方
のファイルを切り放し、正常な装置上の他方のファイル
のみで、障害発生後にファイルへの更新処理を行うか、
または装置障害発生時に、装置障害が発生した片方のフ
ァイルに代って再び二重化する新たなファイルを複写し
て作成する場合には、更新処理を一時停止してファイル
の複写処理を行っていた。
In the conventional file duplication control method, if a file is destroyed due to a device failure during update processing in a program that performs file update processing, the one file in which the device failure occurred is cut off, and the file is restored on the normal device. Either update the other file only after the failure occurs, or
Alternatively, when a device failure occurs, in order to copy and create a new file to be duplicated again in place of the one file in which the device failure occurred, the update process is temporarily stopped and the file copy process is performed.

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

上述した従来のファイルの二重化制御方式は、ファイル
への更新処理を行うプログラムで更新処理中に装置障害
により片方のファイルが破壊された場合に、装置障害が
発生したファイルを切り放し、正常な装置上のファイル
のみで障害発生後のファイルへの更新処理を行う前者で
は、再度、装置障害が発生した場合にその障害後の更新
処理を再開することができないという欠点を有している
In the conventional file duplication control method described above, if one of the files is destroyed due to a device failure during the update process in a program that updates a file, the file with the device failure is cut off and the file is restored to the normal device. The former method, in which update processing is performed only on files after a failure has occurred, has the disadvantage that if a device failure occurs again, the update processing after the failure cannot be restarted.

また、装置障害発生時に、再び二重化する新たなファイ
ルを複写して作成する後者では、更新処理を一時停止し
てファイルの複写処理を行っているので、装置障害発生
時に、その時に要求した更新要求が終了するまでに大変
長い時間を要するという欠点を有している。
In addition, in the latter case, when a device failure occurs, the update process is paused and the file copy process is performed, so that when a device failure occurs, the update request requested at that time is It has the disadvantage that it takes a very long time to complete.

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

本発明のファイルの二重化制御方式は、ファイルニ対し
て更新処理をする際に、ファイルを二重化して同一内容
を別装置上の二つのファイルに出力するファイル処理装
置でのファイルの二重化制御方式において、 更新処理要求プログラムより、ファイルの更新要求を受
け取り、別装置上の二つのファイルに同一内容の更新を
行う更新処理手段と、 前記更新処理手段の二つのファイルの更新を一時停止さ
せる更新処理一時停止手段と、更新中の二つのファイル
の中の片方のファイルが装置障害により、使用不可能に
なった時に、前記更新処理一時停止手段により更新処理
を一時停止した後に、装置障害が発生した装置上のファ
イルである障害ファイルを切り放す障害ファイル解放手
段と、 前記障害ファイル解放手段により、障害ファイルが切り
放された後に、以後の更新処理を行う際の更新イメージ
レコードであるジャーナルレコードを格納するファイル
であるジャーナルファイルを作成するジャーナルファイ
ル作成手段と、前記ジャーナルファイル作成手段により
、ジャーナルファイルを作成した後に、今まで使用して
いない別装置上に複写ファイルを作成し、今まで出力し
ていたファイルのうちで装置障害が発生していないファ
イルより、複写ファイルに内容の複写を行うファイル複
写プログラムを起動するファイル複写プログラム起動手
段と、 前記更新処理一時停止手段により、一時停止していた前
記更新処理手段による更新処理を再開し、一時停止した
時に前記更新処理要求プログラムからの更新要求がまだ
終了していない場合には、前記更新処理手段に更新処理
を行わせる更新処理再開手段と、 前記更新処理再開手段により、前記更新処理手段による
更新処理が再開され、ファイルが更新される際に、前記
ジャーナルファイル作成手段により、作成されたジャー
ナルファイルに、ジャーナルレコードを格納するジャー
ナル格納手段と、前記ファイル複写プログラム起動手段
により、前記ファイル複写プログラムが起動された後に
、複写ファイルを作成する前記ファイル複写プログラム
内の複写ファイル作成手段と、 前記複写ファイル作成手段により、複写ファイルカ作成
された後に、装置障害が発生しなかった方のファイルよ
り、複写ファイルに内容の複写を行う前記ファイル複写
プログラム内のファイル複写手段と、 前記ファイル複写手段により、ファイルが全て複写され
た後に、前記ジャーナル格納手段により、ジャーナルフ
ァイルに格納されているジャーナルレコードで複写ファ
イルを更新する前記ファイル複写プログラム内の複写フ
ァイル更新手段と、 前記複写ファイル更新手段により、ジャーナルファイル
に格納されている未使用のジャーナルレコードがほぼな
くなった時に、前記ファイル複写プログラムを終了させ
、前記更新処理一時停止手段に複写ファイルの更新処理
が終了したことを通知し、前記更新処理一時停止手段に
より、前記更新処理手段のファイル更新処理を一時停止
させる前記ファイル複写プログラム内の複写ファイル更
新終了通知手段と、 前記複写ファイル更新終了通知手段が、前記更新処理一
時停止手段によって更新処理を一時停止させた後に、複
写ファイルをジャーナルファイルに残っている未使用の
ジャーナルレコードで更新し、その複写ファイルを障害
ファイルの代替ファイルとしてジャーナルファイルを解
放し、前記更新処理再開手段により、前記更新処理手段
によるファイル更新処理を再開させる二重化ファイル交
換手段と、 を有して構成されている。
The file duplication control method of the present invention is a file duplication control method for a file processing device that duplicates a file and outputs the same content to two files on different devices when updating a file. , update processing means that receives a file update request from an update processing request program and updates two files on different devices with the same content; and an update processing temporary that temporarily suspends updating of the two files of the update processing means. When one of the two files being updated becomes unusable due to a device failure and the update process is temporarily stopped by the update process suspending unit, the device failure occurs. faulty file release means for releasing the faulty file, which is the above file; and after the faulty file is released by the faulty file release means, storing a journal record that is an update image record when performing subsequent update processing. A journal file creation means that creates a journal file that is a file, and after creating a journal file by the journal file creation means, a copy file is created on another device that has not been used until now, and the copy file is created on a separate device that has not been used until now. file copying program starting means for starting a file copying program for copying contents into a copy file from among the files in which a device failure has not occurred; and the updating, which has been temporarily stopped by the updating processing temporary stopping means. update processing restart means for restarting the update processing by the processing means and causing the update processing means to perform the update processing if the update request from the update processing request program has not yet been completed when the update processing is temporarily stopped; a journal storage means for storing a journal record in a journal file created by the journal file creation means when the update processing by the update processing means is restarted by the processing restart means and the file is updated; Copy file creation means in the file copy program that creates a copy file after the file copy program is started by the copy program start means; and a device failure after the copy file creation means creates the copy file. a file copying means in the file copying program that copies the contents from the file in which no error has occurred to a copy file; and after all the files have been copied by the file copying means, the journal storage means a copy file update means in the file copying program that updates a copy file with journal records stored in the file; and when the copy file update means almost eliminates unused journal records stored in the journal file. , terminating the file copying program, notifying the update processing suspension means that the update processing of the copied file has been completed, and causing the update processing suspension means to temporarily suspend the file update processing of the update processing means; A copy file update end notification means in a file copying program, and the copy file update end notification means transfer the copy file to an unused journal file remaining in the journal file after the update process is temporarily stopped by the update process suspension means. Duplicated file exchange means for updating the journal record with a journal record, releasing the journal file by using the copy file as a substitute file for the failed file, and causing the update processing restart means to restart the file update processing by the update processing means; It is configured.

[実施例〕 次に、本発明の実施例について図面を参照して説明する
[Example] Next, an example of the present invention will be described with reference to the drawings.

第1図は、本発明のファイルの二重化制御方式の一実施
例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of the file duplication control method of the present invention.

第1図に示すように、本実施例は、ファイル処理装置1
と、更新処理手段2と、ファイル3と、ファイル4と、
更新処理一時停止手段5と、障害ファイル解放手段6と
、ジャーナルファイル作成手段7と、ジャーナルレコー
ド18を格納するジャーナルファイル8と、ファイル複
写プログラム起動手段9と、更新処理再開手段10と、
ジャーナル格納手段11と、二重化ファイル交換手段1
2と、ファイル複写プログラム13(複写ファイル作成
手段14と、ファイル複写手段18と、複写ファイル更
新手段17と、複写ファイル更新終了通知手段18とを
含む)と、複写ファイル15と、更新処理要求プログラ
ム20とで構成されている。
As shown in FIG. 1, in this embodiment, a file processing device 1
, update processing means 2, file 3, file 4,
Update processing temporary stop means 5, failed file release means 6, journal file creation means 7, journal file 8 for storing journal records 18, file copy program starting means 9, update processing restart means 10,
Journal storage means 11 and duplex file exchange means 1
2, a file copy program 13 (including a copy file creation means 14, a file copy means 18, a copy file update means 17, and a copy file update end notification means 18), a copy file 15, and an update processing request program. It consists of 20.

第2図は、本実施例で装置障害が発生し、更新処理を一
時停止してから、ファイル複写プログラム13を起動し
、ジャーナルの出力付きで更新処理を再開させるまでの
動作の一例を示す流れ図である。
FIG. 2 is a flowchart showing an example of the operation in this embodiment, from when a device failure occurs and the update process is temporarily stopped, to when the file copy program 13 is started and the update process is restarted with journal output. It is.

更新処理手段2は、更新処理要求プログラム20より、
ファイルの更新要求を受け取り、ファイル処理装置1上
のファイル3とファイル4との両方に対して更新処理を
行っている。
The update processing means 2 receives the update processing request program 20 from the update processing request program 20.
A file update request is received, and update processing is performed on both files 3 and 4 on the file processing device 1.

そこで、第2図のステップ201で、両方のファイル3
.4が存在する装置に障害が発生していない間(NO)
は、ステップ203にて、更新処理手段2が両方のファ
イル3,4に対して更新処理を継続している。例えば、
ファイル3が存在する装置に、ステップ201にて、障
害が発生したと判断した場合(YES)には、更新処理
一時停止手段5は、ステップ202にて、更新処理手段
2の更新処理の一時停止を指示し、更新処理手段2は、
更新処理要求プログラム20からの更新要求を一時保留
し、更新処理を一時停止している。
Therefore, in step 201 in Figure 2, both files 3
.. As long as there is no failure in the device where 4 exists (NO)
In step 203, the update processing means 2 continues the update processing for both files 3 and 4. for example,
If it is determined in step 201 that a failure has occurred in the device in which file 3 exists (YES), the update processing suspension means 5 temporarily suspends the update processing of the update processing means 2 in step 202. and the update processing means 2
The update request from the update process request program 20 is temporarily suspended, and the update process is temporarily stopped.

次に、ステップ204で、障害が発生したファイル3を
障害ファイル解放手段6が解放する。障害のファイル3
を解放した後に、ステップ205で、ジャーナルファイ
ル作成手段7が、障害のファイル3が切り放された後の
ファイル4に対するジャーナルレコード19を格納して
おくためのジャーナルファイル8を作成する。
Next, in step 204, the faulty file release means 6 releases the file 3 in which the fault has occurred. Failure file 3
After releasing the failed file 3, in step 205, the journal file creation means 7 creates a journal file 8 for storing the journal record 19 for the file 4 after the failed file 3 is released.

次に、ステップ206で、ファイル複写プログラム起動
手段9がファイル4と同一のファイルを作成するために
更新処理手段2とは非同期に動作するファイル複写プロ
グラム13を起動する。
Next, in step 206, the file copying program starting means 9 starts the file copying program 13, which operates asynchronously with the update processing means 2, in order to create the same file as the file 4.

ファイル複写プログラム13が起動された後に、再び更
新処理要求プログラム20からの更新要求を受け付けら
れるようにするために更新処理再開手段10によって、
更新処理手段2の更新処理を再開させる。
After the file copying program 13 is started, the update processing resuming means 10 performs the following steps in order to be able to accept update requests from the update processing request program 20 again.
The update processing of the update processing means 2 is restarted.

この際、ステップ207で、更新処理再開手段10は、
ステップ202にて更新処理一時停止手段5が更新処理
を一時停止した時の更新要求がファイル4に対して、既
に終了しているか否かを判断する。ステップ207にて
まだ更新処理が終了していないと判断した場合(No)
には、ステップ208で、更新処理手段2が一時停止し
た時の更新処理をファイル4に対して行う。この時、ス
テップ209で、ジャーナル格納手段11が更新イメー
ジをジャーナルファイル8に格納する。
At this time, in step 207, the update processing restart means 10:
In step 202, it is determined whether the update request for the file 4 at which the update processing suspension means 5 temporarily stopped the update processing has already been completed. If it is determined in step 207 that the update process has not finished yet (No)
In step 208, the update processing means 2 performs the update processing on the file 4 when it is temporarily stopped. At this time, in step 209, the journal storage means 11 stores the updated image in the journal file 8.

ステップ207で、更新処理再開手段10がファイル4
に対する更新要求が既に終了していたと判断した場合(
YES)には、更新処理手段2に対して更新処理の再開
を指示し、ステップ210で、更新処理手段2が更新処
理要求プログラム20からの新しい更新要求を受け付け
、ファイル4に対する更新処理を再開する。
In step 207, the update processing restart means 10 updates the file 4.
If it is determined that the update request for has already ended (
If YES), the update processing means 2 is instructed to restart the update processing, and in step 210, the update processing means 2 accepts a new update request from the update processing request program 20, and restarts the update processing for the file 4. .

第3図は、本実施例のファイル複写プログラム13の動
作の一例を示す流れ図である。
FIG. 3 is a flowchart showing an example of the operation of the file copy program 13 of this embodiment.

ファイル複写プログラム13は、まず、第3図のステッ
プ301で、ファイル4と同一のファイルを作成するた
めに、複写ファイル作成手段14により、複写ファイル
15を作成する。次に、ステップ302で、ファイル複
写手段16がファイル4から複写ファイル15への複写
を開始する。
First, in step 301 of FIG. 3, the file copy program 13 creates a copy file 15 using the copy file creation means 14 in order to create the same file as the file 4. Next, in step 302, the file copying means 16 starts copying from the file 4 to the copy file 15.

そして、ステップ303で、ファイル複写手段16がフ
ァイルの複写が完了したと判断した場合(YES)には
、ステップ304で、複写ファイル更新手段17がジャ
ーナルファイル8よりジャーナルレコード19を取り出
し、複写ファイル15を更新する。また、ステップ30
5で、ジャーナルファイル8に残っているジャーナルレ
コード19がなくなったと判断した場合(YES)には
、ステップ30Bで、複写ファイル更新終了通知手段1
8が更新処理一時停止手段5にファイル複写プログラム
13が終了したことを通知する。
Then, in step 303, if the file copying means 16 determines that the file copying has been completed (YES), in step 304, the copying file updating means 17 extracts the journal record 19 from the journal file 8, and Update. Also, step 30
If it is determined in step 5 that there are no more journal records 19 remaining in the journal file 8 (YES), in step 30B, the copy file update end notification means 1
8 notifies the update processing temporary stop means 5 that the file copy program 13 has ended.

第4図は、本実施例で、ジャーナル出力付きで更新処理
を再開してから、ファイル複写プログラム13が終了し
、複写ファイルを障害が発生したファイルの代替として
二重化更新処理を再開するまでの動作の一例を示す流れ
図である。
FIG. 4 shows the operation in this embodiment from when update processing is restarted with journal output until the file copy program 13 is terminated and redundant update processing is restarted using the copied file as a substitute for the failed file. It is a flowchart which shows an example.

更新処理手段2は、第2図のステップ210にて、更新
処理再開手段10からファイル4に対する更新処理の再
開を指示されると、第4図のステップ401で、更新処
理要求プログラム20からの新たな更新要求を受け付け
、ファイル4に対して更新処理を行っていく。更新処理
を行っている時には、更新毎にステップ403にてジャ
ーナル格納手段11を用いて、ジャーナルファイル8に
ジャーナルレコード19を格納していく。
When the update processing means 2 is instructed to restart the update processing for the file 4 from the update processing restart means 10 at step 210 in FIG. The update request is accepted and update processing is performed on the file 4. During update processing, the journal record 19 is stored in the journal file 8 using the journal storage means 11 in step 403 for each update.

この際、更新処理一時停止手段5は、ステップ402で
、複写ファイル更新終了通知手段18より、ファイル複
写プログラムエ3の終了通知を受け取るのを待ち、終了
通知を受け取る(YES)と、ステップ404で、更新
処理手段2のファイル更新処理を一時停止する。
At this time, the update processing temporary stop means 5 waits in step 402 to receive a notification of completion of the file copying program 3 from the copy file update completion notification means 18, and upon receiving the completion notification (YES), in step 404. , the file update process of the update processing means 2 is temporarily stopped.

次に、ステップ405で、二重化ファイル交換手段12
がジャーナルファイル8中に残っているジャーナルレコ
ード19で複写ファイル15を更新し、ステップ40θ
で、複写ファイル15を障害ファイルであるファイル3
の代わりに二重化ファイルとする。そして、必要なくな
ったジャーナルファイル8を解放する。
Next, in step 405, the duplex file exchange means 12
updates the copy file 15 with the journal record 19 remaining in the journal file 8, and in step 40θ
Then, copy file 15 is copied to file 3, which is the faulty file.
Use a duplicate file instead. Then, the journal file 8 that is no longer needed is released.

次に、ステップ407で、更新処理再開手段10は、ス
テップ404にて更新処理一時停止手段5が更新処理を
一時停止した時の更新要求がファイル4に対して既に終
了しているか否かを判断し、ステップ407で、まだ更
新処理が終了していないと判断した場合(NO)には、
ステップ408で、−更新処理手段2が一時停止した時
の更新処理を、ファイル4と複写ファイルエ6とに対し
て行う。
Next, in step 407, the update processing resuming means 10 determines whether the update request for the file 4 at the time when the update processing suspension means 5 suspended the update processing in step 404 has already been completed. However, if it is determined in step 407 that the update process has not finished yet (NO),
In step 408, the update processing performed when the update processing means 2 is temporarily stopped is performed on the file 4 and the copy file 6.

また、ステップ407で、更新処理再開手段10がファ
イル4に対する更新要求が既に終了していたと判断した
場合(YES)には、更新処理手段2に対して更新処理
の再開を指示し、ステップ409で、更新処理手段2が
更新処理要求プログラム20からの新しい更新要求を受
け付け、ファイル4と複写ファイル15とに対する更新
処理を再開する。
If the update processing resuming means 10 determines in step 407 that the update request for file 4 has already been completed (YES), it instructs the update processing means 2 to restart the update processing, and in step 409 , the update processing means 2 receives a new update request from the update processing request program 20 and restarts the update processing for the file 4 and the copy file 15.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明のファイル二重化制御方式
は、更新処理を行っているプログラムで、何回装置障害
が発生した場合でも、更新処理を容易に再開することが
でき、また、障害発生時に、二重化するファイルを複写
して再作成する際も、その時に要求された更新要求を、
長時間時たせることなく処理することができるという効
果を有している。
As explained above, the file duplication control method of the present invention allows the update process to be easily restarted no matter how many times a device failure occurs in the program performing the update process. , even when copying and recreating a file to be duplicated, the update request requested at that time is
It has the effect of being able to process without waiting for a long time.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、本発明のファイルの二重化制御方式の一実施
例を示すブロック図、第2図は、本実施例で装置障害が
発生し、更新処理を一時停止してから、ファイル複写プ
ログラム13を起動し、ジャーナルの出力付きで更新処
理を再開させるまでの動作の一例を示す流れ図、第3図
は、本実施例のファイル複写プログラム13の動作の一
例を示す流れ図、第4図は、本実施例で、ジャーナル出
力付きで更新処理を再開してから、ファイル複写プログ
ラム13が終了し、複写ファイルを障害が発生したファ
イルの代替として二重化更新処理を再開するまでの動作
の一例を示す流れ図である。 1・・・ファイル処理装置、2・・・更新処理手段、3
.4・・・ファイル、5・・・更新処理一時停止手段、
6・・・障害ファイル解放手段、7・・・ジャーナルフ
ァイル作成手段、8・・・ジャーナルファイル、8・・
・ファイル複写プログラム起動手段、10・・・更新処
理再開手段、11・・・ジャーナル格納手段、12・・
・二重化ファイル交換手段、13・・・ファイル複写プ
ログラム、14・・・複写ファイル作成手段、15−・
・複写ファイル、16・・・ファイル複写手段、17・
・・複写ファイル更新手段、18・・・複写ファイル更
新終了通知手段、 19・・・ジャーナルレコード、 ・・・更新処理要求プログラム。
FIG. 1 is a block diagram showing an embodiment of the file duplication control method of the present invention, and FIG. 2 is a block diagram showing an embodiment of the file duplication control method according to the present invention. 3 is a flowchart showing an example of the operation of the file copy program 13 of this embodiment, and FIG. 4 is a flowchart showing an example of the operation of the file copy program 13 of this embodiment. 1 is a flowchart showing an example of the operation from restarting update processing with journal output to terminating the file copying program 13 and restarting duplex update processing using the copied file as a substitute for the failed file in the embodiment. be. 1... File processing device, 2... Update processing means, 3
.. 4... File, 5... Update processing temporary stop means,
6... Means for releasing faulty file, 7... Means for creating journal file, 8... Journal file, 8...
・File copy program starting means, 10... Update processing restart means, 11... Journal storage means, 12...
- Duplicated file exchange means, 13... File copy program, 14... Copy file creation means, 15-.
・Copy file, 16...File copying means, 17.
. . . Copy file updating means, 18 . . . Copy file update completion notification means, 19 . . Journal record, . . . Update processing request program.

Claims (1)

【特許請求の範囲】 ファイルに対して更新処理をする際に、ファイルを二重
化して同一内容を別装置上の二つのファイルに出力する
ファイル処理装置でのファイルの二重化制御方式におい
て、 更新処理要求プログラムより、ファイルの更新要求を受
け取り、別装置上の二つのファイルに同一内容の更新を
行う更新処理手段と、 前記更新処理手段の二つのファイルの更新を一時停止さ
せる更新処理一時停止手段と、 更新中の二つのファイルの中の片方のファイルが装置障
害により、使用不可能になった時に、前記更新処理一時
停止手段により更新処理を一時停止した後に、装置障害
が発生した装置上のファイルである障害ファイルを切り
放す障害ファイル解放手段と、 前記障害ファイル解放手段により、障害ファイルが切り
放された後に、以後の更新処理を行う際の更新イメージ
レコードであるジャーナルレコードを格納するファイル
であるジャーナルファイルを作成するジャーナルファイ
ル作成手段と、前記ジャーナルファイル作成手段により
、ジャーナルファイルを作成した後に、今まで使用して
いない別装置上に複写ファイルを作成し、今まで出力し
ていたファイルのうちで装置障害が発生していないファ
イルより、複写ファイルに内容の複写を行うファイル複
写プログラムを起動するファイル複写プログラム起動手
段と、 前記更新処理一時停止手段により、一時停止していた前
記更新処理手段による更新処理を再開し、一時停止した
時に前記更新処理要求プログラムからの更新要求がまだ
終了していない場合には、前記更新処理手段に更新処理
を行わせる更新処理再開手段と、 前記更新処理再開手段により、前記更新処理手段による
更新処理が再開され、ファイルが更新される際に、前記
ジャーナルファイル作成手段により、作成されたジャー
ナルファイルに、ジャーナルレコードを格納するジャー
ナル格納手段と、前記ファイル複写プログラム起動手段
により、前記ファイル複写プログラムが起動された後に
、複写ファイルを作成する前記ファイル複写プログラム
内の複写ファイル作成手段と、 前記複写ファイル作成手段により、複写ファイルが作成
された後に、装置障害が発生しなかった方のファイルよ
り、複写ファイルに内容の複写を行う前記ファイル複写
プログラム内のファイル複写手段と、 前記ファイル複写手段により、ファイルが全て複写され
た後に、前記ジャーナル格納手段により、ジャーナルフ
ァイルに格納されているジャーナルレコードで複写ファ
イルを更新する前記ファイル複写プログラム内の複写フ
ァイル更新手段と、 前記複写ファイル更新手段により、ジャーナルファイル
に格納されている未使用のジャーナルレコードがほぼな
くなった時に、前記ファイル複写プログラムを終了させ
、前記更新処理一時停止手段に複写ファイルの更新処理
が終了したことを通知し、前記更新処理一時停止手段に
より、前記更新処理手段のファイル更新処理を一時停止
させる前記ファイル複写プログラム内の複写ファイル更
新終了通知手段と、 前記複写ファイル更新終了通知手段が、前記更新処理一
時停止手段によって更新処理を一時停止させた後に、複
写ファイルをジャーナルファイルに残っている未使用の
ジャーナルレコードで更新し、その複写ファイルを障害
ファイルの代替ファイルとしてジャーナルファイルを解
放し、前記更新処理再開手段により、前記更新処理手段
によるファイル更新処理を再開させる二重化ファイル交
換手段と、 を有することを特徴とするファイルの二重化制御方式。
[Claims] In a file duplication control method in a file processing device that duplicates the file and outputs the same content to two files on different devices when performing update processing on a file, an update processing request is provided. an update processing means that receives a file update request from a program and updates two files on different devices with the same content; an update processing pause means that temporarily suspends updating of the two files of the update processing means; When one of the two files being updated becomes unusable due to a device failure, the file on the device where the device failure occurred after the update process is suspended by the update process suspension means. a faulty file release means for releasing a certain faulty file; and a journal, which is a file that stores journal records that are update image records when performing subsequent update processing after the faulty file is released by the faulty file release means. A journal file creation means that creates a file, and after creating a journal file by the journal file creation means, a copy file is created on another device that has not been used until now, and a copy file is created on a separate device that has not been used until now. a file copying program starting means for starting a file copying program that copies contents to a copy file from a file in which a device failure has not occurred; and an update by the update processing means that has been temporarily stopped by the update processing suspension means. update processing restart means for causing the update processing means to perform the update processing if the update request from the update processing request program has not yet been completed when the processing is restarted and paused; , a journal storage means for storing a journal record in a journal file created by the journal file creation means when the update processing by the update processing means is restarted and a file is updated; and the file copy program activation means a copy file creation means in the file copy program that creates a copy file after the file copy program is started, and a device failure that does not occur after the copy file is created by the copy file creation means. a file copying means in said file copying program that copies contents from one file to a copy file; and after all files are copied by said file copying means, said journal storage means stores the contents in a journal file. a copy file update means in the file copy program that updates a copy file with a journal record stored in the file copy program; The file copying program terminates the program, notifies the update processing suspension means that the copy file update processing has ended, and causes the update processing suspension means to temporarily suspend the file update processing of the update processing means. a copy file update end notification means, the copy file update end notification means updates the copy file with unused journal records remaining in the journal file after the update processing is temporarily suspended by the update processing suspension means. and a duplicated file exchange means for releasing the journal file by using the copy file as a substitute file for the failed file, and causing the update processing restart means to restart the file update processing by the update processing means. Duplex control method.
JP2195636A 1990-07-24 1990-07-24 Duplex operation control system for file Pending JPH0481945A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2195636A JPH0481945A (en) 1990-07-24 1990-07-24 Duplex operation control system for file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2195636A JPH0481945A (en) 1990-07-24 1990-07-24 Duplex operation control system for file

Publications (1)

Publication Number Publication Date
JPH0481945A true JPH0481945A (en) 1992-03-16

Family

ID=16344464

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2195636A Pending JPH0481945A (en) 1990-07-24 1990-07-24 Duplex operation control system for file

Country Status (1)

Country Link
JP (1) JPH0481945A (en)

Similar Documents

Publication Publication Date Title
JP4833734B2 (en) Database system, storage device, initial copy method, and log application method
US6728898B2 (en) Producing a mirrored copy using incremental-divergence
KR19990082867A (en) Method and apparatus for correct and complete transactions in a fault tolerant distributed database system
CN111327467A (en) A server system and its disaster recovery backup method and related equipment
JP3901060B2 (en) Application update processing method, update processing system, and update processing program
CN119336361A (en) A distributed storage system upgrade method, device, equipment, and medium
JPH0481945A (en) Duplex operation control system for file
JP4428887B2 (en) Database system
JP4131621B2 (en) Distributed mirrored disk system
JPH07281933A (en) Computer system
JPH03111928A (en) Substitutive system for storage device
JP2959061B2 (en) Backup file creation device
JP2666426B2 (en) Duplex auxiliary storage device
JPH08110840A (en) Restoration system for magnetic disk device of double redundancy constitution
JPH06110618A (en) Filing system
JPS59218565A (en) Operation file copying system
JPH05127891A (en) Stable working method for software revision in computer system
JP4193754B2 (en) Data duplication method and program
JP2712819B2 (en) Dynamic copy control method for duplicated files
JPH0535450A (en) Application program replacement system
JP3463696B2 (en) Online garbage collection processing method
JPS6154526A (en) File copy method
JPH04105159A (en) Work substitute system
CN121412312A (en) A database master-slave replication method, apparatus and system
JPH01255029A (en) Automatic recovery system for old file