JP2005038176A - Computer system and file management method - Google Patents

Computer system and file management method Download PDF

Info

Publication number
JP2005038176A
JP2005038176A JP2003274410A JP2003274410A JP2005038176A JP 2005038176 A JP2005038176 A JP 2005038176A JP 2003274410 A JP2003274410 A JP 2003274410A JP 2003274410 A JP2003274410 A JP 2003274410A JP 2005038176 A JP2005038176 A JP 2005038176A
Authority
JP
Japan
Prior art keywords
data
journal
area
file
program
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
JP2003274410A
Other languages
Japanese (ja)
Inventor
Takao Yamada
孝雄 山田
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 JP2003274410A priority Critical patent/JP2005038176A/en
Publication of JP2005038176A publication Critical patent/JP2005038176A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To perform file restoration based on rollback or roll forward by using only the information inside the file. <P>SOLUTION: The file 4 is provided with a rollback journal area 42, a roll forward journal area 43, and data backup area 44 in addition to a data area 41. A file management part 6 copies the contents of the data area 41 to the data backup area 44 when establishment of a quiescent point is required from a program 5, and in data updating by the program 5, a journal before the update and that after the update are stored in the rollback journal area 42 and the roll forward journal area 43. Therefore, even if the file 4 is moved to another computer, restoration processing by the rollback and the roll forward can be carried out only by the information inside the file 4 in the computer in the file transfer destination. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明はコンピュータシステムおよびファイル管理方法に関し、特にジャーナルを用いてファイルの復旧を行うコンピュータシステムおよびファイル管理方法に関する。 The present invention relates to a computer system and a file management method, and more particularly to a computer system and a file management method for recovering a file using a journal.

コンピュータシステムにおいて、入力データの処理結果に応じてデータファイルを更新する場合、入力データに誤りがあるとデータファイルが誤った内容に更新されてしまう。このため、過去に入力したデータが誤っていたことが判明した場合、データファイルの内容を更新前の状態に復旧する必要がある。また、ハードウェア障害などにより記録媒体上のデータファイルが壊れてしまった場合、データファイルを障害前の状態に復旧する必要がある。 In a computer system, when a data file is updated according to the processing result of input data, if the input data has an error, the data file is updated to an incorrect content. For this reason, when it is determined that the data input in the past is incorrect, it is necessary to restore the contents of the data file to the state before the update. Further, when a data file on the recording medium is broken due to a hardware failure or the like, it is necessary to restore the data file to the state before the failure.

図9は、誤った入力データに基づいてデータファイルを更新してしまった場合にデータファイルの内容を更新前の状態に復旧する従来方法の説明図である。先ず、データファイルDF中のデータaをa’に更新するとき、更新前のaの内容を更新前ジャーナルとして更新前ジャーナルファイルBJFに記録し(ステップS100)、次にデータファイルDF中のデータaをa’に更新する(ステップS101)。同様に、データファイルDF中のデータbをb’に更新するとき、更新前のbの内容を更新前ジャーナルとして更新前ジャーナルファイルBJFに記録し(ステップS102)、次にデータファイルDF中のデータbをb’に更新する(ステップS103)。そして、データa、bの更新が誤った入力データに基づくものであったためにデータファイルDFをその更新前の状態に復旧する場合、更新前ジャーナルファイルBJFに記録された更新前ジャーナル(b,a)を用いて、データファイルDFを更新前の状態に復旧する(ステップS104)。このように更新前ジャーナルを用いてデータファイルDFを復旧する処理は、ロールバックと呼ばれる。 FIG. 9 is an explanatory diagram of a conventional method for restoring the contents of the data file to the state before the update when the data file is updated based on erroneous input data. First, when the data a in the data file DF is updated to a ′, the content of a before update is recorded in the journal file BJF before update as a journal before update (step S100), and then the data a in the data file DF is recorded. Is updated to a ′ (step S101). Similarly, when the data b in the data file DF is updated to b ′, the contents of b before the update are recorded in the journal file BJF before update as a journal before update (step S102), and then the data in the data file DF is recorded. b is updated to b '(step S103). When the data file DF is restored to the state before the update because the update of the data a and b is based on erroneous input data, the pre-update journal (b, a recorded in the pre-update journal file BJF) ) Is used to restore the data file DF to the state before the update (step S104). The process of restoring the data file DF using the pre-update journal in this way is called rollback.

図10はハードウェア障害などにより記録媒体上のデータファイルが壊れてしまった場合にデータファイルを障害前の状態に復旧する従来方法の説明図である。先ず、データファイルDFの内容をセーブファイルSFに退避しておく(ステップS110)。この退避処理を行った時点を静止点と呼ぶ。次に、データファイルDF中のデータaをa’に更新したとき(ステップS111)、更新後のデータa’を更新後ジャーナルとして更新後ジャーナルファイルFJFに記録する(ステップS112)。同様に、データファイルDF中のデータbをb’に更新したとき(ステップS113)、更新後のデータb’の内容を更新後ジャーナルとして更新後ジャーナルファイルFJFに記録する(ステップS114)。そして、データファイルDFの内容が破壊されてしまった場合、先ず、セーブファイルSFに保存された内容をデータファイルDFにコピーし(ステップS115)、次に更新後ジャーナルファイルFJFに記録された更新後ジャーナル(a’b’)を用いて、データファイルDFを障害前の最新の状態に復旧する(ステップS116)。このように更新後ジャーナルを用いてデータファイルDFを最新の状態に復旧する処理は、ロールフォワードと呼ばれる。 FIG. 10 is an explanatory diagram of a conventional method for restoring a data file to a state before the failure when the data file on the recording medium is broken due to a hardware failure or the like. First, the contents of the data file DF are saved in the save file SF (step S110). The time point at which this evacuation process is performed is called a stationary point. Next, when the data a in the data file DF is updated to a '(step S111), the updated data a' is recorded in the updated journal file FJF as an updated journal (step S112). Similarly, when the data b in the data file DF is updated to b '(step S113), the content of the updated data b' is recorded in the updated journal file FJF as an updated journal (step S114). If the contents of the data file DF are destroyed, first, the contents saved in the save file SF are copied to the data file DF (step S115), and then after the update recorded in the post-update journal file FJF. Using the journal (a′b ′), the data file DF is restored to the latest state before the failure (step S116). The process of restoring the data file DF to the latest state using the post-update journal is called roll forward.

ここで、従来のコンピュータシステムにおいては、データファイルDF、更新前ジャーナルファイルBJF、更新後ジャーナルファイルFJFおよびセーブファイルSFは、それぞれ別々のファイルとして管理されている(例えば、特許文献1、2参照)。
特開平5−20236号公報 特開平10−133927号公報
In the conventional computer system, the data file DF, the pre-update journal file BJF, the post-update journal file FJF, and the save file SF are managed as separate files (see, for example, Patent Documents 1 and 2). .
Japanese Patent Laid-Open No. 5-20236 JP-A-10-133927

前述したように、従来のコンピュータシステムにおいては、更新前ジャーナルファイルBJF、更新後ジャーナルファイルFJFおよびセーブファイルSFが、データファイルDFとは別のファイルとして管理されているため、データ移行のためにデータファイルDFを別のコンピュータに移す場合、移行先のコンピュータにおいてジャーナルを用いたファイル復旧を可能にするためには、データファイルDFを移行しただけでは不十分であり、更新前ジャーナルファイルBJF、更新後ジャーナルファイルFJFおよびセーブファイルSFも何らかの方法で一緒に移行する必要がある。しかし、それらのファイルは各々1つのファイルとして管理されているため、データファイルDFに対応する更新前ジャーナルファイルBJF、更新後ジャーナルファイルFJFおよびセーブファイルSFを正確に特定する必要があり、オペレータの負担が大きい。また、データファイルDFだけを移行したり、一部のジャーナルファイルだけを移行したりするミスが発生し易く、データファイルDFの移行先コンピュータでジャーナルを用いたファイル復旧が全く行えなくなるという問題を招いていた。 As described above, in the conventional computer system, the pre-update journal file BJF, the post-update journal file FJF, and the save file SF are managed as files different from the data file DF. When the file DF is transferred to another computer, it is not sufficient to transfer the data file DF to enable file recovery using a journal in the transfer destination computer, the journal file BJF before update, after update The journal file FJF and the save file SF need to be migrated together in some way. However, since each of these files is managed as one file, it is necessary to accurately specify the before-update journal file BJF, the after-update journal file FJF, and the save file SF corresponding to the data file DF. Is big. In addition, it is easy to make a mistake to migrate only the data file DF or only a part of the journal file, resulting in a problem that the file recovery using the journal cannot be performed at all on the data file DF migration destination computer. It was.

本発明はこのような事情に鑑みて提案されたものであり、その目的は、実際のデータを記録するデータ領域以外にジャーナルを記録する領域も同じファイル内に設けることによって、ファイルが、作成されたコンピュータ以外へ移動された場合でもロールバックによるファイル復旧がそのファイル内の情報だけで行えるようにすることにある。 The present invention has been proposed in view of such circumstances, and its purpose is to create a file by providing an area for recording journals in the same file in addition to a data area for recording actual data. The file recovery by rollback can be performed only by the information in the file even if it is moved to other than the computer.

本発明の別の目的は、ファイルが、作成されたコンピュータ以外へ移動された場合でもロールフォワードによるファイル復旧がそのファイル内の情報だけで行えるようにすることにある。 Another object of the present invention is to enable roll-forward file recovery using only information in a file even when the file is moved to a place other than the created computer.

本発明の更に別の目的は、ファイルが、作成されたコンピュータ以外へ移動された場合でもロールバックおよびロールフォワードによるファイル復旧がそのファイル内の情報だけで行えるようにすることにある。 Still another object of the present invention is to enable file recovery by rollback and rollforward only with information in the file even when the file is moved to a place other than the computer where it was created.

本発明の第1のコンピュータシステムは、ファイルを記憶する外部記憶装置と、前記ファイルを用いて業務処理を遂行するプログラムおよび前記ファイルを管理するファイル管理部を有する処理装置とを備えたコンピュータシステムにおいて、前記ファイルは、前記プログラムから出力されたデータを記憶するデータ領域と、更新前ジャーナルを記憶するロールバックジャーナル領域とを含んで構成され、前記ファイル管理部は、前記プログラムから出力されたデータを前記データ領域に出力するデータ出力手段と、前記プログラムによる前記データ領域の更新時、更新前ジャーナルを前記ロールバックジャーナル領域に記録するジャーナル出力手段と、前記プログラムによる前記データ領域の更新時、前記ジャーナル出力手段を呼び出して更新前ジャーナルを前記ロールバックジャーナル領域へ出力した後、前記データ出力手段を呼び出して実際のデータを前記データ領域へ出力する処理を行うアクセス管理手段と、前記ロールバックジャーナル領域に記録された更新前ジャーナルを用いて前記データ領域の内容を復旧するロールバック処理を行うデータ復旧手段とを有している。 A first computer system according to the present invention is a computer system including an external storage device that stores a file, a program that performs business processing using the file, and a processing device that includes a file management unit that manages the file. The file includes a data area for storing data output from the program and a rollback journal area for storing a pre-update journal, and the file management unit stores the data output from the program. Data output means for outputting to the data area, journal output means for recording a pre-update journal in the rollback journal area when the data area is updated by the program, and when the data area is updated by the program, the journal Call the output means After the new previous journal is output to the rollback journal area, access management means for performing a process of calling the data output means to output the actual data to the data area, and before the update recorded in the rollback journal area Data recovery means for performing rollback processing for recovering the contents of the data area using a journal.

本発明の第2のコンピュータシステムは、ファイルを記憶する外部記憶装置と、前記ファイルを用いて業務処理を遂行するプログラムおよび前記ファイルを管理するファイル管理部を有する処理装置とを備えたコンピュータシステムにおいて、前記ファイルは、前記プログラムから出力されたデータを記憶するデータ領域と、更新後ジャーナルを記憶するロールフォワードジャーナル領域と、前記データ領域の内容を保存するデータバックアップ領域とを含んで構成され、前記ファイル管理部は、前記プログラムから出力されたデータを前記データ領域に出力するデータ出力手段と、前記プログラムによる前記データ領域の更新時、更新後ジャーナルを前記ロールフォワードジャーナル領域に記録するジャーナル出力手段と、前記プログラムによる前記データ領域の更新時、前記ジャーナル出力手段を呼び出して更新後ジャーナルを前記ロールフォワードジャーナル領域へ出力した後、前記データ出力手段を呼び出して実際のデータを前記データ領域へ出力する処理を行うアクセス管理手段と、前記プログラムからの静止点確立要求時、前記データ領域の内容を前記データバックアップ領域へコピーするデータ退避手段と、前記データバックアップ領域に記録された静止点確立時の前記データ領域の内容と前記ロールフォワードジャーナル領域に記録された更新後ジャーナルを用いて前記データ領域の内容を復旧するロールフォワード処理を行うデータ復旧手段とを有している。 A second computer system of the present invention is a computer system comprising an external storage device that stores a file, a program that performs business processing using the file, and a processing device that has a file management unit that manages the file. The file includes a data area that stores data output from the program, a roll-forward journal area that stores an updated journal, and a data backup area that stores the contents of the data area, The file management unit includes data output means for outputting data output from the program to the data area, and journal output means for recording an updated journal in the roll-forward journal area when the data area is updated by the program. , The program When the data area is updated, access is performed to call the journal output means and output the updated journal to the roll forward journal area, and then call the data output means to output actual data to the data area. Management means, data saving means for copying the contents of the data area to the data backup area at the time of a quiesce point establishment request from the program, and contents of the data area at the time of establishment of a quiesce point recorded in the data backup area And a data recovery means for performing a roll forward process for recovering the contents of the data area using the post-update journal recorded in the roll forward journal area.

本発明の第3のコンピュータシステムは、ファイルを記憶する外部記憶装置と、前記ファイルを用いて業務処理を遂行するプログラムおよび前記ファイルを管理するファイル管理部を有する処理装置とを備えたコンピュータシステムにおいて、前記ファイルは、前記プログラムから出力されたデータを記憶するデータ領域と、更新前ジャーナルを記憶するロールバックジャーナル領域と、更新後ジャーナルを記憶するロールフォワードジャーナル領域と、前記データ領域の内容を保存するデータバックアップ領域とを含んで構成され、前記ファイル管理部は、前記プログラムから出力されたデータを前記データ領域に出力するデータ出力手段と、前記プログラムによる前記データ領域の更新時、更新前ジャーナルを前記ロールバックジャーナル領域に記録し、更新後ジャーナルを前記ロールフォワードジャーナル領域に記録するジャーナル出力手段と、前記プログラムによる前記データ領域の更新時、前記ジャーナル出力手段を呼び出して更新前ジャーナルおよび更新後ジャーナルを前記ロールバックジャーナル領域および前記ロールフォワードジャーナル領域へ出力した後、前記データ出力手段を呼び出して実際のデータを前記データ領域へ出力する処理を行うアクセス管理手段と、前記プログラムからの静止点確立要求時、前記データ領域の内容を前記データバックアップ領域へコピーするデータ退避手段と、前記ロールバックジャーナル領域に記録された更新前ジャーナルを用いて前記データ領域の内容を復旧するロールバック処理および前記データバックアップ領域に記録された静止点確立時の前記データ領域の内容と前記ロールフォワードジャーナル領域に記録された更新後ジャーナルを用いて前記データ領域の内容を復旧するロールフォワード処理を行うデータ復旧手段とを有している。 A third computer system of the present invention is a computer system comprising an external storage device for storing a file, a program for performing business processing using the file, and a processing device having a file management unit for managing the file. The file stores a data area for storing data output from the program, a rollback journal area for storing a pre-update journal, a roll-forward journal area for storing a post-update journal, and the contents of the data area. The file management unit includes a data output means for outputting data output from the program to the data area, and a journal before update when the data area is updated by the program. The rollback journal Journal output means for recording in the area and recording the updated journal in the roll forward journal area; and when the data area is updated by the program, the journal output means is called to roll back the pre-update journal and post-update journal. After output to the journal area and the roll forward journal area, access management means for performing processing for calling the data output means and outputting actual data to the data area, and at the time of a quiesce point establishment request from the program, the data Data saving means for copying the contents of the area to the data backup area, rollback processing for restoring the contents of the data area using the pre-update journal recorded in the rollback journal area, and recording in the data backup area Data recovery means for performing roll forward processing for recovering the contents of the data area using the updated journal recorded in the roll forward journal area and the contents of the data area when the quiesce point is established .

本発明の第1のファイル管理方法は、a)外部記憶装置に格納されたファイルを用いて業務処理を遂行するプログラムから前記ファイルに対するデータ更新要求があったとき、前記ファイルに設けられたロールバックジャーナル領域に更新前ジャーナルを記録した後、前記ファイルのデータ領域に実際のデータを出力するステップ、b)前記ロールバックジャーナル領域に記録された更新前ジャーナルを用いて前記データ領域の内容を復旧するロールバック処理を行うステップ、を含んでいる。 According to the first file management method of the present invention, a) a rollback provided in the file when a data update request for the file is received from a program that performs business processing using the file stored in the external storage device. Recording actual data in the data area of the file after recording the pre-update journal in the journal area; b) restoring the contents of the data area using the pre-update journal recorded in the rollback journal area Performing a rollback process.

本発明の第2のファイル管理方法は、a)外部記憶装置に格納されたファイルを用いて業務処理を遂行するプログラムから前記ファイルに対する静止点確立要求があったとき、前記ファイルに設けられたデータ領域の内容を前記ファイルに設けられたデータバックアップ領域へコピーするステップ、b)前記プログラムから前記データ領域に対するデータ更新要求があったとき、前記ファイルに設けられたロールフォワードジャーナル領域に更新後ジャーナルを記録するとともに、前記データ領域に実際のデータを出力するステップ、c)前記データバックアップ領域に記録された静止点確立時の前記データ領域の内容と前記ロールフォワードジャーナル領域に記録された更新後ジャーナルを用いて前記データ領域の内容を復旧するロールフォワード処理を行うステップ、を含んでいる。 According to the second file management method of the present invention, a) data provided in the file when there is a request for establishment of a quiesce point for the file from a program that performs business processing using the file stored in the external storage device A step of copying the contents of the area to a data backup area provided in the file; b) when there is a data update request for the data area from the program, an updated journal is stored in the roll forward journal area provided in the file. Recording and outputting actual data to the data area; c) contents of the data area at the time of establishment of a quiesce point recorded in the data backup area and an updated journal recorded in the roll forward journal area To restore the contents of the data area Performing a word processing includes.

本発明の第3のファイル管理方法は、a)外部記憶装置に格納されたファイルを用いて業務処理を遂行するプログラムから前記ファイルに対する静止点確立要求があったとき、前記ファイルに設けられたデータ領域の内容を前記ファイルに設けられたデータバックアップ領域へコピーするステップ、b)前記プログラムから前記データ領域に対するデータ更新要求があったとき、前記ファイルに設けられたロールバックジャーナル領域に更新前ジャーナルを記録するとともに前記ファイルに設けられたロールフォワードジャーナル領域に更新後ジャーナルを記録した後、前記ファイルのデータ領域に実際のデータを出力するステップ、c)前記ロールバックジャーナル領域に記録された更新前ジャーナルを用いて前記データ領域の内容を復旧するロールバック処理を行うステップ、d)前記データバックアップ領域に記録された静止点確立時の前記データ領域の内容と前記ロールフォワードジャーナル領域に記録された更新後ジャーナルを用いて前記データ領域の内容を復旧するロールフォワード処理を行うステップ、を含んでいる。 According to the third file management method of the present invention, a) data provided in the file when there is a request for establishment of a quiesce point for the file from a program that performs business processing using the file stored in the external storage device A step of copying the contents of the area to a data backup area provided in the file; b) when a data update request for the data area is received from the program, a pre-update journal is stored in the rollback journal area provided in the file. Recording and recording the updated journal in the roll forward journal area provided in the file, and then outputting the actual data to the data area of the file; c) the pre-update journal recorded in the rollback journal area Restore the contents of the data area using D) performing the rollback process, d) using the contents of the data area when the quiesce point recorded in the data backup area is established and the updated journal recorded in the rollforward journal area to Performing a roll forward process to recover.

本発明の第1のコンピュータシステムおよびファイル管理方法にあっては、1つのファイル内に、プログラムから出力されたデータを記憶するデータ領域と、更新前ジャーナルを記憶するロールバックジャーナル領域とが設けられており、プログラムによるデータ領域の更新時、更新前ジャーナルがロールバックジャーナル領域に記録される。このため、ファイルを別のコンピュータに移送すると、実際のデータだけでなく更新前ジャーナルも自動的に移送されることになり、ファイル移送先のコンピュータにおいて、ロールバックジャーナル領域に記録された更新前ジャーナルを用いてデータ領域の内容を復旧するロールバックが可能となる。 In the first computer system and file management method of the present invention, a data area for storing data output from a program and a rollback journal area for storing a pre-update journal are provided in one file. When the data area is updated by the program, the pre-update journal is recorded in the rollback journal area. Therefore, when a file is transferred to another computer, not only the actual data but also the pre-update journal is automatically transferred, and the pre-update journal recorded in the rollback journal area on the file transfer destination computer. It is possible to roll back to restore the contents of the data area using.

本発明の第2のコンピュータシステムおよびファイル管理方法にあっては、1つのファイル内に、プログラムから出力されたデータを記憶するデータ領域と、更新後ジャーナルを記憶するロールフォワードジャーナル領域と、データ領域の内容を保存するデータバックアップ領域とが設けられており、プログラムからの静止点確立要求時、データ領域の内容がデータバックアップ領域へコピーされ、また、プログラムによるデータ領域の更新時、更新後ジャーナルがロールフォワードジャーナル領域に記録される。このため、ファイルを別のコンピュータに移送すると、実際のデータだけでなく静止点確立時点のデータ領域の内容および更新後ジャーナルも自動的に移送されることになり、ファイル移送先のコンピュータにおいて、データバックアップ領域に記憶された静止点確立時点のデータ領域の内容およびロールフォワードジャーナル領域に記録された更新後ジャーナルを用いてデータ領域の内容を復旧するロールフォワードが可能となる。 In the second computer system and file management method of the present invention, in one file, a data area for storing data output from the program, a roll-forward journal area for storing the updated journal, and a data area A data backup area is provided to store the contents of the data area.When a quiesce point is requested from the program, the contents of the data area are copied to the data backup area. Recorded in the roll forward journal area. Therefore, when the file is transferred to another computer, not only the actual data but also the contents of the data area at the time of establishment of the quiesce point and the updated journal are automatically transferred. It is possible to perform roll forward in which the contents of the data area are restored using the contents of the data area stored in the backup area at the time of establishment of the quiesce point and the updated journal recorded in the roll forward journal area.

本発明の第3のコンピュータシステムおよびファイル管理方法にあっては、1つのファイル内に、プログラムから出力されたデータを記憶するデータ領域と、更新前ジャーナルを記憶するロールバックジャーナル領域と、更新後ジャーナルを記憶するロールフォワードジャーナル領域と、データ領域の内容を保存するデータバックアップ領域とが設けられており、プログラムからの静止点確立要求時、データ領域の内容がデータバックアップ領域へコピーされ、またプログラムによるデータ領域の更新時、更新前ジャーナルがロールバックジャーナル領域に記録されるとともに、更新後ジャーナルがロールフォワードジャーナル領域に記録される。このため、ファイルを別のコンピュータに移送すると、実際のデータだけでなく更新前ジャーナル、静止点確立時点のデータ領域の内容および更新後ジャーナルも自動的に移送されることになり、ファイル移送先のコンピュータにおいて、ロールバックジャーナル領域に記録された更新前ジャーナルを用いてデータ領域の内容を復旧するロールバックが可能となるとともに、データバックアップ領域に記憶された静止点確立時点のデータ領域の内容およびロールフォワードジャーナル領域に記録された更新後ジャーナルを用いてデータ領域の内容を復旧するロールフォワードが可能となる。 In the third computer system and the file management method of the present invention, in one file, a data area for storing data output from the program, a rollback journal area for storing a pre-update journal, and a post-update A roll-forward journal area for storing journals and a data backup area for saving the contents of the data area are provided. When a program establishes a quiesce point, the contents of the data area are copied to the data backup area. When the data area is updated, the pre-update journal is recorded in the rollback journal area and the post-update journal is recorded in the rollforward journal area. Therefore, when a file is transferred to another computer, not only the actual data but also the journal before update, the contents of the data area at the time of establishment of the quiesce point and the journal after update are automatically transferred. In the computer, it is possible to perform rollback to restore the contents of the data area using the pre-update journal recorded in the rollback journal area, and the contents and roll of the data area at the time of establishment of the quiesce point stored in the data backup area Roll-forward that restores the contents of the data area using the updated journal recorded in the forward journal area becomes possible.

このように本発明によれば、実際のデータを記録するデータ領域以外にジャーナルを記録する領域も同じファイル内に存在するため、ファイルが作成されたコンピュータ以外へ移動された場合でもロールバックやロールフォワードによるファイル復旧がそのファイル内の情報だけで行うことができる。 As described above, according to the present invention, an area for recording a journal is also present in the same file in addition to a data area for recording actual data. Therefore, even when the file is moved to other than the computer on which the file is created, rollback and roll File recovery by forward can be performed only with the information in the file.

図1を参照すると、本発明を適用したコンピュータシステムの一例は、CPUおよび主記憶を含んで構成される処理装置1と、外部記憶装置たとえば磁気ディスク装置2と、両者を接続する信号線3とで構成される。磁気ディスク装置2にはファイル4が設けられており、処理装置1には、ファイル4を参照、更新して所定の業務処理を遂行するプログラム5と、このプログラム5とファイル4との間に介在するファイル管理部6とが設けられている。 Referring to FIG. 1, an example of a computer system to which the present invention is applied includes a processing device 1 including a CPU and a main memory, an external storage device such as a magnetic disk device 2, and a signal line 3 connecting the two. Consists of. The magnetic disk device 2 is provided with a file 4. The processing device 1 refers to and updates the file 4 to execute a predetermined business process, and the program 5 is interposed between the program 5 and the file 4. The file management unit 6 is provided.

ファイル4は、データ領域41、ロールバックジャーナル領域42、ロールフォワードジャーナル領域43、データバックアップ領域44およびジャーナル管理情報領域45から構成される。ファイル4は、例えば直編成ファイルを使用することができるが、他の編成法のファイルであっても良い。また、各領域41〜45は、例えば、ファイル4を構成するレコード群の一部をそれぞれ割り当てることで実現される。 The file 4 includes a data area 41, a rollback journal area 42, a roll forward journal area 43, a data backup area 44, and a journal management information area 45. As the file 4, for example, a direct organization file can be used, but a file of another organization method may be used. Moreover, each area | region 41-45 is implement | achieved by allocating a part of record group which comprises the file 4, for example.

データ領域41は、プログラム5から出力された実際のデータを記憶する領域であり、図9におけるデータファイルDFに相当する。 The data area 41 is an area for storing actual data output from the program 5, and corresponds to the data file DF in FIG.

ロールバックジャーナル領域42は、更新前ジャーナルを記憶する領域であり、図9における更新前ジャーナルファイルBJFに相当する。 The rollback journal area 42 is an area for storing a pre-update journal, and corresponds to the pre-update journal file BJF in FIG.

ロールフォワードジャーナル領域43は、更新後ジャーナルを記憶する領域であり、図10における更新後ジャーナルファイルFJFに相当する。 The roll forward journal area 43 is an area for storing an updated journal, and corresponds to the updated journal file FJF in FIG.

データバックアップ領域44は、静止点(データ復旧のポイントとなるタイミング)を確立するためにデータ領域41の内容を複写する領域であり、図10におけるセーブファイルSFに相当する。 The data backup area 44 is an area for copying the contents of the data area 41 in order to establish a quiesce point (timing for data recovery), and corresponds to the save file SF in FIG.

ジャーナル管理情報領域45は、ロールバックジャーナル領域42およびロールフォワードジャーナル領域43に出力されたジャーナルの管理情報を記憶する領域である。管理情報としては、ロールバックジャーナル領域42における次に更新前ジャーナルを出力すべき位置、ロールフォワードジャーナル領域43における次に更新後ジャーナルを出力すべき位置、静止点確立以降に出力されたジャーナルを特定する情報などがある。なお、これらの管理情報を領域42、43、44に分散して格納するよう構成し、領域45を省略することも可能である。 The journal management information area 45 is an area for storing journal management information output to the rollback journal area 42 and the roll forward journal area 43. As management information, the position where the next pre-update journal is to be output in the rollback journal area 42, the position where the post-update journal is to be output next in the roll forward journal area 43, and the journal output after establishment of the quiesce point are specified. There is information to do. The management information may be stored in the areas 42, 43, 44 in a distributed manner, and the area 45 may be omitted.

このようにファイル4は、従来のデータファイルDF、更新前ジャーナルファイルBJF、更新後ジャーナルファイルFJFおよびセーブファイルSFを1つのファイルとして実現したものである。 As described above, the file 4 is obtained by realizing the conventional data file DF, the pre-update journal file BJF, the post-update journal file FJF, and the save file SF as one file.

ファイル管理部6は、アクセス管理手段61、ジャーナル出力手段62、データ出力手段63、データ退避手段64およびデータ復旧手段65を含んで構成される。 The file management unit 6 includes an access management unit 61, a journal output unit 62, a data output unit 63, a data save unit 64, and a data recovery unit 65.

データ出力手段63は、プログラム5からファイル4に対して出力されたデータをデータ領域41に出力する処理を行う。 The data output means 63 performs processing for outputting data output from the program 5 to the file 4 to the data area 41.

ジャーナル出力手段62は、プログラム5によるファイル4のデータ領域41の更新時、更新前ジャーナルをロールバックジャーナル領域42に記録し、更新後ジャーナルをロールフォワードジャーナル領域43に記録する処理を行う。更新前ジャーナルおよび更新後ジャーナルを各領域42、43に記録する際には、ジャーナル管理情報領域45を参照して次に記録すべき位置の情報を取得し、記録後にジャーナル管理情報を更新しておく。 When the program 5 updates the data area 41 of the file 4, the journal output unit 62 records the pre-update journal in the rollback journal area 42 and records the post-update journal in the roll forward journal area 43. When recording the pre-update journal and post-update journal in each of the areas 42 and 43, the journal management information area 45 is referred to obtain information on the position to be recorded next, and the journal management information is updated after recording. deep.

アクセス管理手段61は、プログラム5によるファイル4の更新時、先ずジャーナル出力手段62を呼び出して更新前ジャーナルおよび更新後ジャーナルをロールバックジャーナル領域42およびロールフォワードジャーナル領域43へ出力し、次にデータ出力手段63を呼び出して実際のデータをデータ領域41へ出力する処理を行う。また、アクセス管理手段61は、プログラム5からファイル4への参照要求時、データ領域41のデータを読み出してプログラム5に返却する処理を行う。 When the file 4 is updated by the program 5, the access management means 61 first calls the journal output means 62 to output the pre-update journal and post-update journal to the rollback journal area 42 and roll-forward journal area 43, and then outputs the data. The means 63 is called to perform processing for outputting actual data to the data area 41. Further, the access management means 61 performs a process of reading the data in the data area 41 and returning it to the program 5 when a reference request from the program 5 to the file 4 is made.

データ退避手段64は、プログラム5からのファイル4の静止点確立要求時、データ領域41の内容をデータバックアップ領域44へコピーし、静止点確立前のジャーナルと静止点確立後のジャーナルとをロールフォワードジャーナル領域43上で区別できるように、例えば静止点確立時直前のジャーナルの位置情報をジャーナル管理情報領域45へ記録する処理を行う。 The data saving unit 64 copies the contents of the data area 41 to the data backup area 44 when the program 5 requests the establishment of the quiesce point of the file 4, and rolls forward the journal before the quiesce point establishment and the journal after the quiesce point establishment. In order to be able to distinguish on the journal area 43, for example, a process of recording the position information of the journal immediately before the establishment of the quiesce point in the journal management information area 45 is performed.

データ復旧手段65は、ファイル4のデータ領域41を特定の状態まで復旧する処理を行う。具体的には、ロールバックによる復旧処理では、データ領域41の内容をロールバックジャーナル領域42の更新前ジャーナルを用いて、更新前の状態に復旧する処理を行う。また、ロールフォワードによる復旧処理では、ジャーナル管理情報領域45で管理されている静止点情報に基づいてデータバックアップ領域44に退避されているデータをデータ領域41に復元し且つロールフォワードジャーナル領域43に記憶された更新後ジャーナルを用いてデータ領域を障害前の最新状態に復旧する処理を行う。 The data recovery means 65 performs processing for recovering the data area 41 of the file 4 to a specific state. Specifically, in the recovery process by rollback, a process of recovering the contents of the data area 41 to the state before update using the journal before update in the rollback journal area 42 is performed. In the recovery process by roll forward, the data saved in the data backup area 44 is restored to the data area 41 and stored in the roll forward journal area 43 based on the quiesce point information managed in the journal management information area 45. The data area is restored to the latest state before the failure using the updated journal.

上述したアクセス管理手段61、ジャーナル出力手段62、データ出力手段63、データ退避手段64およびデータ復旧手段65は、処理装置1を構成するCPUとファイル管理プログラムとで実現することができる。ファイル管理プログラムは、半導体メモリや磁気ディスク等のコンピュータ可読記録媒体に記録されて提供される。記録媒体に記録されたファイル管理プログラムは、処理装置1を構成するCPUによって読み取られ、そのCPUの動作を制御することにより、そのCPU上にアクセス管理手段61、ジャーナル出力手段62、データ出力手段63、データ退避手段64およびデータ復旧手段65を実現し、また本発明にかかるファイル管理方法の各手順をCPUに実行させる。 The access management means 61, journal output means 62, data output means 63, data save means 64, and data recovery means 65 described above can be realized by a CPU and a file management program that constitute the processing apparatus 1. The file management program is provided by being recorded on a computer-readable recording medium such as a semiconductor memory or a magnetic disk. The file management program recorded on the recording medium is read by the CPU that constitutes the processing apparatus 1, and the operation of the CPU is controlled so that the access management means 61, the journal output means 62, and the data output means 63 on the CPU. The data saving unit 64 and the data recovery unit 65 are realized, and each procedure of the file management method according to the present invention is executed by the CPU.

次に本実施の形態にかかるコンピュータシステムにおけるファイル管理動作について説明する。 Next, a file management operation in the computer system according to the present embodiment will be described.

図2はプログラム5からファイル4に対する静止点確立要求が出された際のファイル管理部6の処理の流れを示すフローチャートである。ファイル管理部6のデータ退避手段64は、プログラム5からファイル4に対する静止点確立要求を受信すると(ステップS1)、ファイル4のデータ領域41の内容をデータバックアップ領域44にコピーし(ステップS2)、静止点確立時点においてロールフォワードジャーナル領域43に最後に記録されているジャーナルを特定する情報を静止点に関する情報としてジャーナル管理情報領域45に記録する(ステップS3)。 FIG. 2 is a flowchart showing a processing flow of the file management unit 6 when a request for establishing a quiesce point for the file 4 is issued from the program 5. When the data saving unit 64 of the file management unit 6 receives a request for establishing a quiesce point for the file 4 from the program 5 (step S1), the contents of the data area 41 of the file 4 are copied to the data backup area 44 (step S2). Information for identifying the journal recorded last in the roll forward journal area 43 at the time of establishment of the quiesce point is recorded in the journal management information area 45 as information relating to the quiesce point (step S3).

例えば、図3に示すように、データ領域41に、データa、データb、データcの3つのデータが記録されている時点T0で、静止点確立要求が出されると、データバックアップ領域44にデータa〜cのコピーが生成される。 For example, as shown in FIG. 3, when a static point establishment request is issued at time T0 when three data of data a, data b, and data c are recorded in the data area 41, data is stored in the data backup area 44. A copy of ac is generated.

図4はプログラム5からファイル4に対するデータ更新要求が出力された際のファイル管理部6の処理の流れを示すフローチャートである。ファイル管理部6のアクセス管理手段61は、プログラム5からファイル4に対するデータ更新要求を受信すると(ステップS11)、ジャーナル出力手段62を呼び出し、このジャーナル出力手段62によって、更新前ジャーナルをロールバックジャーナル領域42に出力するとともに(ステップS12)。更新後ジャーナルをロールフォワードジャーナル領域43に出力する(ステップS13)。そして、各ジャーナル領域42、43へのジャーナル出力手段62のジャーナル出力処理が完了すると、アクセス管理手段61はデータ出力手段63を呼び出し、このデータ出力手段63によって、データ領域41へデータを出力する(ステップS14)。 FIG. 4 is a flowchart showing a processing flow of the file management unit 6 when a data update request for the file 4 is output from the program 5. When the access management unit 61 of the file management unit 6 receives a data update request for the file 4 from the program 5 (step S11), the access management unit 61 calls the journal output unit 62, and the journal output unit 62 converts the pre-update journal into the rollback journal area. (Step S12). The updated journal is output to the roll forward journal area 43 (step S13). When the journal output process of the journal output means 62 to the journal areas 42 and 43 is completed, the access management means 61 calls the data output means 63 and outputs data to the data area 41 by the data output means 63 ( Step S14).

例えば、図3に示すように、静止点である時点T0の後の時点T1において、プログラム5からデータaをデータa’に更新する要求が出されると、ファイル管理部6は、データaを更新前ジャーナルとしてロールバックジャーナル領域42に出力するとともに、データa’を更新後ジャーナルとしてロールフォワードジャーナル領域43へ出力し、データ領域41のデータaをデータa’に書き換える。同様に、後の時点T2において、プログラム5からデータbをデータb’に更新する要求が出されると、ファイル管理部6は、データbを更新前ジャーナルとしてロールバックジャーナル領域42に出力するとともに、データb’を更新後ジャーナルとしてロールフォワードジャーナル領域43へ出力し、データ領域41のデータbをデータb’に書き換える。 For example, as shown in FIG. 3, when a request for updating the data a to the data a ′ is issued from the program 5 at the time T1 after the time T0 that is a quiescent point, the file management unit 6 updates the data a. In addition to outputting to the rollback journal area 42 as the previous journal, the data a ′ is output to the roll forward journal area 43 as the updated journal, and the data a in the data area 41 is rewritten to the data a ′. Similarly, when a request for updating data b to data b ′ is issued from the program 5 at a later time T2, the file management unit 6 outputs the data b as a pre-update journal to the rollback journal area 42, and Data b ′ is output as an updated journal to the roll forward journal area 43, and data b in the data area 41 is rewritten to data b ′.

このような状態にあるファイル4をデータ移行のために別のコンピュータへ移行した状態を図5に示す。図5において、1’は移行先の別の処理装置、2’は移行先の処理装置1’に接続された磁気ディスク装置である。この磁気ディスク装置2’に格納されたファイル4は図1の磁気ディスク装置2から移されてきたものである。ファイル4は、実データを記録するデータ領域41以外に、ロールバックジャーナル領域42、ロールフォワードジャーナル領域43、データバックアップ領域44およびジャーナル管理情報領域45を含んでいるため、ファイル4を移行するだけで、移行先の処理装置1’においてロールバック、ロールフォワードによるファイル復旧が可能となる。 FIG. 5 shows a state in which the file 4 in such a state is transferred to another computer for data transfer. In FIG. 5, reference numeral 1 'denotes another migration destination processing apparatus, and 2' denotes a magnetic disk device connected to the migration destination processing apparatus 1 '. The file 4 stored in the magnetic disk device 2 'has been transferred from the magnetic disk device 2 of FIG. The file 4 includes a rollback journal area 42, a roll forward journal area 43, a data backup area 44, and a journal management information area 45 in addition to the data area 41 for recording actual data. In the migration destination processing apparatus 1 ′, file recovery by rollback and rollforward becomes possible.

移行先の処理装置1’におけるロールバックによるファイル復旧の処理の流れを図6に示す。ファイル管理部6のデータ復旧手段65は、オペレータ等からファイル4に対するロールバック要求を受けると、ファイル4のロールバックジャーナル領域42から更新前ジャーナルを1つ読み出す(ステップS21)。読み出しは、ロールバックジャーナル領域42に出力された順と逆順に行う。次に、読み出した更新前ジャーナルの内容をデータ領域41に書き戻す(ステップS23)。本実施の形態では、この処理をロールバックジャーナル領域42に記録されている全ての更新前ジャーナルについて繰り返し、ロールバックジャーナル領域42から読み出す更新前ジャーナルが無くなったとき(ステップS22でYES)、処理を終える。なお、他の実施の形態として、ロールバックジャーナル領域42に記録されている更新前ジャーナルのうち、オペレータから指定された更新前ジャーナルまでロールバックを行った時点で、処理を終えるようにしても良い。 FIG. 6 shows the flow of file restoration processing by rollback in the migration destination processing apparatus 1 ′. When receiving a rollback request for the file 4 from an operator or the like, the data recovery means 65 of the file management unit 6 reads one pre-update journal from the rollback journal area 42 of the file 4 (step S21). Reading is performed in the reverse order of the output order to the rollback journal area 42. Next, the contents of the read pre-update journal are written back to the data area 41 (step S23). In the present embodiment, this process is repeated for all the pre-update journals recorded in the rollback journal area 42, and when there is no pre-update journal read from the rollback journal area 42 (YES in step S22), the process is performed. Finish. As another embodiment, the processing may be finished when the pre-update journal designated by the operator among the pre-update journals recorded in the roll-back journal area 42 is rolled back. .

例えば、図3に示したように、ロールバックジャーナル領域42に、a、bの更新前ジャーナルが記録されている場合、データ領域41のデータb’を更新前ジャーナルbを用いてデータbに書き戻し、次に、データa’を更新前ジャーナルaを用いてデータaに書き戻し、データ領域41の内容を更新前の状態(データa、b、c)に復旧する。 For example, as shown in FIG. 3, when the a and b pre-update journals are recorded in the rollback journal area 42, the data b 'in the data area 41 is written to the data b using the pre-update journal b. Next, the data a ′ is written back to the data a using the pre-update journal a, and the contents of the data area 41 are restored to the pre-update state (data a, b, c).

移行先の処理装置1’において、新たな静止点を確立する前に、ロールフォワードによるファイル復旧が必要となった場合の処理の流れを図7に示す。このようなロールフォワードによるファイル復旧が必要となる状況としては、磁気ディスク装置2’の磁気ヘッドの故障によりデータ領域41への読み書きが不能になった場合などがある。この場合、本実施の形態では、データ領域41以外の領域が正常に読み書きできればロールバックによるファイル復旧が可能である。 FIG. 7 shows a flow of processing when the transfer destination processing apparatus 1 ′ needs to perform file restoration by roll forward before establishing a new quiesce point. As a situation where such a file recovery by roll forward is necessary, there is a case where reading / writing to the data area 41 becomes impossible due to a failure of the magnetic head of the magnetic disk device 2 '. In this case, in the present embodiment, if an area other than the data area 41 can be read and written normally, file recovery by rollback is possible.

先ず、ファイル4のデータ領域41以外の部分を別の正常な磁気ディスク装置にコピーし、別の正常な磁気ディスク装置上に、データ領域41以外はコピー元のファイル4と全く同じファイルを生成する(ステップS31)。以降の処理は、このコピー先のファイル4を用いて実行される。 First, a portion other than the data area 41 of the file 4 is copied to another normal magnetic disk device, and the same file as the copy source file 4 except for the data area 41 is generated on another normal magnetic disk device. (Step S31). Subsequent processing is executed using this copy destination file 4.

先ず、ファイル管理部6のデータ復旧手段65は、オペレータ等からファイル4に対するロールフォワード要求を受けると、ファイル4のジャーナル管理情報領域45に静止点の情報があることを確認して、データバックアップ領域44の内容をデータ領域41にコピーする(ステップS32)。次に、ファイル4のロールフォワードジャーナル領域43から静止点確立時以降の更新後ジャーナルを1つ読み出す(ステップS33)。読み出しは、ロールフォワードジャーナル領域43に出力された順で行う。次に、読み出した更新後ジャーナルでデータ領域41を更新する(ステップS35)。この処理をロールフォワードジャーナル領域43に記録されている静止点確立時以降の全ての更新後ジャーナルについて繰り返し、ロールフォワードジャーナル領域43から読み出す更新後ジャーナルが無くなったとき(ステップS34でYES)、処理を終える。 First, when the data recovery means 65 of the file management unit 6 receives a roll-forward request for the file 4 from an operator or the like, it confirms that there is still point information in the journal management information area 45 of the file 4, and the data backup area The contents of 44 are copied to the data area 41 (step S32). Next, one updated journal after the establishment of the quiesce point is read from the roll forward journal area 43 of the file 4 (step S33). Reading is performed in the order of output to the roll forward journal area 43. Next, the data area 41 is updated with the read updated journal (step S35). This process is repeated for all the updated journals recorded in the roll forward journal area 43 since the quiesce point is established, and when there are no updated journals to be read from the roll forward journal area 43 (YES in step S34), the process is performed. Finish.

例えば、図3に示したように、データバックアップ領域44にデータa、b、cが退避されており、ロールフォワードジャーナル領域43に、a’、b’の更新後ジャーナルが記録されている場合、データバックアップ領域44の内容をデータ領域41にコピーして、データ領域41の内容を静止点の状態(データa、b、c)に復元する。次に、データ領域41のデータaを更新後ジャーナルa’を用いてデータa’に更新し、次に、データbを更新前ジャーナルb’を用いてデータb’に書き戻し、データ領域41の内容を障害前の状態(データa’、b’、c)に復元する。 For example, as shown in FIG. 3, when the data a, b, c are saved in the data backup area 44 and the updated journals a ′, b ′ are recorded in the roll forward journal area 43, The contents of the data backup area 44 are copied to the data area 41, and the contents of the data area 41 are restored to the stationary point state (data a, b, c). Next, the data a in the data area 41 is updated to the data a ′ using the post-update journal a ′, and then the data b is written back to the data b ′ using the pre-update journal b ′. The contents are restored to the state before the failure (data a ′, b ′, c).

以上の実施の形態では、ロールバックおよびロールフォワードの双方をサポートする構成としたが、何れか一方のみサポートする構成としても良い。ロールバックだけをサポートする実施の形態のブロック図を図8に示す。図1と比較して、ファイル4内のロールフォワードジャーナル領域43およびデータバックアップ領域44が存在せず、またファイル管理部6内のデータ退避手段64が省略されている。 In the above embodiment, it is configured to support both rollback and rollforward, but may be configured to support only one of them. A block diagram of an embodiment that supports only rollback is shown in FIG. Compared with FIG. 1, the roll forward journal area 43 and the data backup area 44 in the file 4 do not exist, and the data saving means 64 in the file management unit 6 is omitted.

本発明の実施の形態のブロック図である。It is a block diagram of an embodiment of the invention. 本発明の実施の形態においてプログラムからファイルに対する静止点確立要求が出された際のファイル管理部の処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of the file management part when the still point establishment request | requirement with respect to a file is issued from the program in embodiment of this invention. 本発明の実施の形態の動作説明図である。It is operation | movement explanatory drawing of embodiment of this invention. 本発明の実施の形態においてプログラムからファイルに対するデータ更新要求が出力された際のファイル管理部の処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of the file management part when the data update request with respect to a file is output from the program in embodiment of this invention. 本発明の実施の形態においてファイルをデータ移行のために別のコンピュータへ移行した状態を示すブロック図である。It is a block diagram which shows the state which transferred the file to another computer for data transfer in embodiment of this invention. 本発明の実施の形態において移行先の処理装置におけるロールバックによるファイル復旧処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the file recovery process by rollback in the processing apparatus of a transfer destination in embodiment of this invention. 本発明の実施の形態において移行先の処理装置におけるロールフォワードによるファイル復旧処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the file recovery process by the roll forward in the processing apparatus of a transfer destination in embodiment of this invention. 本発明の別の実施の形態のブロック図である。It is a block diagram of another embodiment of the present invention. ロールバックによる従来のファイル復旧処理の説明図である。It is explanatory drawing of the conventional file recovery process by rollback. ロールフォワードによる従来のファイル復旧処理の説明図である。It is explanatory drawing of the conventional file restoration process by roll forward.

符号の説明Explanation of symbols

1、1’…処理装置
2、2’…磁気ディスク装置
3…信号線
4…ファイル
5…プログラム
6…ファイル管理部
41…データ領域
42…ロールバックジャーナル領域
43…ロールフォワードジャーナル領域
44…データバックアップ領域
45…ジャーナル管理情報領域
61…アクセス管理手段
62…ジャーナル出力手段
63…データ出力手段
64…データ退避手段
65…データ復旧手段
DESCRIPTION OF SYMBOLS 1, 1 '... Processing apparatus 2, 2' ... Magnetic disk unit 3 ... Signal line 4 ... File 5 ... Program 6 ... File management part 41 ... Data area 42 ... Roll-back journal area 43 ... Roll forward journal area 44 ... Data backup Area 45 ... Journal management information area 61 ... Access management means 62 ... Journal output means 63 ... Data output means 64 ... Data save means 65 ... Data recovery means

Claims (9)

ファイルを記憶する外部記憶装置と、前記ファイルを用いて業務処理を遂行するプログラムおよび前記ファイルを管理するファイル管理部を有する処理装置とを備えたコンピュータシステムにおいて、
前記ファイルは、前記プログラムから出力されたデータを記憶するデータ領域と、更新前ジャーナルを記憶するロールバックジャーナル領域とを含んで構成され、
前記ファイル管理部は、前記プログラムから出力されたデータを前記データ領域に出力するデータ出力手段と、前記プログラムによる前記データ領域の更新時、更新前ジャーナルを前記ロールバックジャーナル領域に記録するジャーナル出力手段と、前記プログラムによる前記データ領域の更新時、前記ジャーナル出力手段を呼び出して更新前ジャーナルを前記ロールバックジャーナル領域へ出力した後、前記データ出力手段を呼び出して実際のデータを前記データ領域へ出力する処理を行うアクセス管理手段と、前記ロールバックジャーナル領域に記録された更新前ジャーナルを用いて前記データ領域の内容を復旧するロールバック処理を行うデータ復旧手段とを有することを特徴とするコンピュータシステム。
In a computer system comprising an external storage device for storing a file, a program for performing business processing using the file, and a processing device having a file management unit for managing the file,
The file includes a data area for storing data output from the program, and a rollback journal area for storing a pre-update journal,
The file management unit includes data output means for outputting data output from the program to the data area, and journal output means for recording a pre-update journal in the rollback journal area when the data area is updated by the program. When the data area is updated by the program, the journal output means is called to output the pre-update journal to the rollback journal area, and then the data output means is called to output actual data to the data area. A computer system comprising: access management means for performing processing; and data recovery means for performing rollback processing for recovering the contents of the data area using a pre-update journal recorded in the rollback journal area.
ファイルを記憶する外部記憶装置と、前記ファイルを用いて業務処理を遂行するプログラムおよび前記ファイルを管理するファイル管理部を有する処理装置とを備えたコンピュータシステムにおいて、
前記ファイルは、前記プログラムから出力されたデータを記憶するデータ領域と、更新後ジャーナルを記憶するロールフォワードジャーナル領域と、前記データ領域の内容を保存するデータバックアップ領域とを含んで構成され、
前記ファイル管理部は、前記プログラムから出力されたデータを前記データ領域に出力するデータ出力手段と、前記プログラムによる前記データ領域の更新時、更新後ジャーナルを前記ロールフォワードジャーナル領域に記録するジャーナル出力手段と、前記プログラムによる前記データ領域の更新時、前記ジャーナル出力手段を呼び出して更新後ジャーナルを前記ロールフォワードジャーナル領域へ出力した後、前記データ出力手段を呼び出して実際のデータを前記データ領域へ出力する処理を行うアクセス管理手段と、前記プログラムからの静止点確立要求時、前記データ領域の内容を前記データバックアップ領域へコピーするデータ退避手段と、前記データバックアップ領域に記録された静止点確立時の前記データ領域の内容と前記ロールフォワードジャーナル領域に記録された更新後ジャーナルを用いて前記データ領域の内容を復旧するロールフォワード処理を行うデータ復旧手段とを有することを特徴とするコンピュータシステム。
In a computer system comprising an external storage device for storing a file, a program for performing business processing using the file, and a processing device having a file management unit for managing the file,
The file includes a data area that stores data output from the program, a roll-forward journal area that stores an updated journal, and a data backup area that stores the contents of the data area.
The file management unit includes data output means for outputting data output from the program to the data area, and journal output means for recording an updated journal in the roll-forward journal area when the data area is updated by the program. When the data area is updated by the program, the journal output means is called to output the updated journal to the roll forward journal area, and then the data output means is called to output actual data to the data area. An access management means for processing; a data saving means for copying the contents of the data area to the data backup area at the time of a quiesce point establishment request from the program; and the quiesce point at the time of establishment of a quiesce point recorded in the data backup area The contents of the data area Computer system; and a data recovery unit for performing rollforward process to recover the contents of the data area using the recorded updated journal Le forward journal area.
ファイルを記憶する外部記憶装置と、前記ファイルを用いて業務処理を遂行するプログラムおよび前記ファイルを管理するファイル管理部を有する処理装置とを備えたコンピュータシステムにおいて、
前記ファイルは、前記プログラムから出力されたデータを記憶するデータ領域と、更新前ジャーナルを記憶するロールバックジャーナル領域と、更新後ジャーナルを記憶するロールフォワードジャーナル領域と、前記データ領域の内容を保存するデータバックアップ領域とを含んで構成され、
前記ファイル管理部は、前記プログラムから出力されたデータを前記データ領域に出力するデータ出力手段と、前記プログラムによる前記データ領域の更新時、更新前ジャーナルを前記ロールバックジャーナル領域に記録し、更新後ジャーナルを前記ロールフォワードジャーナル領域に記録するジャーナル出力手段と、前記プログラムによる前記データ領域の更新時、前記ジャーナル出力手段を呼び出して更新前ジャーナルおよび更新後ジャーナルを前記ロールバックジャーナル領域および前記ロールフォワードジャーナル領域へ出力した後、前記データ出力手段を呼び出して実際のデータを前記データ領域へ出力する処理を行うアクセス管理手段と、前記プログラムからの静止点確立要求時、前記データ領域の内容を前記データバックアップ領域へコピーするデータ退避手段と、前記ロールバックジャーナル領域に記録された更新前ジャーナルを用いて前記データ領域の内容を復旧するロールバック処理および前記データバックアップ領域に記録された静止点確立時の前記データ領域の内容と前記ロールフォワードジャーナル領域に記録された更新後ジャーナルを用いて前記データ領域の内容を復旧するロールフォワード処理を行うデータ復旧手段とを有することを特徴とするコンピュータシステム。
In a computer system comprising an external storage device for storing a file, a program for performing business processing using the file, and a processing device having a file management unit for managing the file,
The file stores a data area for storing data output from the program, a rollback journal area for storing a pre-update journal, a roll-forward journal area for storing a post-update journal, and the contents of the data area. And data backup area,
The file management unit records data output from the program to the data area, and records the pre-update journal in the rollback journal area when the data area is updated by the program. Journal output means for recording a journal in the roll forward journal area, and when the data area is updated by the program, the journal output means is called to make the journal before update and the journal after update the roll back journal area and the roll forward journal. After output to the area, an access management means that performs processing to call the data output means and output actual data to the data area, and at the time of a quiesce point establishment request from the program, the contents of the data area are backed up. Data saving means for copying to the area, rollback processing for restoring the contents of the data area using the pre-update journal recorded in the rollback journal area, and the quiesce point at the time of establishment of the quiesce point recorded in the data backup area A computer system comprising: data recovery means for performing roll forward processing for recovering the contents of the data area by using the contents of the data area and the updated journal recorded in the roll forward journal area.
a)外部記憶装置に格納されたファイルを用いて業務処理を遂行するプログラムから前記ファイルに対するデータ更新要求があったとき、前記ファイルに設けられたロールバックジャーナル領域に更新前ジャーナルを記録した後、前記ファイルのデータ領域に実際のデータを出力するステップ、
b)前記ロールバックジャーナル領域に記録された更新前ジャーナルを用いて前記データ領域の内容を復旧するロールバック処理を行うステップ、
を含むことを特徴とするファイル管理方法。
a) When there is a data update request for the file from a program that performs business processing using the file stored in the external storage device, after recording the pre-update journal in the rollback journal area provided in the file, Outputting actual data to the data area of the file;
b) performing a rollback process for recovering the contents of the data area using the pre-update journal recorded in the rollback journal area;
A file management method comprising:
a)外部記憶装置に格納されたファイルを用いて業務処理を遂行するプログラムから前記ファイルに対する静止点確立要求があったとき、前記ファイルに設けられたデータ領域の内容を前記ファイルに設けられたデータバックアップ領域へコピーするステップ、
b)前記プログラムから前記データ領域に対するデータ更新要求があったとき、前記ファイルに設けられたロールフォワードジャーナル領域に更新後ジャーナルを記録するとともに、前記データ領域に実際のデータを出力するステップ、
c)前記データバックアップ領域に記録された静止点確立時の前記データ領域の内容と前記ロールフォワードジャーナル領域に記録された更新後ジャーナルを用いて前記データ領域の内容を復旧するロールフォワード処理を行うステップ、
を含むことを特徴とするファイル管理方法。
a) When there is a quiesce point establishment request for the file from a program that performs business processing using the file stored in the external storage device, the contents of the data area provided in the file are the data provided in the file. Copying to the backup area,
b) a step of recording the updated journal in the roll forward journal area provided in the file and outputting the actual data to the data area when there is a data update request for the data area from the program;
c) A step of performing roll forward processing for restoring the contents of the data area using the contents of the data area at the time of establishment of the quiesce point recorded in the data backup area and the updated journal recorded in the roll forward journal area ,
A file management method comprising:
a)外部記憶装置に格納されたファイルを用いて業務処理を遂行するプログラムから前記ファイルに対する静止点確立要求があったとき、前記ファイルに設けられたデータ領域の内容を前記ファイルに設けられたデータバックアップ領域へコピーするステップ、
b)前記プログラムから前記データ領域に対するデータ更新要求があったとき、前記ファイルに設けられたロールバックジャーナル領域に更新前ジャーナルを記録するとともに前記ファイルに設けられたロールフォワードジャーナル領域に更新後ジャーナルを記録した後、前記ファイルのデータ領域に実際のデータを出力するステップ、
c)前記ロールバックジャーナル領域に記録された更新前ジャーナルを用いて前記データ領域の内容を復旧するロールバック処理を行うステップ、
d)前記データバックアップ領域に記録された静止点確立時の前記データ領域の内容と前記ロールフォワードジャーナル領域に記録された更新後ジャーナルを用いて前記データ領域の内容を復旧するロールフォワード処理を行うステップ、
を含むことを特徴とするファイル管理方法。
a) When there is a quiesce point establishment request for the file from a program that performs business processing using the file stored in the external storage device, the contents of the data area provided in the file are the data provided in the file. Copying to the backup area,
b) When there is a data update request for the data area from the program, the pre-update journal is recorded in the rollback journal area provided in the file, and the post-update journal is recorded in the roll forward journal area provided in the file. Outputting the actual data to the data area of the file after recording;
c) performing a rollback process for recovering the contents of the data area using the pre-update journal recorded in the rollback journal area;
d) performing a roll-forward process for restoring the contents of the data area using the contents of the data area at the time of establishment of the quiesce point recorded in the data backup area and the updated journal recorded in the roll-forward journal area ,
A file management method comprising:
コンピュータに、請求項4に記載するステップa、bを実行させるためのプログラム。   A program for causing a computer to execute steps a and b according to claim 4. コンピュータに、請求項5に記載するステップa、b、cを実行させるためのプログラム。   A program for causing a computer to execute steps a, b, and c according to claim 5. コンピュータに、請求項6に記載するステップa、b、c、dを実行させるためのプログラム。   The program for making a computer perform step a, b, c, d described in Claim 6.
JP2003274410A 2003-07-15 2003-07-15 Computer system and file management method Pending JP2005038176A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003274410A JP2005038176A (en) 2003-07-15 2003-07-15 Computer system and file management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003274410A JP2005038176A (en) 2003-07-15 2003-07-15 Computer system and file management method

Publications (1)

Publication Number Publication Date
JP2005038176A true JP2005038176A (en) 2005-02-10

Family

ID=34211371

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003274410A Pending JP2005038176A (en) 2003-07-15 2003-07-15 Computer system and file management method

Country Status (1)

Country Link
JP (1) JP2005038176A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007226347A (en) * 2006-02-21 2007-09-06 Hitachi Ltd Computer system, management device for computer system, and data recovery management method
JP2010079526A (en) * 2008-09-25 2010-04-08 Hitachi Ltd Computer system and method for managing hierarchy of journal
JP2012505461A (en) * 2009-02-23 2012-03-01 株式会社日立製作所 Storage system and control method thereof
JP2012198918A (en) * 2005-06-24 2012-10-18 Syncsort Inc System and method for high performance enterprise data protection
JP2017514223A (en) * 2014-04-28 2017-06-01 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Method, system and computer program for maintaining source data in a repository
US10372546B2 (en) 2014-02-07 2019-08-06 International Business Machines Corporation Creating a restore copy from a copy of source data in a repository having source data at different point-in-times
US11169958B2 (en) 2014-02-07 2021-11-09 International Business Machines Corporation Using a repository having a full copy of source data and point-in-time information from point-in-time copies of the source data to restore the source data at different points-in-time
US11194667B2 (en) 2014-02-07 2021-12-07 International Business Machines Corporation Creating a restore copy from a copy of a full copy of source data in a repository that is at a different point-in-time than a restore point-in-time of a restore request

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012198918A (en) * 2005-06-24 2012-10-18 Syncsort Inc System and method for high performance enterprise data protection
JP2007226347A (en) * 2006-02-21 2007-09-06 Hitachi Ltd Computer system, management device for computer system, and data recovery management method
JP2010079526A (en) * 2008-09-25 2010-04-08 Hitachi Ltd Computer system and method for managing hierarchy of journal
JP2012505461A (en) * 2009-02-23 2012-03-01 株式会社日立製作所 Storage system and control method thereof
US8478727B2 (en) 2009-02-23 2013-07-02 Hitachi, Ltd. Storage system and control method for the same
US10372546B2 (en) 2014-02-07 2019-08-06 International Business Machines Corporation Creating a restore copy from a copy of source data in a repository having source data at different point-in-times
US11150994B2 (en) 2014-02-07 2021-10-19 International Business Machines Corporation Creating a restore copy from a copy of source data in a repository having source data at different point-in-times
US11169958B2 (en) 2014-02-07 2021-11-09 International Business Machines Corporation Using a repository having a full copy of source data and point-in-time information from point-in-time copies of the source data to restore the source data at different points-in-time
US11194667B2 (en) 2014-02-07 2021-12-07 International Business Machines Corporation Creating a restore copy from a copy of a full copy of source data in a repository that is at a different point-in-time than a restore point-in-time of a restore request
JP2017514223A (en) * 2014-04-28 2017-06-01 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Method, system and computer program for maintaining source data in a repository
US10387446B2 (en) 2014-04-28 2019-08-20 International Business Machines Corporation Merging multiple point-in-time copies into a merged point-in-time copy
US11630839B2 (en) 2014-04-28 2023-04-18 International Business Machines Corporation Merging multiple point-in-time copies into a merged point-in-time copy

Similar Documents

Publication Publication Date Title
US7107294B2 (en) Method and apparatus for interrupting updates to a database to provide read-only access
KR101085767B1 (en) Transaction consistent copy-on-write database
JP5021929B2 (en) Computer system, storage system, management computer, and backup management method
JP5991699B2 (en) Information processing apparatus, information processing system, backup method, and program
KR100710767B1 (en) Copy controller and method thereof
US20070185936A1 (en) Managing deletions in backup sets
JP4304194B2 (en) File system management apparatus and method
US7549031B2 (en) Method and apparatus for performing data backup
JP2006268139A (en) Data reproduction device, method and program and storing system
JP2005038176A (en) Computer system and file management method
JP5720366B2 (en) File management system and backup method
JP3042600B2 (en) Distributed file synchronization method
US20050262033A1 (en) Data recording apparatus, data recording method, program for implementing the method, and program recording medium
JP2007141183A (en) Storage controller and storage control method
CN109325005B (en) Data processing method and electronic equipment
JP4512386B2 (en) Backup system and method
US20130262804A1 (en) Data duplication system, data duplication method, and program thereof
JP2006235698A (en) Inter-storage data migration method
CN114442942B (en) Data migration method, system, equipment and storage medium
JP2001188690A (en) Computer system and checkpoint information preserving method
JPS63187347A (en) Data base file recovering system
JP2000207264A (en) Backup method and restoring method
JP4730330B2 (en) Database recovery method, database recovery device, and database recovery program
JP7007017B2 (en) Storage systems, control methods, and programs
JP2746102B2 (en) One point backup method of business data file in case of magnetic disk device failure