[go: up one dir, main page]

JPH01239650A - Journal acquiring system - Google Patents

Journal acquiring system

Info

Publication number
JPH01239650A
JPH01239650A JP63066365A JP6636588A JPH01239650A JP H01239650 A JPH01239650 A JP H01239650A JP 63066365 A JP63066365 A JP 63066365A JP 6636588 A JP6636588 A JP 6636588A JP H01239650 A JPH01239650 A JP H01239650A
Authority
JP
Japan
Prior art keywords
buffer
journal
records
external storage
storage device
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
JP63066365A
Other languages
Japanese (ja)
Other versions
JP2675050B2 (en
Inventor
Hisamitsu Matsuzawa
松沢 尚光
Mitsuo Nakahara
中原 光男
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63066365A priority Critical patent/JP2675050B2/en
Publication of JPH01239650A publication Critical patent/JPH01239650A/en
Application granted granted Critical
Publication of JP2675050B2 publication Critical patent/JP2675050B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To improve the performance of an on-line system by outputting the content of a journal buffer to a spare external memory device when a fault is generated. CONSTITUTION:Records (1-10) as history information are buffered in the journal buffer 31, and a CPU issues the output request of the records (1-5), and the records (1-5) are buffered in the buffer 51 of a magnetic tape device, however, figure shows a case where the records (1-3) are outputted to the tape 52 actually. In such a case, a pointer PB indicates the record 5, and a pointer PR indicates the record 3. The CPU issues the output request of the records to the record 5 in the journal buffer 31, and since the records (1-3) are already outputted to the tape 52, the storage areas of the records (1-3) in the buffer 31 can be used again, and since no output request of the records (6-10) is issued, the CPU issues the output request to the tape device successively. In such a way, it is possible to improve the performance of the on-line system.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はオンラインシステムのジャーナル取得方式に係
り、ジャーナルファイルとしてバッファリング機能を持
つ磁気テープ装置等の外部記憶装置を使用する場合、該
外部記憶装置に障害が発生したときに予備の外部記憶装
置に継続してレコードを出力するのに好適なジャーナル
取得方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a journal acquisition method for an online system, and when an external storage device such as a magnetic tape device with a buffering function is used as a journal file, the external storage The present invention relates to a journal acquisition method suitable for continuously outputting records to a spare external storage device when a failure occurs in a device.

〔従来の技術〕[Conventional technology]

オンラインシステムでは、ジャーナルファイルとして磁
気テープ装置等の外部記憶装置を備え、オンライン処理
の履歴情報をジャーナルとして外部記憶装置に取得し、
システムダウン時、該外部記憶装置の内容にもとづいて
システムをダウン直前の状態に回復することを図ってい
る。従来、この種のジャーナル取得を窩速に行う方法と
しては、中央処理装置(CPU)にジャーナルバッファ
を用意し、該ジャーナルバッファに履歴情報をバッファ
リングし、バッファ満杯時など、その内容を外部記憶装
置に出力する方式がある。なお、これに関連する公知文
献としては、例えば特開昭58−223856号公報が
挙げられる。
An online system is equipped with an external storage device such as a magnetic tape device as a journal file, and acquires history information of online processing as a journal in the external storage device.
When the system goes down, the system is intended to be restored to the state immediately before the system went down based on the contents of the external storage device. Conventionally, the method for speedily acquiring this type of journal is to prepare a journal buffer in the central processing unit (CPU), buffer history information in the journal buffer, and store the contents in external storage when the buffer is full. There is a method for outputting to a device. In addition, as a publicly known document related to this, for example, Japanese Patent Application Laid-Open No. 58-223856 can be mentioned.

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

ジャーナル取得を更に高速化する方法として、バッファ
リング機能を持つ磁気テープ装置等の外部記憶装置を使
用し、CPUのジャーナルバッファと外部記憶装置のバ
ッファとの間でレコードをバッファ・ツー・バッファで
高速転送し、磁気テープ等の記録媒体へはバッファから
随時出力する方式が考えられる。しかしながら、ジャー
ナルファイルとして使用している外部記憶装置が故障し
、CPUが予備の同じくバッファリング機能を持つ外部
記憶装置を使用してジャーナル出力を継続する場合、C
PUは故障した外部記憶装置がバッファの内容を記録媒
体へどこまで書出しているが分らず、予備の外部記憶装
置へはジャーナルバッファの先頭のレコードから出力し
直す必要があり、オンラインシステムの運用及び性能上
問題がある。
One way to further speed up journal acquisition is to use an external storage device with a buffering function, such as a magnetic tape device, to transfer records buffer-to-buffer between the CPU's journal buffer and the external storage device's buffer. A possible method is to transfer the data and output it from a buffer to a recording medium such as a magnetic tape at any time. However, if the external storage device used as a journal file fails and the CPU continues journal output using a spare external storage device that also has a buffering function, the
The PU does not know how far the contents of the buffer have been written to the storage medium by the failed external storage device, and it is necessary to re-output the records to the spare external storage device starting from the first record of the journal buffer, which may affect the operation and performance of the online system. There is a problem above.

本発明の目的は、ジャーナルファイルとして使用してい
るバッファリング機能を持つ外部記憶装置が故障した場
合、CI) Uはジャーナルバッファの先頭のレコード
から出力し直すことなく、予備のバッファリング機能を
持つ外部記憶装置へ継続して出力することができるジャ
ーナル取得方式を提供することにある。
The purpose of the present invention is to provide a backup buffering function to the external storage device used as a journal file, without re-outputting records from the beginning of the journal buffer. The object of the present invention is to provide a journal acquisition method that allows continuous output to an external storage device.

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

上記目的は、中央処理装置おいて、外部記憶装置へ出力
したジャーナルバッファのレコード番号を示す第1ポイ
ンタと、外部記憶装置がその記録媒体へ書出したレコー
ド番号を示す第2ポインタとを管理し、ジャーナルファ
イルとして使用中のバッファリング機能を持つ外部記憶
装置に障害が発生した時、中央処理装置は、前記ポイン
タにもとづき、ジャーナルバッファの内容を予備の外部
記憶装置へ出力することより達成される。
The above purpose is to manage, in the central processing unit, a first pointer indicating the record number of the journal buffer output to the external storage device and a second pointer indicating the record number written by the external storage device to the recording medium. , when a failure occurs in an external storage device with a buffering function that is being used as a journal file, the central processing unit outputs the contents of the journal buffer to a spare external storage device based on the pointer. .

〔作 用〕[For production]

中央処理装置は、処理の履歴を示すレコードをジャーナ
ルバッファにバッファリングし、出力要求を出して該ジ
ャーナルバッファの内容を外部記憶装置へ出力する。そ
して、第1ポインタを更新する。外部記憶装置は、中央
処理装置からの出方レコードを一旦バッファリングした
後、逐次、記録媒体へ書出し、そのレコード番号を中央
処理装置へ連絡する。これを受けて中央処理装置は第2
ポインタを更新する。
The central processing unit buffers records indicating processing history in a journal buffer, issues an output request, and outputs the contents of the journal buffer to an external storage device. Then, the first pointer is updated. The external storage device once buffers the output records from the central processing unit, sequentially writes them to a recording medium, and notifies the central processing unit of the record number. In response to this, the central processing unit
Update pointer.

上記使用中の外部記憶装置の障害を検知すると、中央処
理装置は、第2ポインタが示すレコード番号以後のレコ
ードをジャーナルバッファから予備の外部記憶装置へ出
力する。即ち、使用中の外部記憶装置が故障した場合、
中央処理装置はジャーナルバッファの先頭レコードから
出方し直す必要がない。
When detecting a failure in the external storage device in use, the central processing unit outputs records after the record number indicated by the second pointer from the journal buffer to the spare external storage device. In other words, if the external storage device in use breaks down,
The central processing unit does not have to start over from the first record of the journal buffer.

〔実施例〕〔Example〕

以下、本発明の一実施例について図面により詳細に説明
する。
Hereinafter, one embodiment of the present invention will be described in detail with reference to the drawings.

第1図は本発明を適用したオンラインシステムの一実施
例の概略構成を示す。端末1oがら六カされたメツセー
ジは通信制御装置2oを経由して中央処理装置(CPU
)30へ渡される。CI) U30は受信メツセージに
より業務処理をするユーザアプリケーションプログラム
(UAP)34を決定し起動する。UAP34は業務処
理を実行し、データベース40の更新をCPU30へ要
求すると、CPU30はデータベース4oを更新し、同
時にその更新履歴情報をジャーナルバッファ31にバッ
ファリングする。一方、磁気テープ装置50はバッファ
リング機能を持っており、CPU30が出力要求を出す
ことにより、ジャーナルバッファ31の内容は磁気テー
プ装置5oのバッファへ、バッファ・ツー・バッファ形
式で高速に転送される。磁気テープ装置5oは、CPU
30の処理とは独立に、自バッファの内容を磁気テープ
へ出力する。なお、50′は予備の磁気テープ装置であ
る。
FIG. 1 shows a schematic configuration of an embodiment of an online system to which the present invention is applied. Messages sent from the terminal 1o are sent to the central processing unit (CPU) via the communication control device 2o.
) passed to 30. CI) The U 30 determines and starts a user application program (UAP) 34 that performs business processing based on the received message. When the UAP 34 executes business processing and requests the CPU 30 to update the database 40, the CPU 30 updates the database 4o and simultaneously buffers the update history information in the journal buffer 31. On the other hand, the magnetic tape device 50 has a buffering function, and when the CPU 30 issues an output request, the contents of the journal buffer 31 are transferred to the buffer of the magnetic tape device 5o at high speed in a buffer-to-buffer format. . The magnetic tape device 5o is a CPU
Independently of the processing in step 30, the contents of the own buffer are output to the magnetic tape. Note that 50' is a spare magnetic tape device.

CI”)U30内のポインタ(PB)32は、ジャーナ
ルバッファ31から磁気テープ装置5oのバッファへ転
送された最後のレコード番号を示し、ポインタ(PR)
33は、磁気テープ装置5oが自バッファから磁気テー
プへ出力済の最後のレコード番号を示す。CPU30は
磁気テープ装置50へ出力要求を出す毎にポインタ32
を更新する。
The pointer (PB) 32 in the CI'') U30 indicates the last record number transferred from the journal buffer 31 to the buffer of the magnetic tape device 5o, and the pointer (PR)
33 indicates the last record number output from the own buffer to the magnetic tape by the magnetic tape device 5o. The CPU 30 uses the pointer 32 every time it issues an output request to the magnetic tape device 50.
Update.

一方、磁気テープ装置50は、自バッファから磁気テー
プへ出力したレコードのレコード番号をCPU30へ連
絡する。これを受けてCPU30はポインタ33を更新
する。
On the other hand, the magnetic tape device 50 notifies the CPU 30 of the record number of the record output from its own buffer to the magnetic tape. In response to this, the CPU 30 updates the pointer 33.

以下、ジャーナルファイルとして使用中の磁気テープ装
置50に障害が発生した場合の動作を具体例でもって説
明する。
Hereinafter, the operation when a failure occurs in the magnetic tape device 50 being used as a journal file will be explained using a specific example.

第2図はCPU30のジャーナルバッファ31及び磁気
テープ装置50のバッファ51と磁気テープ52の関係
を示したものである。本例は、ジャーナルバッファ31
にVW情報としてのレコード1〜10がバッファリンク
され、CI) U 30がレコードl、2,3,4.5
まで出力要求して、磁気テープ装置50のバッファ51
に該レコード1.2,3,4.5がバッファリングされ
ているが、実際に磁気テープ52に出力されているのは
レコード1,2.3までの場合を表わしている。
FIG. 2 shows the relationship between the journal buffer 31 of the CPU 30, the buffer 51 of the magnetic tape device 50, and the magnetic tape 52. In this example, the journal buffer 31
Records 1 to 10 as VW information are buffer-linked to CI) U 30 as records l, 2, 3, 4.5.
Request output to the buffer 51 of the magnetic tape device 50.
Records 1.2, 3, and 4.5 are buffered, but only records 1, 2.3 are actually output to the magnetic tape 52.

この場合、ポインタ (PB)32はレコード番号5を
示し、ポインタ (PR)32はレコード番号3を示す
。CP U 30では、ジャーナルバッファ31中のレ
コード5までの出力要求を出して、そのうちのレコード
1〜3は磁気テープ52へ出力済みなので、ジャーナル
バッファ31のレコード1〜3の記憶域は++j使用可
能である。又、レコード6〜10は出力要求していない
ので、CI) U aOは引続き磁気テープ装置50に
対して出力要求を出す。
In this case, pointer (PB) 32 indicates record number 5, and pointer (PR) 32 indicates record number 3. The CPU 30 issues a request to output up to record 5 in the journal buffer 31, and records 1 to 3 of them have already been output to the magnetic tape 52, so the storage area for records 1 to 3 in the journal buffer 31 is available for use. It is. Furthermore, since no output request has been made for records 6 to 10, CI) U aO continues to issue an output request to the magnetic tape device 50.

第3図は、第2図の状態で磁気テープ装置50に障害が
発生した時、予備磁気テープ装置50’の磁気テープ5
2′に書出すレコードがどうなるかを示したものである
。なお、第3図では予備の磁気テープ装置50’のバッ
ファは省略しである。
FIG. 3 shows that when a failure occurs in the magnetic tape device 50 in the state shown in FIG.
This shows what happens to the records written to 2'. Note that the buffer of the spare magnetic tape device 50' is omitted in FIG.

CPU30は、使用中の磁気テープ装置50の障害を検
知すると、ポインタ(PR)32をチエツクする。本例
では、ポインタ32はレコード番号3を示してし)るた
め、0丁】U30はジャーナルバッファ31のレコード
4以降を予備の磁気テープ装置50’へ出力する。予備
磁気テープ装置50″では、該ジャーナルバッファ31
のレコード4以降のレコード群を自バッファにバッファ
リングし、磁気テープ52″へ順次書出す。
When the CPU 30 detects a failure in the magnetic tape device 50 in use, it checks the pointer (PR) 32. In this example, since the pointer 32 indicates record number 3, U30 outputs record 4 and subsequent records in the journal buffer 31 to the spare magnetic tape device 50'. In the spare magnetic tape device 50'', the journal buffer 31
The record group after record 4 is buffered in its own buffer and sequentially written to the magnetic tape 52''.

実施例では、ジャーナルファイルとして磁気テープ装置
を使用するとしたが、バッファリング機能を持つもので
あれば、磁気テープ装置以外の外部記憶装置を使用して
も同様であることは云うまでもない。
In the embodiment, a magnetic tape device is used as the journal file, but it goes without saying that any external storage device other than the magnetic tape device may be used as long as it has a buffering function.

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

以上説明したように、本発明によれは、使用中の外部記
憶装置に障害が発生した場合、ジャーナルバッファの先
頭から11)度量力し直す必要がなく、予備の外部記憶
装置へは、障害外部記憶装置が未だ書出していないレコ
ードから出力すれはよいため、処理の無駄が省け、オン
ラインシステムの運用及び性能が向上し、高トラフイツ
クオンラインシステム向けのジャーナル取得が可能にな
る効果がある。
As explained above, according to the present invention, when a failure occurs in the external storage device in use, there is no need to re-enter the journal buffer from the beginning of the journal buffer, and the backup external storage device is Since the storage device can output records that have not yet been written, wasteful processing can be eliminated, the operation and performance of the online system can be improved, and journal acquisition for high-traffic online systems can be achieved.

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

第1図は本発明を適用したオンラインシステムの一実施
例の概略構成図、第2図及び第3図は第1図の動作を説
明するための具体例を示す図である。 30・・・中央処理装置(CP U)、31・・・ジャ
ーナルバッファ、 32.33・・・ポインタ、 40・・データベース、
50.50’ ・・・磁気テープ装置、51・・・磁気
テープバッファ、 52.52’・・・磁気テープ。
FIG. 1 is a schematic configuration diagram of an embodiment of an online system to which the present invention is applied, and FIGS. 2 and 3 are diagrams showing specific examples for explaining the operation of FIG. 1. 30...Central processing unit (CPU), 31...Journal buffer, 32.33...Pointer, 40...Database,
50.50'...Magnetic tape device, 51...Magnetic tape buffer, 52.52'...Magnetic tape.

Claims (1)

【特許請求の範囲】[Claims] (1)中央処理装置にジャーナルバッファを設けると共
に、バッファリング機能を持つ外部記憶装置を使用し、
前記中央処理装置は処理の履歴を示すレコードをジャー
ナルバッファを介して前記外部記憶装置へ出力し、前記
外部記憶装置は前記中央処理装置からの出力レコードを
一旦バッファリングした後、記録媒体へ書出すジャーナ
ル取得方式において、前記中央処理装置は、前記外部記
憶装置へ出力したレコード番号を示すポインタと、前記
外部記憶装置が記録媒体へ書出したレコード番号を示す
ポインタとを管理し、 使用中の前記外部記憶装置に障害が発生した時、前記中
央処理装置は、前記ポインタにもとづき、前記ジャーナ
ルバッファの内容を予備の外部記憶装置へ出力すること
を特徴とするジャーナル取得方式。
(1) Provide a journal buffer in the central processing unit and use an external storage device with a buffering function,
The central processing unit outputs a record indicating a processing history to the external storage device via a journal buffer, and the external storage device once buffers the output record from the central processing unit and then writes it to a recording medium. In the journal acquisition method, the central processing unit manages a pointer indicating a record number output to the external storage device and a pointer indicating a record number written to a recording medium by the external storage device, A journal acquisition method characterized in that when a failure occurs in an external storage device, the central processing unit outputs the contents of the journal buffer to a spare external storage device based on the pointer.
JP63066365A 1988-03-19 1988-03-19 How to get a journal Expired - Fee Related JP2675050B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63066365A JP2675050B2 (en) 1988-03-19 1988-03-19 How to get a journal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63066365A JP2675050B2 (en) 1988-03-19 1988-03-19 How to get a journal

Publications (2)

Publication Number Publication Date
JPH01239650A true JPH01239650A (en) 1989-09-25
JP2675050B2 JP2675050B2 (en) 1997-11-12

Family

ID=13313749

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63066365A Expired - Fee Related JP2675050B2 (en) 1988-03-19 1988-03-19 How to get a journal

Country Status (1)

Country Link
JP (1) JP2675050B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS588349A (en) * 1981-07-06 1983-01-18 Hitachi Ltd Data editing processing device
JPS58166472A (en) * 1982-03-27 1983-10-01 Fujitsu Ltd Duplicate method for journal collection magnetic tape device
JPS62290955A (en) * 1986-06-11 1987-12-17 Hitachi Ltd On-line data processing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS588349A (en) * 1981-07-06 1983-01-18 Hitachi Ltd Data editing processing device
JPS58166472A (en) * 1982-03-27 1983-10-01 Fujitsu Ltd Duplicate method for journal collection magnetic tape device
JPS62290955A (en) * 1986-06-11 1987-12-17 Hitachi Ltd On-line data processing system

Also Published As

Publication number Publication date
JP2675050B2 (en) 1997-11-12

Similar Documents

Publication Publication Date Title
JPH06250906A (en) Backup/recovery system for data developed in main storage device
JP2007249652A (en) Data mirror type cluster system and its operation method
JPH01239650A (en) Journal acquiring system
JPH08171459A (en) Information processing system
JPS58163052A (en) Fault processing system for decentralized data base system
US20030033440A1 (en) Method of logging message activity
JP3043662B2 (en) Data backup method
JP2587417B2 (en) File backup and restoration method
JPH1031598A (en) Information processor
JPH0253162A (en) Message output control system
JPH08263349A (en) Data management system
JPH04342041A (en) Backup maintenance method for computer system
JP2923089B2 (en) Data reproducing method in magnetic tape device
JP3368378B2 (en) Storage content management method and data processing device
JPH10171694A (en) Data backup method, data backup device, and information recording medium
JP2656499B2 (en) Computer system
JPH05276550A (en) Station data backup system
JPH04209044A (en) Data base control system
JPS6389944A (en) Managing system for file updating history
JPH0218653A (en) Reoutput system for received data
JPS6191735A (en) Online system journal information processing method
JPH03246738A (en) On-line multiplex file recovering and adding method
JPH0728708A (en) Back-up method for disk device
JPH02123426A (en) Microprocessor
JPH01316817A (en) data backup system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees