JPH04165545A - Data fault recovering system - Google Patents

Data fault recovering system

Info

Publication number
JPH04165545A
JPH04165545A JP2290847A JP29084790A JPH04165545A JP H04165545 A JPH04165545 A JP H04165545A JP 2290847 A JP2290847 A JP 2290847A JP 29084790 A JP29084790 A JP 29084790A JP H04165545 A JPH04165545 A JP H04165545A
Authority
JP
Japan
Prior art keywords
data
block number
physical block
block
updated
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
JP2290847A
Other languages
Japanese (ja)
Inventor
Yuuki Nakakamigawa
中上川 友樹
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2290847A priority Critical patent/JPH04165545A/en
Publication of JPH04165545A publication Critical patent/JPH04165545A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To improve the processing performance by duplicating and storing data to be updated and updated data in an updating object file, and executing the fault recovery processing by only utilizing selectively duplicated data. CONSTITUTION:Data to be updated and updated data are duplicated and stored on a secondary storage device 13a, and a storage position of those data to be updated and updated data is controlled by an old physical block number Q(x) and the present physical block number C(x). Therefore, in the case of executing a fault recovery processing, write of data to a different journal file is not executed, and by only utilizing selectively one of duplicated block data, the consistency of updating data is secured. In such a way, the fault recovery processing can be executed in a short time, and the processing performance can be improved.

Description

【発明の詳細な説明】 [発明の目的コ (産業上の利用分野) この発明は、データ処理装置におけるデータ障害回復方
式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Objective of the Invention (Field of Industrial Application) This invention relates to a data failure recovery method in a data processing device.

(従来の技術) 一般に、並行処理方式を用いたデータ処理装置における
障害回復(データリカバリ)処理においては、データ更
新プログラムが更新対象ファイルの更新前のブロック内
容をジャーナルファイルに採取し、その後に更新対象ブ
ロックの内容を所定の作業領域を利用して書き替えて更
新処理を完了させる。
(Prior art) In general, in failure recovery (data recovery) processing in a data processing device using a parallel processing method, a data update program collects the block contents before update of the file to be updated into a journal file, and then updates the block contents in a journal file. The contents of the target block are rewritten using a predetermined work area to complete the update process.

そして、一連の更新処理実行後に、プログラムは、コミ
ットメント命令を実行することによりそれらの更新を正
しいものとして認証するか、またはそれら更新を無効と
してロールパック処理によって一連の更新処理開始時点
にブロック内容を復旧する。
After executing a series of update processes, the program either authenticates the updates as correct by executing a commitment instruction, or disables the updates and updates the block contents at the start of the series of update processes using role pack processing. Recover.

すなわち、更新が正しいものとして認証された場合には
、更新対象ファイルは、コミットメント処理の下、作業
領域で更新された新たなブロック内容に更新され、一方
、それら更新が無効と認められた場合または更新処理中
に何等かのシステム障害が発生した場合には、更新対象
ファイルには、ロールパック処理によって、ジャーナル
ファイルに採取されたデータが再び書き戻される。
That is, if the update is certified as correct, the updated file is updated with the new block content updated in the work area under commitment processing, whereas if the update is recognized as invalid or If some kind of system failure occurs during update processing, the data collected in the journal file is written back to the update target file by roll pack processing.

並列処理を行うデータ処理装置では、このようなコミッ
トメント処理やロールパック処理による障害回復をおこ
なうことによって、更新データの整合性を保証する事が
可能となる。
In a data processing device that performs parallel processing, it is possible to guarantee the consistency of updated data by performing failure recovery using such commitment processing and roll pack processing.

しかしながら、従来のデータ処理装置では、それらコミ
ットメント処理やロールパック処理を行うためには、更
新対象ファイルとは別にジャーナルファイルを用意し、
更新するブロックをそのジャーナルファイルに対して更
新処理毎に書込むといった処理が必要とされるので、更
新処理が頻繁に発生するプログラム下では十分な処理性
能が得られなくなるという欠点がある。
However, in conventional data processing devices, in order to perform such commitment processing and roll pack processing, a journal file is prepared separately from the update target file.
Since it is necessary to write the block to be updated into the journal file for each update process, there is a drawback that sufficient processing performance cannot be obtained under a program where update processes occur frequently.

(発明が解決しようとする課題) 従来では、コミットメント処理やロールパック処理のよ
うな障害回復処理を行うためには、更新対象ファイルと
は別にジャーナルファイルを用意し、更新対象のブロッ
クを更新対象ファイルから読み出してジャーナルファイ
ルに書き込むといった処理を更新処理毎に実行しなけれ
ばならず、更新処理が頻繁に発生するプログラム下では
十分な処理性能が得られなくなる欠点がある。
(Problem to be Solved by the Invention) Conventionally, in order to perform failure recovery processing such as commitment processing or roll pack processing, a journal file is prepared separately from the update target file, and the update target block is linked to the update target file. Processing such as reading data from the journal file and writing it to a journal file must be executed for each update process, which has the disadvantage that sufficient processing performance cannot be obtained in programs where update processes frequently occur.

この発明はこのような点に鑑みてなされたもので、更新
対象ファイルに更新前データと更新後データを2重化し
て記憶することにより、それら2重化データの選択的な
利用のみによって障害回復処理を実行できるようにし、
処理性能を向上を図ることができるデータ障害回復方式
を提供することを目的とする。
This invention was made in view of these points. By duplicating and storing pre-update data and post-update data in an update target file, failure recovery can be achieved only by selectively using the duplicated data. enable processing to be performed,
The purpose of this invention is to provide a data failure recovery method that can improve processing performance.

[発明の構成] (課題を解決するための手段および作用)この発明によ
るデータ障害回復方式は、複数のブロックから構成され
るファイルを格納するための記憶装置を備えたデータ処
理装置において、前記各ブロックが前記記憶装置上に2
重化して記憶されるように、前記各ブロックを示す論理
ブロック番号毎にそのブロック更新前および更新後の物
理的記憶位置にそれぞれ対応する第1および第2の物理
ブロック番号を保持するブロック管理テーブルと、前記
ブロックを更新する際、前記ブロック管理テーブルを参
照して、前記第2物理ブロック番号をそれに対応する前
記第1物理ブロック番号以外の値に変更すると共に、そ
の変更された第2物理ブロック番号で示される物理的記
憶位置に更新後データを書き込む手段とを具備し、記憶
装置上に2重化されて記憶されたブロックの一方を利用
してデータ回復処理を実行することを特徴とする。
[Structure of the Invention] (Means and Effects for Solving the Problems) A data failure recovery method according to the present invention is provided in a data processing device equipped with a storage device for storing a file composed of a plurality of blocks. 2 blocks on the storage device
a block management table that holds, for each logical block number indicating each block, first and second physical block numbers corresponding to physical storage positions before and after update of the block, respectively, so as to be stored in a duplicated manner; When updating the block, refer to the block management table, change the second physical block number to a value other than the corresponding first physical block number, and update the changed second physical block. and means for writing updated data to a physical storage location indicated by a number, and is characterized in that one of the blocks stored in duplicate on the storage device is used to perform data recovery processing. .

このデータ障害回復方式においては、更新前データと更
新後データが記憶装置上に2重化して格納され、それら
更新前データと更新後データの記憶位置は第1物理ブロ
ック番号および第2物理ブロック番号によって管理され
ている。このため、コミットメント処理やロールパック
処理のような障害回復処理を行う場合においては、別の
ジャーナルファイルへのデータの書き込みを行う事なく
、単に2重化されたデータの一方を選択的に利用するこ
とによって、更新データの整合性を保証する事が可能と
なる。したがって、障害回復処理を短時間で実行できる
ようになるので、更新処理が頻繁に発生するプログラム
下においても、十分なデータ処理性能を得る事が可能と
なる。
In this data failure recovery method, pre-update data and post-update data are stored in duplicate on the storage device, and the storage locations of the pre-update data and post-update data are determined by the first physical block number and the second physical block number. managed by. Therefore, when performing disaster recovery processing such as commitment processing or roll pack processing, one of the duplicated data is simply used selectively without writing data to another journal file. This makes it possible to guarantee the consistency of updated data. Therefore, since failure recovery processing can be executed in a short time, it is possible to obtain sufficient data processing performance even under a program in which update processing frequently occurs.

(実施例) 以下、図面を参照して、この発明の詳細な説明する。(Example) Hereinafter, the present invention will be described in detail with reference to the drawings.

第1図はこの発明の一実施例に係わるデータ障害回復方
式を実現するためのデータ処理装置の構成が示されてい
る。
FIG. 1 shows the configuration of a data processing device for realizing a data failure recovery method according to an embodiment of the present invention.

このデータ処理装置は、いわゆる並行処理方式のコンピ
ュータシステムであり、その障害回復処理機能部は、図
示のように、データリカバリプログラム実行モジュール
11.データ更新プログラム実行モジュール12、およ
びファイルシステム13によって構成される。
This data processing device is a so-called parallel processing type computer system, and its failure recovery processing function section includes a data recovery program execution module 11. It is composed of a data update program execution module 12 and a file system 13.

データリカバリプログラム実行モジュール11は、ファ
イルシステムに設けられる管理テーブル132の論理ブ
ロック番号と物理ブロック番号とを管理してデータリカ
バリを行う。論理ブロック番号は更新対象ファイルを構
成する各ブロックに割り当てられたものであり、また物
理ブロック番号はその論理ブロック番号で指定されるブ
ロックの2次記憶装置13a上の実際の格納位置を示し
ている。
The data recovery program execution module 11 performs data recovery by managing logical block numbers and physical block numbers in a management table 132 provided in the file system. The logical block number is assigned to each block constituting the file to be updated, and the physical block number indicates the actual storage location on the secondary storage device 13a of the block specified by the logical block number. .

データ更新プログラム実行モジュール12は、論理ブロ
ックの更新要求、コミットメント要求、ロールパック要
求を行う。
The data update program execution module 12 issues logical block update requests, commitment requests, and role pack requests.

ファイルシステム13は、この発明によるデータ障害回
復処理を実現するための中枢を成すものであって、この
ファイルシステム13には、2次記憶装置13aの他に
、管理テーブル132が設けられている。
The file system 13 forms the core for realizing the data failure recovery process according to the present invention, and the file system 13 is provided with a management table 132 in addition to the secondary storage device 13a.

ファイルシステム13の2次記憶装置13aは、ファイ
ルの物理的な実現領域であり、この2次記憶装置13m
には、ファイルを構成する各論理ブロックを示す論理ブ
ロック番号Xに対してそのブロックが実在すべき物理ブ
ロックP (x)の集合が設けられている。各物理ブロ
ックP (x)は、2個の物理ブロックから構成されて
いる。
The secondary storage device 13a of the file system 13 is a physical realization area of files, and this secondary storage device 13m
, a set of physical blocks P (x) in which the block should exist is provided for a logical block number X indicating each logical block constituting the file. Each physical block P (x) is composed of two physical blocks.

物理ブロックP (x)内の一方のブロックは更新前デ
ータブロックの記憶領域として用いられ、他方のブロッ
クは更新後データブロックの記憶領域として用いられる
One block in the physical block P (x) is used as a storage area for a pre-update data block, and the other block is used as a storage area for a post-update data block.

管理テーブル132は、論理ブロック番号Xとそれに対
応する旧物理ブロック番号Q (x)および現物理ブロ
ックは番号C(x)との対応表であり、旧物理ブロック
番号Q (x)は更新前データブロックの2次記憶装置
13a上の物理的な記憶領域を示し、現物理ブロック番
号C(x)は更新後データブロックの物理的な記憶領域
を示している。このため、ブロックの更新が実行される
前は、更新前データブロックと更新後データブロックは
同一内容であるので、旧物理ブロック番号Q (x)と
現物理ブロック番号C(x)は同一値、つまり、Q (
x)とC(x)の値は共に物理ブロックP (x)の2
個のブロックのうちの一方を示す。
The management table 132 is a correspondence table between the logical block number It shows the physical storage area of the block on the secondary storage device 13a, and the current physical block number C(x) shows the physical storage area of the updated data block. Therefore, before the block update is executed, the pre-update data block and the post-update data block have the same content, so the old physical block number Q (x) and the current physical block number C (x) have the same value, In other words, Q (
x) and C(x) are both 2 of physical block P(x)
indicates one of the blocks.

また、更新を行う場合には、現物理ブロック番号C(x
)の値か物理ブロックP (x)の2個のブロックのう
ちの他方のブロックを示す値に変更される。
In addition, when updating, the current physical block number C(x
) is changed to a value indicating the other of the two blocks of the physical block P (x).

したかって、旧物理ブロック番号Q (x)と現物理ブ
ロック番号C(x)の示すそれぞれの値は、常に対応す
る物理ブロックP (x)の2個のブロック内に属して
いる。
Therefore, the respective values indicated by the old physical block number Q (x) and the current physical block number C (x) always belong to two blocks of the corresponding physical block P (x).

次に、第2図を参照して、管理テーブル132の詳細を
説明する。
Next, details of the management table 132 will be explained with reference to FIG.

第2図(A)は、管理テーブル132の一部を成す第1
のブロック対応表を示すものであり、この第1のブロッ
ク対応表には、論理ブロック番号Xとそれに対応する物
理ブロックP (X)内の2個の物理ブロック番号が定
義されている。
FIG. 2(A) shows the first table that forms part of the management table 132.
This first block correspondence table defines a logical block number X and two physical block numbers in the physical block P (X) corresponding to it.

すなわち、論理ブロック番号#1については、2次記憶
装置13a上に物理ブロック番号#1と#2の2個の物
理ブロックが用意され、同様にして、論理ブロック番号
#2については物理ブロック番号#3と#4の2個の物
理ブロックが、論理ブロック番号#3については物理ブ
ロック番号#5と#6の2個の物理ブロックが、論理ブ
ロック番号#4については物理ブロック番号#7と#8
の2個の物理ブロックが、論理ブロック番号#5につい
ては物理ブロック番号#9と#10の2個の物理ブロッ
クがそれぞれ2次記憶装置13a上に設けられている。
That is, for logical block number #1, two physical blocks with physical block numbers #1 and #2 are prepared on the secondary storage device 13a, and similarly, for logical block number #2, two physical blocks with physical block numbers #1 and #2 are prepared on the secondary storage device 13a. For logical block number #3, there are two physical blocks with physical block numbers #5 and #6, and for logical block number #4, there are two physical blocks with physical block numbers #7 and #8.
For logical block number #5, two physical blocks with physical block numbers #9 and #10 are provided on the secondary storage device 13a.

第2図(B)は、管理テーブル132の他の一部を成す
第2のブロック対応表を示すものであり、この第2のブ
ロック対応表には、論理ブロック番号Xとそれに対応す
る旧物理ブロック番号Q (x)および現物理ブロック
番号C(x)が定義されている。ここで、旧物理ブロッ
ク番号Q (x)および現物理ブロック番号C(x)は
、前述したように、対応する物理ブロックp (x)内
の2個の物理ブロック内に属す値を有している。
FIG. 2(B) shows a second block correspondence table that forms another part of the management table 132, and this second block correspondence table includes logical block numbers X and their corresponding old physical blocks. A block number Q (x) and a current physical block number C(x) are defined. Here, as described above, the old physical block number Q (x) and the current physical block number C (x) have values that belong to two physical blocks within the corresponding physical block p (x). There is.

この第2のブロック対応表では、論理ブロック番号#1
、#2、#4で指定されるブロックは更新前であり、論
理ブロック番号#3、#5で指定されるブロックは更新
後または更新処理中である場合を想定しているので、論
理ブロック番号#1、#2、#4については対応する旧
物理ブロック番号Q (x)と現物理ブロック番号C(
x)の値が同一となり、論理ブロック番号#3、#5に
ついては対応する旧物理ブロック番号Q (x)と現物
理ブロック番号C(x)の値が異なった値となっている
In this second block correspondence table, logical block number #1
, #2, #4 are before the update, and the blocks specified by the logical block numbers #3, #5 are after the update or are in the process of updating, so the logical block numbers For #1, #2, and #4, the corresponding old physical block number Q (x) and current physical block number C (
x) are the same, and for logical block numbers #3 and #5, the corresponding old physical block numbers Q(x) and current physical block numbers C(x) have different values.

第3図には、第2のブロック対応表が第2図(A)のよ
うな内容に設定されている場合の2次記憶装置13aの
内容が示されている。
FIG. 3 shows the contents of the secondary storage device 13a when the second block correspondence table is set as shown in FIG. 2(A).

第3図において、斜線で示されている物理ブロック#6
、#10は更新中または更新後の物理ブロックを示して
いる。
Physical block #6 indicated by diagonal lines in FIG.
, #10 indicates a physical block that is being updated or has been updated.

次に、第4図乃至第6図のフローチャートを参照して、
第1図のデータ処理装置における論理ブロックの更新処
理、コミットメント処理、およびロールパック処理を説
明する。
Next, referring to the flowcharts in FIGS. 4 to 6,
A logical block update process, a commitment process, and a roll pack process in the data processing apparatus shown in FIG. 1 will be explained.

論理ブロックXの更新処理は、第4図のフローチャート
によって示される手順で行われる。
The update process for logical block X is performed in accordance with the procedure shown in the flowchart of FIG.

すなわち、まず、データ更新プログラム実行モジュール
12が更新対象の論理ブロックに対して更新要求を行い
、データリカバリプログラム実行モジュール11は管理
テーブル132を参照して、論理ブロックXに対応する
物理ブロック番号の更新を実行する。この場合、まず、
現物理ブロック番号C(x)と旧物理ブロック番号Q 
(x)の値か比較され、それらが同一か否かが判断され
る(ステップAl)。
That is, first, the data update program execution module 12 issues an update request to the logical block to be updated, and the data recovery program execution module 11 refers to the management table 132 and updates the physical block number corresponding to the logical block X. Execute. In this case, first,
Current physical block number C(x) and old physical block number Q
The values of (x) are compared and it is determined whether they are the same (step Al).

更新対象の論理ブロック番号Xに対応する現物理ブロッ
ク番号C(x)と旧物理ブロック番号Q (x)の値が
同一の場合には、現物理ブロック番号C(x)を旧物理
ブロック番号Q (x)と別の値、つまり物理ブロック
P (x)の2個の物理ブロックのうちで旧物理ブロッ
ク番号Q (x)が示すブロックと別のブロックを示す
値に変更される(ステップA2)。例えば、第2図(A
)、(B)の対応表において、論理ブロック#3に対応
する旧物理ブロック番号Q (x)および現物理ブロッ
ク番号C(x)の値が共に#5であったと仮定すると、
論理ブロック#3に割り当てられた2個の物理ブロック
は#5と#6であるので、現物理ブロック番号C(x)
の値は、#5から#6に更新される。
If the values of the current physical block number C(x) and the old physical block number Q(x) corresponding to the logical block number (x) is changed to a different value, that is, a value indicating a block different from the block indicated by the old physical block number Q (x) among the two physical blocks of physical block P (x) (Step A2) . For example, in Figure 2 (A
), (B), assuming that the values of the old physical block number Q (x) and the current physical block number C (x) corresponding to logical block #3 are both #5,
The two physical blocks assigned to logical block #3 are #5 and #6, so the current physical block number C(x)
The value of is updated from #5 to #6.

そして、現物理ブロック番号C(x)が示す物理ブロッ
ク#6の内容が更新される(ステップA3)。
Then, the contents of physical block #6 indicated by the current physical block number C(x) are updated (step A3).

コミットメント処理は、第5図のフローチャートで示す
手順にしたがって実行される。
The commitment process is executed according to the procedure shown in the flowchart of FIG.

すなわち、まず、データ更新プログラム実行モジュール
12がコミットメント要求を行い、データリカバリプロ
グラム実行モジュール11は管理テーブル132を参照
して、対応する物理ブロック番号の更新を実行する。こ
の場合、まず、管理テーブル132の検索処理が行われ
(ステップA11)、旧物理ブロック番号Q (x)と
現物理ブロック番号C(x)の値が異なっている論理ブ
ロック番号Xが検出される。そして、検出された論理ブ
ロック番号X毎に旧物理ブロック番号Q (x)の値が
対応する現物理ブロック番号C(x)の値に変更される
(ステップA12)。
That is, first, the data update program execution module 12 makes a commitment request, and the data recovery program execution module 11 refers to the management table 132 and updates the corresponding physical block number. In this case, first, a search process is performed on the management table 132 (step A11), and a logical block number X whose old physical block number Q (x) and current physical block number C (x) are different in value is detected. . Then, for each detected logical block number X, the value of the old physical block number Q (x) is changed to the value of the corresponding current physical block number C(x) (step A12).

例えば、管理テーブル132の第2の対応表が第2図(
B)に示されているような内容の状態においてコミット
メント要求か行われた場合には、コミットメント処理の
結果として、論理番号#3に対応する旧物理ブロック番
号Q (x)の値か#5から#6に変更されると共に、
論理番号#5に対応する旧物理ブロック番号Q (x)
の値が#9から#10に変更される。
For example, the second correspondence table of the management table 132 is shown in FIG.
If a commitment request is made in the state shown in B), as a result of the commitment process, the value of the old physical block number Q (x) corresponding to logical number #3 or from #5 Along with being changed to #6,
Old physical block number Q (x) corresponding to logical number #5
The value of is changed from #9 to #10.

ロールパック処理は、第6図のフローチャートで示す手
順にしたがって実行される。
The roll pack process is executed according to the procedure shown in the flowchart of FIG.

すなわち、まず、データ更新プログラム実行モジュール
12がロールパック要求を行い、データリカバリプログ
ラム実行モジュール11は管理テーブル132を参照し
て、対応する物理ブロック番号の更新を実行する。この
場合、まず、管理テーブル132の検索処理が行われ(
ステップA21)、旧物理ブロック番号Q (x)と現
物理ブロック番号C(x)の値が異なっている論理ブロ
ック番号Xが検出される。そして、検出された論理ブロ
ック番号X毎に現物理ブロック番号C(x’)の値が対
応する旧物理ブロック番号Q(x、)の値に変更される
(ステップA22)。
That is, first, the data update program execution module 12 makes a roll pack request, and the data recovery program execution module 11 refers to the management table 132 and updates the corresponding physical block number. In this case, first, the management table 132 is searched (
In step A21), a logical block number X in which the values of the old physical block number Q (x) and the current physical block number C(x) are different is detected. Then, for each detected logical block number X, the value of the current physical block number C(x') is changed to the value of the corresponding old physical block number Q(x,) (step A22).

例えば、管理テーブル132の第2の対応表が第2図(
B)に示されているような内容の状態においてロールパ
ック要求が行われた場合には、ロールパック処理の結果
として、論理番号#3に対応する現物理ブロック番号C
(x)の値が#6から#5に変更されると共に、論理番
号#5に対応する現物理ブロック番号C(x)の値が#
10から#9に変更される。
For example, the second correspondence table of the management table 132 is shown in FIG.
If a roll pack request is made in the state shown in B), as a result of roll pack processing, the current physical block number C corresponding to logical number #3 is
The value of (x) is changed from #6 to #5, and the value of the current physical block number C(x) corresponding to logical number #5 is changed to #5.
Changed from 10 to #9.

以上のように、この実施例においては、更新前データと
更新後データが2次記憶装置13a上に2重化して格納
され、それら更新前データと更新後データの記憶位置は
旧物理ブロック番号Q (x)および現物理ブロック番
号C(x)によって管理されている。このため、コミッ
トメント処理やロールパック処理のような障害回復処理
を行う場合においては、別のジャーナルファイルへのデ
ータの書き込ろを行う事なく、単に2重化されたブロッ
クデータの一方を選択的に利用することによって、更新
データの整合性を保証する事が可能となる。したがって
、別のジャーナルファイルへのデータの書き込みが不要
になる分だけ、障害回復処理を短時間で実行できるよう
になるので、更新処理が頻繁に発生するプログラム下に
おいても、十分なデータ処理性能を得る事か可能となる
As described above, in this embodiment, the pre-update data and post-update data are stored in duplicate on the secondary storage device 13a, and the storage locations of the pre-update data and post-update data are the old physical block numbers Q. (x) and the current physical block number C(x). Therefore, when performing disaster recovery processing such as commitment processing or roll pack processing, you can simply selectively write one of the duplicated block data without writing data to another journal file. By using this method, it is possible to guarantee the consistency of updated data. Therefore, since it is no longer necessary to write data to a separate journal file, failure recovery processing can be executed in a shorter time, so sufficient data processing performance can be maintained even under programs that frequently update. It is possible to obtain it.

なお、管理テーブル132としては、論理物理番号から
旧物理番号および現物理ブロック番号を特定できればよ
いので、第2図(A)、(B)j:示したような2つの
対応表を有する構成に限られるものではない。
Note that the management table 132 only needs to be able to identify the old physical number and the current physical block number from the logical-physical number, so the management table 132 may have a configuration with two correspondence tables as shown in FIGS. It is not limited.

[発明の効果] 以上のように、この発明によれば、更新対象ファイルに
更新前データと更新後データを2重化して記憶すること
により、それら2重化データの選択的な利用のみによっ
て障害回復処理を実行できるようになり、処理性能を向
上を図ることができる。
[Effects of the Invention] As described above, according to the present invention, by duplicating and storing pre-update data and post-update data in an update target file, failures can be prevented by only selectively using the duplicated data. Recovery processing can now be executed, and processing performance can be improved.

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

第1図はこの発明の一実施例に係わる障害回復方式を実
現するためのデータ処理装置の構成を示すブロック図、
第2図は第1図のデータ処理装置に設けられる管理テー
ブルの具体的な構成の一例を示す図、第3図は第1図の
データ処理装置に設けられる2次記憶装置内のデータの
状態を示す図、第4図乃至第6図は第1図のデータ処理
装置の動作を説明するフローチャートである。 II・・・データリカバリプログラム実行モジュール、
12・・・データ更新プログラム実行モジュール、13
・・・ファイルシステム、13a・・・2次記憶装置、
132・・・管理テーブル。 出願人代理人 弁理士 鈴江武彦 第1図 IF5図 tJ5図 第6図
FIG. 1 is a block diagram showing the configuration of a data processing device for realizing a failure recovery method according to an embodiment of the present invention;
2 is a diagram showing an example of a specific configuration of a management table provided in the data processing device shown in FIG. 1, and FIG. 3 is a diagram showing the state of data in the secondary storage device provided in the data processing device shown in FIG. 1. FIGS. 4 to 6 are flowcharts illustrating the operation of the data processing apparatus shown in FIG. 1. II...Data recovery program execution module,
12...Data update program execution module, 13
...File system, 13a...Secondary storage device,
132... Management table. Applicant's agent Patent attorney Takehiko Suzue Figure 1, IF5, tJ5, Figure 6

Claims (1)

【特許請求の範囲】  複数のブロックから構成されるファイルを格納するた
めの記憶装置を備えたデータ処理装置において、 前記各ブロックが前記記憶装置上に2重化して記憶され
るように、前記各ブロックを示す論理ブロック番号毎に
そのブロック更新前および更新後の物理的記憶位置にそ
れぞれ対応する第1および第2の物理ブロック番号を保
持するブロック管理テーブルと、 前記ブロックを更新する際、前記ブロック管理テーブル
を参照して、前記第2物理ブロック番号をそれに対応す
る前記第1物理ブロック番号以外の値に変更すると共に
、その変更された第2物理ブロック番号で示される物理
的記憶位置に更新後データを書き込む手段とを具備し、 記憶装置上に2重化されて記憶されたブロックの一方を
利用してデータ回復処理を実行することを特徴とするデ
ータ障害回復方式。
[Scope of Claims] A data processing device including a storage device for storing a file composed of a plurality of blocks, wherein each of the blocks is stored in duplicate on the storage device. a block management table that holds, for each logical block number indicating a block, first and second physical block numbers corresponding to physical storage locations before and after the block is updated, respectively; After referring to the management table, changing the second physical block number to a value other than the corresponding first physical block number, and updating the physical storage location indicated by the changed second physical block number. 1. A data failure recovery method, comprising: means for writing data, and executing data recovery processing using one of blocks stored in duplicate on a storage device.
JP2290847A 1990-10-30 1990-10-30 Data fault recovering system Pending JPH04165545A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2290847A JPH04165545A (en) 1990-10-30 1990-10-30 Data fault recovering system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2290847A JPH04165545A (en) 1990-10-30 1990-10-30 Data fault recovering system

Publications (1)

Publication Number Publication Date
JPH04165545A true JPH04165545A (en) 1992-06-11

Family

ID=17761253

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2290847A Pending JPH04165545A (en) 1990-10-30 1990-10-30 Data fault recovering system

Country Status (1)

Country Link
JP (1) JPH04165545A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0793200A (en) * 1993-09-27 1995-04-07 Nec Corp File managing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0793200A (en) * 1993-09-27 1995-04-07 Nec Corp File managing system

Similar Documents

Publication Publication Date Title
CN100440155C (en) Method and apparatus for creating a virtual data copy
US5327551A (en) System using copy of current pointer saved before changing a selectively restoring original data based upon status of updating flag
KR100280221B1 (en) Optimization of Memory Space in Databases
JPH0773087A (en) Method for recovery of file state in data processing system
JPH07319747A (en) Data updating system
JPH04139544A (en) Data restoring method
JPH08328933A (en) File access control system for parallel processing system
JP2001344142A (en) Multiprogram processor and file roll-back method used for it
JPH04165545A (en) Data fault recovering system
JPH0816881B2 (en) Database update method
JPS5921057B2 (en) Intersystem shared file recovery control method
JP2004295272A (en) Transaction control method
JPS63132351A (en) Memory data base processor
JPS6167153A (en) Partial trouble recovery processing system of direct access storage device
JPH01237716A (en) Volume switching system
JPS62233860A (en) Roll-back system for data base
JPH01180651A (en) Commit synchronization control system for report file output
JPH05143422A (en) Updated journal managing system
JPH02226350A (en) Data control method for computer system
JPH01140353A (en) System for maintaining data in data base
JPS63304341A (en) File roll-back system
JP2906787B2 (en) File compression method and file recovery method
JP2000339183A (en) Data set management system for work area
JPS62209637A (en) Data base updating method
JPH0319046A (en) Data base restoring system