JPH03113545A - Computer system - Google Patents

Computer system

Info

Publication number
JPH03113545A
JPH03113545A JP1251263A JP25126389A JPH03113545A JP H03113545 A JPH03113545 A JP H03113545A JP 1251263 A JP1251263 A JP 1251263A JP 25126389 A JP25126389 A JP 25126389A JP H03113545 A JPH03113545 A JP H03113545A
Authority
JP
Japan
Prior art keywords
record
file
timer
journal
update
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.)
Granted
Application number
JP1251263A
Other languages
Japanese (ja)
Other versions
JP2861111B2 (en
Inventor
Yasuyuki Sasamoto
康行 笹本
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 JP1251263A priority Critical patent/JP2861111B2/en
Publication of JPH03113545A publication Critical patent/JPH03113545A/en
Application granted granted Critical
Publication of JP2861111B2 publication Critical patent/JP2861111B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To shorten the file restoring time by forcibly outputting the record that is not updated even after a fixed time to a journal as an update history when a file is restored due to a fault. CONSTITUTION:When the file record of an external storage 3 is registered, a record start means 11 outputs an update history to a journal and at the same time a timer 16 is set to the record for the forcible recording purpose. If no update is performed even after a fixed time, a forcible recording means 12 outputs forcibly the update history to the journal and sets again the timer 16. When the update is performed within a fixed time, a normal recording means 13 outputs instantaneously the update history to the journal and sets again the timer 16. Then a record ending means 14 cancels the set timer 16 at deletion of the record. A file restoring means 15 restores a file based on the data obtained at a fixed time before the occurrence of a fault. As a result, the file restoring time is 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 recovery processing for various files in a computer system.

〔概要〕〔overview〕

本発明は入出力装置、中央処理装置、おらび外部記憶装
置を備えた計算機システムにおいて、障害によるファイ
ル復旧処理を行うときに、定時間経過しても更新されな
いレコードがあるときには強制的に更新履歴としてジャ
ーナルへ出力することにより、 ファイルをセーブするときに運転を停止させずに、障害
発生より一定時間前のデータを含むファイルを復旧し、
さらに、その復旧に要する時間を短縮できるようにした
ものである。
The present invention is a computer system equipped with an input/output device, a central processing unit, and an external storage device, and when performing file recovery processing due to a failure, if there is a record that has not been updated even after a certain period of time, the update history is forcibly updated. By outputting to the journal as
Furthermore, the time required for recovery can be shortened.

〔従来の技術〕[Conventional technology]

従来、この種のファイル復旧処理は定期的に運転を停止
してファイルを磁気テープなどの記録媒体にセーブし、
運転中に更新があったレコードの更新履歴をジャーナル
に出力し、障害によるファイルの復旧を行う際に記録媒
体からファイルをロードしてジャーナル上のレコードの
更新履歴を基にファイル停止直前の状態に復旧していた
Traditionally, this type of file recovery process involves periodically stopping the operation and saving the file on a recording medium such as magnetic tape.
The update history of records updated during operation is output to a journal, and when recovering a file due to a failure, the file is loaded from the recording medium and returned to the state immediately before the file was stopped based on the update history of records on the journal. It was recovering.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の復旧処理では、ファイルをセーブする際
に運転を停止する必要があり、また復旧する場合に直前
にファイルをセーブした時点まで遡りジャーナルと照ら
し合わせながら復旧しなければならないためにファイル
復旧に時間を要する欠点があった。
In the conventional recovery process described above, it is necessary to stop the operation when saving a file, and when restoring, it is necessary to go back to the point where the file was saved immediately before and compare it with the journal. The drawback was that it took time.

本発明はこのような欠点を除去するもので、障害時にお
ける復旧時間の短縮を行うことができるシステムを提供
することを目的とする。
The present invention aims to eliminate such drawbacks and to provide a system that can shorten recovery time in the event of a failure.

〔問題点を解決するだめの手段〕[Failure to solve the problem]

本発明は、入出力装置、中央処理装置、および外部記憶
装置を備え、前記中央処理装置に、ファイル復旧手段を
備えた計算機システムにおいて、前記中央処理装置に、
前記外部記憶装置のファイル上のレコードが登録された
ときにジャーナルへ更新履歴を出力するとともにそのレ
コードに強制記録用としてタイマをセットする記録開始
手段と、一定時間経過後に更新がなかった場合には強制
的にジャーナルへ更新履歴の出力を行い再度タイマをセ
ットし直す強制記録手段と、一定時間内に更新があった
場合にはその時点でジャーナルへ更新履歴の出力を行い
再度タイマをセットし直す通常記録手段と、そのレコー
ドを削除するときにタイマをキャンセルする記録終了手
段とを備え、前記ファイル復旧手段は、障害が発生した
時点より一定時間前のデータを含むファイルを復旧する
手段を備えたことを特徴とする。
The present invention provides a computer system comprising an input/output device, a central processing unit, and an external storage device, and in which the central processing unit is equipped with a file recovery means, in which the central processing unit includes:
recording start means for outputting an update history to a journal when a record on a file in the external storage device is registered and setting a timer for forced recording of the record; A forced recording means that forcibly outputs the update history to the journal and resets the timer again, and if there is an update within a certain period of time, outputs the update history to the journal at that point and resets the timer again. The file recovery means includes a normal recording means and a recording termination means for canceling a timer when deleting the record, and the file recovery means includes a means for recovering a file containing data from a certain period of time before the failure occurred. It is characterized by

〔作用〕[Effect]

ファイル上のレコードが登録された時点でジャーナルへ
更新履歴を出力するとともに、そのレコードに強制記録
用としてタイマをセットし、一定時間経過後に更新がな
かった場合には強制的にジャーナルへ更新履歴の出力を
行い再度タイマをセットし直し、また一定時間内に更新
があった場合にはその時点でジャーナルへ更新履歴の出
力を行い再度タイマをセットし直す。レコードを削除す
る場合はタイマをキャンセルする。
When a record on a file is registered, the update history is output to the journal, and a timer is set for forced recording of that record. If there is no update after a certain period of time, the update history is forcibly output to the journal. The output is performed and the timer is reset again, and if there is an update within a certain period of time, the update history is output to the journal at that point and the timer is reset again. If you want to delete the record, cancel the timer.

これにより、障害が発生した時点から一定時間前までの
データを含むデータでファイルを復旧することができ、
ファイル復旧に要する時間を短縮することができる。
This allows you to recover files with data that includes data up to a certain period of time after the failure occurred.
The time required for file recovery can be shortened.

〔実施例〕〔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.

本発明実施例は、入出力装置2、中央処理装置1、およ
び外部記憶装置3を備え、中央処理装置1に、ファイル
復旧手段15と、外部記憶装置3のファイル上のレコー
ドが登録されたときにジャーナルへ更新履歴を出力する
とともにそのレコードに強制記録用としてタイマ16を
セットする記録開始手段11と、一定時間経過後に更新
がなかった場合には強制的にジャーナルへ更新履歴の出
力を行い再度タイマ16をセットし直す強制記録手段1
2と、一定時間内に更新があった場合にはその時点でジ
ャーナルへ更新履歴の出力を行い再度タイマ16をセッ
トし直す通常記録手段13と、そのレコードを削除する
ときにタイマ16をキャンセルする記録終了手段14と
を備え、ファイル復旧手段15は、障害が発生した時点
より一定時間前のデータを含むファイルを復旧する手段
を備える。
The embodiment of the present invention includes an input/output device 2, a central processing unit 1, and an external storage device 3, and when a file recovery means 15 and a record on a file in the external storage device 3 are registered in the central processing device 1. a recording start means 11 that outputs the update history to a journal and sets a timer 16 for forced recording of the record; and if there is no update after a certain period of time, the update history is forcibly output to the journal and restarted. Forced recording means 1 for resetting the timer 16
2, a normal recording means 13 which outputs the update history to the journal and resets the timer 16 when there is an update within a certain period of time; and a normal recording means 13 which cancels the timer 16 when deleting the record. The file recovery means 15 includes means for restoring a file containing data from a certain period of time before the failure occurred.

次に、このように構成された本発明実施例の動作につい
て説明する。
Next, the operation of the embodiment of the present invention configured as described above will be explained.

外部記憶装置3のファイル上のレコードが登録されたと
きに、記録開始手段11はジャーナルへ更新履歴を出力
し、同時にそのレコードに強制記録用としてタイマ16
をセットする。一定時間経過した後に更新が行われない
と、強制記録手段12は強制的にジャーナルへ更新履歴
の出力を行い、再度タイマ16をセットする。
When a record on the file of the external storage device 3 is registered, the recording start means 11 outputs the update history to the journal, and at the same time, the timer 16 is set for forced recording on the record.
Set. If no update is performed after a certain period of time has elapsed, the forced recording means 12 forcibly outputs the update history to the journal and sets the timer 16 again.

また、一定時間内に更新が行われたときには、通常記録
手段13はその時点でジャーナルへ更新履歴の出力を行
い、再度タイマ16をセットし直す。
Further, when an update is performed within a certain period of time, the normal recording means 13 outputs the update history to the journal at that time and resets the timer 16 again.

記録終了手段14はレコードを削除するときにタイマ1
6のセットをキャンセルし、ファイル復旧手段15はフ
ァイル復旧時に障害が発生した時点以前の一定時間にお
けるデータによりファイルを復旧させる。
The recording end means 14 uses timer 1 when deleting a record.
6 is canceled, and the file recovery means 15 recovers the file using data for a certain period of time before the time when a failure occurred during file recovery.

第2図はジャーナルへ更新履歴の出力を行う手順と強制
記録用タイマをセットするタイミングを示す図である。
FIG. 2 is a diagram showing the procedure for outputting the update history to the journal and the timing for setting the forced recording timer.

ここで復旧するファイル上のレコードをレコードAルコ
ードBルコードCルコードDとし、また強制記録用とし
てタイマ16にセットする一定時間を30分と仮定して
ジャーナルへ更新履歴の出力を行う手順およびタイマセ
ットのタイミングについて説明する。
Here, the record on the file to be restored is Record A, Code B, Code C, Code D, and the procedure and timer settings for outputting the update history to the journal, assuming that the fixed time set in the timer 16 for forced recording is 30 minutes. The timing will be explained.

10時00分にレコードAルコードBルコードCの更新
があり、その時点でジャーナルへ更新履歴の出力を行い
、また30分の強制記録用のタイマをセットする。
Record A code B code C is updated at 10:00, and at that time the update history is output to the journal and a 30-minute forced recording timer is set.

10時10分にレコードAルコードBの更新があり、そ
の時点でジャーナルへ更新履歴の出力を行い、いままで
セットしていたタイマ16をキャンセルして再度30分
の強制記録用としてタイマ16をセットする通常記録の
処理を行う。またレコードDが登録されその時点でジャ
ーナルへ更新履歴の出力を行い、また30分の強制記録
としてタイマ16をセットする記録開始の処理を行う。
Record A code B is updated at 10:10, and at that point the update history is output to the journal, the previously set timer 16 is canceled, and timer 16 is set again for 30 minutes of forced recording. Perform normal recording processing. Also, at that point when record D is registered, the update history is output to the journal, and recording start processing is performed to set the timer 16 for forced recording of 30 minutes.

10時28分にレコードBの削除がありその時点でジャ
ーナルへ更新履歴の出力を行い、いままでセットしてい
たタイマ16をキャンセルし以降タイマ16をセットし
ない記録終了の処理を行う。
At 10:28, record B is deleted, and at that point the update history is output to the journal, the timer 16 that has been set is canceled, and recording termination processing is performed in which the timer 16 is not set thereafter.

10時30分にレコードCの強制記録用としてセットし
たタイマ16と同時刻になりその時点でジャーナルへ更
新履歴の出力を行い、再度30分の強制記録用としてタ
イマ16をセットする強制記録の処理を行う。
Forced recording processing that outputs the update history to the journal at 10:30 at the same time as the timer 16 set for forced recording of record C, and then sets the timer 16 again for 30 minutes of forced recording. I do.

以上説明した処理のように、どのレコードに対しても一
定時間の強制記録用としてタイマ16をセットするため
、第3図に示すように10時35分に障害が発生したと
仮定すると、障害発生時刻10時05分から10時35
分までの間のデ・−りで復旧することができる。
As in the process explained above, since the timer 16 is set for forced recording for a certain period of time for every record, assuming that a failure occurs at 10:35 as shown in Figure 3, the failure occurs. Time 10:05 to 10:35
Recovery can be accomplished with a delay of up to 1 minute.

次に、すべてのファイルを復旧する手順について説明す
る。10時05分から復旧をはじめると、レコードAは
10時10分に更新しているためファイルの復旧ができ
、レコードBは10時IO分に更新し復旧しているが1
0時28分には削除されているためにファイルの削除を
行うことができる。レコードCは10時30分にタイム
アウトになり強制記録しているためファイルの復旧がで
き、レコードDは10時10分に登録しているためファ
イルの復旧を行うことができる。
Next, we will explain the procedure for recovering all files. When you start recovery from 10:05, the file can be recovered because record A was updated at 10:10, and record B was updated at 10:00 IO and recovered, but 1
Since the file has been deleted at 0:28, the file can be deleted. Since record C timed out at 10:30 and was forced to record, the file can be restored, and record D was registered at 10:10, so the file can be restored.

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

以上説明したように本発明によれば、ファイルをセーブ
するときの運転停止の必要がなくなり、一定時間のデー
タのみでファイルを復旧することができ、ファイルの復
旧時間を短縮することができる効果がある。
As explained above, according to the present invention, there is no need to stop operation when saving a file, the file can be restored using only a certain amount of data, and the file restoration time can be shortened. be.

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

第1図は本発明実施例の構成を示すブロック図。 第2図は本発明実施例におけるジャーナルへ更新履歴の
出力を行う手順と強制記録用としてタイマをセットする
タイミングを示す図。 第3図は本発明実施例におけるファイルの復旧を実行す
る手順を示す図。 1・・・中央処理装置、2・・・入出力装置、3・・・
外部記憶装置、11・・・記録開始手段、12・・・強
制記録手段、13・・・通常記録手段、14・・・記録
終了手段、15・・・ファイル復旧手段、16・・・タ
イマ。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. FIG. 2 is a diagram showing the procedure for outputting the update history to the journal and the timing for setting the timer for forced recording in the embodiment of the present invention. FIG. 3 is a diagram showing a procedure for executing file recovery in an embodiment of the present invention. 1... Central processing unit, 2... Input/output device, 3...
External storage device, 11... Recording start means, 12... Forced recording means, 13... Normal recording means, 14... Recording end means, 15... File recovery means, 16... Timer.

Claims (1)

【特許請求の範囲】 1、入出力装置、中央処理装置、および外部記憶装置を
備え、前記中央処理装置に、ファイル復旧手段を備えた
計算機システムにおいて、 前記中央処理装置に、 前記外部記憶装置のファイル上のレコードが登録された
ときにジャーナルへ更新履歴を出力するとともにそのレ
コードに強制記録用としてタイマをセットする記録開始
手段と、 一定時間経過後に更新がなかった場合には強制的にジャ
ーナルへ更新履歴の出力を行い再度タイマをセットし直
す強制記録手段と、 一定時間内に更新があった場合にはその時点でジャーナ
ルへ更新履歴の出力を行い再度タイマをセットし直す通
常記録手段と、 そのレコードを削除するときにタイマをキャンセルする
記録終了手段とを備え、 前記ファイル復旧手段は、障害が発生した時点より一定
時間前のデータを含むファイルを復旧する手段 を備えたことを特徴とする計算機システム。
[Scope of Claims] 1. A computer system comprising an input/output device, a central processing unit, and an external storage device, and wherein the central processing unit is provided with a file recovery means, wherein the central processing unit includes: the external storage device; A recording start means that outputs the update history to the journal when a record on a file is registered and sets a timer for forced recording of that record, and if there is no update after a certain period of time, it is forced to the journal. A forced recording means that outputs the update history and resets the timer again, and a normal recording means that outputs the update history to a journal and resets the timer again if there is an update within a certain period of time. and recording termination means for canceling a timer when deleting the record, and the file recovery means includes means for recovering a file containing data from a certain period of time before the failure occurred. computer system.
JP1251263A 1989-09-27 1989-09-27 Computer system Expired - Lifetime JP2861111B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1251263A JP2861111B2 (en) 1989-09-27 1989-09-27 Computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1251263A JP2861111B2 (en) 1989-09-27 1989-09-27 Computer system

Publications (2)

Publication Number Publication Date
JPH03113545A true JPH03113545A (en) 1991-05-14
JP2861111B2 JP2861111B2 (en) 1999-02-24

Family

ID=17220180

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1251263A Expired - Lifetime JP2861111B2 (en) 1989-09-27 1989-09-27 Computer system

Country Status (1)

Country Link
JP (1) JP2861111B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6091934A (en) * 1997-09-02 2000-07-18 Hughes Electronics Corporation Dynamic power allocation system and method for multi-beam satellite amplifiers
JP2002024068A (en) * 2000-07-06 2002-01-25 Nec Corp Journal merge control system and journal merge control method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6091934A (en) * 1997-09-02 2000-07-18 Hughes Electronics Corporation Dynamic power allocation system and method for multi-beam satellite amplifiers
JP2002024068A (en) * 2000-07-06 2002-01-25 Nec Corp Journal merge control system and journal merge control method

Also Published As

Publication number Publication date
JP2861111B2 (en) 1999-02-24

Similar Documents

Publication Publication Date Title
JPH03113545A (en) Computer system
JPH04253235A (en) Backup system for filing system
JPH08212142A (en) Data backup system for data base
JPH0594356A (en) On-memory table data fault restoration system
JPH1040123A (en) System and method for job management
JPS6389944A (en) Managing system for file updating history
JPH0535567A (en) System for file recovery in fault occurrence
JP2001229033A (en) Device for re-executing job net in file failure
JP3338724B2 (en) Database save method
JPH02307139A (en) Restoring system for disk file
JPS6250938A (en) Recovering system for main memory resident data base
JP2677282B2 (en) File management system
JPS59133620A (en) Automatic operating system for power restoration
JPH0398138A (en) File protection control system
JPH10289140A (en) Restoration system for batch processing fault
JPH04113428A (en) Data restoring system
JPH06242976A (en) System fault recovery processing system
JPH05210557A (en) Restoration system for file
JPH04256006A (en) File restoring system
JPS63168736A (en) Magnetic tape storage medium state takeover system for system with plural host computers
JP2005242747A (en) Data backup system
JPS63249229A (en) Restoration processing method for data set
JPH0314122A (en) Backup system for working data file against fault of magnetic disk device
JPS62232049A (en) File control table restoring system
JPH047756A (en) History collection system

Legal Events

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

Free format text: PAYMENT UNTIL: 20071211

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20081211

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20091211

Year of fee payment: 11

EXPY Cancellation because of completion of term