JPH02257229A - File recovery system for computer system - Google Patents

File recovery system for computer system

Info

Publication number
JPH02257229A
JPH02257229A JP1079812A JP7981289A JPH02257229A JP H02257229 A JPH02257229 A JP H02257229A JP 1079812 A JP1079812 A JP 1079812A JP 7981289 A JP7981289 A JP 7981289A JP H02257229 A JPH02257229 A JP H02257229A
Authority
JP
Japan
Prior art keywords
page
file
write
user
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
JP1079812A
Other languages
Japanese (ja)
Inventor
Takenobu Nakatsuka
中塚 武信
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 JP1079812A priority Critical patent/JPH02257229A/en
Publication of JPH02257229A publication Critical patent/JPH02257229A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten the processing time of the file recovery by executing the backward read of a journal file, and also, managing the presence of page updating with one bit unit, while reading a backup file in order from a first record, and restoring the file with a single write as for the same page. CONSTITUTION:At the time of restoring a user file 10 to the latest state by the generation of a fault of a disk device, etc., a page input part 14 executes the backward read of a journal file 30 extending from the latest record of time to the oldest record. Subsequently, at the time of reaching the end point of the journal file 30, the read of a page image is executed from a backup file 20, as well, a write page flag for showing by one bit unit whether a page managing part 42 executes the write of an object page or not is set to a page management file 43, and also, informs whether a write experience exists or not. In the case of a page having no write experience, a page output part 44 writes it to the user file 10, and in the case of a page having a write experience, this write is inhibited. In such a manner, the processing time of the file recovery can be shortened.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は計算機システムに利用する。本発明はファイル
リカバリ方式に関し、特にジャーナルファイルを逆読み
しながらユーザファイルを復旧するファイルリカバリ方
式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention is applied to a computer system. The present invention relates to a file recovery method, and more particularly to a file recovery method for restoring user files while reading journal files backwards.

〔概要〕〔overview〕

本発明はディスク装置障害に備えてユーザファイルを更
新する計算機システムのファイルリカバリ方式にふいて
、 ジャーナルファイルを時刻の最新のレコードから最古の
レコードへと逆読みし、さらにバックアップファイルを
最初のレコードから順に読み込みながらページ更新の有
無を1ビット単位で管理して同一ページに対しては1回
の書き出しでファイルを復旧することにより、 ジャーナルファイルを始点に戻す時間が節約されて、フ
ァイルリカバリの処理時間を短縮できるようにしたもの
である。
The present invention is based on the file recovery method of computer systems that updates user files in case of a disk device failure, reads the journal file backwards from the latest time record to the oldest record, and then reads the backup file from the first record. By reading sequentially from page to page, managing whether or not a page has been updated in 1-bit units, and recovering the file by writing once to the same page, the time required to return the journal file to the starting point is saved and the file recovery process is It is designed to save time.

〔従来の技術〕[Conventional technology]

従来、この種のファイルリカバリ方式はまずバックアッ
プファイルからユーザファイルにコピーし、ジャーナル
ファイルの時刻の最古のレコードから最新のレコードへ
と順にページイメージを何度も重ね書きをして復旧する
か、または時系列に同一ページをソートしてユーザファ
イルへの書き出し回数を削減する方式がとられていた。
Conventionally, this type of file recovery method first copies a backup file to a user file, then overwrites the page image many times from the oldest record to the latest record in the journal file to recover. Alternatively, a method has been adopted in which the same pages are sorted in chronological order to reduce the number of times they are written to the user file.

〔発明が解決しようとする問題点〕 上述した従来のファイルリカバリ方式は復旧すべきユー
ザファイルの同一ページに対して何度も書き出しを行っ
たり、ソートする時間が必要であるために、リカバリ処
理に時間がかかる欠点があった。
[Problems to be solved by the invention] The conventional file recovery method described above requires time to write and sort the same page of the user file many times, which makes the recovery process difficult. It had the disadvantage of being time consuming.

本発明はこのような欠点を除去するもので、ファイルリ
カバリの処理時間を短縮できる方式を提供することを目
的とする。
The present invention aims to eliminate such drawbacks and provides a method that can shorten file recovery processing time.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、ディスク装置障害を備えてユーザファイルを
定期的にバックアップファイルにコピーし、前記ユーザ
ファイルのあるページを更新するときにこの更新後イメ
ージをジャーナルファイルに蓄積しながら前記ユーザフ
ァイルを更新するリカバリプログラム手段を備えた計算
機システムのファイルリカバリ方式において、書き出し
ページフラグを保持するページ管理ファイルを設け、前
記リカバリプログラム手段に、ディスク装置障害の発生
により前記ユーザファイルを最新状態に復旧するときに
前記ジャーナルファイルを時刻の最新のレコードから最
古のレコードへと逆読みし、前記ジャーナルファイルの
終了点に達したときに前記バックアップファイルからペ
ージイメージの読み込みを行うページ入力部と、対象ペ
ージの書き出しを行ったかどうかを1ピット単位で示す
書き出しページフラグを前記ページ管理ファイルにセッ
トするとともに書き出し経験の有無を通知するページ管
理部と、書き出し経験のないページであれば前記ユーザ
ファイルに書き出し、書き出し経験のあるページであれ
ば書き出しを禁止するページ出力部とを備えたことを特
徴とする。
The present invention periodically copies a user file to a backup file in case of a disk device failure, and updates the user file while accumulating this updated image in a journal file when updating a certain page of the user file. In a file recovery method for a computer system equipped with a recovery program means, a page management file for holding a write page flag is provided, and the recovery program means is provided with the above-mentioned information when restoring the user file to the latest state due to the occurrence of a disk device failure. A page input unit that reads a journal file backwards from the latest record to the oldest record, and reads a page image from the backup file when the end point of the journal file is reached, and a page input unit that reads the page image from the backup file, and writes out the target page. The page management section sets a write page flag indicating whether or not the page has been written in 1-pit units in the page management file and notifies whether or not the page has been written, and if the page has not been written before, it is written to the user file and the The present invention is characterized by comprising a page output section that prohibits writing if it is a certain page.

〔作用〕[Effect]

ディスク装置障害などの発生によりユーザファイルを最
新状態に復旧するとき、ページ入力部がジャーナルファ
イルを時刻の最新のレコードから最古のレコードへと逆
読みし、ジャーナルファイルの終了点に達したときにバ
ックアップファイルからもページイメージの読み込みを
行い、ページ管理部が対象ページの書き出しを行ったか
どうかを1ビット単位で示す書き出しページフラグをペ
ージ管理ファイルにセットするとともに書き出し経験の
有無を通知し、ページ出力部が書き出し経験のないペー
ジであればこれをユーザファイルに書き出し、書き出し
経験のあるページであればこの書き出しを禁止する。
When restoring a user file to the latest state due to a disk device failure, etc., the page input section reads the journal file backwards from the latest record to the oldest record, and when the end point of the journal file is reached. The page image is also read from the backup file, and the page management section sets an export page flag that indicates in 1-bit units whether or not the page has been exported to the page management file, and notifies whether or not there has been any export experience, and outputs the page. If the page has never been written before, it will be written to the user file, and if the page has been written before, this writing will be prohibited.

これにより、ジャーナルファイルを最古点に戻す時間お
よびソーティング処理に要する時間が無駄にならず、フ
ァイルリカバリの処理時間を短縮することができる。特
に磁気テープによる記録装置がジャーナルファイルとし
て利用される場合に有効である。
As a result, the time required to return the journal file to the oldest point and the time required for the sorting process is not wasted, and the processing time for file recovery can be shortened. This is particularly effective when a magnetic tape recording device is used as a journal file.

〔実施例〕〔Example〕

次に、本発明実施例を図面に基づいて説明する。 Next, embodiments of the present invention will be described based on the drawings.

第1図は本発明実施例の構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

本発明実施例は、ディスク装置障害を備えてユーザファ
イル10を定期的にバックアップファイル20にコピー
し、ユーザファイル10のあるページを更新するときに
この更新後イメージをジャーナルファイル30に蓄積し
ながらユーザファイル10を更新するリカバリプログラ
ム手段40を備え、さらに、書き出しページフラグを保
持するページ管理ファイル43を設け、リカバリプログ
ラム手段40に、ディスク装置障害の発生によりユーザ
ファイル10を最新状態に復旧するときにジャーナルフ
ァイル30を時刻の最新のレコードから最古のレコード
へと逆読みし、ジャーナルファイル30の終了点に達し
たときにバックアップファイル20からもページイメー
ジの読み込みを行うページ入力部41と、対象ページの
書き出しを行ったかどうかを1ピット単位で示す書き出
しページフラグをページ管理ファイル43にセットする
とともに書き出し経験の有無を通知するページ管理部4
2と、書き出し経験のないページであればユーザファイ
ル10に書き出し、書き出し経験のあるページであれば
書き出しを禁止するページ出力部44とを備える。
In the embodiment of the present invention, the user file 10 is periodically copied to the backup file 20 in case of a disk device failure, and when a certain page of the user file 10 is updated, this updated image is stored in the journal file 30 while the user The recovery program means 40 is provided with a recovery program means 40 for updating the file 10, and is further provided with a page management file 43 for holding a write page flag. A page input unit 41 that reads the journal file 30 backwards from the latest record to the oldest record, and also reads page images from the backup file 20 when the end point of the journal file 30 is reached, and the target page. The page management unit 4 sets a write page flag in the page management file 43 that indicates whether or not writing has been performed in 1-pit units, and also notifies whether or not there is writing experience.
2, and a page output unit 44 that writes to the user file 10 if the page has not been written before, and prohibits writing of the page if the page has been written.

第2図は本発明実施例のバックアップファイル20中の
レコード形式を示す図であり、ファイル名とページイメ
ージがページ番号順に配列される。
FIG. 2 is a diagram showing the record format in the backup file 20 according to the embodiment of the present invention, in which file names and page images are arranged in order of page numbers.

第3図は本発明実施例のジャーナルファイル30中のレ
コード形式を示す図であり、ルーコードがファイル名と
ページ番号と更新後ページイメージとにより構成される
FIG. 3 is a diagram showing the record format in the journal file 30 according to the embodiment of the present invention, in which a rule code is composed of a file name, a page number, and an updated page image.

リカバリプログラム40中のページ人力部41はジャー
ナルファイル30の最後に位置付けルーコードを逆読み
する。例えば、ユーザファイル100ページ番号100
であったとすると、ページ出力部44はユーザファイル
10のレコードか否かを検査してページ管理部42を呼
び出す。ページ管理部42は、ページ管理ファイル43
中の100ビツト目(書き出しページフラグ)がオン状
態であるか否かを検査して、オフ状態であることを知る
と、ページ管理部42はページ管理ファイル43中の1
00ビツト目をオン状態としたあと、ページ出力部44
に対してページ書き出しの必要があることを通知する。
The page manual section 41 in the recovery program 40 positions the end of the journal file 30 and reads the code backwards. For example, user file 100 page number 100
If so, the page output section 44 checks whether it is a record of the user file 10 and calls the page management section 42 . The page management section 42 has a page management file 43.
When checking whether the 100th bit (write page flag) in the page management file 43 is in the on state and finding that it is in the off state, the page management unit 42 writes the 1st bit in the page management file 43.
After turning on the 00th bit, the page output section 44
Notify that the page needs to be exported.

ページ出力部44はこのページイメージをユーザファイ
ルlOに書き出しページ入力部41に制御を渡す。
The page output unit 44 writes this page image to the user file IO and passes control to the page input unit 41.

このような操作を他のレコードについても同様に行うう
ち、再びユーザファイル100ページ番号100をペー
ジ入力部41が逆読みしたとすると、ページ出力部44
はページ管理部42を呼び出し、ページ管理部42はペ
ージ管理ファイル43を検査して100ビツト目がすで
にオン状態であることを知る。そこでページ管理部42
はページ出力部44に対してページ書き出しの必要がな
いことを通知する。ページ出力部44はなにもせずにペ
ージ入力部41に制御を渡す。
While performing similar operations for other records, if the page input unit 41 reads page number 100 of the user file 100 again, the page output unit 44
calls the page management section 42, and the page management section 42 inspects the page management file 43 and finds that the 100th bit is already in the on state. Therefore, the page management department 42
notifies the page output unit 44 that there is no need to write the page. The page output unit 44 passes control to the page input unit 41 without doing anything.

以上の操作を繰返し行ってジャーナルファイル30中の
レコードがなくなればページ入力部41はバックアップ
ファイル20の最初のレコードから順に読み込んでペー
ジ出力部44に渡すレコード形式をジャーナルファイル
30から読み込んだ形式と同一にするためにファイル名
とページ番号を上記レコードに付加してページ出力部4
4に渡す。これ以後の動作はジャーナルファイル30か
ら読み込んだレコードを処理するときと同様にして行わ
れる。
If the above operations are repeated and there are no more records in the journal file 30, the page input unit 41 reads the backup file 20 from the first record in order and passes it to the page output unit 44 in the same record format as the format read from the journal file 30. Add the file name and page number to the above record and output it to the page output section 4.
Pass it to 4. The subsequent operations are performed in the same manner as when processing records read from the journal file 30.

以上の操作をバックアップファイル20の終了点まで繰
返し実行することにより、同一ページに対しては1回の
書き出し操作でユーザファイル10を復旧することがで
きる。
By repeatedly performing the above operations until the end point of the backup file 20, the user file 10 can be restored with one write operation for the same page.

次に第4図の概略フローを用いて動作概要を説明する。Next, an outline of the operation will be explained using the schematic flow shown in FIG.

ページ入力部41はジャーナルファイル30の逆読み(
ステップ200)を行ってジャーナルファイル30の終
了判定(ステップ210)を行う。ジャーナルファイル
30が未終了状態であればページ出力部44はページ管
理部42を呼び出す。ページ管理部42はページ管理フ
ァイル43を検査して書き出しページフラグのオン・オ
フ状態をページ出力部44に通知するとともに書き出し
ページフラグのセット(ステップ220)を行う。
The page input section 41 reads the journal file 30 backwards (
Step 200) is performed to determine the end of the journal file 30 (step 210). If the journal file 30 is in an unfinished state, the page output unit 44 calls the page management unit 42. The page management unit 42 inspects the page management file 43, notifies the page output unit 44 of the on/off state of the write page flag, and sets the write page flag (step 220).

ページ出力部44は書き出しページフラグの判定(ステ
ップ230)を行って、オン状態であればジャーナルフ
ァイル30の逆読み(ステップ200)を行う。
The page output unit 44 determines the write page flag (step 230), and if it is on, performs reverse reading of the journal file 30 (step 200).

オフ状態であればページイメージの書き出しくステップ
240)を行った後ジャーナルファイル30の逆読み(
ステップ200)を行う。
If it is off, write the page image (step 240) and then reverse read the journal file 30 (step 240).
Step 200) is performed.

ジャーナルファイル30の終了判定(ステップ210)
でジャーナルファイル30が終了状態であれば、ページ
入力部41はバックアップファイル20の読み込み(ス
テップ250)を行ってバックアップファイル20の終
了判定(ステップ260)を行う。バックアップファイ
ル20が未終了状態であればページ出力部44はページ
管理部42を呼び出す。ページ管理部42はページ管理
ファイル43を検査して書き出しページフラグのオン・
オフ状態をページ出力部44に通知するとともに書き出
しページフラグのセット(ステップ270)を行う。
Determination of end of journal file 30 (step 210)
If the journal file 30 is in the completed state, the page input unit 41 reads the backup file 20 (step 250) and determines whether the backup file 20 is completed (step 260). If the backup file 20 is in an unfinished state, the page output unit 44 calls the page management unit 42. The page management unit 42 inspects the page management file 43 and turns on/off the export page flag.
The page output unit 44 is notified of the off state and a write page flag is set (step 270).

ページ出力部44は書き出しページフラグの判定(ステ
ップ280)を行って、オン状態であればバックアップ
ファイル20の読み込み(ステップ250)を行う。オ
フ状態であればページイメージの書き出しくステップ2
90)を行った後バックアップファイル20の読み込み
(ステップ250)を行う。
The page output unit 44 determines the write page flag (step 280), and if it is on, reads the backup file 20 (step 250). If it is off, export the page image Step 2
After performing step 90), the backup file 20 is read (step 250).

バックアップファイル20の終了判定(ステップ260
)でバックアップファイル20が終了状態であればファ
イルリカバリ処理は終了する。
Determination of end of backup file 20 (step 260
), if the backup file 20 is in the completed state, the file recovery process ends.

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

以上説明したように本発明によれば、ジャーナルファイ
ルを時刻の最新のレコードから最古のレコードへと逆読
みし、さらにバックアップファイルを最初のレコードか
ら順に読み込みながらページ更新の有無を1ビット単位
で管理して同一ページに対しては1回の書き出しでファ
イルを復旧することにより、ファイルリカバリの処理時
間を短縮できる効果がある。
As explained above, according to the present invention, the journal file is read backwards from the latest record to the oldest record, and the backup file is read in order from the first record to check whether or not a page has been updated in 1-bit units. By managing and restoring a file by writing it once to the same page, it is possible to shorten the processing time for file recovery.

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

第1図は本発明実施例の構成を示すブロック図。 第2図は本発明実施例のバックアップファイルのレコー
ド形式を示す図。 第3図は本発明実施例のジャーナルファイルのレコード
形式を示す図。 第4図は本発明実施例の動作概要を示すフローチャート
。 10・・・五−ザファイル、20・・・バックアップフ
ァイル、30・・・ジャーナルファイル、40・・・リ
カバリプロダラム手段、41・・・ページ入力部、42
・・・ページ管理部、43・・・ページ管理ファイル、
44・・・ページ出力部。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. FIG. 2 is a diagram showing the record format of a backup file according to an embodiment of the present invention. FIG. 3 is a diagram showing the record format of the journal file according to the embodiment of the present invention. FIG. 4 is a flowchart showing an outline of the operation of the embodiment of the present invention. DESCRIPTION OF SYMBOLS 10...Five-the file, 20...Backup file, 30...Journal file, 40...Recovery program means, 41...Page input section, 42
...Page management department, 43...Page management file,
44...Page output section.

Claims (1)

【特許請求の範囲】 1、ディスク装置障害を備えてユーザファイルを定期的
にバックアップファイルにコピーし、前記ユーザファイ
ルのあるページを更新するときにこの更新後イメージを
ジャーナルファイルに蓄積しながら前記ユーザファイル
を更新するリカバリプログラム手段を備えた計算機シス
テムのファイルリカバリ方式において、 書き出しページフラグを保持するページ管理ファイルを
設け、 前記リカバリプログラム手段に、 ディスク装置障害の発生により前記ユーザファイルを最
新状態に復旧するときに前記ジャーナルファイルを時刻
の最新のレコードから最古のレコードへと逆読みし、前
記ジャーナルファイルの終了点に達したときに前記バッ
クアップファイルからページイメージの読み込みを行う
ページ入力部と、 対象ページの書き出しを行ったかどうかを1ビット単位
で示す書き出しページフラグを前記ページ管理ファイル
にセットするとともに書き出し経験の有無を通知するペ
ージ管理部と、 書き出し経験のないページであれば前記ユーザファイル
に書き出し、書き出し経験のあるページであれば書き出
しを禁止するページ出力部とを備えたことを特徴とする
計算機システムのファイルリカバリ方式。
[Scope of Claims] 1. In case of a disk device failure, a user file is periodically copied to a backup file, and when a certain page of the user file is updated, this updated image is stored in a journal file while the user In a file recovery method for a computer system equipped with a recovery program means for updating files, a page management file is provided for holding a write page flag, and the recovery program means is configured to restore the user file to the latest state due to the occurrence of a disk device failure. a page input unit that reads the journal file backwards from the latest time record to the oldest record when the journal file is read, and reads a page image from the backup file when the end point of the journal file is reached; A page management unit that sets an exported page flag indicating whether or not a page has been exported in 1-bit units in the page management file and notifies whether or not there is any experience of exporting, and if the page has no experience of exporting, it is exported to the user file. A file recovery method for a computer system, comprising: a page output unit that prohibits writing if the page has been previously written.
JP1079812A 1989-03-29 1989-03-29 File recovery system for computer system Pending JPH02257229A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1079812A JPH02257229A (en) 1989-03-29 1989-03-29 File recovery system for computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1079812A JPH02257229A (en) 1989-03-29 1989-03-29 File recovery system for computer system

Publications (1)

Publication Number Publication Date
JPH02257229A true JPH02257229A (en) 1990-10-18

Family

ID=13700620

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1079812A Pending JPH02257229A (en) 1989-03-29 1989-03-29 File recovery system for computer system

Country Status (1)

Country Link
JP (1) JPH02257229A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5522037A (en) * 1993-09-20 1996-05-28 Fujitsu Limited Backup control apparatus and method of data processing system
JPH08161211A (en) * 1994-12-09 1996-06-21 Nec Corp Method and device for restoring file by logging

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5522037A (en) * 1993-09-20 1996-05-28 Fujitsu Limited Backup control apparatus and method of data processing system
JPH08161211A (en) * 1994-12-09 1996-06-21 Nec Corp Method and device for restoring file by logging

Similar Documents

Publication Publication Date Title
JP4453323B2 (en) Replication data management method, apparatus, and program
US5638508A (en) Method and a system for processing a log record
US7739464B1 (en) Consistent backups of data using a roll-back log
JPH02257229A (en) File recovery system for computer system
JPH0430218A (en) Difference installing system
JPS62224843A (en) Database medium content maintaining system
JPH07152627A (en) File recovery system
JPS62245348A (en) Method and device for updating data base
KR101969799B1 (en) Electronic device and controlling method thereof
JPH0381843A (en) File saving/restoring processor
JPH04184641A (en) Data base restoring system
JPS63187347A (en) Data base file recovering system
JPH0259837A (en) Data recovery processing system
JPH0438537A (en) Backup/restoring system for data on dasd
JPH05225026A (en) Fault recovery system
JP2738245B2 (en) File recovery system
JPS63195755A (en) Contents assuring system for information on main memory device
JPH0756791A (en) Method for backing up and recovering file in distributed system
JPH0241052B2 (en)
JP2643918B2 (en) File recovery system
JP3189804B2 (en) Data backup method and device
JP2906787B2 (en) File compression method and file recovery method
JPH039449A (en) Electronic disk subsystem
JPS61199135A (en) File restoration system
JP2001337857A (en) Database restoration system