JPH06348574A - Data managing method for mltiplexed file - Google Patents
Data managing method for mltiplexed fileInfo
- Publication number
- JPH06348574A JPH06348574A JP5138364A JP13836493A JPH06348574A JP H06348574 A JPH06348574 A JP H06348574A JP 5138364 A JP5138364 A JP 5138364A JP 13836493 A JP13836493 A JP 13836493A JP H06348574 A JPH06348574 A JP H06348574A
- Authority
- JP
- Japan
- Prior art keywords
- file
- multiplexed
- files
- matrix
- input
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 239000011159 matrix material Substances 0.000 claims abstract description 24
- 238000011084 recovery Methods 0.000 claims description 22
- 238000013523 data management Methods 0.000 claims description 8
- 230000002159 abnormal effect Effects 0.000 claims description 5
- 238000007726 management method Methods 0.000 description 9
- 230000000903 blocking effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000003213 activating effect Effects 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、多重化されたファイル
のいずれかに障害が検出された場合に、ファイル内のデ
ータ単位、またはファイル全体の復旧手順に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a procedure for recovering a data unit in a file or an entire file when a failure is detected in any of the multiplexed files.
【0002】[0002]
【従来の技術】従来の公知例としては、特開昭62−2
60239が知られている。2. Description of the Related Art As a known example of the prior art, Japanese Patent Laid-Open No. 62-2
60239 is known.
【0003】この公知例のものは、二重化ファイルの入
出力操作で正常に処理できたファイルのデータより障害
となった箇所を復旧することにより、即時復旧が行わ
れ、二重化ファイルの信頼性低下を防止できるようにす
るものである。In this publicly known example, immediate recovery is performed by recovering a defective portion from the data of the file that can be normally processed by the input / output operation of the duplicated file, and the reliability of the duplicated file is deteriorated. It is to prevent it.
【0004】また、この公知例以前のものについては、
使用しているファイルに障害が発生した場合、ファイル
を使用する業務が終了したあとで、障害が発生したファ
イルに対して、正常なファイルを複写し、障害復旧を行
う方法であった。Regarding the prior art,
When an error occurs in a file being used, a method of copying a normal file to the file in which the error occurred and performing error recovery after the work using the file ends.
【0005】[0005]
【発明が解決しようとする課題】上述した従来の多重化
ファイルのデータ管理方法で、特開昭62−26023
9の方法では、ファイルが二重化されているものについ
てのみ考慮されていることから、ファイルが三重化以上
の多重化に対し対応できないという欠点がある。SUMMARY OF THE INVENTION The above-mentioned conventional data management method for multiplexed files is disclosed in Japanese Patent Laid-Open No. 62-26023.
The method of 9 has a drawback that the file cannot deal with the multiplexing of more than triple, because only the duplicated file is considered.
【0006】また、この公知例以前のものの方法では、
障害が発生したファイルに対し復旧手順を行うのは、す
べてのファイル処理が終了し、復旧命令を掛けたときで
あることから、コンピュータシステムの運用時間が長く
なると、ファイル内の正しいデータは少なくなることが
考えられ、システムの信頼性が悪くなるという欠点があ
る。Further, in the method of the prior art,
The recovery procedure for a failed file is when all file processing is completed and a recovery command is issued. Therefore, if the operating time of the computer system increases, the correct data in the file will decrease. Therefore, there is a drawback that the reliability of the system is deteriorated.
【0007】[0007]
【課題を解決するための手段】本発明の目的は、一時的
なファイル障害により多重化ファイルの不一致が発生し
た場合、ファイルの復旧は上述したもののほか、多重化
ファイル内のデータを使用するときにアクセスしたデー
タについて復旧処理を行い、ファイル内のデータの不一
致を減らし、ファイルデータの信頼性の向上を図ること
にある。SUMMARY OF THE INVENTION It is an object of the present invention to recover a file when the data in the multiplexed file is used in addition to the above-mentioned method when the mismatch of the multiplexed files occurs due to a temporary file failure. This is to improve the reliability of file data by performing a recovery process on the data accessed to reduce the inconsistency of the data in the file.
【0008】そのため、本発明の多重化ファイルのデー
タ管理方法は、2つ以上の多重化されたファイルと、多
重化されたファイルの入出力制御を行う入出力制御部と
を有するコンピュータシステムの多重化ファイルのデー
タ管理方法であって、入出力制御部が、多重化されたフ
ァイルに入出力処理を行う手段と、多重化されたファイ
ルのいずれかに障害が発生したときの復旧処理を行う手
段とを有し、多重化されたファイルの入力処理の実行状
況と復旧処理の実行状況との判断基準として2行n列
(n;多重化されたファイルの数)の行列を用いること
を特徴としている。Therefore, a data management method for a multiplexed file according to the present invention is a multiplexing method for a computer system having two or more multiplexed files and an input / output control unit for controlling input / output of the multiplexed files. A method for managing data of an encrypted file, wherein an input / output control unit performs an input / output process on the multiplexed file and a recovery process when a failure occurs in any of the multiplexed files. And a matrix of 2 rows and n columns (n; the number of multiplexed files) is used as a criterion for determining the execution status of the input processing of the multiplexed file and the execution status of the restoration processing. There is.
【0009】[0009]
【実施例】次に、本発明の実施例について図面を参照し
て説明する。Embodiments of the present invention will now be described with reference to the drawings.
【0010】図1は本発明による多重化ファイルのデー
タ管理方法の一実施例で用いられる2行n列(n:多重
度)の行列を示す図、図2〜図8は図1の行列を用いて
行う処理の流れ図である。FIG. 1 is a diagram showing a matrix of 2 rows and n columns (n: multiplicity) used in an embodiment of a data management method of a multiplexed file according to the present invention, and FIGS. 2 to 8 show the matrix of FIG. It is a flowchart of the process performed using.
【0011】まず、この実施例で用いられる2行n列
(n:多重度)の行列について図1を参照して説明す
る。First, a matrix of 2 rows and n columns (n: multiplicity) used in this embodiment will be described with reference to FIG.
【0012】図1に示すように、この2行n列(n:多
重度)は、1行目がファイルの現時点での利用状況、2
行目がシステム稼働開始からの利用状況を示すものであ
る。As shown in FIG. 1, in the 2nd row and the nth column (n: multiplicity), the first row shows the usage status of the file at the present time, 2
The line shows the usage status from the start of system operation.
【0013】1行目の値はai で表しており、この値に
より正常・障害・閉塞のいずれかを表す。2行目の値は
bi で表しており、この値により正常・一時的に障害状
態になったがこの間に正常系に更新が発生しなかった・
障害状態になった間に正常系に更新が発生のいずれかを
表す。The value in the first line is represented by ai, and this value represents either normal, fault, or occlusion. The value on the second line is represented by bi, and this value caused normal / temporary failure, but during this time no update occurred in the normal system.
Indicates that the normal system has been updated while the failure occurred.
【0014】次に、アプリケーションを起動する場合に
ついて図面を参照して説明する。Next, the case of activating an application will be described with reference to the drawings.
【0015】図2〜図4は図1の行列を用いてアプリケ
ーション実行時のファイル管理の処理を示す流れ図であ
る。2 to 4 are flow charts showing the file management processing when the application is executed using the matrix of FIG.
【0016】アプリケーションが起動されると(ステッ
プ21)、アプリケーションで使用するファイルに多重
化ファイルがある場合、多重化ファイルが全てアクセス
できた場合は、ファイル内のレコードREAD、全ての
多重化ファイルにWRITEを行い終了する(ステップ
231,232,233,234)。多重化ファイルの
うち、アクセスできなかったものがあった場合、ファイ
ル内のレコードREAD,WRITEにより行列の書き
換えを行う(ステップ241,242,2421,24
22,2423,2424)。アプリケーション起動時
に、このアプリケーションが使用すべき多重化ファイル
の管理状況が0行列でないときは、図3、図4の手順で
行う。When the application is started (step 21), if the file used by the application has a multiplexed file, or if all the multiplexed files can be accessed, the record READ in the file, all the multiplexed files WRITE is performed and the process ends (steps 231, 232, 233, 234). When some of the multiplexed files cannot be accessed, the matrix is rewritten by the records READ and WRITE in the file (steps 241, 242, 2421, 24).
22, 2423, 2424). If the management status of the multiplexed file to be used by this application is not 0 matrix at the time of starting the application, the procedure of FIGS. 3 and 4 is performed.
【0017】次に、ファイル復旧を行う場合について図
面を参照して説明する。Next, the case of performing file restoration will be described with reference to the drawings.
【0018】図5、図6は図1の行列を用いてファイル
障害発生時の復旧処理を示す流れ図である。FIGS. 5 and 6 are flow charts showing the recovery processing when a file failure occurs using the matrix of FIG.
【0019】ジョブ制御言語等で、復旧対象の多重化フ
ァイルを指定し(ステップ51)、管理テーブルの1列
目をチェックできるように引数iに1をセットし(ステ
ップ52)、指定した多重化ファイルに対する管理テー
ブルをチェックし(ステップ53)、ステップ53にて
i個目のファイルに対応する引数bi について、bi≠
0のときは後述するファイル復旧を行う。ファイル復旧
後は、i列目の引数に0をセットし(ステップ54)、
引数に1を加える(ステップ55)。前述のステップ5
3で2行i列目(=bi )の値が0でなかったとき、正
常系のファイルの探すための引数jに1をセットし(ス
テップ61)、j個目のファイルに対応する引数につい
て、bj =0のときは正常系であるj個目のファイルを
異常系であるi個目のファイルにコピーし(ステップ6
3)、bj ≠0のときは引数jに1を加える(ステップ
62)。ステップ64は、一組の多重化ファイルについ
て、ファイル更新があるなしにかかわらず、全てが障害
状態になったことがある場合に、引数kに1をセットす
る。k個目のファイルに対応する引数bk について、b
k =1(障害状態になったことはあるが、この間に正常
系の他ファイルに対して更新は行われなかった)とき
は、k個目のファイルを異常系であるi個目のファイル
にコピーし(ステップ67)、bk ≠1のときは引数k
に1を加える(ステップ65)。ステップ66は、一組
の多重化ファイルの全てが異常系である場合は、多重化
ファイル1つ1つについてレコード単位でチェックを行
い、不一致があったものを全てダンプ出力すると共に、
ファイル閉塞も行うものである。A multiplexing file to be restored is designated by a job control language or the like (step 51), an argument i is set to 1 so that the first column of the management table can be checked (step 52), and the designated multiplexing is performed. The management table for the file is checked (step 53), and in the step 53, for the argument bi corresponding to the i-th file, bi ≠
When it is 0, file recovery described later is performed. After the file is restored, 0 is set in the argument of the i-th column (step 54),
Add 1 to the argument (step 55). Step 5 above
When the value of the 2nd row and i-th column (= bi) in 3 is not 0, 1 is set to the argument j for searching for a normal file (step 61), and the argument corresponding to the j-th file is set. , Bj = 0, the j-th file which is the normal system is copied to the i-th file which is the abnormal system (step 6).
3), when bj ≠ 0, 1 is added to the argument j (step 62). Step 64 sets 1 to the argument k when a set of multiplexed files has all been in a failure state regardless of whether or not there is a file update. For the argument bk corresponding to the kth file, b
If k = 1 (although there was a failure, but other normal files were not updated during this period), the kth file is changed to the i-th file which is the abnormal system. Copy (step 67), and if bk ≠ 1, argument k
Is added to 1 (step 65). In step 66, if all of the set of multiplexed files are abnormal, a check is performed for each multiplexed file on a record-by-record basis, and if there is a mismatch, all are output in a dump.
It also closes files.
【0020】次に、シャットダウン実行時のファイル復
旧について図面を参照して説明する。Next, file recovery at the time of executing shutdown will be described with reference to the drawings.
【0021】図7は図1の行列を用いてシャットダウン
実行時の復旧処理を示す流れ図である。FIG. 7 is a flow chart showing a recovery process at the time of executing shutdown using the matrix of FIG.
【0022】これは、図5および図6の復旧手順から、
ステップ51の復旧手順を行う多重化ファイルの指定を
除き、無条件に全ての管理対象の多重化ファイルに対し
復旧手順を行うことを加えるものである。This is based on the restoration procedure of FIG. 5 and FIG.
Except for the specification of the multiplexed file for performing the recovery procedure in step 51, the recovery procedure is unconditionally performed for all the multiplexed files to be managed.
【0023】次に、ファイル副給仕に閉塞された多重化
ファイルの閉塞解除を行う場合について図面を参照して
説明する。Next, the case of releasing the blocking of the multiplexed file blocked by the file sub-serving will be described with reference to the drawings.
【0024】図8は図1の行列を用いてファイル閉塞状
態になっているときの閉塞解除処理を示す流れ図であ
る。FIG. 8 is a flowchart showing the block release processing when the file is in the block state using the matrix of FIG.
【0025】ジョブ制御言語等で、復旧対象の多重化フ
ァイルに対し、レコード単位で正しいものを記述または
指定し(ステップ81)、指定されたレコードについて
置き換えを行い(ステップ82)、閉塞解除を行う場合
については多重化ファイルのレコードに対し1件ずつチ
ェックを行い(ステップ83)、多重化ファイルが全て
一致した場合にはファイル閉塞を解除する(ステップ8
4)と共に、管理テーブルTも0とする(ステップ8
5)。多重化ファイルのレコードに不一致のものがあれ
ば、これについてダンプ出力を行う(ステップ86)。A job control language or the like is used to describe or specify a correct record-by-record multiplexed file to be restored (step 81), replace the specified record (step 82), and release the blockage. In the case, the records of the multiplexed file are checked one by one (step 83), and when all the multiplexed files match, the file blocking is released (step 8).
Along with 4), the management table T is also set to 0 (step 8)
5). If the records in the multiplexed file do not match, dump output is performed for these records (step 86).
【0026】[0026]
【発明の効果】以上説明したように、本発明の多重化フ
ァイルのデータ管理方法は、多重化ファイルの利用状況
を行列を用いて管理することにより、障害状況の管理を
容易にすることができるという効果を奏する。As described above, according to the data management method of the multiplexed file of the present invention, the utilization status of the multiplexed file is managed by using the matrix, so that the management of the failure status can be facilitated. Has the effect.
【0027】また、本発明の多重化ファイルのデータ管
理方法は、行列がファイルの不一致を意味した場合に
は、このファイルを利用するアプリケーションの実行時
にアクセスしたレコードについて正常系のレコードを障
害系のファイルにコピーするようにしたことにより、フ
ァイルの信頼性向上と障害復旧の簡潔化が図れれるとい
う効果を奏する。Further, in the method of managing data of a multiplexed file according to the present invention, when the matrix means that the files do not coincide with each other, the record accessed in the execution of the application using this file is replaced with the record of the normal system of the failure system. By copying the file, it is possible to improve the reliability of the file and simplify the failure recovery.
【図1】本発明による多重化ファイルのデータ管理方法
の一実施例で用いられる2行n列(n:多重度)の行列
を示す図である。FIG. 1 is a diagram showing a matrix of 2 rows and n columns (n: multiplicity) used in an embodiment of a data management method of a multiplexed file according to the present invention.
【図2】図1の行列を用いてアプリケーション実行時の
ファイル管理の処理を示す流れ図である。FIG. 2 is a flowchart showing file management processing when an application is executed using the matrix of FIG.
【図3】図1の行列を用いてアプリケーション実行時の
ファイル管理の処理を示す流れ図である。FIG. 3 is a flowchart showing file management processing when an application is executed using the matrix of FIG.
【図4】図1の行列を用いてアプリケーション実行時の
ファイル管理の処理を示す流れ図である。FIG. 4 is a flowchart showing a file management process when an application is executed using the matrix of FIG.
【図5】図1の行列を用いてファイル障害発生時の復旧
処理を示す流れ図である。5 is a flow chart showing a recovery process when a file failure occurs using the matrix of FIG. 1. FIG.
【図6】図1の行列を用いてファイル障害発生時の復旧
処理を示す流れ図である。FIG. 6 is a flowchart showing a recovery process when a file failure occurs using the matrix of FIG.
【図7】図1の行列を用いてシャットダウン実行時の復
旧処理を示す流れ図である。FIG. 7 is a flowchart showing a recovery process at the time of executing shutdown using the matrix of FIG.
【図8】図1の行列を用いてファイル閉塞状態になって
いるときの閉塞解除処理を示す流れ図である。FIG. 8 is a flow chart showing blocking release processing when a file is blocked using the matrix of FIG. 1;
Claims (3)
記多重化されたファイルの入出力制御を行う入出力制御
部とを有するコンピュータシステムの多重化ファイルの
データ管理方法において、前記入出力制御部が、前記多
重化されたファイルに入出力処理を行う手段と、前記多
重化されたファイルのいずれかに障害が発生したときの
復旧処理を行う手段とを有し、前記多重化されたファイ
ルの入力処理の実行状況と前記復旧処理の実行状況との
判断基準として2行n列(n;多重化されたファイルの
数)の行列を用いることを特徴とする多重化ファイルの
データ管理方法。1. A method for managing data of a multiplexed file in a computer system, comprising: two or more multiplexed files; and an input / output control unit for controlling input / output of the multiplexed file. The control unit has means for performing input / output processing on the multiplexed file, and means for performing recovery processing when a failure occurs in any of the multiplexed files, A data management method for a multiplexed file, characterized in that a matrix of 2 rows and n columns (n; the number of multiplexed files) is used as a criterion for determining the execution status of the file input processing and the recovery status. .
ルを管理する手段を有し、1組の多重化されたファイル
ごとに2行n列(n:多重度)の行列を持ち、この行列
によりファイルの利用状況を管理することを特徴とする
請求項1記載の多重化ファイルのデータ管理方法。2. The input / output control unit has means for managing the multiplexed file, and has a matrix of 2 rows and n columns (n: multiplicity) for each set of multiplexed files. The data management method for a multiplexed file according to claim 1, wherein the usage status of the file is managed by a matrix.
ファイルのいずれかに障害があるときはこのファイルを
除き入出力処理を行うと共にその障害状況を認識し前記
多重化されたファイルのいずれかに不一致がありうると
認識しているときは正常系のファイルから異常系のファ
イルへアクセスしたデータ毎にコピーを行う手順と、フ
ァイルを使用する業務が終了後に異常系のファイルに対
し正常系のファイルの複写を行う復旧手順と、前記コン
ピュータシステムのシャットダウン時に前記復旧手順に
よる復旧処理を行う手順と、前記多重化されたファイル
を全てに対して不一致がありうると認識するデータ復旧
手順とを有することを特徴とする請求項2記載の多重化
ファイルのデータ管理方法。3. When any of the multiplexed files has a failure, the input / output control unit performs input / output processing except for this file, recognizes the failure status, and recognizes the failure status of the multiplexed file. When it is recognized that there may be inconsistency in any of the above, the procedure to copy each file that accessed the abnormal file from the normal file and the normal operation for the abnormal file after the work using the file is completed A recovery procedure for copying a system file, a procedure for performing a recovery process according to the recovery procedure at the time of shutting down the computer system, and a data recovery procedure for recognizing that there may be a mismatch for all the multiplexed files. The data management method for a multiplexed file according to claim 2, further comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5138364A JP2507960B2 (en) | 1993-06-10 | 1993-06-10 | Data management method for multiplexed files |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5138364A JP2507960B2 (en) | 1993-06-10 | 1993-06-10 | Data management method for multiplexed files |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH06348574A true JPH06348574A (en) | 1994-12-22 |
| JP2507960B2 JP2507960B2 (en) | 1996-06-19 |
Family
ID=15220211
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5138364A Expired - Lifetime JP2507960B2 (en) | 1993-06-10 | 1993-06-10 | Data management method for multiplexed files |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2507960B2 (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS60229149A (en) * | 1984-04-26 | 1985-11-14 | Nippon Telegr & Teleph Corp <Ntt> | File update system |
-
1993
- 1993-06-10 JP JP5138364A patent/JP2507960B2/en not_active Expired - Lifetime
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS60229149A (en) * | 1984-04-26 | 1985-11-14 | Nippon Telegr & Teleph Corp <Ntt> | File update system |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2507960B2 (en) | 1996-06-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1602042B1 (en) | Database data recovery system and method | |
| JP4472995B2 (en) | How to generate a mirror copy that uses incremental mismatch | |
| US5594900A (en) | System and method for providing a backup copy of a database | |
| US6745304B2 (en) | Method and device for storing computer data with back-up operations | |
| JP3410899B2 (en) | How to recover a multivolume data set | |
| US20020095616A1 (en) | Recovering data from arrays of storage devices after certain failures | |
| JP3972801B2 (en) | Backup method in hierarchical backup system | |
| JP2507960B2 (en) | Data management method for multiplexed files | |
| KR100234634B1 (en) | I / O device with inspection and recovery function | |
| JP3290182B2 (en) | Data set backup method and apparatus in shared environment | |
| JP3220182B2 (en) | File copying machine | |
| JP2001188690A (en) | Computer system and checkpoint information storage method | |
| JP4358943B2 (en) | Automatic backup system and recording medium recording automatic backup program | |
| JP2853527B2 (en) | Automatic file failure recovery system | |
| JP2004078437A (en) | Method and system for duplexing file system management information | |
| JPS63262737A (en) | Data base updating and recording processing method | |
| JPH04337856A (en) | Management system for duplexing storage device | |
| JP3463696B2 (en) | Online garbage collection processing method | |
| JPH04141751A (en) | Fault recovery system for mass storage medium | |
| Alapati | Backing Up Databases | |
| JP2712819B2 (en) | Dynamic copy control method for duplicated files | |
| JPH0581103A (en) | System for restoring duplexing film | |
| JPH05173864A (en) | File recovery system | |
| CN115080316A (en) | Cross-storage-platform double-active disaster recovery protection method and system based on virtualization technology | |
| JPH06187102A (en) | Duplex disk processing method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 19960213 |