[go: up one dir, main page]

JPH0241052B2 - - Google Patents

Info

Publication number
JPH0241052B2
JPH0241052B2 JP57049432A JP4943282A JPH0241052B2 JP H0241052 B2 JPH0241052 B2 JP H0241052B2 JP 57049432 A JP57049432 A JP 57049432A JP 4943282 A JP4943282 A JP 4943282A JP H0241052 B2 JPH0241052 B2 JP H0241052B2
Authority
JP
Japan
Prior art keywords
data
log
failure
dataset
data set
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.)
Expired - Lifetime
Application number
JP57049432A
Other languages
Japanese (ja)
Other versions
JPS58166459A (en
Inventor
Shigeru Tanaka
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 JP57049432A priority Critical patent/JPS58166459A/en
Publication of JPS58166459A publication Critical patent/JPS58166459A/en
Publication of JPH0241052B2 publication Critical patent/JPH0241052B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、データ管理方式、特にソートされた
ログ・データを入力してリカバリを高速で行うよ
うにしたデータ管理方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a data management system, and particularly to a data management system that inputs sorted log data and performs recovery at high speed.

〔従来技術と問題点〕[Conventional technology and problems]

データセツト障害時のリカバリはバツク・アツ
プ・データによる復元とバツク・アツプ作成以後
の更新後ログ・データによる実更新代行により行
う。従来技術においては、更新後ログ・データを
取得した順番に処理を行つていたので、リカバリ
時にバツフアリング機能を導入しても入出力に多
大の時間を要していた。
Recovery in the event of a data set failure is performed by restoration using backup data and actual update proxy using updated log data after backup creation. In the conventional technology, the updated log data was processed in the order in which it was acquired, so even if a buffering function was introduced at the time of recovery, input/output required a large amount of time.

〔発明の目的〕[Purpose of the invention]

本発明は、上記の欠点を除去するものであつ
て、リカバリを高速で行い得るようになつたデー
タ管理方式を提供することを目的としている。
The present invention aims to eliminate the above-mentioned drawbacks and to provide a data management system that enables high-speed recovery.

〔発明の構成〕[Structure of the invention]

そしてそのため、本発明のデータ管理方式は、 応用プログラムによる処理の開始に先立つて、
応用プログラムで使用する複数のデータセツトの
バツクアツプを取得し、 処理の過程においてデータセツトを更新する
際、更新データをログ・データとしてログ・フア
イルに書込み、 処理の過程においてデータセツトに障害が発生
した時、 上記ログ・フアイルのログ・データをデータセ
ツト毎に分離し、 データセツト毎に分離されたログ・データをブ
ロツク側にソートし、 データセツト毎にソートされたソート・ログ・
データの内の障害発生データセツトに対応するソ
ート・ログ・データおよび障害発生データセツト
に対応するバツクアツプ・データを使用して障害
発生データセツトのリカバリを行う。
Therefore, the data management method of the present invention, prior to the start of processing by the application program,
When acquiring backups of multiple datasets used in an application program and updating the datasets during the processing process, the updated data is written to the log file as log data, and a failure occurs in the dataset during the processing process. At this time, the log data of the above log file is separated into each data set, the log data separated into each data set is sorted into blocks, and the sorted log data sorted into each data set is sorted into blocks.
Recovery of the failed data set is performed using sort log data corresponding to the failed data set and backup data corresponding to the failed data set.

ことを特徴とするものである。It is characterized by this.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明を実施例を参照しつつ説明する。
第1図は応用プログラムとログ・データとの関係
を示す図、第2図は媒体障害を考慮した運用方法
を説明するための図、第3図は本発明による高速
リカバリの1実施例の処理フローを示すものであ
る。
Hereinafter, the present invention will be explained with reference to Examples.
Figure 1 is a diagram showing the relationship between application programs and log data, Figure 2 is a diagram for explaining an operating method that takes media failure into account, and Figure 3 is a process of one embodiment of high-speed recovery according to the present invention. It shows the flow.

第1図において、1は応用プログラム、2は
AIM制御部、3は履歴ログ・フアイル、4―1
ないし4―5は履歴ログ・フアイルのバツクアツ
プ、A1ないしANおよびB1ないしBMはユー
ザ・データセツトをそれぞれ示している。また、
、、は処理の順序を示している。
In Figure 1, 1 is an application program, 2 is
AIM control unit, 3 is history log file, 4-1
4-5 represent backups of history log files, A1 through AN and B1 through BM represent user datasets, respectively. Also,
, , indicate the order of processing.

応用プログラム1からデータセツトA1の参照
要求があると、AIM制御部2は指定されたデー
タaを応用プログラム1に渡す。この場合、
AIM制御部2はデータ・ベース管理部であると
考えて良い。応用プログラム1はデータaをa′に
更新する。応用プログラム1がデータセツトA1
への書出しを要求すると、AIM制御部3は更新
データa′をデータ・セツトA1に書込む前に履歴
ログ・フアイル3に更新データa′を更新後ログ・
データとして書込む。履歴ログ・フアイル3に更
新データa′を書込んだ後、AIM制御部2は更新
データa′をデータセツトA1に書込む。
When the application program 1 requests to refer to the data set A1, the AIM control unit 2 passes the designated data a to the application program 1. in this case,
The AIM control unit 2 can be considered as a database management unit. Application program 1 updates data a to a'. Application program 1 is data set A1
When a request is made to write the updated data a' to the data set A1, the AIM control unit 3 writes the updated data a' to the history log file 3 before writing the updated data a' to the data set A1.
Write as data. After writing the updated data a' to the history log file 3, the AIM control unit 2 writes the updated data a' to the data set A1.

更新後ログ・データは履歴フアイル3にブロツ
ク単位で順番に書込まれる。履歴ログ・フアイル
3が一杯になると、その内容はバツクアツプ用の
磁気テープにコピーされ、その履歴ログ・フアイ
ル3は循環使用される。図において履歴ログ・フ
アイル3の中に「NO=4」と書かれているが、
これは履歴ログ・フアイルのバツクアプが既に3
回とられ、履歴ログ・フアイル3が第4回目の使
用であることを示している。他も同様である。ま
た、図において、バツクアツプ4―1の中に
「NO=1」と記入されているが、これはこのバ
ツクアツプが第1回目のものであることを示して
いる。
The updated log data is sequentially written to the history file 3 in block units. When the history log file 3 is full, its contents are copied to magnetic tape for backup, and the history log file 3 is used in circulation. In the figure, "NO=4" is written in history log file 3, but
This means that the history log file has already been backed up 3 times.
This indicates that the history log file 3 has been used for the fourth time. The same applies to others. Also, in the figure, "NO=1" is written in backup 4-1, which indicates that this backup is the first one.

第2図は媒体障害を考慮した運用方法とリカバ
リを説明するものである。第2図において、TA
1ないしTANおよびTB1ないしTBMはユー
ザ・データセツトのバツクアツプを示している。
なお、第1図と同一符号は同一物を示している。
FIG. 2 explains the operation method and recovery in consideration of media failure. In Figure 2, TA
1 to TAN and TB1 to TBM indicate the backup of the user data set.
Note that the same reference numerals as in FIG. 1 indicate the same parts.

媒体障害に備え、応用プログラム1の処理の開
始に先立つて、ユーザ・データセツトA1,…
AN,B1,…BMのバツクアツプTA1,…
TAN,TB1ないしTBMが取られる。時刻t1に
おいてデータセツトA1に障害が発生した場合に
は以下の手順によりリカバリを行う。
In preparation for a media failure, user data sets A1, . . .
AN, B1,...BM backup TA1,...
TAN, TB1 or TBM are taken. If a failure occurs in dataset A1 at time t1, recovery is performed using the following procedure.

(イ) バツクアツプTA1をロードし、データセツ
トA1を初期状態にする。
(b) Load backup TA1 and initialize data set A1.

(ロ) 履歴ログ・フアイルのバツクアツプ4―1な
いし4―5及び履歴ログ・フアイル3からデー
タセツトA1に関する有効ログ・データを抽出
し、データセツトA1を更新して書き出す。
(b) Extract valid log data regarding dataset A1 from the history log file backups 4-1 to 4-5 and history log file 3, update dataset A1, and write it out.

第3図は本発明による高速リカバリの1実施例
の処理フローを示すものである。第3図におい
て、5と6はソート・ログ・フアイルをそれぞれ
示している。なお、第1図と同一符号は同一物を
示している。
FIG. 3 shows a processing flow of one embodiment of high-speed recovery according to the present invention. In FIG. 3, 5 and 6 indicate sort log files, respectively. Note that the same reference numerals as in FIG. 1 indicate the same parts.

データセツトA1に障害が発生し、媒体は正常
媒体に変換されているものとする。先ず最初にロ
グ・データのソート処理が行われ、次いでリカバ
リ処理が行われる。ログ・データのソート処理は
下記のようにして行われる。
Assume that a failure has occurred in dataset A1 and the medium has been converted to a normal medium. First, the log data is sorted and then the recovery process is performed. The log data sorting process is performed as follows.

履歴ログ・フアイルのバツクアツプ4―1な
いし4―5からログ・データをREADする。
READ the log data from the history log file backup 4-1 or 4-5.

READしたログ・データをデータ・セツト
群単位に分離する。即ち、データセツトA1
毎、…データセツトAN毎、データセツトB1
毎、…データセツトBM毎に分離する。このと
き、同一ブロツクに対するログ・データは最終
結果を生成するものだけを残す。例えば、更新
対象となつたブロツクの更新結果をブロツク単
位で取得したものをログ・データとする場合に
は、同一ブロツクについては、ログ・データの
順序性に関する情報から判断される取得順番が
最も若い(最新の)ログ・データが最終結果を
生成することになる。
Separate the READ log data into data set groups. That is, data set A1
Every data set AN, every data set B1
Separate each data set BM. At this time, only the log data for the same block that generates the final result is left. For example, if the log data is the update result of a block that has been updated in units of blocks, then for the same block, the one whose acquisition order is the youngest as determined from the information about the order of log data. The (latest) log data will produce the final results.

ブロツクNOに従つてデータセツト内のロ
グ・データのソート/マージ行う。
Sort/merge log data in dataset according to block number.

データセツト毎内でのソート/マージが全デ
ータセツトに対して行われたならば、ソート・
ログ・データをソート・ログ・フアイル5,6
にWRITEする。
If the sort/merge within each data set is done for all data sets, the sort/merge
Sort log data into log files 5 and 6
WRITE to.

上記のようなログ・データのソート処理が行わ
れた後、下記のようなリカバリ処理が行われる。
After the log data is sorted as described above, recovery processing as described below is performed.

′ バツクアツプ・データTA1を読出し、こ
れをデータセツトA1に書き出す。
' Read backup data TA1 and write it to data set A1.

′ ソート・ログ・フアイル5および履歴ロ
グ・フアイル3の中からデータセツトA1に関
する有効なログ・データのみを読出し、データ
セツトA1の更新を行う。有効なログ・データ
とは、期間と障害の範囲とにより決められる。
期間とは、バツクアツプ・データTA1を作成
してからデータセツトA1が障害になるまでの
期間のことである。障害とは、データセツトA
1の障害範囲のことである。データセツトA1
の全体の障害のとき(例えば、ボリユーム全体
の障害に対応)は、上記期間のデータセツトA
1の全部のログ・データで更新を行えば良い。
また、データセツトA1の部分障害のとき(例
えば、一部のトラツクの障害に対応)は、上記
期間の障害部分に対応するログ・データで更新
を行えば良い。
' Read only valid log data regarding dataset A1 from sort log file 5 and history log file 3, and update dataset A1. Valid log data is determined by the duration and extent of the failure.
The period is the period from when backup data TA1 is created until data set A1 becomes a failure. The failure is Dataset A
This refers to the range of failure. Data set A1
(for example, corresponds to a failure of the entire volume), the data set A for the above period is
It is sufficient to update all the log data of 1.
Furthermore, in the case of a partial failure in dataset A1 (for example, corresponding to a failure in some trucks), it is sufficient to update the log data corresponding to the failed part during the above-mentioned period.

′ 更新したデータのデータセツトA1への書
き出しを行う。書き出しを行う際、出力媒体の
IO特性を生かし、トラツク群、シリンダ群単
位に出力する。
' Write the updated data to dataset A1. When exporting, select the output medium
Utilizes the IO characteristics to output in units of track groups and cylinder groups.

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

以上の説明から明らかなように、本発明によれ
ば従来方式に比し、リカバリを効率良く短時間で
行うことが可能となる。
As is clear from the above description, according to the present invention, recovery can be performed more efficiently and in a shorter time than in the conventional method.

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

第1図は応用プログラムとログ・データとの関
係を示す図、第2図は媒体障害を考慮した運用方
法を説明するための図、第3図は本発明による高
速リカバリの1実施例の処理フローを示すもので
ある。 1…応用プログラム、2…AIM制御部、3…
履歴ログ・フアイル、4―1と4―5…履歴ロ
グ・フアイルのバツクアツプ、A1ないしANお
よびB1ないしBM…ユーザ・データセツト、
TA1ないしTANおよびTB1ないしTBM…ユ
ーザ・データセツトのバツクアツプ、5と6…ソ
ート・ログ・フアイル。
Figure 1 is a diagram showing the relationship between application programs and log data, Figure 2 is a diagram for explaining an operating method that takes media failure into account, and Figure 3 is a process of one embodiment of high-speed recovery according to the present invention. It shows the flow. 1...Application program, 2...AIM control section, 3...
History log files, 4-1 and 4-5...backup of history log files, A1 to AN and B1 to BM...user datasets,
TA1 to TAN and TB1 to TBM...user dataset backup, 5 and 6...sort log files.

Claims (1)

【特許請求の範囲】 1 応用プログラムによる処理の開始に先立つ
て、応用プログラムで使用する複数のデータセツ
トのバツクアツプを取得し、 処理の過程においてデータセツトを更新する
際、更新データをログ・データとしてログ・フア
イルに書込み、 処理の過程においてデータセツトに障害が発生
した時、 上記ログ・フアイルのログ・データをデータセ
ツト毎に分離し、 データセツト毎に分離されたログ・データをブ
ロツク側にソートし、 データセツト毎にソートされたソート・ログ・
データの内の障害発生データセツトに対応するソ
ート・ログ・データおよび障害発生データセツト
に対応するバツクアツプ・データを使用して障害
発生データセツトのリカバリを行う ことを特徴とするデータ管理方式。
[Claims] 1. Prior to the start of processing by an application program, a backup of a plurality of datasets used by the application program is acquired, and when updating the datasets in the process of processing, the updated data is used as log data. When data is written to a log file and a failure occurs in a dataset during processing, the log data in the log file is separated into each dataset, and the log data separated by dataset is sorted into blocks. and sorted logs sorted by dataset.
A data management method characterized in that a data set in which a failure has occurred is recovered by using sort log data corresponding to the data set in which the failure has occurred and backup data corresponding to the data set in which the failure has occurred.
JP57049432A 1982-03-27 1982-03-27 Data management method Granted JPS58166459A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57049432A JPS58166459A (en) 1982-03-27 1982-03-27 Data management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57049432A JPS58166459A (en) 1982-03-27 1982-03-27 Data management method

Publications (2)

Publication Number Publication Date
JPS58166459A JPS58166459A (en) 1983-10-01
JPH0241052B2 true JPH0241052B2 (en) 1990-09-14

Family

ID=12830939

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57049432A Granted JPS58166459A (en) 1982-03-27 1982-03-27 Data management method

Country Status (1)

Country Link
JP (1) JPS58166459A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4977536A (en) * 1984-12-10 1990-12-11 Canon Kabushiki Kaisha Document processor
JPS62147544A (en) * 1985-12-20 1987-07-01 Nec Corp Roll-back processing system
JP3260923B2 (en) * 1993-09-20 2002-02-25 富士通株式会社 Backup control apparatus and method for data processing system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5233443A (en) * 1975-09-10 1977-03-14 Hitachi Ltd System down restoring system

Also Published As

Publication number Publication date
JPS58166459A (en) 1983-10-01

Similar Documents

Publication Publication Date Title
US12147305B2 (en) Restoring a database using a fully hydrated backup
AU700681B2 (en) A method of operating a computer system
US8060713B1 (en) Consolidating snapshots in a continuous data protection system using journaling
US7197665B2 (en) Physical incremental backup using snapshots
US5561795A (en) Method and apparatus for audit trail logging and data base recovery
AU710755B2 (en) Storage of computer data
US7444485B1 (en) Method and apparatus for duplicating computer backup data
EP3451173B1 (en) Restoring a database using a fully hydrated backup
JP2001216185A (en) Data recovery method for information processing system and disk subsystem
CN107665219B (en) Log management method and device
US10977143B2 (en) Mirrored write ahead logs for data storage system
US20050278388A1 (en) Apparatus, system, and method for reliably updating a data group in a data replication environment
US10452496B2 (en) System and method for managing storage transaction requests
CA2063379A1 (en) Method of operating a data processing system
US20060031267A1 (en) Apparatus, system, and method for efficient recovery of a database from a log of database activities
JPH0241052B2 (en)
CN1421010A (en) Database table recovery system
CN111221801A (en) A database migration method, system and related device
US11435927B2 (en) Protected saveset volume movement via metadata bootstrap
US12093568B1 (en) Segregated filesystem metadata operations using buffered atomic write interface
JPH04184641A (en) Data base restoring system
JPS63262737A (en) Database update record processing method
JPS6221136B2 (en)
CN114780499A (en) Batch processing method and device
JPS6151249A (en) Data set recovery processing system