JPS63280349A - File recovery method - Google Patents

File recovery method

Info

Publication number
JPS63280349A
JPS63280349A JP62114595A JP11459587A JPS63280349A JP S63280349 A JPS63280349 A JP S63280349A JP 62114595 A JP62114595 A JP 62114595A JP 11459587 A JP11459587 A JP 11459587A JP S63280349 A JPS63280349 A JP S63280349A
Authority
JP
Japan
Prior art keywords
data
area
input
data storage
information
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
JP62114595A
Other languages
Japanese (ja)
Inventor
Kikuo Takahashi
高橋 喜久雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62114595A priority Critical patent/JPS63280349A/en
Publication of JPS63280349A publication Critical patent/JPS63280349A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To take out data from an invalid area by generating a table where positions of data in a storage part are indicated and comparing a data input position with position information in the table with each other at the time of inputting data to detect an invalid area. CONSTITUTION:Members A and C are stored in a member storage area 400 on a segment data set 200 and invalid areas B and D exist there. Directory entries A, C corresponding to members A and C are inputted from on a directory area 300 and pointer information to members A and C are obtained to generate a pointer table 500, and pointer information are sorted in the ascending order of pointer, and position information of data input on the set 200 and pointers are indicated with relative positions based on the start of the set 200. Position information of data input is compared with the i-th information in the table 500 to decide whether inputted data is data in input data areas B and D or not.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理システムにおけるファイルシステムに
係り、特にアクセス不能となったファイル上のデータを
アクセス可能状態に回復するのに好適なファイル回復方
法に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a file system in an information processing system, and in particular to a file recovery method suitable for restoring data on files that have become inaccessible to an accessible state. Regarding.

〔従来の技術〕[Conventional technology]

当社やIBM社の計算機システムなどで用いられている
ファイル(前記計算機システムにおいてはデータセット
呼ぶので以下においてもデータセットと記す)の1つと
して区分編成と呼ばれるデータセットがある。この区分
編成データセットは、当社マニュアル(プログラムプロ
ダクトVO8/ESデータ管理解説−8091−3−0
42−10ページ47.48およびVO32/VO33
デ一タ形式−8080−3−004ページ83)に記載
されるように、ディレクトリ領域と呼ばれるデータ格納
位置情報を含む管理部とメンバ領域と呼ばれるデータ格
納部より構成されており、さらにメンバ領域はメンバと
呼ばれるサブデータ格納部に分割され、該メンバへのポ
インタが前記ディレクトリ領域にディレクトリエントリ
として登録されており、メンバをアクセスする場合には
該メンバに対応する前記ディレクトリニジトリを介して
行なわれる方式となっている。また、前記メンバを更新
または削除した場合には以下に述べる方式を採っている
。メンバを更新する場合には、更新された該メンバ全体
を格納するための領域を新たに確保し、対応するディレ
クトリエントリ中のポインタを更新された該メンバを格
納した前記新たに確保した領域を指すように変更する。
One of the files used in the computer systems of our company and IBM (in the computer systems mentioned above, it is called a data set, so it will also be referred to as a data set below) is a data set called a partitioned organization. This segmented data set is based on our manual (Program Product VO8/ES Data Management Explanation-8091-3-0).
42-10 pages 47.48 and VO32/VO33
As described in Data Format - 8080-3-004 page 83), it consists of a management section called a directory area that contains data storage location information and a data storage section called a member area. It is divided into sub-data storage units called members, and pointers to the members are registered as directory entries in the directory area, and when accessing a member, it is done via the directory directory corresponding to the member. It is a method. Furthermore, when the member is updated or deleted, the method described below is adopted. When updating a member, a new area is allocated to store the entire updated member, and a pointer in the corresponding directory entry points to the newly allocated area that stores the updated member. Change it as follows.

また、メンバを削除する場合には、対応する該メンバ用
のディレクトリエントリのみを削除することにより該メ
ンバのアクセスを不能としている。したがって、更新前
および削除されたメンバは前記メンバ領域上にそのまま
残っているが、前記ディレクトリ領域上に対応するポイ
ンタが存在しないためアクセス不能となっている。
Furthermore, when deleting a member, only the directory entry for the corresponding member is deleted, thereby making the member inaccessible. Therefore, although the unupdated and deleted members remain in the member area, they are inaccessible because there is no corresponding pointer in the directory area.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記従来方法は、誤操作により前記メンバを削除もしく
は更新した場合の配慮がされておらず、物理的には前記
メンバ領域上に残っている削除もしくは更新前の元の情
報をアクセスできないという問題があった。
The conventional method described above does not take into consideration the case where the member is deleted or updated due to an erroneous operation, and there is a problem in that the original information remaining in the member area before deletion or update cannot be physically accessed. Ta.

本発明の目的は前記問題点を解決するため、一度アクセ
ス不能となったファイル(データセット)上の情報を取
り出すファイル回復方法を提供することにある。
SUMMARY OF THE INVENTION In order to solve the above problems, an object of the present invention is to provide a file recovery method for retrieving information on a file (data set) that has once become inaccessible.

〔問題点を解決するための手段〕[Means for solving problems]

上記目的は、ファイル(データセット)上の前記ディレ
クトリ領域上の現在アクセス可能な前記メンバへのポイ
ンタと、前記メンバ領域中よりデータを入力する時に得
た、該データ存在位置とを比較し、該データが前記無効
領域上のデータであるか否かを判断することにより達成
される。
The above purpose is to compare the pointer to the currently accessible member in the directory area on the file (data set) with the location of the data obtained when inputting data from the member area. This is achieved by determining whether the data is on the invalid area.

〔作用〕[Effect]

ディレクトリ領域上の情報を基に、ファイル(データセ
ット)中の無効領域を判断し、無効領域上の情報を取り
出すことが可能となり、誤操作または正常操作によらず
、削除または、内容を書き変えたデータの回復が可能で
あり、従来のようにあらかじめバックアップ操作を行な
わずとも、ファイルの回復手段を提供することができる
Based on the information on the directory area, it is possible to determine the invalid area in a file (dataset) and retrieve the information in the invalid area, so that it is possible to delete or rewrite the contents due to incorrect or normal operation. Data can be recovered, and file recovery means can be provided without having to perform a backup operation in advance as in the past.

〔実施例〕〔Example〕

以下、本発明の一実施例を第1図〜第4図により説明す
る。第1図は本実施例における概略フローを示し、第2
図は本実施例で対象とするファイル(データセット)の
端造を示したものである。
An embodiment of the present invention will be described below with reference to FIGS. 1 to 4. Figure 1 shows the general flow in this example, and the second
The figure shows an outline of a file (data set) targeted in this embodiment.

第1図に示すファイル回復処理を説明するにあたり、回
復すべきファイル(データセット)が現在第2図で示す
ような状態にあると仮定して説明する。まず第2図を簡
単に説明する。ファイル(区分データセット20o)上
のメンバ格納領域400にはメンバA410とメンバC
430が格納されており、無効領域として無効領域B4
20が存在し、該無効領域B420は、前記メンバC4
30の更新(この場合は前記無効領域B420には前記
メンバC430の更新前のデータが残っている)や、メ
ンバBを削除した場合(この場合は削除されたメンバB
の内容が残っている)に発生する、無効領域D440も
同様に前記メンバ領域400上のいずれかのメンバに対
して削除、夏作操作を行うことにより発生する。このよ
うな区分データセット200上の削除されたメンバまた
は、誤って更新してしまたメンバの内容を元の内容に回
復する一実施例を第1図を用いて説明する。第1図の初
期化処理部10においてフロー図に示すフラッグを初期
化する。endフラッグは処理終了判定用、 Flag
フラッグは無効領域取り出しフラッグ、iは、後述の無
効領域判定時のポインタ比較用インディクスである。次
に、ポインタテーブル作成部20では、第2図で示すデ
ィレクトリ領域300上より、前記メンバ領域400上
に格納されている有効メンバ、すなわち、前記メンバA
410および同メンバC430に対応するディレクトリ
エントリA310.C320を入力し、前記メンバA4
10.およびC430へのポインタ情報を得てポインタ
テーブル500を作成し、該ポインタテーブル上のポイ
ンタ(第3図のTTR^510゜TTRa520)の小
さい順にソートしておく。
In explaining the file recovery process shown in FIG. 1, it is assumed that the file (data set) to be recovered is currently in the state shown in FIG. First, FIG. 2 will be briefly explained. The member storage area 400 on the file (partitioned data set 20o) contains member A410 and member C.
430 is stored, and invalid area B4 is stored as an invalid area.
20 exists, and the invalid area B420 is the member C4.
30 (in this case, the data before the update of the member C430 remains in the invalid area B420), or when member B is deleted (in this case, the deleted member B
Similarly, an invalid area D440 that occurs in the member area 400 (the contents of which remain) is also generated when deletion or summer cropping operations are performed on any member on the member area 400. An example of restoring the contents of a member deleted or erroneously updated on such a partitioned data set 200 to its original contents will be described with reference to FIG. In the initialization processing unit 10 of FIG. 1, the flags shown in the flowchart are initialized. The end flag is for determining the end of processing, Flag
The flag is an invalid area extraction flag, and i is an index for pointer comparison when determining an invalid area, which will be described later. Next, the pointer table creation unit 20 selects the valid members stored in the member area 400 from the directory area 300 shown in FIG.
410 and the directory entry A310.410 corresponding to member C430. C320 and said member A4
10. A pointer table 500 is created by obtaining pointer information to C430, and the pointers on the pointer table (TTR510°TTRa520 in FIG. 3) are sorted in descending order.

次にデータ入力位置付は部30により、前記メンバ領域
400の先頭に位置付け、データ入力部40により、前
記メンバ領域400上のデータを入力し、該入力データ
の前記区分データセット200上の位置情報(第4図T
TRx 600)を得る。このとき、前記ポイント(T
TR^510゜TTRc 520)および前記入力デー
タ位置情報TTR,600は、前記区分データセット2
00の先頭を起点とした相対位置で示されており、前記
データ入力処理部40でデータ入力した時の前記TTR
,600と前記ポインタテーブル500中のi番目とを
比較70により比較することにより該入力データが無効
領域内のデータか否かが判定できる0本実施例では、前
記メンバA410の先頭データを入力した時の該入力デ
ータの位置(TTR,600)は前記ポインタテーブル
の1番目(i=1である)の内TTR^510に等しく
、この場合は比較70が成立しく15MのMはポインタ
テーブル500中のエントリ数である)、前記ポインタ
テーブル用インデックスであるiを更新(第1図100
)L、た後、処理110,120゜130の流れにより
当該メンバの終りまでデータを読み飛ばし、前記データ
入力位置付は部30に戻る。このときの位置付は場所は
、前述のデータ読み飛し部110で最後に読み飛ばした
データの位置の次の位置とする0次に、前述と同様にデ
ータ入力部40によりデータを入力し、比較70により
比較する。この場合は、前記のi=2であるから、前記
メンバC430の位置を示す前記ポインタテーブル50
0中のTTRB 520と入力データ位置とを比較する
ことになり、前記比較70はNoとなり無効領域B42
0上のデータであると判断し、処理80により無効領域
取り出しフラッグFlagを1とし、処理90により回
復データ出力用の別データセットへ前記40で入力した
データを山々し、この処理40〜90の処理をくり返え
すことにより無効領域上のデータが順次取り出される。
Next, the data input positioning unit 30 positions the head of the member area 400, the data input unit 40 inputs the data on the member area 400, and the position information of the input data on the segmented data set 200 is inputted. (Figure 4 T
TRx 600). At this time, the point (T
TR^510°TTRc 520) and the input data position information TTR,600 are
It is indicated by a relative position starting from the beginning of 00, and is the TTR when data is input by the data input processing section 40.
, 600 and the i-th data in the pointer table 500 using the comparison 70, it can be determined whether the input data is data within the invalid area. The position of the input data (TTR, 600) at the time is equal to TTR^510 in the first (i=1) of the pointer table, and in this case, the comparison 70 is true and M of 15M is in the pointer table 500. is the number of entries), and updates i, which is the index for the pointer table (100 in FIG. 1).
)L, the data is skipped to the end of the member in the flow of processes 110, 120, and 130, and the data input positioning returns to section 30. The positioning at this time is the position next to the position of the last data skipped by the data skipping section 110 described above.Next, input data using the data input section 40 in the same manner as described above, Compare by comparison 70. In this case, since the above i=2, the pointer table 50 indicating the position of the member C430
The TTRB 520 in 0 and the input data position are compared, and the comparison 70 becomes No and the invalid area B42
It is determined that the data is above 0, the invalid area extraction flag is set to 1 in step 80, the data input in step 40 is piled up in another data set for outputting recovered data in step 90, and the data input in steps 40 to 90 are By repeating the process, data on the invalid area is sequentially retrieved.

該無効領域上には、かつて有効であったメンバがそのま
ま残されており、メンバの終了を示すEODと呼ばれる
レコードも残されており、該EODレコードは、前記処
理40のデータ入力処理の応答として計算機システムよ
り通知されるので、該EOD通知を処理60により検知
し、前記Flagが1の場合に今まで処理90で出力し
たデータを1つのメンバとして前記の回復データ出力用
データセットへ処理140により登録することにより前
記無効領域B420上の1つのメンバが前記の回復デー
タ出力用のデータセット上に取り出される。以上のよう
に1つのメンバを処理14  AOで登録した後、該処
理140への制御が処理50によるデータセットの終り
によるものか、処理60による1つのメンドの終りによ
るものかを処理150により判定し、前記区分データセ
ット200の全域を処理するまでループし、該区分デー
タセット上の全無効領域上のデータを取り出す。
In the invalid area, members that were once valid remain as they are, and a record called EOD indicating the end of the member is also left, and the EOD record is sent as a response to the data input process in step 40. Since it is notified by the computer system, the EOD notification is detected in process 60, and if the Flag is 1, the data outputted in process 90 so far is added to the recovery data output data set as one member in process 140. By registering, one member on the invalid area B420 is extracted onto the data set for outputting the recovery data. After registering one member in process 14 AO as described above, it is determined in process 150 whether the control to the process 140 is due to the end of a data set in process 50 or the end of one mend in process 60. Then, the process loops until the entire area of the partitioned data set 200 is processed, and data on all invalid areas on the partitioned data set is extracted.

本実施例によれば、区分データセット上のアクセス不可
能な無効領域上のデータをメンバ単位でアクセス可能な
形で取り出せるので、正常操作。
According to this embodiment, data in an inaccessible invalid area on a partitioned data set can be retrieved in an accessible format for each member, so normal operation is possible.

操作ミスを問わず、削除してしまったり、書き換えてし
まったメンバを、メンバ単位で元の状態に回復すること
が可能となり、バックアップ操作等をあらかじめ行って
いなくともデータの復元ができるという効果がある。
Regardless of an operational error, members that have been deleted or rewritten can be restored to their original state on a member-by-member basis, and the effect is that data can be restored without having to perform backup operations in advance. be.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、ファイル内の無効領域に残されている
データをアクセスすることができるので。
According to the present invention, data left in invalid areas within a file can be accessed.

無効領域上のデータによりファイルを回復できるという
効果がある。
This has the effect that files can be recovered using data on invalid areas.

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

第1図は本発明の一実施例を示す概略処理フロー、第2
図は本実施例で対象とする区分データセットの構造、第
3図は、第2図のディレクトリ領域より作成するポイン
タテーブル、第4図は第2図で示す区分データセット上
のデータ位置情報形式を示した図である。 10・・・初期化処理部、20・・・ポインタテーブル
作底部、30・・・データ入力位置付は部、40・・・
データ入力部、50・・・データセット終了判定部、6
0・・・メンバの終了判定部、70・・・比較部、90
・・・回復データ出力部、100・・・インディクス更
新部。 110.120・・・データ読み飛ばし部、130・・
・回復データ出力有無の判定部、140・・・復元メン
バ登録部、150・・・終了判定部、160・・・回復
データ出力有無判定フラッグのリセット部。
FIG. 1 is a schematic processing flow showing one embodiment of the present invention;
The figure shows the structure of the segmented data set targeted in this example, Figure 3 shows the pointer table created from the directory area of Figure 2, and Figure 4 shows the data location information format on the segmented data set shown in Figure 2. FIG. DESCRIPTION OF SYMBOLS 10... Initialization processing part, 20... Pointer table production part, 30... Data input position part, 40...
Data input section, 50...data set end determination section, 6
0... Member end determination section, 70... Comparison section, 90
. . . Recovery data output section, 100 . . . Index update section. 110.120...Data skipping section, 130...
・Recovery data output determination unit, 140: Restored member registration unit, 150: End determination unit, 160: Recovery data output determination flag reset unit.

Claims (1)

【特許請求の範囲】 1、ファイル領域内がデータを格納するためのデータ格
納部と、該データ格納部中に格納されている各データ対
応に該データの存在する位置を管理する情報を含む管理
部とにより成る情報処理システム用ファイルシステムに
おいて、前記データ格納部中のデータを更新、削除した
場合に、更新前または削除したデータの格納されていた
前記データ格納部中の領域が無効領域として残されるよ
うな前記ファイルシステムにおいて、 前記管理部より前記データ格納部に格納されているデー
タの位置を示すポインタテーブルを作成し、前記データ
格納部より順次データを入力する際、該入力データを入
力した位置(前記データ格納部上の位置)と前記ポイン
タテーブル上に格納されている、位置情報とを比較する
ことにより前記無効領域を検出し、該無効領域への位置
付けを可能とし、該無効領域上のデータ入力を可能とす
ることを特徴としたファイル回復方法。
[Claims] 1. A data storage section for storing data within a file area, and management including information for managing the location of the data corresponding to each data stored in the data storage section. In a file system for an information processing system consisting of a data storage section, when data in the data storage section is updated or deleted, the area in the data storage section where the updated or deleted data was stored remains as an invalid area. In the file system, the management unit creates a pointer table indicating the position of data stored in the data storage unit, and when sequentially inputting data from the data storage unit, the input data is input. The invalid area is detected by comparing the position (the position on the data storage unit) with the position information stored on the pointer table, and positioning in the invalid area is enabled. A file recovery method characterized by enabling data input.
JP62114595A 1987-05-13 1987-05-13 File recovery method Pending JPS63280349A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62114595A JPS63280349A (en) 1987-05-13 1987-05-13 File recovery method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62114595A JPS63280349A (en) 1987-05-13 1987-05-13 File recovery method

Publications (1)

Publication Number Publication Date
JPS63280349A true JPS63280349A (en) 1988-11-17

Family

ID=14641793

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62114595A Pending JPS63280349A (en) 1987-05-13 1987-05-13 File recovery method

Country Status (1)

Country Link
JP (1) JPS63280349A (en)

Similar Documents

Publication Publication Date Title
US5261088A (en) Managing locality in space reuse in a shadow written B-tree via interior node free space list
EP0994425B1 (en) System and method for generating file updates for files stored on read-only media
US4945474A (en) Method for restoring a database after I/O error employing write-ahead logging protocols
US8103621B2 (en) HSM two-way orphan reconciliation for extremely large file systems
JPH05342264A (en) Method for indexing and retrieval and device for the same
JPH07105064A (en) File name detection system
JP2009522677A (en) Method, system, and device for file system dump / restore by node numbering
US6192376B1 (en) Method and apparatus for shadowing a hierarchical file system index structure to enable error recovery
JPS62226375A (en) Picture information retrieving system
JP3957464B2 (en) Data update device
JPS63280349A (en) File recovery method
JPH0844609A (en) Data backup method
JPH08314780A (en) File management system
JPH10133934A (en) Distributed document managing system and program storing medium realizing it
JP2002342137A (en) Device and method for managing document and recording medium
JP2000207264A (en) Backup method and restoring method
JP4011662B2 (en) Electronic filing method and apparatus
JPH05250243A (en) Data processing system for extended storage device
JPH11219372A (en) Data categorizing device
JP3047400B2 (en) Data processing device
JPH01140353A (en) System for maintaining data in data base
JP2647044B2 (en) History management method
JPS62226487A (en) Memory control system for optical disk
JPH0447345A (en) File restoration controlling system
JPH0934764A (en) Method and device for processing information