JPH11353125A - Data restoring method for radio device - Google Patents

Data restoring method for radio device

Info

Publication number
JPH11353125A
JPH11353125A JP10170538A JP17053898A JPH11353125A JP H11353125 A JPH11353125 A JP H11353125A JP 10170538 A JP10170538 A JP 10170538A JP 17053898 A JP17053898 A JP 17053898A JP H11353125 A JPH11353125 A JP H11353125A
Authority
JP
Japan
Prior art keywords
magnetic disk
information
read
write
error correction
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
JP10170538A
Other languages
Japanese (ja)
Inventor
Kenji Saito
賢治 斎藤
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP10170538A priority Critical patent/JPH11353125A/en
Publication of JPH11353125A publication Critical patent/JPH11353125A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide the data restoring method of the RAID device which can restore a replaced magnetic disk without impeding normal access to a magnetic disk drive after faulty magnetic disk replacement. SOLUTION: By the data restoring method for a magnetic disk which generates error correction information from external write information and stores it, and then corrects error information by using the error correction information in the case of error occurrence and outputs it, repairing operation for restoring a replaced magnetic disk by using write information and read information corresponding to an external normal access request (S13, S14, and S16) after the faulty magnetic disk is replaced or writing information which should be stored correctly on the faulty magnetic disk to the replacing magnetic disk is automatically performed (S15) to restore the replaced magnetic disk.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、情報を複数の磁気
ディスクに分割記憶し、エラー訂正情報を作成して磁気
ディスクに記憶するようにした冗長ディスクアレイ(以
下、RAID(Redundant Array of Inexpensive Disk
s)と称する)装置の障害磁気ディスクを交換した後、
この障害磁気ディスクに本来書き込まれているべき情報
を交換した磁気ディスクに復元する(以下、修復とい
う)RAID装置のデータ修復方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a redundant disk array (hereinafter referred to as a RAID (Redundant Array of Inexpensive Disk)) in which information is divided and stored on a plurality of magnetic disks, and error correction information is created and stored on the magnetic disks.
s)) After replacing the faulty magnetic disk of the device,
The present invention relates to a data recovery method for a RAID device that restores information that should be originally written on a failed magnetic disk to an exchanged magnetic disk (hereinafter referred to as “repair”).

【0002】[0002]

【従来の技術】従来、RAID(冗長ディスクアレイ)
は、情報を複数の磁気ディスクに分割記憶する方式の相
違により、次の5種類に分類される。その第1は、情報
をセクタ単位で各磁気ディスクに分割し記憶するだけの
RAID0、第2は、同一情報を複数の磁気ディスクに
重複記憶するRAID1、第3は、情報をビット単位で
各磁気ディスクに分割記憶しその際エラー訂正情報を作
成して専用磁気ディスクに記憶するRAID2及びRA
ID3(エラー訂正情報の作成方法、例えば、ハミング
/パリティ等により分類される)、第4は、情報をセク
タ単位で各磁気ディスクに分割記憶しその際エラー訂正
情報を作成してエラー訂正情報専用磁気ディスクに記憶
するRAID4、第5は、情報をセクタ単位で分割して
各磁気ディスクに巡回記憶しその際作成したエラー訂正
情報は他の情報と同様(エラー訂正情報専用磁気ディス
クを設けず)セクタ単位で各磁気ディスクに巡回記憶す
るRAID5等が知られている。
2. Description of the Related Art Conventionally, RAID (redundant disk array)
Are classified into the following five types according to the difference in the method of dividing and storing information on a plurality of magnetic disks. The first is RAID 0, which simply divides information on each magnetic disk in sector units and stores it. The second is RAID 1, which duplicates and stores the same information on a plurality of magnetic disks. RAID2 and RA2, which are divided and stored on a disk, create error correction information at that time, and store them on a dedicated magnetic disk
ID3 (classified by a method of generating error correction information, for example, hamming / parity, etc.), and fourthly, information is divided and stored in each magnetic disk in sector units, and error correction information is generated at that time to create a dedicated error correction information. RAID4 and Fifth, which are stored on the magnetic disk, divide the information in units of sectors and cyclically store the information on each magnetic disk, and the error correction information created at this time is the same as other information (no dedicated magnetic disk for error correction information is provided). RAID5 and the like are known which cyclically store data in each magnetic disk in sector units.

【0003】次に、図6を参照して、RAIDの種類、
すなわち、RAID0乃至RAID5を更に詳細に説明
する。図6はRAID0乃至RAID5の各構成を示
し、(A)はRAID0を示す図、(B)はRAID1
を示す図、(C)はRAID2及びRAID3を示す
図、(D)はRAID4を示す図、(E)はRAID5
を示す図である。
[0003] Next, referring to FIG.
That is, RAID0 to RAID5 will be described in more detail. 6A and 6B show configurations of RAID0 to RAID5, where FIG. 6A shows RAID0 and FIG. 6B shows RAID1.
, (C) is a diagram showing RAID2 and RAID3, (D) is a diagram showing RAID4, (E) is a RAID5
FIG.

【0004】図6の(A)において、7は、例えば、ホ
スト等から転送してきた書込情報、1は入力した情報を
セクタ単位で各磁気ディスクに分割し記憶するだけのR
AID0である。RAID0 1は複数の磁気ディスク
(ディスク51乃至ディスク54、ハードディスク装置
またはHDDとしての磁気ディスク、以下単にディスク
ともいう)を同時に動作させて入力情報をディスク51
乃至ディスク54に分割記憶するよう動作し、ディスク
51乃至ディスク54に対し外部からの入力情報を高速
転送することはできるが、障害が発生した磁気ディスク
(以下、障害磁気ディスクという)に対する記憶情報の
エラー訂正は不可能である。
In FIG. 6A, reference numeral 7 denotes write information transferred from, for example, a host or the like, and 1 denotes an R which merely divides the input information on a magnetic disk basis in sector units and stores it.
AID0. The RAID 0 1 simultaneously operates a plurality of magnetic disks (disks 51 to 54, a magnetic disk as a hard disk device or an HDD, and is also simply referred to as a disk hereinafter) to input information to the disk 51.
, The input information from the outside can be transferred to the disks 51 to 54 at a high speed. However, the storage information of the failed magnetic disk (hereinafter referred to as a failed magnetic disk) can be transferred. Error correction is not possible.

【0005】図6の(B)において、7は書込情報、2
は入力したセクタ単位の同一情報を複数の磁気ディスク
(ディスク55及びディスク56)に重複記憶するRA
ID1である。RAID1 2はミラードディスクとも呼
ばれ、信頼性の高い記憶方法ではあるが、同一情報を重
複記憶するためハードディスクの使用効率は悪い。
In FIG. 6B, reference numeral 7 denotes write information, 2
Is an RA that duplicately stores the same input information in sector units on a plurality of magnetic disks (disks 55 and 56).
ID1. RAID12 is also called a mirrored disk, and is a highly reliable storage method. However, since the same information is redundantly stored, the use efficiency of the hard disk is poor.

【0006】また、図6の(C)において、7は書込情
報、3は入力した情報をビット単位で複数の磁気ディス
ク(ディスク57乃至ディスク60)に分割記憶し、記
憶情報のエラー訂正情報を作成してディスク61に記憶
するRAID2及びRAID3である。RAID2とR
AID3とは、例えば、パリテイ方式とかハミング方式
等、障害磁気ディスクに対するエラー訂正情報の作りか
たが異なるものである。
In FIG. 6C, reference numeral 7 denotes write information, 3 denotes input information divided and stored in a plurality of magnetic disks (disks 57 to 60) in bit units, and error correction information of the stored information is stored. Are RAID2 and RAID3 that are created on the disk 61. RAID2 and R
The AID 3 differs from the AID 3, for example, in the method of creating error correction information for a faulty magnetic disk, such as the parity method and the Hamming method.

【0007】また、図6の(D)において、7は書込情
報、4は入力した情報をセクタ単位で複数の磁気ディス
ク(ディスク62乃至ディスク65)に分割記憶し、障
害磁気ディスクに対する記憶情報のエラー訂正情報を作
成してディスク66に記憶するRAID4である。
In FIG. 6D, reference numeral 7 denotes write information, 4 denotes input information which is divided and stored in a plurality of magnetic disks (disks 62 to 65) in sector units, and storage information for a failed magnetic disk is stored. RAID4 in which the error correction information is created and stored on the disk 66.

【0008】図6の(E)において、7は書込情報、6
は各ディスク67乃至ディスク71に書き込まれた情報
であり、Pはエラー訂正情報、5は入力した情報をセク
タ単位で複数の磁気ディスク(ディスク67乃至ディス
ク71)に分割して巡回記憶し、障害磁気ディスクに対
する記憶情報のエラー訂正情報を作成して各ディスク6
7乃至ディスク71に巡回記憶するRAID5である。
In FIG. 6 (E), 7 is write information, 6
Is information written on each of the disks 67 to 71, P is error correction information, 5 is divided into a plurality of magnetic disks (disks 67 to 71) in units of sectors and cyclically stores the information, The error correction information of the storage information for the magnetic disk is created and each disk 6
7 to RAID 5 which are stored in the disk 71 in a circular manner.

【0009】以上説明したRAID0 1乃至RAID5
5のうち、RAID1 2では一方のディスクに障害が発
生しても他方のディスクの情報を使用することができ、
またRAID2 3乃至RAID5 5はディスク57乃至
ディスク71の何れか1個に障害が発生しても、エラー
訂正情報を使用し障害したディスクの情報を作成して、
外部装置(例えば、ホスト等)に対しその情報を送出す
ることができる。しかし、RAID0 1は高速情報転送
が可能であるが、ディスク51乃至ディスク54の何れ
か1個に障害が発生すると、情報の読出しは不可能であ
る。
The above described RAID 0 1 to RAID 5
Among RAID 5, RAID 1 and 2 can use the information of the other disk even if one disk fails,
Further, even if a failure occurs in any one of the disks 57 to 71, the RAID2 3 to RAID5 5 use the error correction information to create information on the failed disk,
The information can be transmitted to an external device (for example, a host or the like). However, RAID 0 1 is capable of high-speed information transfer, but cannot read information if any one of the disks 51 to 54 fails.

【0010】以上の説明から明らかなように、RAID
2、RAID3、RAID4、RAID5は、1個の磁
気ディスクに障害が発生しても、エラー訂正情報によ
り、障害磁気ディスクの情報を作成することにより、情
報の読出しを行うことができる。しかし、たまたま発生
した読出しエラーであれば、このようにして十分回復す
ることはできるが、磁気ディスクの劣化等何らかの理由
で、読出しエラーが多くなった場合や読出し不能になつ
たような場合は、その磁気ディスクを交換しなければな
らない。
As is clear from the above description, RAID
2, RAID3, RAID4, and RAID5 can read information even if one magnetic disk fails, by creating information on the failed magnetic disk based on the error correction information. However, if a read error happens to occur, it can be sufficiently recovered in this way.However, if the read error increases or becomes unreadable for some reason such as deterioration of the magnetic disk, The magnetic disk must be replaced.

【0011】[0011]

【発明が解決しようとする課題】しかしながら、上記の
ように、障害磁気ディスクを交換した後、障害磁気ディ
スクに記憶されていた情報を全て修復する修復作業を行
わなければならないという問題がある。この修復作業と
は、他の正常な磁気ディスクに記憶されている情報とエ
ラー訂正情報とから、障害磁気ディスクに記録されてい
るべき情報を作成して、障害磁気ディスクに書き込む作
業である。修復作業のため、通常、作業完了までは磁気
ディスク装置が使用できなかったり、修復作業の負荷の
ため、磁気ディスク装置の通常の書込み、読出し作業の
能力が、大幅に低下してしまうという問題があった。
However, as described above, there is a problem that after replacing the failed magnetic disk, it is necessary to perform a repair operation for restoring all information stored on the failed magnetic disk. This repair operation is a process of creating information to be recorded on the failed magnetic disk from information stored on the other normal magnetic disks and error correction information, and writing the information to the failed magnetic disk. Usually, the magnetic disk drive cannot be used until the work is completed due to the repair work, and the normal write / read ability of the magnetic disk drive is greatly reduced due to the load of the repair work. there were.

【0012】本発明は、上記従来の問題を解決するため
になされたもので、RAID2、RAID3、RAID
4、RAID5などにおける複数の磁気ディスクに、書
込み情報とエラー訂正情報とを分割して書込み、障害磁
気ディスクが発生してもエラー訂正情報から障害磁気デ
ィスクの情報を作成して、読出し続行可能な磁気ディス
ク装置において、障害磁気ディスクの交換後、磁気ディ
スク装置の通常の書込みまたは読出し作業中に、その能
力を低下することなく、修復作業を実行することができ
るRAID装置のデータ修復方法を提供することを目的
とする。
The present invention has been made to solve the above-mentioned conventional problems, and has been made in consideration of RAID2, RAID3, and RAID.
(4) Write information and error correction information are divided and written on a plurality of magnetic disks in RAID5 or the like, and even if a failed magnetic disk occurs, information on the failed magnetic disk is created from the error corrected information and reading can be continued. Provided is a method of restoring data in a RAID device, which can execute a repair operation without deteriorating its ability during a normal write or read operation of a magnetic disk device after replacement of a failed magnetic disk. The purpose is to:

【0013】[0013]

【課題を解決するための手段】本発明におけるデータ修
復方法は、外部からの書込み情報からエラー訂正情報を
作成し、書込み情報とエラー訂正情報とを複数の磁気デ
ィスクに分割して書込み、外部からの読出し要求に対し
磁気ディスクの障害によりエラーが発生したときにエラ
ー訂正情報から障害磁気ディスクの情報を作成して読出
すようにした磁気ディスクのデータ修復方法において、
障害磁気ディスクを交換後、修復管理テーブルを使用し
て、外部からの通常の書込みまたは読出し要求に対する
書込み情報または読出し情報(エラー修正後の情報)を
利用して交換した磁気ディスクを修復するか、または外
部からの通常の書込みまたは読出し要求があればそれを
優先実行し、外部からの通常の書込み及び読出し要求が
ないときは、障害磁気ディスクに正しく記憶されている
べき情報を交換した磁気ディスクに書き込む修復作業を
自動的に実行して交換磁気ディスクを修復するようにし
たものである。
According to the data restoration method of the present invention, error correction information is created from externally written information, the written information and the error correction information are divided into a plurality of magnetic disks and written, In the data recovery method for a magnetic disk, the information of the failed magnetic disk is created and read from the error correction information when an error occurs due to a failure of the magnetic disk in response to the read request.
After replacing the failed magnetic disk, the replaced magnetic disk is repaired by using write information or read information (information after error correction) for a normal external write or read request using the repair management table, Or, if there is a normal write or read request from the outside, the priority is given to the request.If there is no normal write or read request from the outside, the information that should be correctly stored in the failed magnetic disk is exchanged with the magnetic disk. The repair operation for writing is automatically executed to repair the replacement magnetic disk.

【0014】本発明は、通常のアクセス作業がないとき
に交換した磁気ディスクの使用中アドレスを自動的に修
復するとともに、通常のアクセス作業で作成した正しい
情報を、次の読出し要求と並行して交換した磁気ディス
クに書込むようにしたことにより、通常のアクセス作業
を劣化させずに交換した磁気ディスクの修復作業を実行
するようにした磁気ディスクのデータ修復方法が得られ
る。
According to the present invention, the in-use address of the replaced magnetic disk is automatically restored when there is no normal access operation, and the correct information created by the normal access operation is written in parallel with the next read request. By writing to the replaced magnetic disk, a data recovery method for the magnetic disk can be obtained in which the repair operation of the replaced magnetic disk is executed without deteriorating the normal access work.

【0015】[0015]

【発明の実施の形態】請求項1に記載の発明におけるデ
ータ修復方法は、外部からの書込み情報からエラー訂正
情報を作成し、書込み情報とエラー訂正情報とを複数の
磁気ディスクに分割して書込み、外部からの読出し要求
に対し磁気ディスクの障害によりエラーが発生したとき
にエラー訂正情報から障害磁気ディスクの情報を作成し
て読出すようにした磁気ディスクのデータ修復方法にお
いて、障害磁気ディスクを交換後、外部からの通常の書
込みまたは読出し要求に対する書込み情報または読出し
情報を利用して交換した磁気ディスクを修復する工程を
含み、外部からの通常の書込みまたは読出し要求があっ
たときにその書込み情報または読出し情報を利用して交
換した磁気ディスクを自動的に修復するようにしたもの
であり、障害磁気ディスクを交換後、通常の読出し要求
において交換した磁気ディスクのために作成した読出し
情報を交換した磁気ディスクに自動的に書込むようにし
たことにより、特に交換した磁気ディスクのための読出
し情報を作成する必要がなく、通常のアクセス作業に対
する修復作業の影響が少なく、効率良く修復することが
できるという作用を有する。
According to a first aspect of the present invention, there is provided a data repair method, wherein error correction information is created from externally written information, and the written information and the error corrected information are divided and written on a plurality of magnetic disks. In the data recovery method for a magnetic disk, when an error occurs due to a magnetic disk failure in response to an external read request, information on the failed magnetic disk is created and read from the error correction information. After that, the method includes a step of restoring the replaced magnetic disk by using write information or read information for an external normal write or read request, and when there is an external normal write or read request, the write information or The system uses the read information to automatically repair the replaced magnetic disk. After the disk is replaced, the read information created for the replaced magnetic disk is automatically written into the replaced magnetic disk in a normal read request, so that the read information particularly for the replaced magnetic disk is created. There is no need to perform the repair, the effect of the repair work on the normal access work is small, and the repair can be performed efficiently.

【0016】請求項2に記載の発明におけるデータ修復
方法は、前記読出し情報を利用する工程では、前記読出
し情報から作成した交換磁気ディスクに対する読出し情
報を次に発生した読出し要求の作業と並行して前記交換
磁気ディスクに書き込むようにしたものであり、交換し
た磁気ディスクに対する読出し情報の書込みを次に発生
した読出し要求の作業と並行して実行するようにしたこ
とにより、通常の読出し作業を妨げることなく、交換し
た磁気ディスクを修復することができるという作用を有
する。
In the data restoration method according to the present invention, in the step of using the read information, the read information for the exchange magnetic disk created from the read information is written in parallel with the operation of the next generated read request. The writing to the exchange magnetic disk is performed, and the writing of the read information to the exchanged magnetic disk is performed in parallel with the operation of the next read request, thereby preventing the normal read operation. And has the effect that the replaced magnetic disk can be repaired.

【0017】請求項3に記載の発明におけるデータ修復
方法は、外部からの書込み情報からエラー訂正情報を作
成し、書込み情報とエラー訂正情報とを複数の磁気ディ
スクに分割して書込み、外部からの読出し要求に対し磁
気ディスクの障害によりエラーが発生したときにエラー
訂正情報から障害磁気ディスクの情報を作成して読出す
ようにした磁気ディスクのデータ修復方法において、障
害磁気ディスクを交換後、障害磁気ディスクに正しく記
憶されているべき情報を交換した磁気ディスクに書き込
む修復作業を、外部からの通常の書込み及び読出し要求
がないときに実行する工程を含み、外部からの通常の書
込み及び読出し要求がないときは、障害磁気ディスクの
使用中アドレスに対応する交換した磁気ディスクのアド
レスを自動的に修復するようにしたものであり、外部か
らの通常のアクセスがないときに交換した磁気ディスク
を自動的に修復するようにしたことにより、通常のアク
セスを妨げることなく、交換した磁気ディスクを修復す
ることができるという作用を有する。
According to a third aspect of the present invention, in the data repair method, error correction information is created from externally written information, the write information and the error correction information are divided into a plurality of magnetic disks and written, In a data recovery method for a magnetic disk in which information on a failed magnetic disk is created from error correction information when an error occurs due to a failure of the magnetic disk in response to a read request, the failed magnetic disk is replaced after the failed magnetic disk is replaced. A repair operation for writing information that should be correctly stored in the disk to the replaced magnetic disk, including a step of executing the repair operation when there is no external normal write and read request, and without an external normal write and read request The address of the replaced magnetic disk corresponding to the busy address of the failed magnetic disk. The repaired magnetic disk can be repaired without interrupting the normal access by automatically repairing the replaced magnetic disk when there is no normal external access. It has the effect of being able to.

【0018】請求項4に記載の発明におけるデータ修復
方法は、前記交換した磁気ディスクを自動的に修復する
工程では、修復管理テーブルを参照して実行するように
したものであり、交換した磁気ディスクの修復には修復
管理テーブルを使用して行うようにしたことにより、修
復を必要とする交換した磁気ディスクのアドレスを効率
良く修復することができるという作用を有する。
According to a fourth aspect of the present invention, in the data repair method, the step of automatically repairing the replaced magnetic disk is executed by referring to a repair management table. By using the repair management table for the repair, the address of the replaced magnetic disk that needs repair can be efficiently repaired.

【0019】(実施の形態)以下、添付図面、図1乃至
図5に基づき、本発明の一実施の形態を詳細に説明す
る。図1は本発明の一実施の形態におけるデータ修復方
法を実施する磁気ディスク装置の構成例を示す図、図2
は本発明の一実施の形態におけるデータ修復方法による
修復作業の流れを示すフローチャート、図3は図2に示
すデータ修復方法において使用する修復管理テーブルの
例を示す図、図4は本実施の形態におけるデータ修復方
法において読出し指令により修復作業を実行するタイミ
ングを示す図、図5は本実施の形態におけるデータ修復
方法において書込み指令により修復作業を実行するタイ
ミングを示す図である。
(Embodiment) An embodiment of the present invention will be described below in detail with reference to the accompanying drawings and FIGS. FIG. 1 is a diagram showing an example of the configuration of a magnetic disk drive for implementing a data recovery method according to an embodiment of the present invention.
FIG. 3 is a flowchart showing a flow of a repair operation by the data repair method according to the embodiment of the present invention; FIG. 3 is a diagram showing an example of a repair management table used in the data repair method shown in FIG. 2; FIG. 5 is a diagram showing the timing at which a repair operation is performed by a read command in the data repair method in FIG. 5, and FIG. 5 is a diagram showing the timing at which a repair operation is performed by a write command in the data repair method in the present embodiment.

【0020】まず、図1を参照して、本発明の一実施の
形態におけるデータ修復方法を実施する磁気ディスク装
置の構成例を説明する。図1において、20は磁気ディ
スク装置、21はCPU、22はメモリー、23はバ
ス、24はVGA、25はI/O、26はNIC、27
はSPC、28はCRT、29はキーボード、30はマ
ウス、31はネットワーク、32は磁気ディスク1、
2、3、4、33はSCSIバス、34はスイッチ1、
2、3、4、35はI/Oである。この例では、磁気デ
ィスク1、2、3、4−32は4台で構成され、それぞ
れ、磁気ディスク1−32乃至磁気ディスク4−32で
表される。また、スイッチ34も同様に、スイッチ1−
34乃至スイッチ4−34で表される。
First, with reference to FIG. 1, an example of the configuration of a magnetic disk drive that implements a data recovery method according to an embodiment of the present invention will be described. In FIG. 1, reference numeral 20 denotes a magnetic disk device, 21 denotes a CPU, 22 denotes a memory, 23 denotes a bus, 24 denotes a VGA, 25 denotes an I / O, 26 denotes an NIC,
Is an SPC, 28 is a CRT, 29 is a keyboard, 30 is a mouse, 31 is a network, 32 is a magnetic disk 1,
2, 3, 4, and 33 are SCSI buses, 34 is a switch 1,
2, 3, 4, and 35 are I / Os. In this example, there are four magnetic disks 1, 2, 3, and 4-32, which are represented by magnetic disks 1-32 through 4-32, respectively. Similarly, the switch 34 has a switch 1-
34 to switch 4-34.

【0021】更に、図1を参照して、本実施の形態で使
用する磁気ディスク装置の詳細な構成及び動作の概要を
説明する。図1において、CPU21は中央制御装置で
メモリー22の情報を一時記憶するメモリーである。バ
ス23はCPU21の情報通信路である。メモリー22
の一部にはプログラムが書き込まれており、CPU2
1、メモリー22、バス23により通信制御を実行す
る。VGA24はCRT28に表示する画像を作成す
る。I/O25はキーボード29、マウス30からの操
作入力を受け付けるインターフェースである。
Further, an outline of a detailed configuration and operation of the magnetic disk drive used in the present embodiment will be described with reference to FIG. In FIG. 1, a CPU 21 is a central control device that temporarily stores information in a memory 22. The bus 23 is an information communication path for the CPU 21. Memory 22
The program is written in a part of CPU2.
1. Communication control is executed by the memory 22 and the bus 23. The VGA 24 creates an image to be displayed on the CRT 28. The I / O 25 is an interface for receiving operation inputs from the keyboard 29 and the mouse 30.

【0022】NIC26はネットワークインターフェー
スカードで、外部との通信線路としてのネットワーク3
1のインターフェースである。SPC27はSCSIバ
ス33のインターフェースであり、CPU21の制御に
よりSCSIバス33を経由して、磁気ディスク32に
対する情報書込み、読出し作業(以下、アクセスとい
う)を実行する。SPCはSCSIプロトコルコントロ
ーラの略称であり、SCSIバス33とCPUバス23
とのインターフェースである。CRT28はCPU21
の指令で、画像、または文字情報を表示する。VGA2
4はCPU21が指定した表示情報をCRT28が表示
できるように、情報変換を実行する。キーボード29は
押しボタン操作を電気信号に変換し、その押しボタン信
号をI/O25を介してCPU21に送り、CPU21
はそれを認識して該当する処理を実行する。
The NIC 26 is a network interface card, and is a network 3 as a communication line with the outside.
1 interface. The SPC 27 is an interface of the SCSI bus 33 and executes information writing and reading operations (hereinafter, referred to as access) to and from the magnetic disk 32 via the SCSI bus 33 under the control of the CPU 21. SPC is an abbreviation for a SCSI protocol controller, and the SCSI bus 33 and the CPU bus 23
Interface with CRT 28 is CPU 21
The image or character information is displayed by the instruction of. VGA2
Reference numeral 4 executes information conversion so that the display information specified by the CPU 21 can be displayed on the CRT 28. The keyboard 29 converts the push button operation into an electric signal, sends the push button signal to the CPU 21 via the I / O 25, and
Recognizes this and executes the corresponding processing.

【0023】マウス30はCRT28に表示した矢印
(ポインタ)とボタンで画像を指定して、ボタンを押す
(クリック)操作で入力するものである。キーボード同
様I/O25を経由してCPU21に操作信号が送ら
れ、CPU21はその処理を実行する。ネットワーク3
1は外部との通信線路で外部からの情報を受信してNI
C26経由でCPU21へ通知する。この受信情報が磁
気ディスク1、2、3、4−32(以下、磁気ディスク
1−32で代表する)に対する書込み指令であれば、C
PU21は受信情報をメモリー22に転送を指令し、そ
の後磁気ディスク1−32に書込み処理を指令する。外
部からの情報画読出し指令であれば、CPU21は指定
した情報を磁気ディスク1−32から読出し、SPC2
7を経由してメモリー22に記憶し、NIC26を経由
してネットワーク31に送出する。
The mouse 30 is used to designate an image with an arrow (pointer) and a button displayed on the CRT 28 and to input the image by pressing (clicking) the button. Like the keyboard, an operation signal is sent to the CPU 21 via the I / O 25, and the CPU 21 executes the processing. Network 3
1 is a communication line with the outside that receives information from the outside and
It notifies CPU 21 via C26. If the received information is a write command to the magnetic disks 1, 2, 3, and 4-32 (hereinafter, represented by the magnetic disk 1-32), C
The PU 21 instructs the transfer of the received information to the memory 22, and then instructs the magnetic disk 1-32 to write. If it is an external information image read command, the CPU 21 reads the designated information from the magnetic disk 1-32, and
7, and is sent to the network 31 via the NIC 26.

【0024】磁気ディスク1−32は情報の書込み読出
しを行う処理を実行する。すなわち、書込み処理では、
磁気ディスク1−32はメモリー22に記憶されている
情報をSPC27を経由して受け取り、そして書き込
む。この際、CPU21はメモリー22に記憶された情
報から、メモリー22上の他の領域内にエラー訂正情報
を作成して、磁気ディスク32の何れか1つ(この例で
は、磁気ディスク4−32)に書き込む。また、読出し
指令では、指定のデータを磁気ディスク1−32から読
みだしてメモリー22に書き込む。CPU21はメモリ
ー22に対する書込み完了により、NIC27を経由し
て読出した情報をネットワーク31に送出する。
The magnetic disk 1-32 executes processing for writing and reading information. That is, in the writing process,
The magnetic disk 1-32 receives and writes information stored in the memory 22 via the SPC 27. At this time, the CPU 21 creates error correction information in another area on the memory 22 based on the information stored in the memory 22 and uses any one of the magnetic disks 32 (in this example, the magnetic disk 4-32). Write to. In response to the read command, the designated data is read from the magnetic disk 1-32 and written to the memory 22. The CPU 21 sends the information read out via the NIC 27 to the network 31 when the writing to the memory 22 is completed.

【0025】次に、障害磁気ディスクが存在する場合に
ついて説明する。今、障害磁気ディスクが磁気ディスク
2−32とすると、CPU21はメモリー22に書き込
まれた障害磁気ディスク2−32以外からの読みだし情
報とエラー訂正情報とを使用して、メモリー22の他の
領域に障害磁気ディスク2−32の分の読出し情報を作
成し、この情報を障害磁気ディスク2−32の読みだし
情報としてNIC27を介しネットワーク31に送出す
る。SCSIバス33は複数の磁気ディスク1、2、
3、4−32を接続する通信線路である。
Next, a case where a faulty magnetic disk exists will be described. Now, assuming that the faulty magnetic disk is the magnetic disk 2-32, the CPU 21 uses the read information and the error correction information from the other than the faulty magnetic disk 2-32 written in the memory 22 to store other areas in the memory 22. Then, read information for the failed magnetic disk 2-32 is created, and this information is sent to the network 31 via the NIC 27 as read information for the failed magnetic disk 2-32. The SCSI bus 33 has a plurality of magnetic disks 1, 2,.
It is a communication line connecting 3, 4-32.

【0026】複数の磁気ディスクのどれかを特定するた
め、各磁気ディスク1、2、3、4−32には、ID番
号が設定される。ID番号は、磁気ディスク1−32に
装備されたスイッチまたはジャンパーピン等で、ハード
的に設定される。CPU21はSPC27を経由して、
ID番号により各磁気ディスク1−32と通信し各磁気
ディスク1−32の存在を確認する。一本のSCSIバ
ス33には同じID番号が存在してはならない。もし、
同じID番号の磁気ディスク1−32が2個以上存在し
た場合は、そのID番号を使用してCPU21が指令ま
たは問い合わせを行ったときに、2個の磁気ディスク1
−32が同時に異なる情報を送信してくるので、ビット
衝突を起こしパリテイエラーが発生して、正常な通信を
行うことができない。
To specify any one of the plurality of magnetic disks, an ID number is set for each of the magnetic disks 1, 2, 3, and 4-32. The ID number is set by hardware using a switch or a jumper pin mounted on the magnetic disk 1-32. The CPU 21 passes through the SPC 27,
It communicates with each magnetic disk 1-32 based on the ID number and confirms the existence of each magnetic disk 1-32. The same ID number must not exist on one SCSI bus 33. if,
If there are two or more magnetic disks 1-32 having the same ID number, when the CPU 21 issues a command or inquiry using the ID numbers, the two magnetic disks 1-32 are used.
Since −32 simultaneously transmits different information, bit collision occurs and a parity error occurs, preventing normal communication.

【0027】RAID2、RAID3、RAID4、R
AID5においては、複数の磁気ディスク1、2、3、
4−32のうちの1個がエラー訂正情報記憶用として使
用され、エラー訂正情報を記憶する。このエラー訂正情
報により、1個の磁気ディスク2−32が障害を起こし
ても、その障害磁気ディスク2−32の情報をエラー訂
正情報により作成できるため、磁気ディスク装置として
は継続稼動が可能である。
RAID2, RAID3, RAID4, R
In AID5, a plurality of magnetic disks 1, 2, 3,
One of 4-32 is used for storing error correction information, and stores error correction information. With this error correction information, even if one magnetic disk 2-32 fails, the information on the failed magnetic disk 2-32 can be created by the error correction information, so that the magnetic disk device can be continuously operated. .

【0028】スイッチ1、2、3、4−34(以下、ス
イッチ1−34で代表する)は磁気ディスク1−32と
SCSIバス33との間を接続し切り離しをするスイッ
チである。このスイッチはCPU21から、I/O35
を経由して制御可能で、障害磁気ディスク2−32が発
生した場合、その切り離し及び接続を実行することがで
きる。図1の例では、磁気ディスク1−32乃至磁気デ
ィスク4−32に対する4個のスイッチ1、2、3、4
−34を装備している。I/O35はスイッチ1−34
をCPU21が制御するためのインターフェースであ
る。
Switches 1, 2, 3, and 4-34 (hereinafter, referred to as switches 1-34) are switches for connecting and disconnecting the magnetic disk 1-32 and the SCSI bus 33. This switch is provided from the CPU 21 to the I / O 35
, And when a failed magnetic disk 2-32 occurs, disconnection and connection can be executed. In the example of FIG. 1, four switches 1, 2, 3, 4 for the magnetic disks 1-32 to 4-32 are provided.
Equipped with -34. I / O 35 is switch 1-34
Is an interface for controlling the CPU 21.

【0029】次に、図2を参照して、交換した磁気ディ
スク2−32に対する修復作業の動作の流れを説明す
る。まず、図2に示すステップS10から修復作業を開
始する。この修復作業は前述のように、通常のアクセス
の合間に実行するので、修復作業を完了したか未完了か
を示すテーブルを必要とする。そのような修復作業を管
理するために割り当てられたメモリーの領域を修復管理
テーブル(図3とともに後述する)と称し、ステップS
11において、この修復管理テーブルに記録されている
修復済みフラグをテーブル全領域に渡って消去する(初
期状態では全て0)。
Next, with reference to FIG. 2, an operation flow of a repairing operation for the replaced magnetic disk 2-32 will be described. First, the repair work is started from step S10 shown in FIG. As described above, this repair work is performed during a normal access, so that a table indicating whether the repair work has been completed or not completed is required. The area of the memory allocated to manage such repair work is called a repair management table (to be described later with reference to FIG. 3), and is referred to as step S.
At 11, the repaired flag recorded in the repair management table is erased over the entire area of the table (all are 0 in the initial state).

【0030】次に、ステップS12へ進み、通常のアク
セスがあるかどうかを判定し、通常のアクセスがあれば
ステップS13へ進み、通常のアクセス処理を実行す
る。ステップS14において、アクセスした領域につい
て修復作業が完了したか(修復済みか)どうかを確認す
る。そして、未修復(修復未完了)であればステップS
16へ進み、修復処理を実行して、その領域に対する修
復済みフラグを立てて、修復管理テーブルに対し修復済
みを記録する。
Next, the process proceeds to step S12, where it is determined whether or not there is a normal access. If there is a normal access, the process proceeds to step S13 to perform a normal access process. In step S14, it is confirmed whether the repair work has been completed for the accessed area (whether the area has been repaired). If not repaired (restoration not completed), step S
Then, the process proceeds to step S16, where a restoration process is executed, a restoration completion flag is set for the area, and restoration is recorded in the restoration management table.

【0031】ステップS16における修復処理の実行後
ステップS17へ進み、修復対象磁気ディスク2−32
全領域に亘り修復完了か否かの確認を行い、修復完了で
あればステップS18へ進んで修復作業を終了し、未完
了であればステップS12へ戻って通常のアクセス処理
の有無を確認し、次の領域の修復作業に移る。上記のス
テップS14において、アクセスした領域が修復済みで
あれば、何もせずにステップS17に進み、上記のよう
に、修復対象磁気ディスク2−32全領域に亘り修復完
了か否かの確認を行う。
After the execution of the restoration process in step S16, the process proceeds to step S17, and the restoration target magnetic disk 2-32.
It is confirmed whether or not the restoration has been completed over the entire area. If the restoration has been completed, the process proceeds to step S18 to end the restoration work. Move on to the next area repair work. If it is determined in step S14 that the accessed area has been restored, the process proceeds to step S17 without doing anything, and as described above, it is determined whether the restoration has been completed for the entire area of the magnetic disk 2-32 to be restored. .

【0032】更に、ステップS12へ戻り、通常のアク
セスの有無確認において、通常のアクセスが無ければ、
ステップS15へ進み、修復作業が未完了の領域に自主
的にアクセスして修復作業を実行し、その領域に対する
修復済みフラグを立てて、修復管理テーブルに対し修復
済みを記録する。その後、ステップS17へ進み、上記
のように、修復対象磁気ディスク2−32全領域に亘り
修復完了であればステップS18へ進んで修復作業を終
了し、未完了であればステップS12へ戻って通常のア
クセス処理の有無を確認し、次の領域の修復作業に移
る。
Further, returning to step S12, in the confirmation of the presence or absence of the normal access, if there is no normal access,
In step S15, the restoration work is performed by independently accessing the area where the restoration work is not completed, setting the restoration completed flag for the area, and recording the restoration completion in the restoration management table. Thereafter, the process proceeds to step S17. As described above, if the repair has been completed over the entire area of the magnetic disk 2-32 to be repaired, the process proceeds to step S18 to end the repair work. Check whether there is access processing for the next area, and move on to the repair work for the next area.

【0033】次に、図3を参照して、修復管理テーブル
の例について説明する。修復管理テーブルはメモリーの
ある領域に確保した修復作業を実行するための情報を記
憶するメモリーであり、不揮発性メモリーであることが
好ましく、図1に図示してはいないが、磁気ディスク1
−32の1部であってもまたは他の如何なるところに置
いてもよい。磁気ディスク1−32はアクセス(書込
み、読出し)の単位が定められており、これをブロック
サイズと称す。このブロックサイズを単位とした位置情
報を論理アドレスと称する。アクセスは、書込みまたは
読出し指定、論理アドレス、ブロック数を指定して行わ
れ、書込みの場合は、その後に書込み情報が送られる。
Next, an example of the repair management table will be described with reference to FIG. The repair management table is a memory for storing information for executing the repair work secured in a certain area of the memory, and is preferably a nonvolatile memory. Although not shown in FIG.
-32 or may be placed anywhere else. The unit of access (writing, reading) of the magnetic disk 1-32 is defined, and this is called a block size. The position information in units of the block size is called a logical address. Access is performed by designating write or read, a logical address, and the number of blocks. In the case of write, write information is sent thereafter.

【0034】読出しの場合は、指定の情報を磁気ディス
ク1−32から読出し、読出し要求を出した外部に対し
て送出する。磁気ディスク装置は複数の磁気ディスク1
−32から構成されるが、外部からのアクセスは、1個
の磁気ディスクとして扱われ、磁気ディスク装置の内部
では、書込み情報をそこで適用するRAID2〜5の方
式に従って分割し、この情報からエラー訂正情報を作成
して、複数の磁気ディスク1−32に記憶する。磁気デ
ィスク装置の内部では、CPU21を中心にして各磁気
ディスク1−32の論理アドレスの使用状況、エラー訂
正情報の記憶用磁気ディスク4−32はどれか等の情報
を管理している。
In the case of reading, the designated information is read from the magnetic disk 1-32 and sent to the outside that issued the read request. The magnetic disk drive includes a plurality of magnetic disks 1
-32, the external access is treated as one magnetic disk, and inside the magnetic disk device, the write information is divided according to the RAID 2 to 5 system applied there, and error correction is performed based on this information. Information is created and stored on the plurality of magnetic disks 1-32. Inside the magnetic disk device, the CPU 21 manages information such as the usage status of the logical address of each magnetic disk 1-32 and the magnetic disk 4-32 for storing error correction information.

【0035】これらの管理情報は、各磁気ディスク1−
32のアドレスの始端に記憶領域を確保して(例えば、
論理アドレス0〜99)、それに続く論理アドレス10
0(例)から外部からの情報記憶用として使用する。図
3に示す修復管理テーブルは、磁気ディスク装置の各磁
気ディスク管理テーブルに、修復完了情報を追加したも
のである。
The management information is stored in each magnetic disk 1-
A storage area is secured at the beginning of the address 32 (for example,
Logical addresses 0 to 99), followed by a logical address 10
0 (example) is used for external information storage. The restoration management table shown in FIG. 3 is obtained by adding restoration completion information to each magnetic disk management table of the magnetic disk device.

【0036】図3において、40は修復作業中(交換し
た磁気ディスクの修復作業中)であることを示すフラグ
であり、修復作業中のビットが1であれば修復作業中で
あることを示す。51は論理アドレス0であり、磁気デ
ィスク管理用として使用される領域であるため、これら
論理アドレスの使用状況を記憶して使用中であることを
示すが、修復対象とはならない。
In FIG. 3, reference numeral 40 denotes a flag indicating that the repair operation is being performed (repair operation of the replaced magnetic disk is being performed). If the bit being repaired is 1, it indicates that the repair operation is being performed. Reference numeral 51 denotes a logical address 0, which is an area used for managing a magnetic disk. Therefore, the use status of these logical addresses is stored to indicate that they are being used, but they are not to be repaired.

【0037】42は論理アドレス100であり、使用中
フラグがビット1を示し、外部情報を記憶していること
を示す。また、43は論理アドレス37500であり、
使用中ビットが0で外部情報の記憶に未だ使用されてい
ないことを示し、修復作業の対象にはならない。
Reference numeral 42 denotes a logical address 100. The busy flag indicates bit 1, indicating that external information is stored. 43 is a logical address 37500,
The in-use bit is 0, indicating that the bit is not yet used for storing external information, and is not a target of the repair work.

【0038】次に、図4を参照して、読出し指令におけ
る修復作業の処理の流れについて説明する。図4におい
て、磁気ディスク2−32を修復対象磁気ディスクと
し、エラー訂正情報は磁気ディスク4−32に記憶して
あるものとする。読出し指令80は、外部との間の通信
手段であるネットワーク31を介して外部から受信した
読出し指令であり、磁気ディスク装置が受信したことを
示す。磁気ディスクへの読出し指令81は読出し指令8
0を磁気ディスク装置内部の記憶アドレス(磁気ディス
ク1−32のアドレス)に変換し、各磁気ディスク1−
32に対して読出し指令を出力することを示す。磁気デ
ィスク1−32が修復対象であるため、正しい情報が書
き込まれていないので、読出し指令も出力していない。
Next, with reference to FIG. 4, the flow of the process of the repair operation in response to the read command will be described. In FIG. 4, it is assumed that the magnetic disk 2-32 is a magnetic disk to be repaired, and the error correction information is stored on the magnetic disk 4-32. The read command 80 is a read command received from the outside via the network 31, which is a communication means with the outside, and indicates that the magnetic disk device has received the command. Read command 81 to the magnetic disk is read command 8
0 is converted to a storage address (address of the magnetic disk 1-32) inside the magnetic disk device,
32 to output a read command. Since the magnetic disk 1-32 is to be restored, correct information has not been written, and thus no read command has been output.

【0039】読出し時間82は、各磁気ディスク1−3
2がそれぞれ読出しに要する時間である。読出されメモ
リーへ転送された情報83は読出し時間82の経過後、
各磁気ディスク1−32から読出された情報がメモリー
22に転送されることを示す。修復対象磁気ディスク2
−32用に作成した情報85は、メモリー22に転送さ
れたエラー訂正情報を含む情報83から、修復対象磁気
ディスク2−32の正しい情報を作成することを示す。
The read time 82 depends on each magnetic disk 1-3.
2 is the time required for each reading. The information 83 read out and transferred to the memory is read after the elapse of the read time 82.
This indicates that information read from each magnetic disk 1-32 is transferred to the memory 22. Repair target magnetic disk 2
The information 85 created for −32 indicates that correct information of the magnetic disk 2-32 to be repaired is created from the information 83 including the error correction information transferred to the memory 22.

【0040】通常、エラー訂正情報は各磁気ディスク1
−32に対するブロック情報の排他的論理和をとること
により作成され、修復対象磁気ディスク2−32に対す
る正しい情報は、エラー訂正情報を含む各ブロック情報
の排他的論理和を取ることにより作成される。ネットワ
ークへの転送情報84は、図4に時間的順序に従って並
べられているように、磁気ディスク1−32、磁気ディ
スク2−32、磁気ディスク3−32の順に、ネットワ
ーク31に対して読出し情報を転送することを示す。
Normally, the error correction information is stored in each magnetic disk 1
The correct information for the magnetic disk 2-32 to be repaired is created by taking the exclusive OR of the block information including the error correction information. As shown in FIG. 4, the transfer information 84 to the network is read out from the network 31 in the order of the magnetic disk 1-32, the magnetic disk 2-32, and the magnetic disk 3-32. Indicates transfer.

【0041】一方、書込み指令86は、修復対象磁気デ
ィスク2−32のために作成した正しい情報を修復対象
磁気ディスク2−32に対して書込むべき指令を発する
ことを示し、修復対象磁気ディスク2−32へ転送され
た情報87は書込み情報を修復対象磁気ディスク2−3
2に転送することを示す。書込み時間88は、この書込
み情報を修復対象磁気ディスク2−32により定められ
た書込みに必要とする時間である。書込み情報を修復対
象磁気ディスク2−32に転送し記憶した後、修復管理
テーブルのこのアドレスの修復済みビットを1にセット
する。
On the other hand, the write command 86 indicates that a command to write correct information created for the repair target magnetic disk 2-32 to the repair target magnetic disk 2-32 is issued. The information 87 transferred to −32 restores the write information to the recovery target magnetic disk 2-3.
2 is transferred. The write time 88 is a time required for the write information to be written by the magnetic disk 2-32 to be restored. After the write information is transferred to and stored in the magnetic disk 2-32 to be repaired, the repaired bit of this address in the repair management table is set to 1.

【0042】次の読出し開始可能位置89は、全ての磁
気ディスク1−32からの読出し作業が完了した時点
で、もし次の読出しの要求があれば、その作業を開始す
ることができる位置を示す。すなわち、修復作業は修復
対象磁気ディスク2−32に対しては書込み時間88ま
で必要とするが、この間、次の読出し作業は可能であ
り、修復作業が読出し作業と同時並行して実行できるた
め、修復作業が読出し作業に与える影響は非常に少な
い。
The next read-startable position 89 indicates a position at which, when reading from all the magnetic disks 1-32 is completed, if there is a next reading request, the reading can be started. . In other words, the repair work requires a write time 88 for the repair target magnetic disk 2-32, but during this time, the next read work is possible, and the repair work can be performed concurrently with the read work. The effect of the repair operation on the read operation is very small.

【0043】自主アクセスによる修復作業においては、
ネットワーク31からの読出し指令80が無く、ネット
ワーク31に対する転送情報84も無い以外は、上記と
同じ作業となる。要するに、CPU21は、修復管理テ
ーブルから未修復のアドレスを探し、この修復対象磁気
ディスク2−32の未修復アドレスに対して読出し指令
81を出力し、ネットワーク31に転送することなく、
上記同様の修復作業を実行する。
In the repair work by voluntary access,
The operation is the same as the above except that there is no read command 80 from the network 31 and no transfer information 84 to the network 31. In short, the CPU 21 searches the repair management table for an unrepaired address, outputs a read command 81 to the unrepaired address of the repair target magnetic disk 2-32, and transfers the read command 81 to the network 31 without transferring the read command 81 to the network 31.
Perform the same repair work as described above.

【0044】次に、図5を参照して、書込み指令におけ
る修復作業の処理の流れについて説明する。図5におい
て、ネットワーク31からの書込み指令90を受信した
磁気ディスク装置は、各磁気ディスク1−32に対して
書込み指令91を出力する。その後、CPU21は、ネ
ットワーク31から転送されてくる書込み情報94をR
AIDの定める分割手順に従って分割し、エラー訂正情
報を作成95して、それら分割した情報及びエラー訂正
情報を各磁気ディスク1−32に対してそれぞれ書き込
む。書込みの場合は、修復対象の磁気ディスク2−32
に対しても通常の書込みと同様に書き込むことにより、
そのアドレスの修復が完了する。修復完了後、修復管理
テーブルのこのアドレスにおける修復済みビットを1に
セットする。
Next, with reference to FIG. 5, the flow of the processing of the repair work in response to the write command will be described. In FIG. 5, the magnetic disk device that has received the write command 90 from the network 31 outputs a write command 91 to each magnetic disk 1-32. Thereafter, the CPU 21 stores the write information 94 transferred from the network 31 in the R
The data is divided according to the division procedure determined by the AID, error correction information is created 95, and the divided information and error correction information are written to the respective magnetic disks 1-32. In the case of writing, the magnetic disk 2-32 to be restored
By writing in the same way as normal writing,
The restoration of the address is completed. After the repair is completed, the repaired bit at this address in the repair management table is set to 1.

【0045】[0045]

【発明の効果】本発明は、上記のように構成し、特にR
AID2、RAID3、RAID4、RAID5等の磁
気ディスク装置において、障害磁気ディスクの交換後、
修復作業を開始しても通常のアクセスを実行しながら修
復作業を行うことができるので、通常のアクセスを妨げ
ず、通常のアクセスに対する修復作業の影響が少ない状
態で交換した磁気ディスクを修復することができる。
The present invention is constructed as described above,
In magnetic disk devices such as AID2, RAID3, RAID4, and RAID5, after replacing a failed magnetic disk,
Even if the repair work is started, the repair work can be performed while performing the normal access, so that the replaced magnetic disk is repaired without interrupting the normal access and the influence of the repair work on the normal access is small. Can be.

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

【図1】本発明の一実施の形態におけるデータ修復方法
を実施する磁気ディスク装置の構成例を示す図、
FIG. 1 is a diagram showing an example of the configuration of a magnetic disk drive that implements a data restoration method according to an embodiment of the present invention;

【図2】本発明の一実施の形態におけるデータ修復方法
による修復作業の流れを示すフローチャート、
FIG. 2 is a flowchart showing a flow of a repair operation by the data repair method according to the embodiment of the present invention;

【図3】図2に示すデータ修復方法において使用する修
復管理テーブルの例を示す図、
FIG. 3 is a view showing an example of a repair management table used in the data repair method shown in FIG. 2;

【図4】本実施の形態におけるデータ修復方法において
読出し指令により修復作業を実行するタイミングを示す
図、
FIG. 4 is a diagram showing a timing of executing a repair operation in response to a read command in the data repair method according to the embodiment;

【図5】本実施の形態におけるデータ修復方法において
書込み指令により修復作業を実行するタイミングを示す
図、
FIG. 5 is a diagram showing timing for executing a repair operation in response to a write command in the data repair method according to the embodiment;

【図6】RAID0乃至RAID5の各構成を示し、
(A)はRAID0を示す図、(B)はRAID1を示
す図、(C)はRAID2及びRAID3を示す図、
(D)はRAID4を示す図、(E)はRAID5を示
す図。
FIG. 6 shows each configuration of RAID0 to RAID5,
(A) is a diagram showing RAID0, (B) is a diagram showing RAID1, (C) is a diagram showing RAID2 and RAID3,
(D) is a diagram showing RAID4, (E) is a diagram showing RAID5.

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

1 RAID0 2 RAID1 3 RAID2、RAID3 4 RAID4 5 RAID5 6 巡回記憶により書き込まれた情報 S10 修復開始 S11 修復済みフラグの全領域消去 S12 通常アクセスの有無確認 S13 通常アクセスの処理 S14 領域の修復済み確認 S15 自主アクセス修復処理実行、領域別修復済みフ
ラグを立てる S16 修復処理の実行、領域別に修復済みフラグを立
てる S17 全領域の修復完了確認 S18 修復作業終了 20 磁気ディスク装置 21 CPU 22 メモリー 23 バス 24 VGA 25 I/O 26 NIC 27 SPC 28 CRT 29 キーボード 30 マウス 31 ネットワーク 1−32、2−32、3−32、4−32 磁気ディス
ク 33 SCSIバス 1−34、2−34、3−34、4−34 スイッチ 35 I/O 40 修復作業中フラグ 41 論理アドレス0の情報 42 論理アドレス100の情報 43 論理アドレス37500の情報 80 読出し指令 81 磁気ディスクへの読出し指令 82 読出し時間 83 読出されメモリーへ転送された情報 84 ネットワークへの転送情報 85 磁気ディスク2−32用に作成した情報 86 書込み指令 87 磁気ディスク2−32へ転送された情報 88 書込み時間 89 次の読出し開始可能位置 90 書込み指令 91 磁気ディスクへの書込み指令 92 磁気ディスクへ転送する書込み情報 93 書込み実行時間 94 ネットワークからの書込み情報 95 エラー訂正情報の作成
1 RAID0 2 RAID1 3 RAID2, RAID3 4 RAID4 5 RAID5 6 Information written by cyclic storage S10 Repair start S11 Erase all areas of repaired flag S12 Confirmation of normal access S13 Normal access processing S14 Confirmation of area restoration S15 Independent Executing access restoration processing and setting a restoration flag for each area S16 Executing restoration processing and setting a restoration flag for each area S17 Confirming completion of restoration of all areas S18 Completion of restoration work 20 Magnetic disk device 21 CPU 22 Memory 23 Bus 24 VGA 25 I / O 26 NIC 27 SPC 28 CRT 29 Keyboard 30 Mouse 31 Network 1-32, 2-32, 3-32, 4-32 Magnetic disk 33 SCSI bus 1-34, 2-34, 3-34, 4-34 Switch 35 I / O 40 Repairing flag 41 Information of logical address 0 42 Information of logical address 100 Information of logical address 37500 80 Read command 81 Read command to magnetic disk 82 Read time 83 Information read and transferred to memory 84 Information transferred to the network 85 Information created for the magnetic disk 2-32 86 Write command 87 Information transferred to the magnetic disk 2-32 88 Write time 89 Next read startable position 90 Write command 91 Write to magnetic disk Command 92 Write information to be transferred to magnetic disk 93 Write execution time 94 Write information from network 95 Creation of error correction information

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】外部からの書込み情報からエラー訂正情報
を作成し、書込み情報とエラー訂正情報とを複数の磁気
ディスクに分割して書込み、外部からの読出し要求に対
し磁気ディスクの障害によりエラーが発生したときにエ
ラー訂正情報から障害磁気ディスクの情報を作成して読
出すようにした磁気ディスクのデータ修復方法におい
て、障害磁気ディスクを交換後、外部からの通常の書込
みまたは読出し要求に対する書込み情報または読出し情
報を利用して交換した磁気ディスクを修復する工程を含
み、外部からの通常の書込みまたは読出し要求があった
ときにその書込み情報または読出し情報を利用して交換
した磁気ディスクを自動的に修復するようにしたことを
特徴とする磁気ディスクのデータ修復方法。
An error correction information is created from externally written information, the write information and the error correction information are divided and written on a plurality of magnetic disks, and an error is caused by a failure of the magnetic disk in response to an external read request. In a data recovery method for a magnetic disk in which information on a failed magnetic disk is created and read out from error correction information when an error occurs, after replacing the failed magnetic disk, write information or a write request for a normal external write or read request is made. Including a step of repairing the replaced magnetic disk using the read information, and automatically repairing the replaced magnetic disk using the write information or the read information when a normal external write or read request is made. A method of restoring data on a magnetic disk, characterized in that:
【請求項2】前記読出し情報を利用する工程は、前記読
出し情報から作成した交換磁気ディスクに対する読出し
情報を次に発生した読出し要求の作業と並行して前記交
換磁気ディスクに書き込む工程を含むことを特徴とする
請求項1記載の磁気ディスクのデータ修復方法。
2. The method according to claim 1, wherein the step of using the read information includes a step of writing the read information for the exchange magnetic disk created from the read information to the exchange magnetic disk in parallel with a next read request. 2. The method according to claim 1, further comprising the steps of:
【請求項3】外部からの書込み情報からエラー訂正情報
を作成し、書込み情報とエラー訂正情報とを複数の磁気
ディスクに分割して書込み、外部からの読出し要求に対
し磁気ディスクの障害によりエラーが発生したときにエ
ラー訂正情報から障害磁気ディスクの情報を作成して読
出すようにした磁気ディスクのデータ修復方法におい
て、障害磁気ディスクを交換後、障害磁気ディスクに正
しく記憶されているべき情報を交換した磁気ディスクに
書き込む修復作業を、外部からの通常の書込み及び読出
し要求がないときに実行する工程を含み、外部からの通
常の書込み及び読出し要求がないときは、障害磁気ディ
スクの使用中アドレスに対応する交換した磁気ディスク
のアドレスを自動的に修復するようにしたことを特徴と
する磁気ディスクのデータ修復方法。
3. The method according to claim 1, wherein error correction information is created from externally written information, the write information and the error correction information are divided and written on a plurality of magnetic disks, and an error is caused by a failure of the magnetic disk in response to an external read request. In a data recovery method for a magnetic disk in which information on a failed magnetic disk is created and read out from error correction information when an error occurs, information that should be correctly stored on the failed magnetic disk is replaced after the failed magnetic disk is replaced. Performing a repair operation for writing to the failed magnetic disk when there is no normal external write and read request.When there is no normal external write and read request, the in-use address of the failed magnetic disk is The address of the corresponding replaced magnetic disk is automatically repaired. Over data repair method.
【請求項4】前記交換した磁気ディスクを自動的に修復
する工程は、修復管理テーブルを参照して実行すること
を特徴とする請求項1、2または3記載の磁気ディスク
のデータ修復方法。
4. The method according to claim 1, wherein the step of automatically repairing the replaced magnetic disk is performed by referring to a repair management table.
JP10170538A 1998-06-04 1998-06-04 Data restoring method for radio device Pending JPH11353125A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10170538A JPH11353125A (en) 1998-06-04 1998-06-04 Data restoring method for radio device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10170538A JPH11353125A (en) 1998-06-04 1998-06-04 Data restoring method for radio device

Publications (1)

Publication Number Publication Date
JPH11353125A true JPH11353125A (en) 1999-12-24

Family

ID=15906774

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10170538A Pending JPH11353125A (en) 1998-06-04 1998-06-04 Data restoring method for radio device

Country Status (1)

Country Link
JP (1) JPH11353125A (en)

Similar Documents

Publication Publication Date Title
US7558981B2 (en) Method and apparatus for mirroring customer data and metadata in paired controllers
JP2603757B2 (en) Method of controlling array disk device
US20050251628A1 (en) Method, system, and program for demoting tracks from cache
JPH11272427A (en) Method for saving data and outside storage device
JP2003131817A (en) Method and system for migration of data in raid logical drive migration
JPH11353129A (en) Magnetic disk drive capable of having magnetic disk replaced in operation and replacing method for magnetic disk
US7653831B2 (en) Storage system and data guarantee method
US10664346B2 (en) Parity log with by-pass
US8862846B2 (en) Control apparatus, control method, and storage apparatus
JPH1195933A (en) Disk array system
JPH08249218A (en) File controller and data write method
JP2000020248A (en) Disk fault recovering method, disk driver, and recording medium
US7779293B2 (en) Technology to control input/output device bridges
JP2002278706A (en) Disk array device
JPH07306758A (en) Disk array device and its control method
JPH11353125A (en) Data restoring method for radio device
JPH08171463A (en) Data read method in disk array device, and disk array device
JP3793544B2 (en) Disk array device and control method thereof
JP2004102815A (en) Method for copying data between logical disks, program for copying data between logical disks, and disk controller
JPH11154058A (en) Disk array device and data maintaining method
JP3798773B2 (en) Disk control apparatus and consistency recovery method for redundant logical disk drive
JP3615250B2 (en) Disk array device
JPH0962461A (en) Automatic data restoring method for disk array device
JP2002222063A (en) Disk array device and its data restoring method
JP2001175422A (en) Disk array device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041201

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041214

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050419