JP2746102B2 - One point backup method of business data file in case of magnetic disk device failure - Google Patents

One point backup method of business data file in case of magnetic disk device failure

Info

Publication number
JP2746102B2
JP2746102B2 JP6054753A JP5475394A JP2746102B2 JP 2746102 B2 JP2746102 B2 JP 2746102B2 JP 6054753 A JP6054753 A JP 6054753A JP 5475394 A JP5475394 A JP 5475394A JP 2746102 B2 JP2746102 B2 JP 2746102B2
Authority
JP
Japan
Prior art keywords
business data
data file
backup
file
magnetic disk
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP6054753A
Other languages
Japanese (ja)
Other versions
JPH07239757A (en
Inventor
将一 横山
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 JP6054753A priority Critical patent/JP2746102B2/en
Publication of JPH07239757A publication Critical patent/JPH07239757A/en
Application granted granted Critical
Publication of JP2746102B2 publication Critical patent/JP2746102B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、業務データファイルを
格納する磁気ディスク装置を有するコンピュータシステ
ムにおいて磁気ディスク装置の障害の発生に対処するた
めの磁気ディスク装置障害時業務データファイルワンポ
イントバックアップ方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a one-point backup of a business data file in the event of a magnetic disk device failure in a computer system having a magnetic disk device for storing business data files. .

【0002】[0002]

【従来の技術】一般に、業務データファイルを格納する
磁気ディスク装置を有するコンピュータシステムでは、
次のようにして磁気ディスク装置の障害に対処するため
の処理が行われている。
2. Description of the Related Art Generally, in a computer system having a magnetic disk device for storing business data files,
A process for coping with a failure of the magnetic disk device is performed as follows.

【0003】 業務データファイル内に当日記憶され
た業務データは、当日の業務処理の終了後に、磁気テー
プ等の補助記憶装置にセーブされる。
The business data stored in the business data file on that day is saved in an auxiliary storage device such as a magnetic tape after the business processing on that day is completed.

【0004】 磁気ディスク装置の障害発生時には、
当該補助記憶装置が用いられ、当該補助記憶装置から磁
気ディスク装置内の業務データファイルに業務データが
復旧される。これによって、障害発生日の前日までの内
容の業務データの復旧が実現される。
When a failure occurs in a magnetic disk drive,
The business data is restored from the auxiliary storage device to the business data file in the magnetic disk device using the auxiliary storage device. As a result, recovery of business data having contents up to the day before the failure date is realized.

【0005】 のセーブ時からの障害発生時まで
に更新された業務データ(障害発生日において障害発生
時までに更新された業務データ)が、何らかの方法(業
務データの再入力等の方法)で復旧される。
[0005] The business data updated from the time of the save to the time of the occurrence of the failure (the business data updated by the time of the failure on the date of the failure) is recovered by some method (method such as re-input of the business data). Is done.

【0006】このような「磁気ディスク装置の障害に対
処するための方式」では、業務処理中に磁気ディスク装
置に障害が発生した場合に、前日分までの業務データし
か補助記憶装置にセーブされていないので、当日(障害
発生日)の業務開始時から障害発生時までに更新された
業務データが反故になる可能性があるという問題点があ
った。
In such a "method for coping with a failure of a magnetic disk device", when a failure occurs in a magnetic disk device during business processing, only the business data up to the previous day is saved in the auxiliary storage device. However, there is a problem that the business data updated from the start of the business on the day (failure occurrence date) to the occurrence of the failure may be wrong.

【0007】また、リカバリ(復旧)処理が上述のお
よびの2段階の処理で構成されているので、磁気ディ
スク装置に障害が発生した場合の復旧に要する時間(業
務中断時間)が長時間に及ぶ可能性があるという問題点
もあった。
Also, since the recovery (recovery) processing is composed of the above-mentioned two steps, the time required for recovery (business interruption time) when a failure occurs in the magnetic disk device is long. There was also a problem that there was a possibility.

【0008】以上のような問題点を解決するための方式
として、業務データファイルを格納する磁気ディスク装
置の二重化を基本とする方式が存在し、例えば特開平3
−14122号公報において「磁気ディスク装置の障害
に対する業務データファイルのバックアップ方式」が紹
介されている。
As a method for solving the above problems, there is a method based on duplexing of a magnetic disk device for storing business data files.
Japanese Patent Application Publication No. -14122 introduces a "business data file backup method for a failure of a magnetic disk device".

【0009】この「磁気ディスク装置の障害に対する業
務データファイルのバックアップ方式」では、2つの磁
気ディスク装置(一対の磁気ディスク装置)に同一の内
容の業務データファイルが設けられ、さらに交換用磁気
ディスク装置が用意される。
In this "business data file backup system for failure of magnetic disk device", two magnetic disk devices (a pair of magnetic disk devices) are provided with the same business data file, and the replacement magnetic disk device is further provided. Is prepared.

【0010】その上で、この方式では、二重(2重)書
込み手段が一対の磁気ディスク装置に対して業務データ
の二重書込みを実行し、制御情報作成手段が障害時にお
ける業務データファイルの復旧の制御情報を作成し、復
旧指示手段が障害時における業務データファイルの復旧
を指示する(当該公報中の第1頁第7行〜第12行参
照)。
In this method, the double writing means executes the double writing of the business data to the pair of magnetic disk devices, and the control information creating means writes the business data file in the event of a failure. The recovery control information is created, and the recovery instruction means instructs the recovery of the business data file in the event of a failure (see page 1, lines 7 to 12 in the publication).

【0011】すなわち、「磁気ディスク装置の障害に対
する業務データファイルのバックアップ方式」において
は、一対の磁気ディスク装置および交換用磁気ディスク
装置の設置と、業務データファイルの二重書込みとによ
って、上述の問題点の解決が図られている。このよう
に、磁気ディスク装置の二重化によって上述の問題点の
解決を図る方式では、二重化を実現するための磁気ディ
スク装置の設置と、業務データファイルの二重書込みと
が必要になっていた。
That is, in the "backup method for business data files in the event of a failure of a magnetic disk device", the above-mentioned problem is caused by the installation of a pair of magnetic disk devices and a replacement magnetic disk device, and the double writing of business data files. The point has been resolved. As described above, in the method for solving the above-mentioned problems by duplicating the magnetic disk device, it is necessary to install a magnetic disk device for realizing the duplication and to double write the business data file.

【0012】[0012]

【発明が解決しようとする課題】上述した「磁気ディス
ク装置の障害に対する業務データファイルのバックアッ
プ方式」等の「磁気ディスク装置の二重化によって磁気
ディスク装置の障害に対処する方式」では、二重化を実
現するための磁気ディスク装置の設置が必要であり、業
務データファイルの二重書込みが必要であるので、必要
となる磁気ディスク装置の容量が過大になり、業務処理
の効率の悪化を招くという問題点があった。
In the "method for coping with a failure of a magnetic disk device by duplicating a magnetic disk device" such as the "backup method of business data files for a failure of a magnetic disk device" described above, duplication is realized. Therefore, there is a problem that the required capacity of the magnetic disk device becomes excessive and the efficiency of the business process is deteriorated. there were.

【0013】一方、このような「磁気ディスク装置の二
重化によって磁気ディスク装置の障害に対処する方式」
を採用しない場合には、先にも述べたように、以下に示
すような問題点が生じていた。
On the other hand, such a "method for coping with a failure of the magnetic disk device by duplicating the magnetic disk device".
If no is adopted, as described above, the following problems have occurred.

【0014】 障害発生日の業務開始時から障害発生
時までに更新された業務データが反故になる可能性があ
る。
There is a possibility that business data updated from the start of the business on the day of the failure to the time of the failure may cause a failure.

【0015】 磁気ディスク装置に障害が発生した場
合の復旧に要する時間(業務中断時間)が長時間に及ぶ
可能性がある。
There is a possibility that the time required for recovery when a failure occurs in the magnetic disk device (business interruption time) may take a long time.

【0016】本発明の目的は、上述の点に鑑み、磁気デ
ィスク装置の容量が過大にならず、業務処理の効率の悪
化を招くことなく、以上のおよびの問題点を解決す
ることができる磁気ディスク装置障害時業務データファ
イルワンポイントバックアップ方式を提供することにあ
る。すなわち、本発明の磁気ディスク装置障害時業務デ
ータファイルワンポイントバックアップ方式は、磁気デ
ィスク装置内の業務データファイルに対するアクセスエ
ラーが繰り返して発生したときに(アクセスエラーが規
定回数だけ繰り返される状況を本明細書では「I/O
(Input/Output)エラー」と表現する)、
I/Oエラーの感知に基づいて磁気ディスク装置の障害
(磁気ディスク装置内の当該業務データファイルが格納
されている箇所の障害)が生じる可能性が高いと認識
し、その認識に基づいて事前に当該業務データファイル
を他の箇所にバックアップすることによって、上述の目
的を達成するものである。
SUMMARY OF THE INVENTION In view of the foregoing, it is an object of the present invention to provide a magnetic disk drive capable of solving the above-mentioned problems without increasing the capacity of a magnetic disk drive and deteriorating the efficiency of business processing. An object of the present invention is to provide a one-point backup method for business data files when a disk device fails. In other words, the business data file one-point backup method at the time of magnetic disk device failure of the present invention is used when an access error to a business data file in the magnetic disk device repeatedly occurs (this situation is described in the present specification). In the book, "I / O
(Input / Output) error.)
Based on the detection of the I / O error, it is recognized that there is a high possibility that a failure of the magnetic disk device (a failure of the location where the business data file is stored in the magnetic disk device) is high. The above-described object is achieved by backing up the business data file to another location.

【0017】[0017]

【課題を解決するための手段】本発明の磁気ディスク装
置障害時業務データファイルワンポイントバックアップ
方式は、業務データファイルを格納する磁気ディスク装
置を有するコンピュータシステムにおいて、各業務デー
タファイルのファイル名と当該各業務データファイルに
対応するバックアップ用業務データファイルのファイル
名および当該バックアップ用業務データファイルの存在
する補助記憶装置の装置名との対応情報を記憶するバッ
クアップ情報テーブルと、各業務データファイルのファ
イル名と当該各業務データファイルが存在する磁気ディ
スク装置の装置名およびバックアップ中指示フラグとの
対応情報を格納するカタログファイルと、アプリケーシ
ョンプログラムによる業務データファイルのアクセス時
にアクセスエラーが規定回数を越えて繰り返して発生し
た場合にI/Oエラーの発生を感知するI/Oエラー感
知手段と、このI/Oエラー感知手段により感知された
I/Oエラーに係る業務データファイルに対応するバッ
クアップ用業務データファイルを生成し、当該業務デー
タファイル内の業務データを当該バックアップ用業務デ
ータファイルにコピーするコピー手段と、このコピー手
段によるコピーを反映して前記バックアップ情報テーブ
ルと前記カタログファイルとの更新を行うカタログコン
バータとを有する。
According to the present invention, there is provided a one-point backup system for business data files in the event of a failure of a magnetic disk device. In a computer system having a magnetic disk device for storing business data files, the file name of each business data file A backup information table that stores the file name of the backup business data file corresponding to each business data file and the correspondence information between the backup business data file and the name of the auxiliary storage device where the backup business data file exists, and the file name of each business data file A catalog file that stores information corresponding to the device name of the magnetic disk device in which each business data file exists and the backup instruction flag, and an access error when the business data file is accessed by the application program. I / O error sensing means for sensing the occurrence of an I / O error when it repeatedly occurs over a specified number of times, and a business data file relating to the I / O error detected by the I / O error sensing means A copy unit that generates a backup business data file to be copied and copies the business data in the business data file to the backup business data file; and the backup information table and the catalog file reflecting the copy by the copy unit. And a catalog converter for updating the data.

【0018】また、本発明の磁気ディスク装置障害時業
務データファイルワンポイントバックアップ方式は、業
務データファイルを格納する磁気ディスク装置を有する
コンピュータシステムにおいて、各業務データファイル
のファイル名と当該各業務データファイルに対応するバ
ックアップ用業務データファイルのファイル名および当
該バックアップ用業務データファイルの存在する補助記
憶装置の装置名との対応情報を記憶するバックアップ情
報テーブルと、各業務データファイルのファイル名と当
該各業務データファイルが存在する磁気ディスク装置の
装置名,バックアップ中指示フラグおよびバックアップ
要否フラグとの対応情報を格納するカタログファイル
と、アプリケーションプログラムによる業務データファ
イルのアクセス時にアクセスエラーが規定回数を越えて
繰り返して発生した場合にI/Oエラーの発生を感知す
るI/Oエラー感知手段と、このI/Oエラー感知手段
により感知されたI/Oエラーに係る業務データファイ
ルのバックアップが必要であるか否かを前記カタログフ
ァイル内のバックアップ要否フラグを参照して判定し、
「バックアップが必要である」と判定した場合に当該業
務データファイルに対応するバックアップ用業務データ
ファイルを生成し、当該業務データファイル内の業務デ
ータを当該バックアップ用業務データファイルにコピー
するコピー手段と、このコピー手段によるコピーを反映
して前記バックアップ情報テーブルと前記カタログファ
イルとの更新を行うカタログコンバータとを有する。
In the computer system having a magnetic disk device for storing business data files, the file name of each business data file and the business data file A backup information table that stores information on the correspondence between the backup business data file name corresponding to the backup business data file and the device name of the auxiliary storage device in which the backup business data file exists, the file name of each business data file and the respective business A catalog file that stores information on the correspondence between the device name of the magnetic disk device where the data file exists, the backup instructing flag, and the backup necessity flag, and when the application program accesses the business data file I / O error sensing means for sensing the occurrence of an I / O error when the access error repeatedly occurs more than a prescribed number of times, and business data relating to the I / O error sensed by the I / O error sensing means Determine whether the backup of the file is necessary by referring to the backup necessity flag in the catalog file,
Copy means for generating a backup business data file corresponding to the business data file when it is determined that "backup is required", and copying business data in the business data file to the backup business data file, A catalog converter for updating the backup information table and the catalog file by reflecting the copy by the copying means.

【0019】[0019]

【作用】本発明の磁気ディスク装置障害時業務データフ
ァイルワンポイントバックアップ方式は、業務データフ
ァイルを格納する磁気ディスク装置を有するコンピュー
タシステムにおいて適用されて、次のような作用を行
う。すなわち、バックアップ情報テーブルは、各業務デ
ータファイルのファイル名と当該各業務データファイル
に対応するバックアップ用業務データファイルのファイ
ル名および当該バックアップ用業務データファイルの存
在する補助記憶装置の装置名との対応情報を記憶する。
カタログファイルは、各業務データファイルのファイル
名と当該各業務データファイルが存在する磁気ディスク
装置の装置名およびバックアップ中指示フラグとの対応
情報を格納する。I/Oエラー感知手段は、アプリケー
ションプログラムによる業務データファイルのアクセス
時に、アクセスエラーが規定回数を越えて繰り返して発
生した場合に、I/Oエラーの発生を感知する。コピー
手段は、I/Oエラー感知手段により感知されたI/O
エラーに係る業務データファイルに対応するバックアッ
プ用業務データファイルを生成し、当該業務データファ
イル内の業務データを当該バックアップ用業務データフ
ァイルにコピーする。カタログコンバータは、コピー手
段によるコピーを反映して、バックアップ情報テーブル
とカタログファイルとの更新を行う。
The business data file one-point backup method in the event of a magnetic disk device failure according to the present invention is applied to a computer system having a magnetic disk device for storing business data files, and performs the following operations. That is, the backup information table stores the correspondence between the file name of each business data file, the file name of the backup business data file corresponding to each business data file, and the device name of the auxiliary storage device in which the backup business data file exists. Store the information.
The catalog file stores information on the correspondence between the file name of each business data file, the device name of the magnetic disk device in which each business data file exists, and the backup instruction flag. The I / O error sensing means senses the occurrence of an I / O error when an access error repeatedly occurs more than a specified number of times when an application program accesses a business data file. The copy unit is configured to output the I / O detected by the I / O error detection unit.
A backup business data file corresponding to the business data file relating to the error is generated, and the business data in the business data file is copied to the backup business data file. The catalog converter updates the backup information table and the catalog file by reflecting the copy by the copy unit.

【0020】また、本発明の磁気ディスク装置障害時業
務データファイルワンポイントバックアップ方式は、次
のような作用を行うことも可能である。すなわち、バッ
クアップ情報テーブルは、各業務データファイルのファ
イル名と当該各業務データファイルに対応するバックア
ップ用業務データファイルのファイル名および当該バッ
クアップ用業務データファイルの存在する補助記憶装置
の装置名との対応情報を記憶する。カタログファイル
は、各業務データファイルのファイル名と当該各業務デ
ータファイルが存在する磁気ディスク装置の装置名,バ
ックアップ中指示フラグおよびバックアップ要否フラグ
との対応情報を格納する。I/Oエラー感知手段は、ア
プリケーションプログラムによる業務データファイルの
アクセス時に、アクセスエラーが規定回数を越えて繰り
返して発生した場合に、I/Oエラーの発生を感知す
る。コピー手段は、I/Oエラー感知手段により感知さ
れたI/Oエラーに係る業務データファイルのバックア
ップが必要であるか否かをカタログファイル内のバック
アップ要否フラグを参照して判定し、「バックアップが
必要である」と判定した場合に当該業務データファイル
に対応するバックアップ用業務データファイルを生成
し、当該業務データファイル内の業務データを当該バッ
クアップ用業務データファイルにコピーする。カタログ
コンバータは、コピー手段によるコピーを反映して、バ
ックアップ情報テーブルとカタログファイルとの更新を
行う。
The operation data file one-point backup system in the event of a magnetic disk drive failure according to the present invention can also perform the following operations. That is, the backup information table stores the correspondence between the file name of each business data file, the file name of the backup business data file corresponding to each business data file, and the device name of the auxiliary storage device in which the backup business data file exists. Store the information. The catalog file stores information on the correspondence between the file name of each business data file, the device name of the magnetic disk device in which each business data file exists, a backup instruction flag, and a backup necessity flag. The I / O error sensing means senses the occurrence of an I / O error when an access error repeatedly occurs more than a specified number of times when an application program accesses a business data file. The copying means determines whether or not a backup of the business data file relating to the I / O error detected by the I / O error detecting means is necessary by referring to the backup necessity flag in the catalog file. Is necessary, a backup business data file corresponding to the business data file is generated, and the business data in the business data file is copied to the backup business data file. The catalog converter updates the backup information table and the catalog file by reflecting the copy by the copy unit.

【0021】[0021]

【実施例】次に、本発明について図面を参照して詳細に
説明する。
Next, the present invention will be described in detail with reference to the drawings.

【0022】図1は、本発明の第1の実施例に係る磁気
ディスク装置障害時業務データファイルワンポイントバ
ックアップ方式の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a business data file one-point backup system in the event of a magnetic disk drive failure according to a first embodiment of the present invention.

【0023】本実施例の磁気ディスク装置障害時業務デ
ータファイルワンポイントバックアップ方式は、アプリ
ケーションプログラム1と、I/Oエラー感知手段20
を有するアクセス手段2と、コピー手段3と、カタログ
コンバータ4と、バックアップ情報テーブル5と、カタ
ログファイル6と、磁気ディスク装置7と、磁気ディス
ク装置8とを含んで構成されている。本実施例では、ア
クセス手段2はOS(Operating Syste
m)上に存在し、コピー手段3,カタログコンバータ4
およびバックアップ情報テーブル5はRAS(Reli
ability,Availability,Serv
iceability)システム上に存在する。
The one-point backup method for business data files in the event of a failure in the magnetic disk device of the present embodiment comprises an application program 1 and an I / O error sensing means 20
, A copy unit 3, a catalog converter 4, a backup information table 5, a catalog file 6, a magnetic disk device 7, and a magnetic disk device 8. In the present embodiment, the access unit 2 is an operating system (OS).
m) copy means 3, catalog converter 4
And the backup information table 5 stores the RAS (Reli
availability, Availability, Serv
Iceability) system.

【0024】磁気ディスク装置7には、業務データファ
イル70が格納されている。また、磁気ディスク装置8
には、業務データファイル70に対応するバックアップ
用業務データファイル80が生成されるものとする。な
お、図1においては、業務データファイル70とバック
アップ用業務データファイル80とは異なる磁気ディス
ク装置(磁気ディスク装置7および磁気ディスク装置
8)に設けられているが、同一の磁気ディスク装置上に
両ファイルを設けることも可能である。また、バックア
ップ用業務データファイル80が生成される補助記憶装
置は、磁気ディスク装置に限られるものではなく、光デ
ィスク装置等の磁気ディスク装置と記録方式(アクセス
方式)が同様の補助記憶装置であってもよい。
The magnetic disk device 7 stores a business data file 70. Also, the magnetic disk drive 8
, A backup business data file 80 corresponding to the business data file 70 is generated. In FIG. 1, the business data file 70 and the backup business data file 80 are provided on different magnetic disk devices (the magnetic disk device 7 and the magnetic disk device 8), but both are stored on the same magnetic disk device. It is also possible to provide a file. The auxiliary storage device in which the backup business data file 80 is generated is not limited to a magnetic disk device, but is an auxiliary storage device similar in recording method (access method) to a magnetic disk device such as an optical disk device. Is also good.

【0025】図2を参照すると、本実施例の磁気ディス
ク装置障害時業務データファイルワンポイントバックア
ップ方式の処理は、アクセスエラー発生判定ステップ2
1と、規定回数超過判定ステップ22と、アクセス再試
行ステップ23と、I/Oエラー感知および通知ステッ
プ24と、バックアップ用業務データファイル生成ステ
ップ25と、業務データコピーステップ26と、カタロ
グファイル更新ステップ27と、バックアップ情報テー
ブル更新ステップ28とからなる。
Referring to FIG. 2, the processing of the business data file one-point backup method in the event of a magnetic disk device failure according to the present embodiment includes an access error occurrence determination step 2
1, a specified number excess determination step 22, an access retry step 23, an I / O error detection and notification step 24, a backup business data file generation step 25, a business data copy step 26, and a catalog file update step 27 and a backup information table updating step 28.

【0026】図3は、バックアップ情報テーブル5の構
成の一例を示す図である。このバックアップ情報テーブ
ル5は、バックアップ中の業務データファイル(例え
ば、図1中の業務データファイル70)のファイル名
(ファイル識別情報)を示す旧ファイル名と、当該業務
データファイルに対応するバックアップ用業務データフ
ァイル(例えば、図1中のバックアップ用業務データフ
ァイル80)のファイル名を示す新ファイル名と、当該
バックアップ用業務データファイルが存在する磁気ディ
スク装置(一般的には補助記憶装置)の装置名(装置識
別情報)を示すバックアップ装置名とを含んで構成され
ている。
FIG. 3 is a diagram showing an example of the configuration of the backup information table 5. The backup information table 5 includes an old file name indicating a file name (file identification information) of a business data file being backed up (for example, the business data file 70 in FIG. 1), and a backup business corresponding to the business data file. A new file name indicating the file name of the data file (for example, the backup business data file 80 in FIG. 1), and the device name of the magnetic disk device (generally, an auxiliary storage device) in which the backup business data file exists. (Device identification information).

【0027】図4は、カタログファイル6の構成の一例
を示す図である。このカタログファイル6は、各業務デ
ータファイルについて、業務データファイルのファイル
名と、当該業務データファイルが存在する磁気ディスク
装置の装置名と、当該業務データファイルが現時点でバ
ックアップされているか(当該業務データファイルに対
応するバックアップ用業務データファイルが生成されて
いるか)否かを示すバックアップ中指示フラグとを含ん
で構成されている(コピー手段3によるバックアップ用
業務データファイルの生成の際等に参照される磁気ディ
スク装置のディスクタイプ等も他の情報として存在しう
る)。
FIG. 4 is a diagram showing an example of the configuration of the catalog file 6. The catalog file 6 includes, for each business data file, the file name of the business data file, the device name of the magnetic disk device in which the business data file exists, and whether the business data file is currently backed up (the business data file is And a backup instructing flag indicating whether or not a backup business data file corresponding to the file has been generated (referred to when the backup means 3 generates the backup business data file). The disk type of the magnetic disk device and the like can also exist as other information.)

【0028】次に、このように構成された本実施例の磁
気ディスク装置障害時業務データファイルワンポイント
バックアップ方式の動作について説明する。
Next, the operation of the business data file one-point backup method in the event of a failure of the magnetic disk device of the present embodiment configured as described above will be described.

【0029】本実施例が適用されるコンピュータシステ
ムにおける業務処理の実行過程において、アプリケーシ
ョンプログラム1が業務データファイル70にアクセス
する際には、OS内のアクセス手段2を介して当該アク
セスが実現される。この際に、アクセス手段2は、カタ
ログファイル6を参照してアクセス対象の業務データフ
ァイル70が存在する磁気ディスク装置7を認識する。
なお、磁気ディスク装置7内の業務データファイル70
のアドレスは磁気ディスク装置7内のVTOC(Vol
ume Table Of Contents)情報に
よって認識される。
When the application program 1 accesses the business data file 70 in the course of executing business processing in the computer system to which this embodiment is applied, the access is realized via the access means 2 in the OS. . At this time, the access unit 2 refers to the catalog file 6 and recognizes the magnetic disk device 7 in which the business data file 70 to be accessed exists.
The business data file 70 in the magnetic disk device 7
Is the VTOC (Vol.) In the magnetic disk device 7.
It is recognized based on the information of the “Table Table of Contents”.

【0030】アクセス手段2内のI/Oエラー感知手段
20は、当該アクセス時に、磁気ディスク装置7内の業
務データファイル70に対するアクセスエラーが発生し
ているか否かをチェック(判定)する(ステップ2
1)。
The I / O error sensing means 20 in the access means 2 checks (determines) whether or not an access error has occurred to the business data file 70 in the magnetic disk device 7 at the time of the access (step 2).
1).

【0031】I/Oエラー感知手段20は、ステップ2
1でアクセスエラーの発生を検出した場合には、当該ア
クセスにおけるアクセスエラーの発生回数が規定回数を
越えているか否かを判定する(ステップ22)。なお、
ステップ21でアクセスエラーの発生が検出されなかっ
た場合には、当該アクセスの際の本実施例の磁気ディス
ク装置障害時業務データファイルワンポイントバックア
ップ方式の処理は終了する。
The I / O error sensing means 20 performs step 2
When the occurrence of an access error is detected in step 1, it is determined whether the number of occurrences of the access error in the access exceeds a specified number (step 22). In addition,
If the occurrence of an access error is not detected in step 21, the process of the business data file one-point backup method at the time of the access in the magnetic disk device failure of this embodiment ends.

【0032】I/Oエラー感知手段20がステップ22
で「アクセスエラーの発生回数が規定回数を越えていな
い」と判定した場合には、アクセス手段2は当該アクセ
スの再試行(リトライ)を行う(ステップ23)。
If the I / O error sensing means 20 determines in step 22
If it is determined that "the number of occurrences of the access error does not exceed the specified number", the access means 2 retry (retry) the access (step 23).

【0033】I/Oエラー感知手段20は、ステップ2
2で「アクセスエラーの発生回数が規定回数を越えてい
る」と判定した場合には、業務データファイル70に係
るI/Oエラーの発生(規定回数分のアクセスエラーの
発生)を感知し、RASシステム内のコピー手段3にそ
の旨を通知する(ステップ24)。
The I / O error detecting means 20 performs step 2
If it is determined in step 2 that "the number of occurrences of the access error exceeds the prescribed number", the occurrence of an I / O error (the occurrence of the prescribed number of access errors) relating to the business data file 70 is detected, and the RAS is detected. This is notified to the copying means 3 in the system (step 24).

【0034】なお、ステップ22の判定における「規定
回数」は、経験的な観点等から決定される回数であり、
「アクセスエラーの発生状況がまだ軽い症状であり当該
アクセスエラーの発生がまだ磁気ディスク装置の障害に
結びつくおそれが少ない状況である間はなるべくアクセ
スの再試行を行う」といった観点に基づき決定される回
数である。すなわち、磁気ディスク装置の障害により業
務データファイルの読込みが不可能となる前にはバック
アップ処理を実行するようにし、かつ無駄なバックアッ
プ処理はなるべく実行しないようにすることを目的とし
て、この「規定回数」の決定が行われる。
The "specified number of times" in the determination in step 22 is the number of times determined from an empirical viewpoint or the like.
Number of times determined based on viewpoints such as "access error is still a mild symptom and access is retried as much as possible while the occurrence of the access error is still unlikely to cause a failure of the magnetic disk device" It is. That is, for the purpose of executing the backup process before the business data file cannot be read due to the failure of the magnetic disk device, and avoiding the useless backup process as much as possible, Is determined.

【0035】コピー手段3は、ステップ24における通
知を受け取り、バックアップ用業務データファイル80
(業務データファイル70に対応するバックアップ用業
務データファイル)を磁気ディスク装置8に生成する
(ステップ25)。
The copy means 3 receives the notification in step 24, and receives the backup business data file 80.
A backup business data file corresponding to the business data file 70 is generated in the magnetic disk device 8 (step 25).

【0036】さらに、コピー手段3は、業務データファ
イル70内の業務データをバックアップ用業務データフ
ァイル80にコピーする(ステップ26)。
Further, the copying means 3 copies the business data in the business data file 70 to the backup business data file 80 (step 26).

【0037】これにより、磁気ディスク装置7に障害が
発生する前に業務データファイル70内の業務データを
最新の状態でバックアップ用業務データファイル80に
セーブ(バックアップ)することができる。
Thus, the business data in the business data file 70 can be saved (backed up) in the backup business data file 80 in the latest state before a failure occurs in the magnetic disk device 7.

【0038】カタログコンバータ4は、コピー手段3に
よってバックアップ用業務データファイル80にコピー
された業務データを、アプリケーションプログラム1が
当該コピーがあったことを意識することなくアクセスで
きるようにする機能を有する。
The catalog converter 4 has a function of enabling the application program 1 to access the business data copied to the backup business data file 80 by the copying means 3 without being aware that the copy has been made.

【0039】すなわち、カタログコンバータ4は、カタ
ログファイル6内の業務データファイル70に関するバ
ックアップ中指示フラグに「バックアップ中」であるこ
とを示す情報を設定する(ステップ27)。
That is, the catalog converter 4 sets information indicating "backing up" in the backup instructing flag for the business data file 70 in the catalog file 6 (step 27).

【0040】さらに、カタログコンバータ4は、RAS
システム内のバックアップ情報テーブル5内の1つのエ
ントリ(レコード)において、「旧ファイル名」に業務
データファイル70のファイル名を設定し、「新ファイ
ル名」にバックアップ用業務データファイル80のファ
イル名を設定し、「バックアップ装置名」に磁気ディス
ク装置8の装置名を設定する(ステップ28)。
Further, the catalog converter 4 has a RAS
In one entry (record) in the backup information table 5 in the system, the file name of the business data file 70 is set in the “old file name”, and the file name of the backup business data file 80 is set in the “new file name”. Then, the device name of the magnetic disk device 8 is set in the "backup device name" (step 28).

【0041】ステップ27およびステップ28の処理に
よって、コピー手段3によるコピー処理が反映されたカ
タログファイル6およびバックアップ情報テーブル5の
更新が実現される。
By the processing in steps 27 and 28, the update of the catalog file 6 and the backup information table 5 in which the copy processing by the copy means 3 is reflected is realized.

【0042】上記のような動作により、業務データファ
イル70のアクセス時におけるI/Oエラーの発生に基
づく一時的な(ワンポイントの)バックアップ処理が実
現される。
The above operation realizes a temporary (one-point) backup process based on the occurrence of an I / O error when accessing the business data file 70.

【0043】これ以降、アプリケーションプログラム1
が業務データファイル70をアクセスする場合には、カ
タログファイル6およびバックアップ情報テーブル5の
両方が参照されて、バックアップ用業務データファイル
80に対するアクセスが行われる(アプリケーションプ
ログラム1は業務データファイル70にアクセスしてい
るように意識している)。すなわち、カタログファイル
6内の業務データファイル70に関するバックアップ中
指示フラグに「バックアップ中」が設定されていること
に基づき、バックアップ情報テーブル5内の該当するエ
ントリ(業務データファイル70のファイル名を「旧フ
ァイル名」に持つエントリ)中の「バックアップ装置
名」および「新ファイル名」が参照され、磁気ディスク
装置8内のバックアップ用業務データファイル80に対
するアクセスが行われる。
Thereafter, the application program 1
When the user accesses the business data file 70, both the catalog file 6 and the backup information table 5 are referenced to access the backup business data file 80 (the application program 1 accesses the business data file 70). I am conscious of it.) That is, based on the fact that “in backup” is set in the backup instructing flag for the business data file 70 in the catalog file 6, the corresponding entry (the file name of the business data file 70 The “backup device name” and “new file name” in the entry of “file name” are referred to, and the backup business data file 80 in the magnetic disk device 8 is accessed.

【0044】なお、当日(I/Oエラー発生日)の業務
処理が終了すると、業務データファイル70の復旧処理
が実行され(この復旧処理は従来技術によって実現され
る)、翌日の業務処理においては業務データファイル7
0に対するアクセスが行われる。ここで、復旧処理の際
には、カタログファイル6内の業務データファイル70
に関するバックアップ中指示フラグにおける「バックア
ップ中」の情報が解除され、バックアップ情報テーブル
5内の業務データファイル70に関するエントリが削除
される。
When the business process on the current day (I / O error occurrence date) is completed, a recovery process of the business data file 70 is executed (this recovery process is realized by the conventional technology). Business data file 7
0 is accessed. Here, at the time of recovery processing, the business data file 70 in the catalog file 6
The information of “during backup” in the backup-in-progress instruction flag is released, and the entry of the business data file 70 in the backup information table 5 is deleted.

【0045】続いて、本発明の第2の実施例に係る磁気
ディスク装置障害時業務データファイルワンポイントバ
ックアップ方式について説明する。本実施例の磁気ディ
スク装置障害時業務データファイルワンポイントバック
アップ方式も、図1のブロック図によってその構成が示
される。ただし、カタログファイル6の構成は、図5に
示すようになる。すなわち、このカタログファイル6
は、各業務データファイルについて、業務データファイ
ルのファイル名と、当該業務データファイルが存在する
磁気ディスク装置の装置名と、当該業務データファイル
が現時点でバックアップされているか(当該業務データ
ファイルに対応するバックアップ用業務データファイル
が生成されているか)否かを示すバックアップ中指示フ
ラグと、当該業務データファイルの重要度等に鑑みてワ
ンポイントのバックアップ処理が必要であるか否かを示
す情報(バックアップ要否フラグ)とを含んで構成され
ている(コピー手段3によるバックアップ用業務データ
ファイルの生成の際等に参照される磁気ディスク装置の
ディスクタイプ等も他の情報として存在しうる)。
Next, a description will be given of a business data file one-point backup method in the event of a magnetic disk device failure according to a second embodiment of the present invention. The configuration of the business data file one-point backup method at the time of magnetic disk drive failure of the present embodiment is also shown in the block diagram of FIG. However, the configuration of the catalog file 6 is as shown in FIG. That is, this catalog file 6
Is, for each business data file, the file name of the business data file, the device name of the magnetic disk device where the business data file exists, and whether the business data file is backed up at the moment (corresponding to the business data file). A backup instruction flag that indicates whether a backup business data file has been generated) and information that indicates whether a one-point backup process is necessary in view of the importance of the business data file (backup required). (A flag indicating whether or not the disk type of the magnetic disk device is referred to when the backup means 3 generates the backup business data file).

【0046】次に、このように構成された本実施例の磁
気ディスク装置障害時業務データファイルワンポイント
バックアップ方式の動作について説明する。
Next, the operation of the business data file one-point backup system in the event of a failure of the magnetic disk device of the present embodiment configured as described above will be described.

【0047】大筋の動作は第1の実施例における動作と
同一であるので、第1の実施例における動作と相違する
動作についてのみ説明する。
The operation of the outline is the same as the operation in the first embodiment, and therefore only the operation different from the operation in the first embodiment will be described.

【0048】コピー手段3は、I/Oエラー発生の旨の
通知(図2中のステップ24参照)を受け取ると、その
通知に係る業務データファイル70のバックアップが必
要であるか否かをカタログファイル6内の業務データフ
ァイル70に関するバックアップ要否フラグに基づいて
判定する。
Upon receiving the notification of the occurrence of the I / O error (see step 24 in FIG. 2), the copying means 3 determines whether the business data file 70 according to the notification needs to be backed up in the catalog file. 6 is determined based on the backup necessity flag relating to the business data file 70 in FIG.

【0049】コピー手段3は、この判定でバックアップ
が必要であると判断した場合にのみ、バックアップ用業
務データファイル80を磁気ディスク装置8に生成する
(ステップ25参照)。
The copying means 3 generates the backup business data file 80 in the magnetic disk device 8 only when it is determined that a backup is necessary in this determination (see step 25).

【0050】これによって、必要性の乏しいワンポイン
トのバックアップ処理を省略することができ、業務処理
の全体的な処理効率の向上に益がもたらされる。
This eliminates the need for one-point backup processing, which is less necessary, and brings about an improvement in the overall processing efficiency of business processing.

【0051】[0051]

【発明の効果】以上説明したように本発明は、磁気ディ
スク装置内の業務データファイルに対するI/Oエラー
の感知に基づいて磁気ディスク装置における実際の障害
の発生前に当該業務データファイルを他の箇所にバック
アップすることにより、必要となる磁気ディスク装置の
容量を過大にすることなく、業務処理の効率の悪化を招
かずに、以下のおよびの効果を達成することができ
る。
As described above, according to the present invention, based on the detection of an I / O error with respect to a business data file in a magnetic disk drive, the business data file can be stored in another magnetic disk drive before an actual failure occurs. By backing up at a location, the following effects can be achieved without increasing the required capacity of the magnetic disk device and without deteriorating the efficiency of business processing.

【0052】 「障害発生日の業務開始時から障害発
生時までに更新された業務データが反故になる」という
現象が生じる可能性が少なくなる。
The possibility that the phenomenon that “the business data updated from the start of the business on the day of the failure to the time of the failure becomes invalid” is reduced.

【0053】 磁気ディスク装置の障害の復旧のため
の業務中断時間が少なくなる。
The business interruption time for recovery from the failure of the magnetic disk device is reduced.

【0054】なお、カタログファイル内の情報中にバッ
クアップ要否フラグを設けることにより、重要度等に鑑
みて真にバックアップが必要な業務データファイルにつ
いてのみワンポイントのバックアップ処理を実現するこ
とを可能とし、業務処理の全体的な処理効率の向上を図
ることができるという効果がある。
By providing a backup necessity flag in the information in the catalog file, it is possible to realize a one-point backup process only for business data files that really need to be backed up in view of the importance and the like. Thus, there is an effect that the overall processing efficiency of business processing can be improved.

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

【図1】本発明の第1の実施例および第2の実施例に係
る磁気ディスク装置障害時業務データファイルワンポイ
ントバックアップ方式の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a business data file one-point backup method at the time of a magnetic disk device failure according to a first embodiment and a second embodiment of the present invention.

【図2】磁気ディスク装置障害時業務データファイルワ
ンポイントバックアップ方式の第1の実施例の処理を示
す流れ図である。
FIG. 2 is a flowchart showing a process of a first embodiment of a business data file one-point backup method at the time of magnetic disk device failure;

【図3】図1中のバックアップ情報テーブルの構成の一
例を示す図である。
FIG. 3 is a diagram illustrating an example of a configuration of a backup information table in FIG. 1;

【図4】磁気ディスク装置障害時業務データファイルワ
ンポイントバックアップ方式の第1の実施例におけるカ
タログファイルの構成の一例を示す図である。
FIG. 4 is a diagram showing an example of a configuration of a catalog file in a first embodiment of a one-point backup method of a business data file when a magnetic disk device fails.

【図5】磁気ディスク装置障害時業務データファイルワ
ンポイントバックアップ方式の第2の実施例におけるカ
タログファイルの構成の一例を示す図である。
FIG. 5 is a diagram showing an example of a configuration of a catalog file in a second embodiment of a one-point backup method of a business data file when a magnetic disk device fails.

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

1 アプリケーションプログラム 2 アクセス手段 3 コピー手段 4 カタログコンバータ 5 バックアップ情報テーブル 6 カタログファイル 7,8 磁気ディスク装置 20 I/Oエラー感知手段 70 業務データファイル 80 バックアップ用業務データファイル REFERENCE SIGNS LIST 1 application program 2 access means 3 copy means 4 catalog converter 5 backup information table 6 catalog file 7, 8 magnetic disk drive 20 I / O error sensing means 70 business data file 80 backup business data file

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 業務データファイルを格納する磁気ディ
スク装置を有するコンピュータシステムにおいて、 各業務データファイルのファイル名と当該各業務データ
ファイルに対応するバックアップ用業務データファイル
のファイル名および当該バックアップ用業務データファ
イルの存在する補助記憶装置の装置名との対応情報を記
憶するバックアップ情報テーブルと、 各業務データファイルのファイル名と当該各業務データ
ファイルが存在する磁気ディスク装置の装置名およびバ
ックアップ中指示フラグとの対応情報を格納するカタロ
グファイルと、 アプリケーションプログラムによる業務データファイル
のアクセス時にアクセスエラーが規定回数を越えて繰り
返して発生した場合にI/Oエラーの発生を感知するI
/Oエラー感知手段と、 このI/Oエラー感知手段により感知されたI/Oエラ
ーに係る業務データファイルに対応するバックアップ用
業務データファイルを生成し、当該業務データファイル
内の業務データを当該バックアップ用業務データファイ
ルにコピーするコピー手段と、 このコピー手段によるコピーを反映して前記バックアッ
プ情報テーブルと前記カタログファイルとの更新を行う
カタログコンバータとを有することを特徴とする磁気デ
ィスク装置障害時業務データファイルワンポイントバッ
クアップ方式。
In a computer system having a magnetic disk device for storing business data files, a file name of each business data file, a file name of a backup business data file corresponding to each business data file, and the backup business data A backup information table that stores information corresponding to the device name of the auxiliary storage device where the file exists, the file name of each business data file, the device name of the magnetic disk device where each business data file exists, and a backup instruction flag; And an I / O error that is detected when an access error repeatedly occurs more than a specified number of times when an application program accesses a business data file.
/ O error detecting means, and a backup business data file corresponding to the business data file relating to the I / O error detected by the I / O error detecting means, and the business data in the business data file is backed up. And a catalog converter for updating the backup information table and the catalog file by reflecting the copy by the copy unit. File one point backup method.
【請求項2】 業務データファイルを格納する磁気ディ
スク装置を有するコンピュータシステムにおいて、 各業務データファイルのファイル名と当該各業務データ
ファイルに対応するバックアップ用業務データファイル
のファイル名および当該バックアップ用業務データファ
イルの存在する補助記憶装置の装置名との対応情報を記
憶するバックアップ情報テーブルと、 各業務データファイルのファイル名と当該各業務データ
ファイルが存在する磁気ディスク装置の装置名,バック
アップ中指示フラグおよびバックアップ要否フラグとの
対応情報を格納するカタログファイルと、 アプリケーションプログラムによる業務データファイル
のアクセス時にアクセスエラーが規定回数を越えて繰り
返して発生した場合にI/Oエラーの発生を感知するI
/Oエラー感知手段と、 このI/Oエラー感知手段により感知されたI/Oエラ
ーに係る業務データファイルのバックアップが必要であ
るか否かを前記カタログファイル内のバックアップ要否
フラグを参照して判定し、「バックアップが必要であ
る」と判定した場合に当該業務データファイルに対応す
るバックアップ用業務データファイルを生成し、当該業
務データファイル内の業務データを当該バックアップ用
業務データファイルにコピーするコピー手段と、 このコピー手段によるコピーを反映して前記バックアッ
プ情報テーブルと前記カタログファイルとの更新を行う
カタログコンバータとを有することを特徴とする磁気デ
ィスク装置障害時業務データファイルワンポイントバッ
クアップ方式。
2. A computer system having a magnetic disk device for storing business data files, a file name of each business data file, a file name of a backup business data file corresponding to each business data file, and the backup business data. A backup information table that stores information corresponding to the names of the auxiliary storage devices in which the files exist; a file name of each business data file; a device name of a magnetic disk device in which each business data file exists; A catalog file that stores information corresponding to a backup necessity flag and an I / O error that is detected when an access error repeatedly occurs over a specified number of times when an application program accesses a business data file. I
I / O error detecting means and whether or not backup of the business data file relating to the I / O error detected by the I / O error detecting means is necessary is referred to by referring to the backup necessity flag in the catalog file. When the judgment is made and "backup is required", a backup business data file corresponding to the business data file is generated, and the business data in the business data file is copied to the backup business data file. And a catalog converter for updating the backup information table and the catalog file by reflecting the copy made by the copying means.
【請求項3】 バックアップ用業務データファイルが生
成される補助記憶装置が磁気ディスク装置であることを
特徴とする請求項1または請求項2記載の磁気ディスク
装置障害時業務データファイルワンポイントバックアッ
プ方式。
3. The one-point backup method for a business data file in the event of a failure of a magnetic disk device according to claim 1, wherein the auxiliary storage device in which the business data file for backup is generated is a magnetic disk device.
JP6054753A 1994-02-28 1994-02-28 One point backup method of business data file in case of magnetic disk device failure Expired - Lifetime JP2746102B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6054753A JP2746102B2 (en) 1994-02-28 1994-02-28 One point backup method of business data file in case of magnetic disk device failure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6054753A JP2746102B2 (en) 1994-02-28 1994-02-28 One point backup method of business data file in case of magnetic disk device failure

Publications (2)

Publication Number Publication Date
JPH07239757A JPH07239757A (en) 1995-09-12
JP2746102B2 true JP2746102B2 (en) 1998-04-28

Family

ID=12979538

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6054753A Expired - Lifetime JP2746102B2 (en) 1994-02-28 1994-02-28 One point backup method of business data file in case of magnetic disk device failure

Country Status (1)

Country Link
JP (1) JP2746102B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007280236A (en) * 2006-04-11 2007-10-25 Hitachi Ltd Backup method and backup program

Also Published As

Publication number Publication date
JPH07239757A (en) 1995-09-12

Similar Documents

Publication Publication Date Title
US7152184B2 (en) Storage device, backup method and computer program code of this storage device
JP4422016B2 (en) Method and apparatus for creating a virtual data copy
US8015441B2 (en) Verification of computer backup data
JP3197382B2 (en) Method and system for incremental time zero backup copy of data
EP1470485B1 (en) Method and system for providing image incremental and disaster recovery
JP4624829B2 (en) Data backup system and method
US7293146B1 (en) Method and apparatus for restoring a corrupted data volume
KR19980024086A (en) Computer system and file management methods
JPH1074168A (en) Device and method for generating copy of data file
JPH0823841B2 (en) Data processing system and method
JPH10133959A (en) Method and system for backing up and restoring data in multi-system environment
JPS5913783B2 (en) Duplicate file method
JP2746102B2 (en) One point backup method of business data file in case of magnetic disk device failure
JP2005038176A (en) Computer system and file management method
JP3043662B2 (en) Data backup method
JP2000207264A (en) Backup method and restoring method
JPH07281933A (en) Computer system
JPS58107976A (en) Protecting method for volume managing information
JPH10333961A (en) Data base recovery system and computer-readable recording medium recording recovery program
JPH10240620A (en) Computer system and check point image preservation method in the system
JP3259705B2 (en) Recovery method of input / output error in duplicated file, apparatus and recording medium on which the method is programmed and recorded
JP2005316697A (en) Disk array system and method for data backup
JPH05313973A (en) Backup system for external memory device
JPH02120925A (en) Data protection system at the time of generating reading error in disk medium
JPH0581103A (en) System for restoring duplexing film