JP2000235512A - Method for processing disk fault and machine readable recording medium recording program - Google Patents

Method for processing disk fault and machine readable recording medium recording program

Info

Publication number
JP2000235512A
JP2000235512A JP11036894A JP3689499A JP2000235512A JP 2000235512 A JP2000235512 A JP 2000235512A JP 11036894 A JP11036894 A JP 11036894A JP 3689499 A JP3689499 A JP 3689499A JP 2000235512 A JP2000235512 A JP 2000235512A
Authority
JP
Japan
Prior art keywords
file
disk
physical address
failure
medium
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
JP11036894A
Other languages
Japanese (ja)
Inventor
Hideichiro Aoki
秀一郎 青木
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 JP11036894A priority Critical patent/JP2000235512A/en
Publication of JP2000235512A publication Critical patent/JP2000235512A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To make it possible to restore a file including a fault position only by its copying without reinstalling the whole file by specifying the name of the file including the fault position and informing an operator of the name when a fault destructing data on a disk occurs. SOLUTION: An index area 43 is formed in a disk medium of a disk device in addition to a data area 41 for installing various files and a management area 42 for managing the area 41. A record 431 describing a group of physical address information 4311 and a file name 4312 is registered in the index area 43 in each installed file. When a fault occurs in a certain physical address of the disk medium during the operation of a computer system, the physical address generating the fault is compared with the physical address information 4311 of each record 431 registered in the index area 43 and the name of a file meeting with the fault is detected. The detected file name is informed to an operator, who restores the file by substituting the file.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はディスク装置を有す
る計算機におけるディスク障害処理方法に関し、特に、
運用中に何らかの原因でディスク上のデータが破壊され
る障害が発生した場合、障害発生物理アドレスから障害
に遭遇したファイルを特定し、ファイル置換により運用
を継続できるようにしたディスク障害処理方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a disk failure processing method in a computer having a disk device,
The present invention relates to a disk failure processing method in which, when a failure that destroys data on a disk during operation for some reason occurs, a file in which a failure has occurred is identified from the physical address of the failure, and the operation can be continued by file replacement.

【0002】[0002]

【従来の技術】一般にディスク装置を有する計算機にお
いては、ディスク媒体の記録領域を、各種のファイルを
格納するデータ領域と、このデータ領域に格納されたフ
ァイルの管理情報を格納する管理領域とに分け、オペレ
ーティングシステムを構成する各種システムファイルや
アプリケーションの各種ファイルをインストール媒体か
ら計算機にインストールする場合、ファイルの内容をデ
ィスク装置のデータ領域に格納し、そのファイル名や格
納位置などの管理情報を管理領域に格納し、その後の運
用時に、ディスク装置中のファイルを適宜に利用するよ
うにしている。このため、ディスク装置中のファイルが
使用できない状態になった場合、できるだけ速やかに復
旧する必要がある。
2. Description of the Related Art Generally, in a computer having a disk device, a recording area of a disk medium is divided into a data area for storing various files and a management area for storing management information of the files stored in the data area. When installing various system files and various application files that make up the operating system from the installation medium into the computer, the contents of the files are stored in the data area of the disk device, and management information such as the file names and storage locations is stored in the management area. At the time of subsequent operation, and the file in the disk device is appropriately used. Therefore, when a file in the disk device becomes unusable, it is necessary to recover the file as quickly as possible.

【0003】従来、計算機の障害発生に伴って或いは管
理者によって、ディスク装置のファイルが削除される場
合、削除指示対象のファイルが重要ファイルであるか否
かを判定し、その判定結果を出力することによって、計
算機管理者が、今後の運用においてオペレーティングシ
ステム等のシステム情報を再インストールすべきである
か否かの判断が行えるようにしたシステムが提案されて
いる(例えば特開平8−249219号公報)。しか
し、ディスク装置中のファイルが使用できなくなる原因
にはファイル削除以外に、何らかの原因でディスク装置
上のファイルのデータが破壊される障害が発生した場合
がある。このような障害が発生した時に、障害に遭遇し
たファイル名を速やかにオペレータに通知する機能は、
従来存在しない。このため、オペレータは、全ファイル
を再度インストールし直すことで、復旧するしか方策が
なかった。
Conventionally, when a file in a disk device is deleted due to the occurrence of a failure in a computer or by an administrator, it is determined whether or not the file to be deleted is an important file, and the result of the determination is output. Accordingly, a system has been proposed in which a computer administrator can determine whether or not system information such as an operating system should be reinstalled in a future operation (for example, JP-A-8-249219). ). However, in addition to file deletion, a cause that the data in the file on the disk device is destroyed for some reason may be caused as a cause that the file in the disk device becomes unusable. When such a failure occurs, the function to promptly notify the operator of the name of the file that encountered the failure is as follows:
Conventionally does not exist. For this reason, the operator has no choice but to recover by reinstalling all the files.

【0004】[0004]

【発明が解決しようとする課題】上述したように、ディ
スク装置にデータ破壊などの障害が発生した場合、従来
は、全ファイルをインストールし直す必要があった為、
計算機の運用を長時間にわって停止しなければならない
という問題点があった。
As described above, when a failure such as data destruction occurs in a disk device, it has conventionally been necessary to reinstall all the files.
There was a problem that the operation of the computer had to be stopped for a long time.

【0005】本発明の目的は、ディスク装置にデータ破
壊などの障害が発生した場合に、その障害箇所を含むフ
ァイルのファイル名を検出し、オペレータに通知するこ
とができるようにすることにある。
SUMMARY OF THE INVENTION It is an object of the present invention to detect a file name of a file including a failed portion and to notify an operator when a failure such as data destruction occurs in a disk device.

【0006】本発明の別の目的は、全ファイルの再イン
ストール無しに、障害箇所を含むファイルを復旧するこ
とができるようにすることにある。
It is another object of the present invention to be able to recover a file including a failed part without re-installing all files.

【0007】[0007]

【課題を解決するための手段】本発明は、ディスク装置
を有する計算機におけるディスク障害処理方法におい
て、前記ディスク装置のディスク媒体に、各種のファイ
ルをインストール媒体からインストールする際、インス
トールした各ファイル毎に、前記ディスク媒体における
格納位置を示す物理アドレス情報とファイル名との組を
前記ディスク媒体に設けた索引領域に登録しておき、計
算機システムの運用中に前記ディスク媒体の或る物理ア
ドレスで障害が発生したとき、障害発生物理アドレスと
前記索引領域に登録されている各組の物理アドレス情報
とを比較することにより、障害に遭遇したファイルのフ
ァイル名を検出し、この検出されたファイル名をオペレ
ータに通知するようにしている。より具体的には、第1
の発明は、前記ディスク装置のディスク媒体に、オペレ
ーティングシステムを構成する各種のシステムファイル
をインストール媒体からインストールする際、オペレー
タから索引領域を作成する指示があった場合に限って、
オペレータから指定されたサイズの索引領域を前記ディ
スク媒体上に生成すると共に前記ディスク媒体の管理領
域上に設けた索引ビットをオンにし、且つ、インストー
ルした各システムファイル毎に、前記ディスク媒体にお
ける格納位置を示す物理アドレス情報とファイル名との
組を前記索引領域に登録するステップと、計算機システ
ムの運用中に前記ディスク媒体の或る物理アドレスで障
害が発生したとき、前記索引ビットがオンであれば、障
害発生物理アドレスと前記索引領域に登録されている各
組の物理アドレス情報とを比較することにより、障害に
遭遇したファイルのファイル名を検出するステップと、
前記検出されたファイル名をオペレータに通知するステ
ップとを含んでいる。
According to the present invention, in a disk failure processing method in a computer having a disk device, when various files are installed from an installation medium to a disk medium of the disk device, each file is installed. A set of physical address information indicating a storage position on the disk medium and a file name is registered in an index area provided on the disk medium, and a failure occurs at a certain physical address of the disk medium during operation of the computer system. When an error occurs, a file name of a file in which an error is detected is detected by comparing the physical address of the error with the physical address information of each group registered in the index area. To notify. More specifically, the first
The invention of the above, when installing various system files constituting the operating system from the installation medium to the disk medium of the disk device, only when an instruction from the operator to create an index area,
An index area of a size designated by an operator is generated on the disk medium, an index bit provided on a management area of the disk medium is turned on, and a storage position on the disk medium is set for each installed system file. Registering a set of physical address information and a file name indicating the same in the index area, and when a failure occurs at a certain physical address of the disk medium during operation of the computer system, if the index bit is on, Detecting the file name of the file that encountered the failure by comparing the physical address of the failure with the physical address information of each set registered in the index area;
Notifying the operator of the detected file name.

【0008】また第2の発明は、さらに、前記ディスク
装置のディスク媒体に、アプリケーションのファイルを
インストール媒体からインストールする際、前記索引ビ
ットがオンであれば、インストールしたアプリケーショ
ンのファイル毎に、前記ディスク媒体における格納位置
を示す物理アドレス情報とファイル名との組を前記索引
領域に登録するステップを含んでいる。
[0008] In a second aspect of the present invention, when installing the application file on the disk medium of the disk device from the installation medium, if the index bit is turned on, the disk file is installed for each file of the installed application. The method includes a step of registering a set of physical address information indicating a storage position on a medium and a file name in the index area.

【0009】そして、何れの発明においても、前記通知
されたファイル名のファイルを前記インストール媒体か
らコピーすることにより、障害に遭遇したファイルを復
旧するようにしている。
In any of the inventions, the file having the failure is restored by copying the file having the notified file name from the installation medium.

【0010】第1の発明によれば、オペレーティングシ
ステムを構成する各システムファイルのインストール時
に、そのファイル名と共に格納位置を示す物理アドレス
情報が索引領域に登録されるため、計算機システムの運
用中にディスク媒体の或る物理アドレスで障害が発生し
たとき、障害発生物理アドレスと索引領域に登録されて
いる物理アドレス情報とを比較することにより、障害に
遭遇したファイルのファイル名を特定し、オペレータに
通知することができる。また、索引領域は或る程度のサ
イズを必要とするため、ディスク媒体の記憶領域を本来
の目的にフルに活用したいユーザの便宜を考え、索引領
域作成の可否(つまり、本機能の使用有無)をオペレー
タが選択でき、また作成する場合には索引領域のサイズ
をオペレータが指定できるようにしている。
According to the first aspect, when each system file constituting the operating system is installed, the physical address information indicating the storage location is registered in the index area together with the file name. When a failure occurs at a certain physical address of the medium, the file name of the file that encountered the failure is identified by comparing the physical address of the failure with the physical address information registered in the index area, and the operator is notified. can do. In addition, since the index area requires a certain size, considering the convenience of the user who wants to make full use of the storage area of the disk medium for the original purpose, whether or not the index area can be created (that is, whether or not this function is used) Can be selected by the operator, and the size of the index area can be designated by the operator when the index area is created.

【0011】第2の発明によれば、アプリケーションの
プログラムファイルやデータファイルのインストール時
にも、各ファイルのファイル名と共に格納位置を示す物
理アドレス情報が索引領域に登録されるため、障害箇所
がアプリケーションのファイル上であっても、それを特
定し、オペレータに通知することができる。
According to the second aspect of the present invention, when installing a program file or a data file of an application, the physical address information indicating the storage location together with the file name of each file is registered in the index area. Even on a file, it can be specified and notified to the operator.

【0012】このように、障害に遭遇したファイルを特
定できるため、全ファイルを再インストールする必要が
なく、障害に遭遇したファイルだけを元の位置にコピー
することで復旧することができる。
As described above, since a file in which a failure has occurred can be specified, it is not necessary to reinstall all files, and it is possible to recover by copying only the file in which a failure has occurred in its original position.

【0013】[0013]

【発明の実施の形態】次に本発明の実施の形態の例につ
いて図面を参照して詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, embodiments of the present invention will be described in detail with reference to the drawings.

【0014】図1は本発明を適用した計算機システムの
一例を示すブロック図である。この例の計算機システム
は、中央処理装置および主記憶等を含む計算機1と、こ
の計算機1に接続された端末2、ディスクコントローラ
3と、ディスクコントローラ3に接続されたディスク装
置4と、インストール媒体5とで構成されている。ま
た、6はCD−ROM,半導体メモリ,磁気テープ,磁
気ディスク等の機械読み取り可能な記録媒体であり、デ
ィスク障害処理プログラムが記録されている。この記録
媒体6に記録されたディスク障害処理プログラムは、計
算機1によって読み取られ、計算機1の動作を制御する
ことにより、計算機1上に、ディスク障害処理部11を
実現する。ディスク障害処理部11は、本実施例の場
合、インストール手段111,障害箇所認識手段11
2,コピー手段113,削除・追加時更新手段114で
構成される。計算機1上には、他に、オペレーティング
システム(以下、OSと称す)12や各種アプリケーシ
ョンプログラム13等が存在する。
FIG. 1 is a block diagram showing an example of a computer system to which the present invention is applied. The computer system of this example includes a computer 1 including a central processing unit and a main memory, a terminal 2 connected to the computer 1, a disk controller 3, a disk device 4 connected to the disk controller 3, and an installation medium 5 It is composed of Reference numeral 6 denotes a machine-readable recording medium such as a CD-ROM, a semiconductor memory, a magnetic tape, and a magnetic disk, in which a disk failure processing program is recorded. The disk failure processing program recorded on the recording medium 6 is read by the computer 1 and controls the operation of the computer 1 to realize the disk failure processing unit 11 on the computer 1. In the case of the present embodiment, the disk failure processing unit 11 includes an installation unit 111, a failure location recognition unit 11
2, a copy unit 113 and a deletion / addition update unit 114. In addition to the computer 1, an operating system (hereinafter, referred to as an OS) 12 and various application programs 13 exist.

【0015】ディスク装置4は、例えば磁気ディスク装
置であり、OSを構成する各種のシステムファイル(ス
ーパバイザプログラム,仮想記憶用のバッキングスト
ア,課金用などのシステムファイル)や、アプリケーシ
ョンのプログラムファイル,データファイルを記憶す
る。
The disk device 4 is, for example, a magnetic disk device, and includes various system files (a supervisor program, a backing store for virtual storage, a system file for billing, etc.) constituting an OS, an application program file, and a data file. Is stored.

【0016】図2にディスク装置4におけるディスク媒
体の領域構成例を示す。ディスク媒体の記録領域は、各
種のファイルを格納するデータ領域41と、データ領域
41に格納されたファイルの管理情報を格納する管理領
域42と、本発明で設けられた索引領域43とから構成
される。インストール媒体5からインストールされたO
Sの各種システムファイルやアプリケーションの各種フ
ァイルは、データ領域41に格納され、個々のファイル
のファイル名や格納位置などの管理情報が管理領域42
に格納される。他方、索引領域43は、インストールさ
れた各ファイル毎に、その格納位置を示す物理アドレス
情報4311とファイル名4312との組を記録したレ
コード431を格納する領域として使用される。物理ア
ドレス情報4311は、本実施例では開始物理アドレス
と終了物理アドレスとを含むが、開始物理アドレスとサ
イズとで表現しても良い。索引領域43を作成するか否
かはオペレータが選択でき、索引領域43が作成された
場合には、管理領域42に設けられた索引ビット421
がオンにされ、索引領域43が作成されなかった場合に
は、索引ビット421は初期値のオフのままとなる。
FIG. 2 shows an example of the area configuration of a disk medium in the disk device 4. The recording area of the disk medium includes a data area 41 for storing various files, a management area 42 for storing management information of the files stored in the data area 41, and an index area 43 provided in the present invention. You. O installed from installation medium 5
The various system files of S and the various files of the application are stored in the data area 41, and management information such as the file name and storage position of each file is stored in the management area 42.
Is stored in On the other hand, the index area 43 is used as an area for storing a record 431 in which a set of physical address information 4311 indicating a storage location and a file name 4312 is recorded for each installed file. The physical address information 4311 includes a start physical address and an end physical address in this embodiment, but may be represented by a start physical address and a size. The operator can select whether or not to create the index area 43. When the index area 43 is created, the index bit 421 provided in the management area 42 is set.
Is turned on and the index area 43 is not created, the index bit 421 remains off as the initial value.

【0017】インストール媒体5は、例えば磁気テープ
であり、計算機1にインストールすべきOSの各種シス
テムファイルや、アプリケーションの各種ファイルを記
録している。端末2は、表示装置21と入力装置22を
備え、オペレータからの指示を計算機1に入力したり、
計算機1からのメッセージをオペレータに表示する。デ
ィスクコントローラ3は、計算機1からの指示に従って
ディスク装置4との間でデータの入出力を行う。
The installation medium 5 is, for example, a magnetic tape, and records various system files of an OS to be installed in the computer 1 and various files of applications. The terminal 2 includes a display device 21 and an input device 22, and inputs instructions from an operator to the computer 1,
A message from the computer 1 is displayed to the operator. The disk controller 3 inputs and outputs data to and from the disk device 4 according to an instruction from the computer 1.

【0018】以下、各図を参照して本実施例の動作を説
明する。
The operation of this embodiment will be described below with reference to the drawings.

【0019】(1)OSの各種システムファイルのイン
ストール OSの各種システムファイルが記録されたインストール
媒体5を、計算機1に読み取り可能にセットした後、端
末2の入力装置22からインストールの開始を指示する
と、インストール手段111によって図3に示す処理が
開始される。
(1) Installation of Various System Files of OS After the installation medium 5 on which various system files of the OS are recorded is set in the computer 1 so as to be readable, when the start of installation is instructed from the input device 22 of the terminal 2 Then, the processing shown in FIG.

【0020】まず、インストール手段111は、索引領
域を作成するか否かを問うメッセージを表示装置21に
表示し、オペレータからの応答内容を判別する(S
1)。オペレータが索引領域を作成することを選択した
場合(S1でYES)、インストール手段111は、作
成する索引領域のサイズを問うメッセージを表示装置2
1に表示し、オペレータから指定されたサイズを入力す
る(S2)。次に、ディスク装置4上に、指定されたサ
イズの索引領域43を生成し、その位置などを管理領域
42に登録すると共に、管理領域42における索引ビッ
ト421をオンに設定する(S3)。そして、データ領
域41等の初期化を行い(S4)、インストール媒体5
に記録された各システムファイルをデータ領域41にコ
ピーすると共にその管理情報を管理領域42に格納する
(S5)。次に、今回インストールした各システムファ
イル毎に、コピー先の開始物理アドレス及び終了物理ア
ドレスを含む物理アドレス情報4311とファイル名4
312とを含むレコード431を、索引領域43に登録
する(S6)。そして、処理を終了する。
First, the installation means 111 displays a message asking whether or not to create an index area on the display device 21, and determines the contents of a response from the operator (S).
1). If the operator selects to create an index area (YES in S1), the installation unit 111 displays a message asking about the size of the index area to be created.
1 and input the size specified by the operator (S2). Next, an index area 43 of a designated size is generated on the disk device 4, its position and the like are registered in the management area 42, and an index bit 421 in the management area 42 is set to ON (S3). Then, the data area 41 and the like are initialized (S4), and the installation medium 5 is initialized.
Is copied to the data area 41 and the management information is stored in the management area 42 (S5). Next, for each system file installed this time, physical address information 4311 including a start physical address and an end physical address of a copy destination and a file name 4
The record 431 including 312 is registered in the index area 43 (S6). Then, the process ends.

【0021】ここで、索引領域43は、オペレータによ
って指定されたサイズしかないので、インストールする
ファイル数によっては、全ファイル分のレコード431
を索引領域43に登録することができない場合がある。
このため、インストール手段111は、新たなレコード
を登録していく過程で領域不足になった場合(オーバフ
ローした場合)、その旨のメッセージを表示装置21に
表示するようにしている。これにより、異常終了を防げ
ると同時に、オペレータに索引領域の領域不足を知らせ
ることができる。そして、上記メッセージに対する応答
としてオペレータから処理続行が指示されると、インス
トール手段111は処理を終了する。このとき、既に登
録済のレコード431は有効となる。なお、オペレータ
は、処理を中断させ、索引領域のサイズ指定から処理を
再開させることも可能である。
Here, since the index area 43 has only the size specified by the operator, depending on the number of files to be installed, the records 431 for all the files are required.
May not be registered in the index area 43.
For this reason, if the area becomes insufficient (in case of overflow) in the process of registering a new record, the installation unit 111 displays a message to that effect on the display device 21. Thus, abnormal termination can be prevented, and at the same time, the operator can be notified of the lack of the index area. Then, when the operator instructs continuation of the process as a response to the message, the installation unit 111 ends the process. At this time, the already registered record 431 becomes valid. Note that the operator can also suspend the processing and restart the processing from the index area size specification.

【0022】他方、オペレータが索引領域の作成を指示
しなかった場合(S1でNO)、通常のインストール処
理が行われる(S7)。つまり、インストール手段11
1は、ステップS4と同様にディスクの初期化を行い、
その後、ステップS5と同様に各システムファイルのデ
ィスクへのコピーを行う。この場合は、索引ビット42
1は初期値のオフのままである。
On the other hand, if the operator has not instructed the creation of the index area (NO in S1), a normal installation process is performed (S7). That is, the installation means 11
1 initializes the disk as in step S4,
After that, each system file is copied to the disk as in step S5. In this case, the index bit 42
1 remains off, which is the initial value.

【0023】上述のようにしてディスク装置4にインス
トールされたOSの各種システムファイルは、計算機1
の立ち上げ時に、適宜にディスク装置4から計算機1内
の主記憶装置にロードされる。これにより、一般のジョ
ブを開始することができ、システムの運用が可能とな
る。図1の計算機1内に示したOS12,アプリケーシ
ョンプログラム13は、このようにしてインストールさ
れ、主記憶装置にロードされたOS,アプリケーション
プログラムを示している。
The various system files of the OS installed in the disk device 4 as described above are stored in the computer 1
Is loaded from the disk device 4 to the main storage device in the computer 1 as needed. As a result, a general job can be started, and the system can be operated. The OS 12 and the application program 13 shown in the computer 1 in FIG. 1 indicate the OS and the application program installed in this way and loaded into the main storage device.

【0024】(2)アプリケーションファイルのインス
トール システムの運用中に、アプリケーションのプログラムフ
ァイルやデータファイルが記録されたインストール媒体
5を、計算機1に読み取り可能にセットした後、端末2
の入力装置22からインストールの開始を指示すると、
インストール手段111によって図4に示す処理が開始
される。
(2) Installation of Application File During the operation of the system, the installation medium 5 on which the program files and data files of the application are recorded is set in the computer 1 so that it can be read.
Is instructed to start installation from the input device 22 of
The process shown in FIG.

【0025】まず、インストール手段111は、ディス
ク装置4の管理領域42中の索引ビット421がオン
か、オフかを確認する(S11)。索引ビット421が
オンであれば、インストール媒体5に記録されたアプリ
ケーションファイルをデータ領域41の空き領域にコピ
ーすると共にその管理情報を管理領域42に格納する
(S12)。そして、今回インストールした各アプリケ
ーションファイル毎に、コピー先の開始物理アドレス及
び終了物理アドレスを含む物理アドレス情報4311と
ファイル名4312とを含むレコード431を、索引領
域43に登録する(S13)。そして、処理を終了す
る。なお、インストール手段111は、新たなレコード
431を登録していく過程で領域不足になった場合(オ
ーバフローした場合)は、OSのシステムファイルのイ
ンストール時と同様の処理を行う。
First, the installation unit 111 checks whether the index bit 421 in the management area 42 of the disk device 4 is on or off (S11). If the index bit 421 is on, the application file recorded on the installation medium 5 is copied to a free area of the data area 41 and its management information is stored in the management area 42 (S12). Then, a record 431 including physical address information 4311 including a start physical address and an end physical address of a copy destination and a file name 4312 is registered in the index area 43 for each application file installed this time (S13). Then, the process ends. If the area becomes insufficient (in case of overflow) in the process of registering a new record 431, the installation unit 111 performs the same processing as when the system file of the OS is installed.

【0026】他方、索引ビット421がオフであれば、
通常のインストール処理が行われる(S14)。つま
り、インストール手段111は、ステップS12と同様
にアプリケーションファイルのディスクへのコピーを行
う。
On the other hand, if the index bit 421 is off,
A normal installation process is performed (S14). That is, the installation unit 111 copies the application file to the disk as in step S12.

【0027】(3)ファイルの削除,追加 ディスク装置4に登録したファイルは、システム運用中
に、OS12の制御の下に削除することができる。ま
た、システム運用中に、OS12の制御の下に任意のフ
ァイルをディスク装置4に追加することができる。OS
12は、削除・追加時更新手段114に対し、ファイル
を削除したときは削除したファイル名を通知し、ファイ
ルを追加したときは追加したファイル名及びその格納位
置を示す物理アドレス情報(開始物理アドレス,終了物
理アドレス)を通知する。削除・追加時更新手段114
は、図5に示すように、ディスク装置4の管理領域42
中の索引ビット421がオンか、オフかを確認し(S2
1)、オフであれば何もせず終了するが、オンであれ
ば、以下の処理を実行する。
(3) Deletion and Addition of Files Files registered in the disk device 4 can be deleted under the control of the OS 12 during operation of the system. Further, an arbitrary file can be added to the disk device 4 under the control of the OS 12 during the operation of the system. OS
Numeral 12 notifies the deletion / addition updating means 114 of the name of the deleted file when the file is deleted, and physical address information (starting physical address) indicating the name of the added file and its storage location when the file is added. , End physical address). Deletion / addition updating means 114
Is the management area 42 of the disk device 4, as shown in FIG.
It is checked whether the middle index bit 421 is on or off (S2
1) If it is off, the process ends without doing anything. If it is on, the following process is executed.

【0028】ファイルの削除時は、削除されたファイル
のファイル名でディスク装置4の索引領域43から同じ
ファイル名を持つレコード431を検索し、そのレコー
ドを削除する(S22)。他方、ファイルの追加時は、
通知された物理アドレス情報とファイル名を記述した新
たなレコード431を、索引領域43の空き領域に登録
する(S22)。なお、前述したように索引領域43は
オペレータから指定されたサイズなので、新たなレコー
ド431を追加することができない場合や、削除しよう
としたレコードがそもそも登録されていない場合があ
る。このような異常が発生した場合、その旨のメッセー
ジを表示装置21に表示した後、処理を終了する(S2
3)。
When a file is deleted, a record 431 having the same file name is searched from the index area 43 of the disk device 4 with the file name of the deleted file, and the record is deleted (S22). On the other hand, when adding a file,
A new record 431 describing the notified physical address information and the file name is registered in a free area of the index area 43 (S22). As described above, since the index area 43 is the size specified by the operator, a new record 431 may not be added, or a record to be deleted may not be registered in the first place. When such an abnormality has occurred, a message to that effect is displayed on the display device 21 and then the processing is terminated (S2).
3).

【0029】(4)システム運用中の動作 ディスク装置4に格納されているファイルに対し、シス
テム運用中にアプリケーションプログラム13から或る
論理アドレスLXを指定した入出力要求が発生すると、
OS12は、内部の論理アドレス−物理アドレス変換機
能により物理アドレスPXに変換し、ディスクコントロ
ーラ3を通じてディスク装置4の該当ファイルをアクセ
スし、結果をアプリケーションプログラム13に返却す
る。このとき何らかの原因でデータ破壊による障害が発
生し、ディスクコントローラ3もしくはディスク装置4
からエラー情報が送られてきたら、OS12は論理アド
レスLXを障害発生論理アドレスLXとして、エラー情
報と共に障害箇所認識手段112に通知する。障害箇所
認識手段112は、この通知を受けると、図6に示す処
理を開始する。
(4) Operation During System Operation When an input / output request specifying a certain logical address LX is issued from the application program 13 to a file stored in the disk device 4 during system operation,
The OS 12 converts the file into a physical address PX by an internal logical address-physical address conversion function, accesses the corresponding file of the disk device 4 through the disk controller 3, and returns the result to the application program 13. At this time, a failure due to data destruction occurs for some reason, and the disk controller 3 or the disk device 4
When the error information is sent from the OS 12, the OS 12 notifies the failure location recognition unit 112 of the logical address LX as the failure occurrence logical address LX together with the error information. Upon receiving this notification, the failure point recognition means 112 starts the processing shown in FIG.

【0030】障害箇所認識手段112は、OS12が有
するものと同様な論理アドレス−物理アドレス変換機能
を独自に有しており、通知された障害発生論理アドレス
LXに対応する物理アドレスPX、つまり障害発生物理
アドレスを求める(S31)。次に、ディスク装置4の
管理領域42中の索引ビット421がオンか、オフかを
確認し(S32)、オフであれば何もせず終了するが、
オンであれば以下の処理を実行する。索引領域43に登
録されている先頭のレコードから最後のレコードまで順
に、そのレコードの物理アドレス情報4311中の物理
開始アドレスから物理終了アドレスまでのアドレス範囲
に、障害発生物理アドレスPXが含まれるか否かを調べ
ていく(S33)。そして、障害発生物理アドレスPX
をアドレス範囲内に含むレコードが見つかると、そのレ
コードに記述されたファイル名4312を表示装置21
の画面に、障害にかかるファイルのファイル名として表
示する(S34)。そして、処理を終了する。なお、こ
のとき同時に前記エラー情報、障害発生物理アドレスP
X,障害発生論理アドレスLXも表示するようにしても
良い。他方、障害発生物理アドレスPXをアドレス範囲
に含むレコードが見つからなかった場合は、障害にかか
るファイルのファイル名が特定できない旨および前記エ
ラー情報を表示装置21の画面に表示し、処理を終了す
る(S35)。
The fault location recognizing means 112 has its own logical address-physical address conversion function similar to that of the OS 12, and has a physical address PX corresponding to the notified faulty logical address LX, that is, a fault occurrence. A physical address is obtained (S31). Next, it is confirmed whether the index bit 421 in the management area 42 of the disk device 4 is on or off (S32). If it is off, the process is terminated without doing anything.
If it is on, the following processing is executed. Whether or not the failure physical address PX is included in the address range from the physical start address to the physical end address in the physical address information 4311 of the record in order from the first record to the last record registered in the index area 43 Is checked (S33). Then, the physical address PX where the failure occurred
Is found in the address range, the file name 4312 described in the record is displayed on the display device 21.
Is displayed as the file name of the file having the failure (S34). Then, the process ends. At this time, the error information and the physical address P where the failure occurred
X and the faulty logical address LX may also be displayed. On the other hand, when no record including the physical address PX in the address range is found, a message indicating that the file name of the file having the failure cannot be specified and the error information are displayed on the screen of the display device 21, and the process ends ( S35).

【0031】(5)ファイルの復旧 表示装置21に、障害の発生したファイルのファイル名
が表示された場合、オペレータは、ファイル置換により
復旧を行うことができる。つまり、障害の発生したファ
イルと同じファイルを格納したインストール媒体5を用
意し、ファイルコピー手段113を使って、ディスク装
置4の障害発生ファイルの位置にコピー(上書き)する
ことで、復旧を行う。
(5) File Recovery When the file name of the failed file is displayed on the display device 21, the operator can perform recovery by replacing the file. That is, the recovery is performed by preparing the installation medium 5 storing the same file as the file in which the failure has occurred, and copying (overwriting) to the location of the failure file in the disk device 4 using the file copying means 113.

【0032】以上の実施例では、1台のディスク装置4
を有する計算機システムに本発明を適用したが、2台以
上のディスク装置4を有する計算機システムに対しても
適用可能である。また、ディスク障害処理部11は記録
媒体6から計算機1にインストールしたが、OSのシス
テムファイルの一部としてインストール媒体5から計算
機1にインストールすることも可能である。
In the above embodiment, one disk drive 4
Although the present invention has been applied to a computer system having a disk drive, the present invention is also applicable to a computer system having two or more disk devices 4. Further, the disk failure processing unit 11 is installed on the computer 1 from the recording medium 6, but it is also possible to install the disk failure processing unit 11 on the computer 1 from the installation medium 5 as a part of the OS system file.

【0033】[0033]

【発明の効果】以上説明したように本発明によれば、デ
ィスク装置の或る記憶領域でデータ破壊による障害が発
生した場合、その障害箇所を含むファイルのファイル名
を特定してオペレータに通知することができる。このた
め、オペレータは、障害に遭遇したファイルだけをイン
ストール媒体中の元のファイルで置換するだけで復旧で
きる。これにより、全ファイルの再インストールを余儀
なくされていた従来のように、計算機の運用を長時間停
止させる必要がなくなる。
As described above, according to the present invention, when a failure occurs due to data destruction in a certain storage area of a disk drive, the file name of the file including the failure location is specified and notified to the operator. be able to. Therefore, the operator can recover only by replacing only the file in which the failure has occurred with the original file in the installation medium. As a result, there is no need to suspend the operation of the computer for a long time as in the conventional case where all files have to be reinstalled.

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

【図1】本発明を適用した計算機システムの一例を示す
ブロック図である。
FIG. 1 is a block diagram illustrating an example of a computer system to which the present invention has been applied.

【図2】ディスク媒体の領域構成例を示す図である。FIG. 2 is a diagram showing an example of an area configuration of a disk medium.

【図3】OSの各種システムファイルのインストール時
の処理例を示すフローチャートである。
FIG. 3 is a flowchart illustrating a processing example when installing various system files of the OS.

【図4】アプリケーションファイルのインストール時の
処理例を示すフローチャートである。
FIG. 4 is a flowchart illustrating a processing example when installing an application file.

【図5】ファイルの削除,追加時の処理例を示すフロー
チャートである。
FIG. 5 is a flowchart illustrating a processing example when a file is deleted or added;

【図6】ディスク障害発生時の処理例を示すフローチャ
ートである。
FIG. 6 is a flowchart illustrating a processing example when a disk failure occurs.

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

1…計算機 11…ディスク障害処理部 111…インストール手段 112…障害箇所認識手段 113…コピー手段 114…削除・追加時更新手段 12…OS 13…アプリケーションプログラム 2…端末 21…表示装置 22…入力装置 3…ディスクコントローラ 4…ディスク装置 5…インストール媒体 6…記録媒体 DESCRIPTION OF SYMBOLS 1 ... Computer 11 ... Disk failure processing part 111 ... Installation means 112 ... Failure point recognition means 113 ... Copy means 114 ... Deletion / addition update means 12 ... OS 13 ... Application program 2 ... Terminal 21 ... Display device 22 ... Input device 3 ... Disk controller 4 ... Disk device 5 ... Installation medium 6 ... Recording medium

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 ディスク装置を有する計算機におけるデ
ィスク障害処理方法において、 前記ディスク装置のディスク媒体に、各種のファイルを
インストール媒体からインストールする際、インストー
ルした各ファイル毎に、前記ディスク媒体における格納
位置を示す物理アドレス情報とファイル名との組を前記
ディスク媒体に設けた索引領域に登録するステップと、 計算機システムの運用中に前記ディスク媒体の或る物理
アドレスで障害が発生したとき、障害発生物理アドレス
と前記索引領域に登録されている各組の物理アドレス情
報とを比較することにより、障害に遭遇したファイルの
ファイル名を検出するステップと、 前記検出されたファイル名をオペレータに通知するステ
ップとを含むことを特徴とするディスク障害処理方法。
In a disk failure processing method in a computer having a disk device, when various files are installed from an installation medium to a disk medium of the disk device, a storage position on the disk medium is determined for each installed file. Registering a set of the indicated physical address information and the file name in an index area provided in the disk medium, and when a failure occurs at a certain physical address of the disk medium during operation of the computer system, a failure-occurring physical address A step of detecting a file name of a file in which a failure has occurred by comparing the set of physical address information registered in the index area with the set of physical address information; anda step of notifying an operator of the detected file name. A disk failure processing method characterized by including:
【請求項2】 ディスク装置を有する計算機におけるデ
ィスク障害処理方法において、 前記ディスク装置のディスク媒体に、オペレーティング
システムを構成する各種のシステムファイルをインスト
ール媒体からインストールする際、オペレータから索引
領域を作成する指示があった場合に限って、オペレータ
から指定されたサイズの索引領域を前記ディスク媒体上
に生成すると共に前記ディスク媒体の管理領域上に設け
た索引ビットをオンにし、且つ、インストールした各シ
ステムファイル毎に、前記ディスク媒体における格納位
置を示す物理アドレス情報とファイル名との組を前記索
引領域に登録するステップと、 計算機システムの運用中に前記ディスク媒体の或る物理
アドレスで障害が発生したとき、前記索引ビットがオン
であれば、障害発生物理アドレスと前記索引領域に登録
されている各組の物理アドレス情報とを比較することに
より、障害に遭遇したファイルのファイル名を検出する
ステップと、 前記検出されたファイル名をオペレータに通知するステ
ップとを含むことを特徴とするディスク障害処理方法。
2. A method for processing a disk failure in a computer having a disk device, comprising: an instruction for creating an index area from an operator when installing various system files constituting an operating system from an installation medium on a disk medium of the disk device; Only when there is an error, an index area of the size specified by the operator is generated on the disk medium, an index bit provided on the management area of the disk medium is turned on, and each installed system file is turned on. Registering a set of physical address information indicating a storage position in the disk medium and a file name in the index area, and when a failure occurs at a certain physical address of the disk medium during operation of the computer system, If the index bit is on, Detecting the file name of the file that encountered the failure by comparing the harm occurrence physical address with the physical address information of each set registered in the index area; and notifying the operator of the detected file name. A disk failure handling method.
【請求項3】 請求項2記載のディスク障害処理方法に
おいて、さらに、前記ディスク装置のディスク媒体に、
アプリケーションのファイルをインストール媒体からイ
ンストールする際、前記索引ビットがオンであれば、イ
ンストールしたアプリケーションのファイル毎に、前記
ディスク媒体における格納位置を示す物理アドレス情報
とファイル名との組を前記索引領域に登録するステップ
を含むことを特徴とするディスク障害処理方法。
3. The disk failure processing method according to claim 2, further comprising:
When installing the application file from the installation medium, if the index bit is ON, a set of physical address information indicating a storage position on the disk medium and a file name is stored in the index area for each installed application file. A method for handling a disk failure, comprising a step of registering.
【請求項4】 請求項1,2または3記載のディスク障
害処理方法において、さらに、前記通知されたファイル
名のファイルを前記インストール媒体からコピーするこ
とにより、障害に遭遇したファイルを復旧するステップ
を含むことを特徴とするディスク障害処理方法。
4. The disk failure processing method according to claim 1, further comprising the step of restoring the file in which the failure occurred by copying the file having the notified file name from the installation medium. A disk failure processing method characterized by including:
【請求項5】 ディスク装置を有する計算機に、 前記ディスク装置のディスク媒体に、オペレーティング
システムを構成する各種のシステムファイルをインスト
ール媒体からインストールする際、オペレータから索引
領域を作成する指示があった場合に限って、オペレータ
から指定されたサイズの索引領域を前記ディスク媒体上
に生成すると共に前記ディスク媒体の管理領域上に設け
た索引ビットをオンにし、且つ、インストールした各シ
ステムファイル毎に、前記ディスク媒体における格納位
置を示す物理アドレス情報とファイル名との組を前記索
引領域に登録するステップと、 前記ディスク装置のディスク媒体に、アプリケーション
のファイルをインストール媒体からインストールする
際、前記索引ビットがオンであれば、インストールした
アプリケーションのファイル毎に、前記ディスク媒体に
おける格納位置を示す物理アドレス情報とファイル名と
の組を前記索引領域に登録するステップと、 計算機システムの運用中に前記ディスク媒体の或る物理
アドレスで障害が発生したとき、前記索引ビットがオン
であれば、障害発生物理アドレスと前記索引領域に登録
されている各組の物理アドレス情報とを比較することに
より、障害に遭遇したファイルのファイル名を検出する
ステップと、 前記検出されたファイル名をオペレータに通知するステ
ップと、 前記通知されたファイル名のファイルを前記インストー
ル媒体からコピーすることにより、障害に遭遇したファ
イルを復旧するステップとを実行させるプログラムを記
録した機械読み取り可能な記録媒体。
5. When a computer having a disk device installs various system files constituting an operating system on a disk medium of the disk device from an installation medium, the computer receives an instruction from an operator to create an index area. In this case, an index area of a size designated by an operator is generated on the disk medium, an index bit provided in a management area of the disk medium is turned on, and the disk medium is installed for each installed system file. Registering a set of physical address information indicating a storage position and a file name in the index area, and installing the application file from the installation medium to the disk medium of the disk device, if the index bit is on. If you install Registering, in the index area, a set of physical address information indicating a storage position on the disk medium and a file name for each file of the application, and a failure at a certain physical address of the disk medium during operation of the computer system. When the index bit is on when the error occurs, the file name of the file in which the error occurred is detected by comparing the physical address of the error occurrence with the physical address information of each group registered in the index area. Performing a step of notifying an operator of the detected file name; and a step of restoring a file having a failure by copying a file having the notified file name from the installation medium. A machine-readable recording medium on which is recorded.
JP11036894A 1999-02-16 1999-02-16 Method for processing disk fault and machine readable recording medium recording program Pending JP2000235512A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11036894A JP2000235512A (en) 1999-02-16 1999-02-16 Method for processing disk fault and machine readable recording medium recording program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11036894A JP2000235512A (en) 1999-02-16 1999-02-16 Method for processing disk fault and machine readable recording medium recording program

Publications (1)

Publication Number Publication Date
JP2000235512A true JP2000235512A (en) 2000-08-29

Family

ID=12482492

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11036894A Pending JP2000235512A (en) 1999-02-16 1999-02-16 Method for processing disk fault and machine readable recording medium recording program

Country Status (1)

Country Link
JP (1) JP2000235512A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010282468A (en) * 2009-06-05 2010-12-16 Hitachi Ltd Computer system and fault restoration method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010282468A (en) * 2009-06-05 2010-12-16 Hitachi Ltd Computer system and fault restoration method

Similar Documents

Publication Publication Date Title
JP4363676B2 (en) Computer system
JP4321705B2 (en) Apparatus and storage system for controlling acquisition of snapshot
US7509530B2 (en) Method and system for use in restoring an active partition
US6611850B1 (en) Method and control apparatus for file backup and restoration
US6205558B1 (en) Recovery of file systems after modification failure
US20120198287A1 (en) File system error detection and recovery framework
US20040107199A1 (en) Computer application backup method and system
JP6064608B2 (en) Storage device, backup program, and backup method
JP2009505278A (en) Archiving data in a virtual application environment
WO1999023561A1 (en) System for computer recovery using removable high capacity media
US7080279B2 (en) Autonomic rollback
JPH06236351A (en) Backup restoring device of on-line system
JP2005352535A (en) Method of protecting data
JP2000235512A (en) Method for processing disk fault and machine readable recording medium recording program
JP3314204B2 (en) Computer system
JP5133230B2 (en) Information processing apparatus, information processing method, and program
JP2000082004A (en) Data duplex system
JP6160688B2 (en) Information processing apparatus, information processing method, and information processing program
JP2005149248A (en) Metadata restoration system, method thereof, storage device and program therefor
JP7503406B2 (en) Information processing device
JP2746102B2 (en) One point backup method of business data file in case of magnetic disk device failure
JPH02151945A (en) File management device
KR100799414B1 (en) Method of Restarting Switching System at Dual Down on Standby Loading
JP5290064B2 (en) Software switching device, software switching method and program thereof
JP2000347920A (en) Device and method for restoring disk at fault occurrence and information recording medium