JPH0282325A - Restoring system for event log data - Google Patents

Restoring system for event log data

Info

Publication number
JPH0282325A
JPH0282325A JP63233519A JP23351988A JPH0282325A JP H0282325 A JPH0282325 A JP H0282325A JP 63233519 A JP63233519 A JP 63233519A JP 23351988 A JP23351988 A JP 23351988A JP H0282325 A JPH0282325 A JP H0282325A
Authority
JP
Japan
Prior art keywords
event
event log
data
buffer
log data
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
JP63233519A
Other languages
Japanese (ja)
Inventor
Satoru Takeshita
竹下 悟
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP63233519A priority Critical patent/JPH0282325A/en
Publication of JPH0282325A publication Critical patent/JPH0282325A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To give a fault tolerance by providing a non-volatile memory or the like where each event data is written and restoring event control data and event log data from the non-volatile memory at the time of the occurrence of crush. CONSTITUTION:Each of events A to D is temporarily written in a buffer 2 at each time of the occurrence of the event, and events A to D are collectively outputted to an event log file 3 when the buffer 2 is filled up, and each of events E and F is written also when it occurs. Event data A to F are written in the event log file 3 simultaneously with write to the buffer 2. When crush occurs before or during the write of the event log to the event log file 2, event data A to F are restored from a non-volatile memory 4 to the buffer 2 because there is probability that even data from the buffer or the like is lost. Thus, the non-volatile memory 4 is used to give a fault tolerance to event log data to the event log file 3.

Description

【発明の詳細な説明】 〔概   要〕 計算機システムの中で発ツキする障害に対して障害光4
:直前の状態に復元するために必要なログデータを記憶
する不揮発メモリを有する事象ログデータの復元方式に
関し、 現在動作している事象制御の他に待機空間上にもう1つ
の事象制御を用意し、事象制御に必要な制御情報と事象
ログファイルへ書き込むべき事象ログデータを不揮発メ
モリに格納しておき、クラッシュ発生時には不揮発メモ
リから事象制御データ及び事象ログデータを復旧し、フ
ォールトトレラント化することを目的とし、 システムで発生した各事象データを書き込むバッファと
、該バッファから前記事象データを実更新する事象ログ
ファイルと、前記各事象データを書き込む不揮発メモリ
とを具備し、前記事象データの実更新以前または途中に
クラッシュが発生した場合に前記バッファの内容を前記
不揮発性メモリから復旧し前記事象ログファイルへの実
更新を行うように構成する。
[Detailed description of the invention] [Summary] Obstacle light 4
: Regarding the event log data restoration method that has a non-volatile memory that stores the log data necessary to restore the previous state, another event control is prepared in the standby space in addition to the currently operating event control. , the control information necessary for event control and the event log data to be written to the event log file are stored in non-volatile memory, and when a crash occurs, the event control data and event log data are recovered from the non-volatile memory to make it fault tolerant. The system is equipped with a buffer for writing each event data that occurs in the system, an event log file for actually updating the event data from the buffer, and a non-volatile memory for writing each of the event data. If a crash occurs before or during an update, the contents of the buffer are recovered from the nonvolatile memory and the event log file is actually updated.

〔産業上の利用分野〕[Industrial application field]

本発明は、計算機システムに係り、更に詳しくは計算機
システムの中で発生する障害に対して障害発生直前の状
態に復元するために必要なログデータを記憶する不揮発
メモリを有する事象ログデータの復元方式に関する。
The present invention relates to a computer system, and more particularly, the present invention relates to an event log data restoration method that has a nonvolatile memory that stores log data necessary for restoring the computer system to the state immediately before the failure occurs in response to a failure occurring in the computer system. Regarding.

計算機システムの発達に伴い、故障が発生しても停止上
することなく動作を続行する機能を備えたフォールトト
レーラントコンピュータを構築する必要性が高まってき
た。
With the development of computer systems, there has been an increasing need to construct fault-tolerant computers that have the ability to continue operating without stopping even if a failure occurs.

一般にデータの集合の内容に対して加えられた変化に関
する時系列的な記憶をログといい、特に計算機システム
の中で発生する障害に対して障害発生直前の状態に復元
するために必要な情報をログデータという。ログデータ
習得の一括処理を行うためトランザクション途中に発生
したログデータをトランザクション終了まで蓄積する。
In general, a chronological memory of changes made to the contents of a data set is called a log, and in particular, logs contain information necessary to restore the state immediately before the failure occurs in a computer system. This is called log data. To perform batch processing of log data acquisition, log data generated during a transaction is accumulated until the end of the transaction.

そのためシステムで発生した事象はオペレーティングシ
ステムとしての事象制御によって管理され、事象が発生
するとこの事象制御が発生した情報や課金等を管理する
だめの事象ログファイルへ事象データを出力している。
Therefore, events that occur in the system are managed by event control as an operating system, and when an event occurs, this event control outputs event data to an event log file that manages information on the occurrence, billing, etc.

〔従来の技術〕[Conventional technology]

第4図は従来のシステムにおける事象ログファイルへの
書き込み処理方式への概念図である。
FIG. 4 is a conceptual diagram of a writing processing method to an event log file in a conventional system.

lにおいて事象ログファイルは計算機システム内で発生
する障害に対して障害発生直前の状態に復元するために
必要なログデータ、データA、データB・・・データZ
を格納する。従来のシステムにおいてはトランザクショ
ン途中に発生したログデータをトランザクション終了ま
で蓄積するためログバッファを介して各事象Aのログデ
ータから事象Zのログデータをそれぞれ事象ログファイ
ル1に書き込んでいた。
In l, event log files are log data, data A, data B, ... data Z, necessary to restore the state immediately before the failure occurs in the computer system when a failure occurs.
Store. In the conventional system, in order to accumulate log data generated during a transaction until the end of the transaction, log data for each event A to Z is written to the event log file 1 via a log buffer.

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

従ってこの種の従来方式では事象ログファイル1への書
き込み処理中に事象制御自身やクラスタがCPUの故障
、あるいはソフトウェアで実行を禁1トされていること
をしてしまったこと等によってクラッシュ動作があった
場合に処理は途中で中断されてしまう。従って、クラッ
シュした時点での事象データの内容は事象ログファイル
に格納されない場合があるため、その内容は補償されな
いばかりか、事象ログデータが消去されてしまったり、
あるいは事象ログ自身が破壊される危険性もあるという
問題点が汁じていた。
Therefore, in this type of conventional method, the event control itself or the cluster may crash during the writing process to the event log file 1 due to a CPU failure or doing something that is prohibited by software. If there is, the process will be interrupted midway. Therefore, the contents of the event data at the time of the crash may not be stored in the event log file, so not only will the contents not be compensated for, but the event log data may be erased.
Alternatively, there was a real problem that there was a risk that the event log itself could be destroyed.

本発明は現在動作している事象制御の他に待機空間上に
もう1つの事象制御を用意し、事象制御に必要な制御情
報と事象ログファイルへ書き込むべき事象ログデータを
不揮発メモリに格納しておき、クラッシュ全件時には不
揮発メモリから事象制御データ及び事象ログデータを復
旧し、フォールトレーラント化することを目的とする。
In addition to the currently operating event control, another event control is prepared in the standby space, and control information necessary for the event control and event log data to be written to the event log file are stored in a nonvolatile memory. The purpose of this system is to restore event control data and event log data from non-volatile memory in the event of a crash, making it fault tolerant.

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

第1図は本発明の原理構成図であり、本発明のフォール
トレーラント化による事象ログファイルの内容を示す。
FIG. 1 is a diagram illustrating the principle of the present invention and shows the contents of an event log file created by the fault tolerant system of the present invention.

バッファ2は各事象A−Dが発生するごとに、各事象を
一時書き込み、フルになった時に一括して事象A−Dを
事象ログファイル3に出力する。
The buffer 2 temporarily writes the events A to D each time they occur, and outputs the events A to D all at once to the event log file 3 when it becomes full.

次の事象E−Fが生じた時にはまた書き込む。Write again when the next event E-F occurs.

事象ログファイル3は各事象データA−Fをバッファ2
への書き込みと同時に書き込む。事象ログファイル3へ
の事象ログの書き込み以前または途中にクラッシュした
ときは、前記バッファ等から事象データが消滅してしま
うことがあるので事象データA−Fを前記不揮発メモリ
4から前記バッファ2へと復旧する。
Event log file 3 stores each event data A-F in buffer 2.
Write at the same time as writing to. If a crash occurs before or during the writing of the event log to the event log file 3, the event data may disappear from the buffer, etc., so event data A to F are transferred from the non-volatile memory 4 to the buffer 2. Recover.

〔作   用〕[For production]

本発明では事象制御によって動作する空間の他に待機空
間を用意し、事象制御自身がクラッシュした場合に、制
御を待機空間に切換えることにより連続可動を可能とす
るもので特に事象ログファイル3への実更新が行われる
までの間に生成される事象ログデータは不揮発メモリ4
に格納しておき、事象ログファイル3への実更新が行わ
れた時点でその不揮発メモリ4の内容を消去するように
し、クラッシュが発生し、復元された場合には不揮発メ
モリ4から事象データを復旧し、そのデータを事象ログ
データ3へ再度書き込むようにしている。
In the present invention, a standby space is prepared in addition to the space operated by event control, and when the event control itself crashes, continuous movement is possible by switching control to the standby space. Event log data generated until the actual update is performed is stored in non-volatile memory 4.
The content of the non-volatile memory 4 is erased when the event log file 3 is actually updated.If a crash occurs and the data is restored, the event data is stored in the non-volatile memory 4. The system recovers the data and writes the data to the event log data 3 again.

〔実  施  例〕〔Example〕

次に本発明の実施例を図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.

第2図は本発明の事象ログデータの復元処理方式の概念
図である。同図において、11はシステムで発生ずる事
象に関する制御を行うオペレーティングシステムからな
る事象制御手段であり、12は事象制御手段11自身が
クラッシュした場合に事象の制御を行う待機空間上に設
けられ第1の事象制御手段11と同様のオペレーティン
グシステムからなる第2の事象制御手段、13はログデ
ータの出力処理を高速化するためのバッファ、14は計
算機システム内で発/4=する障害に関するログデータ
を格納する事象ログファイル、15は事象ログファイル
14への実更新が行われるまでの間、システムで発生し
た事象に関する事象ログデータを一時格納する不揮発メ
モリ、16は待機空間上にある事象制御手段12によっ
て制御されるバッファである。
FIG. 2 is a conceptual diagram of the event log data restoration processing method of the present invention. In the same figure, reference numeral 11 denotes an event control means consisting of an operating system that controls events occurring in the system, and reference numeral 12 denotes a first event control means provided in a standby space that controls events when the event control means 11 itself crashes. a second event control means consisting of an operating system similar to the event control means 11; 13 a buffer for speeding up log data output processing; 14 a buffer for storing log data related to failures occurring within the computer system; 15 is a non-volatile memory that temporarily stores event log data related to events occurring in the system until the event log file 14 is actually updated; 16 is an event control means 12 in the standby space; is a buffer controlled by

本発明では第1の事象制御手段11によってシステムで
発生した事象は管理され、動作するが、この動作する仮
想空間の他に或いはその空間の一部を共存して存在する
他の待機空間を用意し、第1の事象制御手段11自身が
クラッシュした場合に制御を待機空間上にある第2の事
象制御手段12に切り換えることによってシステムに故
障が発生しても停十することなく動作を続行する機能を
備えている。その機能を実行するために事象発生時にお
いては常に事象ログデータをバッファ13へ書き込みと
同時に事象ログデータを不揮発メモリ15、即ちフォー
ルト トレラント メモリ(FTM)に格納しておく、
バッファ13を介して事象ログファイル14へ事象デー
タを実更新した場合には不揮発メモリ15の中の同じ事
象ログデータは、不揮発メモリ15から消去するように
している。例えば電源が切れて第1の事象制御手段11
自身がクラッシュした場合や、事象ログファイル14へ
の書き込み処理中に事象制御手段11自身やクラスタが
クラッシュした場合でも、その時点でのログデータは不
揮発メモリ15に格納されているため、クラッシュ復元
時には制御が第2の事象制御手段2に切り換わるととも
に不揮発メモリから事象データをバッファ16に復旧し
、そのデータを事象ログファイル14へ再度書き込むよ
うにする。
In the present invention, events occurring in the system are managed and operated by the first event control means 11, but in addition to the virtual space in which this operation takes place, another standby space is prepared that coexists with a part of the virtual space. However, when the first event control means 11 itself crashes, control is switched to the second event control means 12 located in the standby space, so that even if a failure occurs in the system, the operation continues without stopping. It has functions. In order to perform this function, whenever an event occurs, event log data is written to the buffer 13 and at the same time, the event log data is stored in the non-volatile memory 15, that is, a fault-tolerant memory (FTM).
When event data is actually updated to the event log file 14 via the buffer 13, the same event log data in the nonvolatile memory 15 is erased from the nonvolatile memory 15. For example, when the power is cut off, the first event control means 11
Even if the event control means 11 itself or the cluster crashes while writing to the event log file 14, the log data at that point is stored in the non-volatile memory 15, so when the crash is restored, the log data is stored in the non-volatile memory 15. Control is switched to the second event control means 2, and event data is restored from the nonvolatile memory to the buffer 16, and the data is written to the event log file 14 again.

第1の事象制御手段11には事象ログデータへの書き込
みのスケジュールの手続き処理が含まれ、ログデータの
書き込み処理はクラッシュがない場合には例えば事象デ
ータ1.2.3の順にまずバッファリングされ、バッフ
ァ13が一杯になるまで事象ログファイルに書き込まれ
ない。このログ書き込み処理は、書き込みマクロ命令1
7で行われる。すなわち、事象が全件すると事象ログフ
ァイル14への出力が依願されるが直接事象ログファイ
ル14ヘデータを書き込むのではなく、110回数を減
らすために一日ハッファリングを行う。
The first event control means 11 includes a procedural process for scheduling writing to event log data, and when there is no crash, the log data writing process is first buffered in the order of event data 1, 2, and 3, for example. , will not be written to the event log file until buffer 13 is full. This log write process is performed using write macro command 1.
It will be held at 7. That is, when all events occur, a request is made to output them to the event log file 14, but rather than writing the data directly to the event log file 14, one day huffering is performed to reduce the number of times.

このバッファリングとはデータの出力処理をしヒ較的処
理の速いバッファ13に書き込むためのものでバッファ
リングしている場合にはバッファ13に書き込むだけで
復帰をし、事象ログファイル14への書き込みは行われ
ない。バッファ13への書き込みによってバッファ13
が一杯になった時点で事象ログファイル14に一度に書
き込むようにすることで処理の高速化を実現している。
This buffering is for processing the output of data and writing it to the buffer 13, which has a relatively fast processing time.If it is buffered, it returns by just writing to the buffer 13, and writes it to the event log file 14. will not be performed. Buffer 13 by writing to buffer 13
By writing to the event log file 14 at once when it becomes full, processing speed is increased.

不揮発メモリ15は、たとえ電源が切れてもメモリの内
容は消去されずに残り、復旧時に書き込んだ内容は破壊
されずに出力することが可能なものである。
The nonvolatile memory 15 is such that even if the power is turned off, the contents of the memory remain without being erased, and the written contents can be outputted without being destroyed upon recovery.

第1の事象制御手段11においては書き込みマクロ命令
17によりバッファリングを行うが、バッファリングが
終了し、バッファ13が一杯になった時点でバッファの
事象データ1がら事象データ■すなわちバッファ13の
すべての内容は事象ログファイル14に書き込まれる。
In the first event control means 11, buffering is performed by the write macro instruction 17, but when the buffering is finished and the buffer 13 is full, the event data 1 in the buffer is changed to the event data ■, that is, all of the buffer 13 is The contents are written to the event log file 14.

この書き込みが終わった段階で事象ログファイル14へ
の実更新となる。第1の事象制御手段11ではこの実更
新があったかどうかを判定(18)L、実更新で事象ロ
グファイル14に書き込まれた事象ログデータは不揮発
メモリ15から消去する(19)。
When this writing is completed, the event log file 14 is actually updated. The first event control means 11 determines whether or not this actual update has occurred (18)L, and the event log data written to the event log file 14 in the actual update is erased from the nonvolatile memory 15 (19).

もし実更新がない、すなわち現在バッファリング動作中
であれば、不揮発メモリ15への書き込んだ内容は消去
されずそのまま残る。
If there is no actual update, that is, if a buffering operation is currently in progress, the contents written to the nonvolatile memory 15 will not be erased and will remain as they are.

このような第1の事象制御手段11の空間上でクラッシ
ュした場合、そのクラッシュした時点での事象データの
内容を補償する必要がある。特に事象ログファイル14
への書き込み処理中に事象制御手段11自身やクラスタ
がクラッシュした場合、従来はクラッシュした時点での
事象ログデータの内容はどこにも保存されず、補償され
ない場合がある。しかし本発明では不揮発メモリ15に
常に平常時にバッファリングするとともに不揮発メモリ
15にも事象ログファイル14の書き込み事象ログデー
タを書き込んでおくために事象ログデータが削除される
という危険性はまったくなく、クラッシュから復旧され
た時点で不揮発メモリ15から事象ログデータを復旧し
、そのログデータを事象制御手段12の制御のちとに事
象ログファイル14にバッファ16を介して再度書き込
むようにしている。なお、クラッシュした時に復旧する
事象データはバッファに書き込まれた内容と同じデータ
であり、事象データ1から事象データ■までの内容であ
り、従って事象ログファイル14上では事象ログファイ
ル14へ書き込み処理中にクラッシュした場合でもすで
に事象ログファイル14上に書き込まれている事象デー
タに対しては2重の書き込み処理となる場合がある。し
かし、これによって、事象ログデータが消去したり、事
象ログファイルが破壊される危険性は全くない。
If a crash occurs in the space of the first event control means 11, it is necessary to compensate for the contents of the event data at the time of the crash. Especially event log file 14
If the event control means 11 itself or the cluster crashes during the writing process, conventionally, the contents of the event log data at the time of the crash are not saved anywhere and may not be compensated for. However, in the present invention, since the event log data is always buffered in the non-volatile memory 15 during normal times and the event log data written in the event log file 14 is also written in the non-volatile memory 15, there is no risk that the event log data will be deleted and a crash will occur. The event log data is recovered from the nonvolatile memory 15 at the time when the event log data is recovered from the nonvolatile memory 15, and the log data is written again to the event log file 14 via the buffer 16 under the control of the event control means 12. Note that the event data to be recovered when a crash occurs is the same data as the content written to the buffer, and is the content from event data 1 to event data ■.Therefore, on the event log file 14, the event data that is being written to the event log file 14 is being processed. Even in the event of a crash, event data that has already been written to the event log file 14 may be subject to double writing processing. However, this poses no risk of erasing event log data or corrupting event log files.

また第2図では事象制御の制御下にあるバッファ (1
3,16)は不揮発メモリ15と分離した形で存在して
いるが、不揮発メモリ15がかなり高速である場合には
高速化するバッファとクラッシュした場合に事象ログデ
ータを補償する不揮発メモリと同じものとしてもよい。
Also, in Figure 2, the buffer (1
3, 16) exists in a form separate from the non-volatile memory 15, but if the non-volatile memory 15 is quite fast, it is the same as the buffer that speeds up and the non-volatile memory that compensates for event log data in the event of a crash. You can also use it as

また、待機空間上の事象制御手段12は事象制御手段1
1の制御内容と共通するものであり、事象制御手段11
がクラッシュされた場合でも事象制御手段11と同じ動
作を行うために必要な制御を含むものでその制御を行う
ための制御データは同様に不揮発メモリ15に格納され
、クラッシュから復旧された場合には不揮発メモリ15
を介して待機空間上の事象制御手段12に制御が移るこ
とによってクラッシュ時のログ書き込み処理が実行され
ることになる。
Further, the event control means 12 in the waiting space is the event control means 1
This is common to the control content of 1, and the event control means 11
Even if the event control means 11 crashes, the control data necessary to perform the same operation as the event control means 11 is stored in the non-volatile memory 15. Non-volatile memory 15
By transferring control to the event control means 12 in the standby space via the event control means 12, log writing processing at the time of a crash is executed.

第3図は本発明の事象ログデータの復元方式の処理フロ
ー図である。他の制御手段から事象ログデータの書き込
み処理に対する通知が出されると事象制御手段11はS
TIにおいて事象ログデータの出力命令を実行する。こ
の出力命令が解読されると事象ログデータをバッファ1
3に書き込み(Sr2)、さらに不揮発化メモリ15へ
も同し事象ログデータを格納する(Sr2)。そしてバ
ッファリングしたことを他の制御に通知するための連動
復帰を行う。Sr1において、書き込まれた事象データ
に対してバッファがフルの状態になったかどうかを検出
し、もしフル状態であれば、バッファの内容を事象ログ
ファイル14に実更新する(Sr1)。バッファがフル
でなければ、バッファの内容のみそのままにし、事象ロ
グファイルへの実更新はバッファがフルになるまでバッ
ファから事象ログファイルへの書き込みは行わない。
FIG. 3 is a processing flow diagram of the event log data restoration method of the present invention. When a notification for event log data writing processing is issued from another control means, the event control means 11
Execute an event log data output command in the TI. When this output command is decoded, event log data is stored in buffer 1.
3 (Sr2), and the same event log data is also stored in the nonvolatile memory 15 (Sr2). Then, a linked return is performed to notify other controls that buffering has occurred. At Sr1, it is detected whether the buffer is full with respect to the written event data, and if it is full, the contents of the buffer are actually updated to the event log file 14 (Sr1). If the buffer is not full, only the contents of the buffer are left as is, and actual updates to the event log file are not written from the buffer to the event log file until the buffer is full.

このような事象ログデータの書き込み処理(ST1〜5
T4)を第1の事象制御手段11によって行う。
Writing processing of such event log data (ST1-5
T4) is performed by the first event control means 11.

このような通常の状態においてシステム上に故障すなわ
ち、クラッシュが発生した場合、特に事象ログファイル
14への書き込み処理中に事象制御手段11自身かクラ
スタがクラッシュした場合に、本発明では連続可動を可
能にするため制御を待機空間上の第2の事象制御手段1
2に移すことになる。バッファリング中に不揮発メモリ
5にも同じ事象ログデータが格納されているので、クラ
ッシュが発生した場合には不揮発メモリ15がら事象デ
ータを復旧する(Sr5)。そして第2の事象制御手段
12のバッファ16を介して復旧したログデータを事象
ログファイル14に実更新する。実更新した後はSr6
においてバッファの内容と不揮発化メモリの内容をクリ
アし、通常の処理状態に復旧することなる。このクラッ
シュ発生時からクラッシュ復旧時までの制御(Sr5.
3T6)は待機空間上にある第2の事象制御手段12に
よっておこなわれる。
In such a normal state, if a failure or crash occurs on the system, especially if the event control means 11 itself or the cluster crashes during the writing process to the event log file 14, the present invention enables continuous operation. The second event control means 1 on the standby space controls the
I will move to 2. Since the same event log data is also stored in the nonvolatile memory 5 during buffering, if a crash occurs, the event data is recovered from the nonvolatile memory 15 (Sr5). Then, the recovered log data is actually updated to the event log file 14 via the buffer 16 of the second event control means 12. Sr6 after actual update
At this point, the contents of the buffer and the contents of non-volatile memory are cleared and the normal processing state is restored. Control from the time of crash occurrence to the time of crash recovery (Sr5.
3T6) is performed by the second event control means 12 located on the standby space.

このように本発明では事象ログファイルへの実更新が完
了する前にクラッシュが発生し、バッファが破壊した場
合でも事象制御は待機空間上の事象制御手段12に切換
って制御されるので事象の発生はもらすことなく処理が
可能となる。
In this way, in the present invention, even if a crash occurs and the buffer is destroyed before the actual update to the event log file is completed, event control is switched to the event control means 12 in the standby space, so that the event can be controlled. It is possible to treat the occurrence without losing it.

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

本発明では不揮発メモリを用いて事象ログファイルへの
事象ログデータに対するフォールトレラント化を実施す
ることができ、事象ログファイルの各事象ログデータの
内容を保障することができるとともにファイルの破壊を
防I卜することが可能となる。従って、故障が発生して
も停止上することなく動作を続行する計算機システムを
提供できる。
In the present invention, it is possible to make event log data in an event log file fault tolerant using nonvolatile memory, and it is possible to guarantee the contents of each event log data in the event log file and to prevent file destruction. It becomes possible to view the image. Therefore, it is possible to provide a computer system that continues to operate without stopping even if a failure occurs.

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

第1図は本発明の原理機能図、 第2図は本発明の事象ログデータの復元処理方式の概念
図、 第3図は本発明の事象ログデータの復元方式の処理フロ
ー図、 第4図は従来のシステムにおける事象ログファイルへの
書き込み処理方式への概念図である。 2・・・バッファ、 3・・・事象ログファイル、 4・・・不揮発性メモリ。 特許出願人   富士通株式会社 本発用 の厘理境龍図 第 図 専攻2発生・・・・・ログ圧力 象ログラアイルへの書3休り又す里方式への第 図
Fig. 1 is a functional diagram of the principle of the present invention. Fig. 2 is a conceptual diagram of the event log data restoration processing method of the invention. Fig. 3 is a processing flow diagram of the event log data restoration method of the invention. Fig. 4 1 is a conceptual diagram of a writing processing method to an event log file in a conventional system. 2...Buffer, 3...Event log file, 4...Non-volatile memory. Patent Applicant: Fujitsu Ltd. Rinri Kyouryuzu Diagram Major 2 Occurrence...Log Pressure Elephant Log Aisle 3 Resume Matasato Method Diagram

Claims (1)

【特許請求の範囲】 1)システムで発生した各事象データを書き込むバッフ
ァ(2)と、 該バッファ(2)から前記事象データを実更新する事象
ログファイル(3)と、 前記各事象データを書き込む不揮発メモリ(4)とを具
備し、 前記事象データの実更新以前または途中にクラッシュが
発生した場合に前記バッファ(2)の内容を前記不揮発
メモリ(4)から復旧し前記事象ログファイル(3)へ
の実更新を行うことを特徴とする事象ログデータの復元
方式。 2)システム内部で発生した事象を制御し、さらに管理
する第1の事象制御手段(11)と、前記第1の事象制
御手段が動作する仮想空間と共有または異なる他の仮想
空間上に置かれる待機空間上に、前記第1の事象制御手
段(11)自身がクラッシュした場合にその後の制御を
実行する第2の事象制御手段(12)と、 計算機システムの中で発生する障害に対して障害発生直
前の状態に復元するために必要なログデータを格納する
事象ログファイル手段(14)と、前記第1の事象制御
手段(11)によって管理される事象がシステム内で発
生した場合に、その発生した事象ログデータを前記事象
ログファイル手段(14)へ格納する前に、事象ログデ
ータを格納する不揮発メモリ手段(15)とを具備し、
障害の復元時において前記第2の事象制御手段(12)
の制御によって前記不揮発メモリ手段(15)から少な
くとも事象ログデータを読みだし、再度前記事象ログフ
ァイル手段(14)に事象ログデータを書き込み、状態
復元を行うことを特徴とする事象ログデータの復元方式
。 3)前記不揮発メモリ手段(15)は、前記事象ログフ
ァィルへの事象ログデータの書き込み動作を高速化する
バッファ手段(13、16)とは分離して存在し、シス
テムで発生した事象データは前記バッファ手段(13)
を介して前記事象ログファイルへ書き込むと同時に前記
不揮発メモリ(15)にも格納し、クラッシュからの復
元時には前記不揮発メモリ(15)から事象データを前
記バッファ手段(16)を介して事象ログファイル手段
(14)へ再書き込みすることを特徴とする請求項2記
載の事象ログデータの復元方式。4)前記不揮発メモリ
手段(15)とバッファ手段(13、16)を兼用した
ことを特徴とする請求項3記載の事象ログデータの復元
方式。 5)前記不揮発メモリ手段(15)から事象データを復
旧した後は前記不揮発メモリ手段(15)の内容をクリ
アすることを特徴とする請求項2記載の事象ログデータ
の復元方式。
[Claims] 1) A buffer (2) for writing each event data generated in the system; an event log file (3) for actually updating the event data from the buffer (2); and a non-volatile memory (4) for writing, and if a crash occurs before or during the actual update of the event data, the contents of the buffer (2) are recovered from the non-volatile memory (4) and the event log file is restored. (3) A method for restoring event log data characterized by performing an actual update. 2) A first event control means (11) that controls and further manages events occurring within the system, and is placed on another virtual space that is shared with or different from the virtual space in which the first event control means operates. A second event control means (12) is provided on the standby space to perform subsequent control when the first event control means (11) itself crashes, and a second event control means (12) that performs subsequent control when the first event control means (11) itself crashes; Event log file means (14) for storing log data necessary for restoring to the state immediately before the occurrence, and an event that is managed by the first event control means (11) when an event occurs in the system. and nonvolatile memory means (15) for storing event log data before storing the event log data that has occurred in the event log file means (14),
the second event control means (12) when restoring from a failure;
Restoration of event log data characterized by reading out at least event log data from the non-volatile memory means (15) under control of the controller, writing the event log data again into the event log file means (14), and restoring the state. method. 3) The non-volatile memory means (15) exists separately from the buffer means (13, 16) for speeding up the writing operation of event log data to the event log file, and the event data generated in the system is The buffer means (13)
At the same time, the event data is written to the event log file via the buffer means (16) and also stored in the non-volatile memory (15), and upon recovery from a crash, the event data is transferred from the non-volatile memory (15) to the event log file via the buffer means (16). 3. The method for restoring event log data according to claim 2, wherein the event log data is rewritten to the means (14). 4) The event log data restoration method according to claim 3, characterized in that said nonvolatile memory means (15) and buffer means (13, 16) are also used. 5) The event log data restoration method according to claim 2, wherein the contents of the nonvolatile memory means (15) are cleared after restoring the event data from the nonvolatile memory means (15).
JP63233519A 1988-09-20 1988-09-20 Restoring system for event log data Pending JPH0282325A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63233519A JPH0282325A (en) 1988-09-20 1988-09-20 Restoring system for event log data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63233519A JPH0282325A (en) 1988-09-20 1988-09-20 Restoring system for event log data

Publications (1)

Publication Number Publication Date
JPH0282325A true JPH0282325A (en) 1990-03-22

Family

ID=16956304

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63233519A Pending JPH0282325A (en) 1988-09-20 1988-09-20 Restoring system for event log data

Country Status (1)

Country Link
JP (1) JPH0282325A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04112238A (en) * 1990-08-31 1992-04-14 Fujitsu Ltd Event log output system
JPH04133158A (en) * 1990-09-26 1992-05-07 Hitachi Ltd Online journal acquisition method
US5418938A (en) * 1991-12-27 1995-05-23 Fujitsu Limited Data management system having CPUs to each other via dual-port memory
CN110989919A (en) * 2018-10-03 2020-04-10 爱思开海力士有限公司 Logging mechanism for memory systems

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04112238A (en) * 1990-08-31 1992-04-14 Fujitsu Ltd Event log output system
JPH04133158A (en) * 1990-09-26 1992-05-07 Hitachi Ltd Online journal acquisition method
US5418938A (en) * 1991-12-27 1995-05-23 Fujitsu Limited Data management system having CPUs to each other via dual-port memory
CN110989919A (en) * 2018-10-03 2020-04-10 爱思开海力士有限公司 Logging mechanism for memory systems
CN110989919B (en) * 2018-10-03 2023-06-27 爱思开海力士有限公司 Log recording mechanism for memory systems

Similar Documents

Publication Publication Date Title
US6877109B2 (en) Method for the acceleration and simplification of file system logging techniques using storage device snapshots
JP2559995B2 (en) Database backup method, restoration method, and data storage system
EP0827079B1 (en) Checkpoint computer system
US7840768B2 (en) Memory-controller-embedded apparatus and procedure for achieving system-directed checkpointing without operating-system kernel support
KR100238925B1 (en) A recoverable disk control system with a non-volatile memory
JP4248510B2 (en) Computer system, disk device, and data update control method
JP2003223287A (en) Storage device, backup method and program for the storage device
JP2001296974A (en) System and method for storing data
JP3136258B2 (en) Disk update log recording method
JPS5913783B2 (en) Duplicate file method
JPH0282325A (en) Restoring system for event log data
JP4565860B2 (en) Data backup system
JP2004070456A (en) Data backup method, data backup device, and information processing unit
JPH07281933A (en) Computer system
CN107797885B (en) Electronic equipment and control method thereof
JPH05189314A (en) Disk cache control system
JPH03265951A (en) Trouble recovery type computer
JP3463696B2 (en) Online garbage collection processing method
USRE45632E1 (en) Memory-controller-embedded apparatus and procedure for achieving system-directed checkpointing without operating-system kernel support
JPH07319637A (en) Disk unit controller and disk unit control method
JPH0259837A (en) Data recovery processing system
JPH04209044A (en) Data base control system
JP2656499B2 (en) Computer system
JP2526726B2 (en) Multiplexed file recovery method
JPS61131043A (en) Inter-task queue controlling system