JP2000222265A - Restoring method for file using extracted journal - Google Patents

Restoring method for file using extracted journal

Info

Publication number
JP2000222265A
JP2000222265A JP11026984A JP2698499A JP2000222265A JP 2000222265 A JP2000222265 A JP 2000222265A JP 11026984 A JP11026984 A JP 11026984A JP 2698499 A JP2698499 A JP 2698499A JP 2000222265 A JP2000222265 A JP 2000222265A
Authority
JP
Japan
Prior art keywords
file
journal
update information
time
recovery
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
JP11026984A
Other languages
Japanese (ja)
Inventor
Yoshiko Tanaka
佳子 田中
Soichiro Kimura
宗一郎 木村
Takehiro Shoji
武弘 庄司
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 JP11026984A priority Critical patent/JP2000222265A/en
Publication of JP2000222265A publication Critical patent/JP2000222265A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To shorten a total journal integration time and to efficiently and easily restore a faulty file by sorting and extracting database update information (FJ) temporarily as an extracted journal to an update information storage file. SOLUTION: In response to a journal swap at time t1, an FJ extraction program 22 is started to perform storage in an update information accumulation file 23 through sorting into A1-1, A1-2, and A2-1. Further, storage in an update information storage file 24 is performed through sorting into B1-1, B1-2, and B2-1, At this time, pieces Z-1 and Z-2 of journal information which are not necessary for file restoration are not saved in the update information storage files. At the time of a journal swap at time t2, storage in an update information storage file 26 is similarly performed through sorting. At the end te (system end time) of the operation day, an FJ integration program 28 is started and only the latest update information is extracted from the update information storage files 23 and 26, and 24 and 27 and saved in integration journal files 29 and 20.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、オンラインシステ
ムのジャーナル情報取得方法およびファイル障害発生時
のファイル回復方法に関し、特に、大容量かつ多量にフ
ァイルを更新するシステム等において好適な、抽出・集
積ジャーナル取得方法と、抽出ジャーナルを用いたファ
イルの回復方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for acquiring journal information in an online system and a method for recovering a file in the event of a file failure. The present invention relates to an acquisition method and a file recovery method using an extraction journal.

【0002】[0002]

【従来の技術】従来、オンラインシステム等において、
ファイル障害が発生した場合、回復対象となるファイル
のバックアップファイルに対し、ジャーナル情報を順次
上書きすることで、障害発生直前の状態に回復してい
た。
2. Description of the Related Art Conventionally, in an online system or the like,
When a file failure has occurred, the journal information is sequentially overwritten on the backup file of the file to be recovered, thereby recovering the state immediately before the failure occurred.

【0003】この回復処理に使用するジャーナル量を減
らし、短時間で障害発生前の状態に回復することができ
るファイルの回復方法を提供するシステムが実用化され
ている。
A system has been put into practical use that provides a file recovery method that can reduce the amount of journal used for the recovery processing and recover the state before the failure in a short time.

【0004】この種のファイル回復方法は、例えば特開
平8−63435号公報に記載されているように、回復
対象となるファイルのバックアップファイルを作成した
後、ボリューム障害回復に必要なデータベース更新情報
のみをジャーナルスワップ毎に蓄積していき、回復対象
ファイルに障害が発生した場合は、障害発生直前までの
データベース更新情報(集積ジャーナル)を、バックア
ップファイルに上書することで、回復対象ファイルを障
害発生前の状態に回復する。
As described in Japanese Patent Application Laid-Open No. H8-63435, for example, this type of file recovery method creates a backup file of a file to be recovered and then stores only database update information necessary for volume failure recovery. Is accumulated for each journal swap, and if a failure occurs in the file to be recovered, the database update information (accumulation journal) up to the time immediately before the failure occurs is overwritten in the backup file, and the failure occurs in the file to be recovered. Recover to the previous state.

【0005】[0005]

【発明が解決しようとする課題】上記の方法では、デー
タベース更新情報を蓄積する際、前回のジャーナルスワ
ップ時に作成したデータベース更新情報(集積ジャーナ
ル)に今回分のジャーナルスワップ時に出力したデータ
ベース更新情報をソート・マージし、最新のデータベー
ス更新情報(集積ジャーナル)を作成する。このデータ
ベース更新情報(集積ジャーナル)を作成する処理(以
下、FJ集積プログラム)はジャーナルスワップ毎に行
われる。しかし、大容量でかつ多量にファイルを更新す
るシステムでは、ジャーナルスワップ回数が膨大であ
る。また、ソート・マージをジャーナルスワップ毎に行
っている為、効率が悪く、ジャーナル集積時間がかかり
すぎるという問題があった。
According to the above method, when storing the database update information, the database update information output during the current journal swap is sorted into the database update information (accumulated journal) created during the previous journal swap. -Merge to create the latest database update information (aggregated journal). The process of creating the database update information (accumulated journal) (hereinafter, FJ integrated program) is performed for each journal swap. However, in a system that updates a large amount of files with a large capacity, the number of journal swaps is enormous. Further, since the sort / merge is performed for each journal swap, there is a problem that the efficiency is low and the journal accumulation time is too long.

【0006】本発明の目的は、以下の2点にある。[0006] The object of the present invention is the following two points.

【0007】(1)総ジャーナル集積時間を短縮する方
法を提供すること。
(1) To provide a method for reducing the total journal integration time.

【0008】(2)ファイル障害発生時には、前運用日
以前に作成した集積ジャーナルと、当運用日の更新情報
蓄積ファイルを利用して、障害ファイルを効率よく容易
に回復することができる、ファイルの回復方法を提供す
ること。
[0008] (2) When a file failure occurs, the failure file can be efficiently and easily recovered by using the accumulated journal created before the previous operation day and the update information accumulation file of the current operation day. Provide a recovery method.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するため
に、本発明は (1)FJを一旦抽出ジャーナルとして更新情報蓄積フ
ァイルにソートして抽出し、更に抽出ジャーナル中のF
Jのソート・マージを1運用日あたり1回でまとめて行
うことで、総ジャーナル集積時間を短縮する方法を提供
する。
In order to achieve the above object, the present invention provides (1) a method in which FJs are once extracted and sorted into an update information storage file as an extraction journal;
A method of shortening the total journal accumulation time is provided by performing sort / merge of J once per one working day.

【0010】(2)FJ集積プログラムを多重起動する
ことで、更に総ジャーナル集積時間を短縮する方法を提
供する。
(2) A method is provided in which the total journal integration time is further reduced by activating the FJ integration program multiple times.

【0011】(3)ある運用期間中にファイル障害が発
生した場合、当運用日の集積ジャーナルの作成を待つこ
となく、バックアップファイルに、前運用日以前の集積
ジャーナルと(1)の中間ファイルとして作成した当運
用日の更新情報蓄積ファイル中の抽出ジャーナルと、以
降のジャーナル情報を反映させることで、効率よく障害
発生前の状態に回復させることができるファイルの回復
方法を提供する。
(3) When a file failure occurs during a certain operation period, the backup file is stored in the backup file as an intermediate file of the accumulation journal before the previous operation day and the intermediate file of (1) without waiting for the creation of the accumulation journal on the current operation day. Provided is a file recovery method capable of efficiently recovering the state before the failure by reflecting the extracted journal in the created update information storage file of the current operation day and the subsequent journal information.

【0012】[0012]

【発明の実施の形態】以下、本発明を図面を参照して説
明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings.

【0013】図1は、抽出ジャーナルを作成せずに、運
用日の最後に集積ジャーナルを取得する場合の運用の流
れを説明するものである。バックアップ対象となるファ
イル11とファイル12には、それぞれデータA1とA
2、データB1とB2がある。
FIG. 1 illustrates the flow of operation when an integrated journal is acquired at the end of an operation day without creating an extraction journal. Data A1 and A1 are stored in files 11 and 12 to be backed up, respectively.
2. There are data B1 and B2.

【0014】まず、時刻t1のジャーナルスワップ時の
ジャーナルファイル13には、データA1の更新情報A
1−1,A1−2。データA2の更新情報A2−1。デ
ータB1の更新情報B1−1,B1−2。データB2の
更新情報B2−1。ファイル回復時に不要なジャーナル
情報(FJ以外)Z−1,Z−2が無作為に存在する。
First, the update information A of the data A1 is stored in the journal file 13 at the time of journal swap at time t1.
1-1, A1-2. Update information A2-1 of data A2. Update information B1-1 and B1-2 of data B1. Update information B2-1 of data B2. Unnecessary journal information (other than FJ) Z-1 and Z-2 exist at the time of file recovery at random.

【0015】次に、時刻t2のジャーナルスワップ時の
ジャーナルファイル15には、データA1の更新情報A
1−3,A1−4。ファイル回復時に不要なジャーナル
情報Z−3が存在する。そして、当運用日の最後te
(システム終了時)に、FJ集積プログラム17を起動
し、ファイル11,12の最新の更新情報のみを抽出し
た集積ジャーナルファイル18,19を作成する。
Next, the journal file 15 at the time of journal swap at time t2 contains the update information A of the data A1.
1-3, A1-4. Unnecessary journal information Z-3 exists at the time of file recovery. And the last te of this operation day
At the time of system termination, the FJ integrated program 17 is started, and integrated journal files 18 and 19 are created by extracting only the latest update information of the files 11 and 12.

【0016】FJ集積プログラム17は、まずファイル
回復時に必要な更新情報のみを、データ名と更新時刻を
キーにソート・マージする。その後、各データの最新の
更新情報A1−4,A2−1,B1−2,B2−1のみ
を抽出し、それぞれ集積ジャーナルファイル18,19
に保存する。
The FJ integrated program 17 first sorts and merges only the update information necessary at the time of file recovery using the data name and the update time as keys. After that, only the latest update information A1-4, A2-1, B1-2, B2-1 of each data is extracted, and the accumulated journal files 18, 19 are respectively obtained.
To save.

【0017】このように、膨大で無作為に並んだ更新情
報を、1運用日分一気にソート・マージする方法はソー
ト・マージに要する時間が膨大であり、効率が悪い。
As described above, the method of sorting and merging a large amount of randomly arranged update information at once for one operating day is enormous in the time required for the sort and merge, and is inefficient.

【0018】図2は、図1のジャーナルファイルから抽
出ジャーナルを作成し、集積ジャーナルを取得する場合
の運用の流れを説明するものである。あらかじめ、図1
のファイル11に対応する更新情報蓄積ファイル23,
26、ファイル12に対応する更新情報蓄積ファイル2
4,27を用意する。時刻t1のジャーナルスワップを
契機にFJ抽出プログラム22を起動し、更新情報蓄積
ファイル23にはA1−1,A1−2,A2−1という
ようにソートし、格納する。また、更新情報蓄積ファイ
ル24にはB1−1,B1−2,B2−1と格納する。
この時、ファイル回復時に不要なジャーナル情報Z−
1,Z−2は更新情報蓄積ファイル上には保存しない。
FIG. 2 explains the flow of operation when an extraction journal is created from the journal file of FIG. 1 and an integrated journal is obtained. Figure 1
Update information storage file 23 corresponding to file 11 of
26, update information storage file 2 corresponding to file 12
4, 27 are prepared. The FJ extraction program 22 is started at the time of the journal swap at the time t1, and is sorted and stored in the update information storage file 23 as A1-1, A1-2, A2-1. The update information storage file 24 stores B1-1, B1-2, and B2-1.
At this time, unnecessary journal information Z-
1, Z-2 are not stored in the update information storage file.

【0019】時刻t2のジャーナルスワップ時も同様
に、更新情報蓄積ファイル26にファイル11の更新情
報をA1−3,A1−4をソートし、格納する。そし
て、当運用日の最後te(システム終了時)に、FJ集
積プログラム28を起動し、更新情報蓄積ファイル2
3,26から最新の更新情報A1−4,A2−1のみを
抽出し、集積ジャーナルファイル29に保存する。ま
た、更新情報蓄積ファイル24,27からも同様に、B
1−2,B2−1を抽出し、集積ジャーナルファイル2
0を作成する。
Similarly, at the time of journal swap at time t2, the update information of the file 11 is sorted and stored in the update information storage file 26 in the order of A1-3 and A1-4. Then, at the end of the current operation day (at the end of the system), the FJ integrated program 28 is started, and the update information storage file 2
Only the latest update information A1-4 and A2-1 are extracted from the files 3 and 26 and stored in the integrated journal file 29. Similarly, from the update information storage files 24 and 27, B
1-2, B2-1 is extracted and the collected journal file 2
Create 0.

【0020】このように、ジャーナルスワップという小
さな単位で、あらかじめ更新情報をソートし不要な情報
を取り除いておくことで、ソート・マージ処理を効率よ
く行うことができ、ジャーナル集積時間を短縮すること
ができる。
As described above, by sorting update information in advance in small units called journal swaps and removing unnecessary information, sort / merge processing can be performed efficiently, and journal integration time can be reduced. it can.

【0021】図3は、数日おきにバックアップを取得す
るファイルに障害が発生した場合の、ファイル回復実施
例を説明するものである。まず、運用日d1のシステム
終了時に、回復対象となるファイル31のバックアップ
ファイル32を作成する。
FIG. 3 illustrates a file recovery embodiment in the case where a failure occurs in a file whose backup is acquired every few days. First, when the system is closed on the operation day d1, a backup file 32 of the file 31 to be recovered is created.

【0022】翌運用日d2には、ジャーナルスワップを
契機に、ジャーナルファイル33からFJのみを抽出
し、更新情報蓄積ファイル34にソートして保存してい
く。そしてシステム終了時に集積ジャーナルファイル3
5を作成する。
On the next operation day d2, triggered by the journal swap, only the FJs are extracted from the journal file 33 and sorted and stored in the update information storage file 34. And at the end of the system, the accumulated journal file 3
Create 5.

【0023】次回の運用日d3の時刻t1でファイル3
1に障害が発生すると、最新のバックアップファイル3
2に、前日(運用日d2)作成した集積ジャーナルファ
イル35、当日(運用日d3)の更新情報蓄積ファイル
37、時刻t1までのジャーナルファイル36を順次上
書きしていくことで、障害の発生したファイル31の内
容をファイル38に回復させる。
At time t1 on the next operation day d3, file 3
If a failure occurs in the first backup file 3
2, the failed journal file 35 is sequentially overwritten with the accumulated journal file 35 created on the previous day (operating day d2), the update information accumulation file 37 on the current day (operating day d3), and the journal file 36 until time t1. 31 is restored to the file 38.

【0024】[0024]

【発明の効果】本発明により、以下に示す効果をあげる
ことができた。
According to the present invention, the following effects can be obtained.

【0025】(1)ジャーナル集積時間の短縮 ・ファイル回復に不要な情報をあらかじめ削除し、回復
に必要な情報のみを抽出する為、ジャーナル集積時に不
要な情報を読み込む時間を削減することができる。
(1) Reduction of journal accumulation time: Since information unnecessary for file recovery is deleted in advance and only information necessary for recovery is extracted, it is possible to reduce the time for reading unnecessary information during journal accumulation.

【0026】・ジャーナル抽出時にソートを行うため、
ジャーナル集積時のソート時間を短縮することができ
る。
To sort when extracting journals,
It is possible to reduce the sorting time when collecting journals.

【0027】・障害回復対象ファイルをあらかじめグル
ープ分割し、FJ集積プログラムを多重起動すること
で、更にジャーナル集積時間を短縮することができる。
The journal recovery time can be further reduced by dividing the recovery target file into groups in advance and activating the FJ integration program multiple times.

【0028】(2)ファイル回復時間の短縮 ・ジャーナル抽出時に作成する更新情報蓄積ファイル
を、ファイル障害発生時の回復に使用することで、ファ
イルの回復時間も短縮することができる。
(2) Reduction of File Recovery Time The file recovery time can be reduced by using the update information storage file created at the time of journal extraction for recovery in the event of a file failure.

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

【図1】本発明の抽出ジャーナルを作成せずに集積ジャ
ーナルを取得する方法の説明図。
FIG. 1 is an explanatory diagram of a method of acquiring an integrated journal without creating an extraction journal according to the present invention.

【図2】本発明の抽出ジャーナルを作成し集積ジャーナ
ルを取得する方法の説明図。
FIG. 2 is an explanatory diagram of a method of creating an extraction journal and acquiring an integrated journal according to the present invention.

【図3】本発明のファイル回復実施例を示す図。FIG. 3 is a diagram showing a file recovery embodiment of the present invention.

【符号の説明】[Explanation of symbols]

11,12,31,38…ファイル、23,24,2
6,27,34,37…更新情報蓄積ファイル、18,
19,20,29,35…集積ジャーナルファイル、3
2…バックアップファイル。
11, 12, 31, 38 ... files, 23, 24, 2
6, 27, 34, 37 ... update information storage file, 18,
19,20,29,35 ... Collecting journal file, 3
2. Backup file.

フロントページの続き (72)発明者 庄司 武弘 神奈川県川崎市幸区鹿島田890番地 株式 会社日立製作所情報システム事業部内 Fターム(参考) 5B082 AA01 DB04 DD06 DD07 EA10 GA04 GC04 Continued on the front page (72) Inventor Takehiro Shoji 890 Kashimada, Saiwai-ku, Kawasaki-shi, Kanagawa Prefecture F-term in Information Systems Division, Hitachi, Ltd. 5B082 AA01 DB04 DD06 DD07 EA10 GA04 GC04

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】利用者が設定した一定の運用期間中(以
下、運用日)に、ジャーナル情報から、ボリューム障害
回復に必要なデータベース更新情報(以下、FJ)のみ
を抽出して、更新情報蓄積ファイルにソートし保存する
処理を繰り返し、この更新情報蓄積ファイル中のFJを
更に運用終了後ソート・マージすることで、最新の更新
情報のみを持つ集積ジャーナル作成時間を短縮すること
を特徴とする抽出ジャーナルを用いたファイルの回復方
法。
1. During a certain operation period (hereinafter, operation day) set by a user, only database update information (hereinafter, FJ) necessary for volume failure recovery is extracted from journal information and update information is stored. The process of sorting and storing the information in a file is repeated, and the FJs in the update information storage file are further sorted and merged after the operation is completed, thereby shortening the time required to create an integrated journal having only the latest update information. How to recover files using the journal.
【請求項2】バックアップ対象ファイルをあらかじめグ
ループ分割し、そのグループ単位に更新情報蓄積ファイ
ルを用意し、集積ジャーナルを取得する処理を多重起動
することで、更に総ジャーナル集積時間を短縮すること
を特徴とする抽出ジャーナルを用いたファイルの回復方
法。
2. The total journal accumulation time is further shortened by dividing the backup target file into groups in advance, preparing update information accumulation files for each group, and multiplexing the processes for acquiring accumulation journals. File recovery method using extraction journals.
【請求項3】ファイル障害発生時には、バックアップフ
ァイルに、前運用日以前に取得した集積ジャーナルと、
運用期間中に取得する障害発生直前まで蓄積した抽出ジ
ャーナルと、以降のジャーナル情報を反映させて、回復
対象ファイルを障害発生前の状態に回復することで、フ
ァイル回復時間を短縮することを特徴とする抽出ジャー
ナルを用いたファイルの回復方法。
3. In the event of a file failure, a backup file contains, in the backup file, an integrated journal acquired before the previous operating day,
The feature is that the file recovery time is reduced by restoring the recovery target file to the state before the failure occurred by reflecting the extracted journal accumulated until just before the failure occurred and the subsequent journal information acquired during the operation period. File Recovery Method Using Extract Journal.
JP11026984A 1999-02-04 1999-02-04 Restoring method for file using extracted journal Pending JP2000222265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11026984A JP2000222265A (en) 1999-02-04 1999-02-04 Restoring method for file using extracted journal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11026984A JP2000222265A (en) 1999-02-04 1999-02-04 Restoring method for file using extracted journal

Publications (1)

Publication Number Publication Date
JP2000222265A true JP2000222265A (en) 2000-08-11

Family

ID=12208440

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11026984A Pending JP2000222265A (en) 1999-02-04 1999-02-04 Restoring method for file using extracted journal

Country Status (1)

Country Link
JP (1) JP2000222265A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010079526A (en) * 2008-09-25 2010-04-08 Hitachi Ltd Computer system and method for managing hierarchy of journal
JP2012256144A (en) * 2011-06-08 2012-12-27 Jfe Systems Inc Data management storage system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010079526A (en) * 2008-09-25 2010-04-08 Hitachi Ltd Computer system and method for managing hierarchy of journal
JP2012256144A (en) * 2011-06-08 2012-12-27 Jfe Systems Inc Data management storage system

Similar Documents

Publication Publication Date Title
US20110082832A1 (en) Parallelized backup and restore process and system
CN101739313A (en) Method for protecting and restoring continuous data
CN105335251A (en) Fault recovery method and system
CN110673982A (en) Shared mysql database backup and recovery method and device
CN105989160A (en) Memory data persistence method and apparatus for Redis database
US6754842B2 (en) Facilitating a restart operation within a data processing system
CN113886143B (en) Virtual machine continuous data protection method and device and data recovery method and device
CN106155838A (en) A kind of database back-up data restoration methods and device
CN111143323B (en) MPP database management method, device and system
JP2000222265A (en) Restoring method for file using extracted journal
US8126852B1 (en) Merged collections
CN104991814A (en) Task execution result acquiring method and system
CN107329852B (en) Hive-based data processing method and system and terminal equipment
US7574418B1 (en) Method and apparatus for storing composite data streams
CN109271354A (en) A kind of journal file handle update method and system
CN105138428B (en) The fault recovery method relied on based on forerunner
CN113821377A (en) Data recovery method, system and storage medium of distributed storage cluster
CN112307007B (en) Database cleaning method and device
Gorawski et al. Checkpoint-based resumption in data warehouses
JPH0353351A (en) Saving restoring device
CN112612648B (en) SQL Server database recovery method, terminal equipment and storage medium
JP2007226733A (en) Normality check method for database, normality check program and normality check device
JP2000020369A (en) Database management system and method therefor
CN115454725A (en) Database backup method and device, electronic equipment and storage medium
CN109710180A (en) A kind of distributed storage block device restoration methods