JP2000276308A - Disk subsystem and data restoration method in disk subsystem - Google Patents

Disk subsystem and data restoration method in disk subsystem

Info

Publication number
JP2000276308A
JP2000276308A JP11085205A JP8520599A JP2000276308A JP 2000276308 A JP2000276308 A JP 2000276308A JP 11085205 A JP11085205 A JP 11085205A JP 8520599 A JP8520599 A JP 8520599A JP 2000276308 A JP2000276308 A JP 2000276308A
Authority
JP
Japan
Prior art keywords
data
magnetic disk
disk device
restored
spare
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.)
Withdrawn
Application number
JP11085205A
Other languages
Japanese (ja)
Inventor
Shuichi Abe
秀一 阿部
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP11085205A priority Critical patent/JP2000276308A/en
Publication of JP2000276308A publication Critical patent/JP2000276308A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

(57)【要約】 【課題】本発明は、障害が発生したデータの復元処理に
必要なデータが障害の発生していない磁気ディスク装置
から読み出せないことに起因してディスクサブシステム
が使用不能になることを防止するディスクサブシステム
を提供することを目的とする。 【解決手段】RAIDを構成したディスクサブシステム
において、障害の発生した磁気ディスク装置のデータを
前記予備の磁気ディスク装置に復元する際に、前記障害
の発生した磁気ディスク装置から読み出せるデータは、
そのデータを前記予備の磁気ディスク装置に格納し、前
記障害の発生した磁気ディスク装置から読み出せないデ
ータは、前記RAIDを構成する複数の磁気ディスク装
置の内、障害が発生していない磁気ディスク装置に格納
されているデータから演算により復元し、この復元した
データを前記予備の磁気ディスク装置に格納するデータ
復元手段を設けたことを特徴とする。
An object of the present invention is to make a disk subsystem unusable because data necessary for restoring failed data cannot be read from a magnetic disk device in which no failure has occurred. It is an object of the present invention to provide a disk subsystem that prevents the occurrence of a disk subsystem. In a disk subsystem configured with RAID, when restoring data of a failed magnetic disk device to the spare magnetic disk device, data readable from the failed magnetic disk device is:
The data that cannot be read from the failed magnetic disk device is stored in the spare magnetic disk device, and the data that cannot be read from the failed magnetic disk device is one of the plurality of magnetic disk devices that constitute the RAID. And data restoring means for restoring the data stored in the spare magnetic disk drive by operation and storing the restored data in the spare magnetic disk device.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、PCサーバ等のサ
ーバ計算機において、高信頼性が要求される外部記憶装
置として使用されるRAID技術を使用したディスクサ
ブシステムの改良に関する。特に信頼性を更に高くする
RAID技術を使用したディスクサブシステムに関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an improvement in a disk subsystem using a RAID technology used as an external storage device requiring high reliability in a server computer such as a PC server. In particular, the present invention relates to a disk subsystem using RAID technology for further increasing reliability.

【0002】[0002]

【従来の技術】RAID(Redundant Arr
ays of Inexpensive Disks)
技術は、David A.Patterson,Gar
thA.Gribson,Randy H.Katsに
より1987年に発表された論文「A Case fo
r Redundant Arrays of Ine
xpensive Disks 」で紹介されて実用化
されている。
2. Description of the Related Art RAID (Redundant Arr.)
ays of Inexpensive Disks)
The technology is described in David A. Patternson, Gar
thA. Gribson, Randy H .; Kats, published in 1987, "A Case fo
r Redundant Arrays of Ine
"xpensive Disks".

【0003】そしてこのRAID技術は、一般的にレベ
ル1からレベル5に分類され、高信頼性が要求されるP
Cサーバ等のサーバ計算機のディスクサブシステムに使
用されている。
[0003] The RAID technology is generally classified into level 1 to level 5 and is a P technology that requires high reliability.
It is used for a disk subsystem of a server computer such as a C server.

【0004】レベル5のRAID技術を使用したディス
クサブシステムの一例を図8を用いてその概要を説明す
る。図8において、ディスクサブシステムは、3台の磁
気ディスク装置DR1、DR2、DR3と一台の予備磁
気ディスク装置DRSとから構成されている。この図に
おいては、サーバ計算機やRAIDコントローラの図示
を省略している。
An example of a disk subsystem using the level 5 RAID technology will be briefly described with reference to FIG. In FIG. 8, the disk subsystem includes three magnetic disk devices DR1, DR2, DR3 and one spare magnetic disk device DRS. In this figure, illustration of a server computer and a RAID controller is omitted.

【0005】サーバ計算機が管理し磁気ディスク装置に
記録しているデータを所定単位のブロックに分割し、こ
れを3台の磁気ディスク装置DR1、DR2、DR3に
分散して記録する。この際に、冗長データとしてパリテ
ィを作成し、このパリティも分散して記録する。
[0005] The data managed by the server computer and recorded on the magnetic disk device is divided into predetermined units of blocks, which are distributed and recorded on three magnetic disk devices DR1, DR2 and DR3. At this time, a parity is created as redundant data, and this parity is also recorded in a distributed manner.

【0006】このパリティは、次のような方法で生成さ
れる。パリティP1は、データDaとデータDbとの排
他的論理和演算を行うことで生成される。同様にパリテ
ィP2はデータDcとデータDdとの排他的論理和演算
で、パリティP3はデータDeとデータDfとの排他的
論理和演算で、パリティP4はデータDgとデータDh
との排他的論理和演算で生成される。
[0006] The parity is generated by the following method. The parity P1 is generated by performing an exclusive OR operation on the data Da and the data Db. Similarly, parity P2 is an exclusive OR operation of data Dc and data Dd, parity P3 is an exclusive OR operation of data De and data Df, and parity P4 is data Dg and data Dh.
Is generated by an exclusive OR operation with

【0007】このように構成されたディスクサブシステ
ムにおいて、サーバ計算機からデータDbのリード要求
があった場合に、磁気ディスク装置DR2のデータDb
が記録されているメディア(磁気ディスク)の記録面の
障害又は磁気ディスク装置DR2全体の障害のため、デ
ータDbの読み出しができないときには、再度データリ
ードを試みてリトライを実施し、それでも読み出しがで
きない場合には、RAIDコントローラがデータDaと
パリティP1とのの排他的論理和演算を行いデータDb
を復元してサーバ計算機にリードデータとして出力して
サーバ計算機にはディスクサブシステムに障害が発生し
たことを認識させずに対応している。
In the disk subsystem configured as described above, when a read request for the data Db is made from the server computer, the data Db of the magnetic disk device DR2 is read.
When the data Db cannot be read due to a failure in the recording surface of the medium (magnetic disk) on which the data is recorded or a failure in the entire magnetic disk device DR2, the data read is attempted again and a retry is performed. The RAID controller performs an exclusive OR operation of the data Da and the parity P1 to perform the data Db
Is restored and output as read data to the server computer, and the server computer responds without recognizing that a failure has occurred in the disk subsystem.

【0008】このように障害が発生した場合、RAID
コントローラは障害が発生した磁気ディスク装置DR2
をRAID構成から切り離して磁気ディスク装置DR1
とDR3の2台の構成による縮退状態にする。
When a failure occurs in this way, RAID
The controller is the failed magnetic disk device DR2.
From the RAID configuration and the magnetic disk drive DR1
And DR3.

【0009】この縮退状態で更に別な磁気ディスク装置
に故障が発生すると、ディスクサブシステムからのデー
タの読み出しができなくなり、RAIDコントローラは
サーバ計算機に対してディスクサブシステムに障害が発
生したと通知することになる。
If a failure occurs in another magnetic disk device in this degenerate state, data cannot be read from the disk subsystem, and the RAID controller notifies the server computer that a failure has occurred in the disk subsystem. Will be.

【0010】このように縮退状態で更に別な磁気ディス
ク装置に故障が発生してディスクサブシステムに障害が
発生させないように、RAIDを正常な状態に回復する
必要がある。
As described above, it is necessary to restore the RAID to a normal state so that a failure occurs in another magnetic disk device in the degenerate state and no failure occurs in the disk subsystem.

【0011】この回復処理は、上記縮退状態において予
備の磁気ディスク装置DRSに切り離した磁気ディスク
装置DR2のデータを復元することで行われる。この予
備の磁気ディスク装置DRSに切り離した磁気ディスク
装置DR2のデータを復元するには、磁気ディスク装置
DR1とDR3のそれぞれに対応するブロックのデータ
どうしの排他的論理和演算を行うことで実現できる。例
えばデータDeを復元するには、パリティP3とデータ
Dfとの排他的論理和演算で復元できる。
This recovery process is performed by restoring the data of the magnetic disk drive DR2 separated from the spare magnetic disk drive DRS in the degenerate state. Restoring the data of the magnetic disk device DR2 separated from the spare magnetic disk device DRS can be realized by performing an exclusive OR operation on the data of the blocks respectively corresponding to the magnetic disk devices DR1 and DR3. For example, to restore the data De, it can be restored by an exclusive OR operation of the parity P3 and the data Df.

【0012】また、予備の磁気ディスク装置を持たない
ディスクサブシステムの回復処理では、障害の発生した
磁気ディスク装置を別の正常な磁気ディスク装置と交換
し、この交換した磁気ディスク装置にデータを上記と同
様に排他的論理和演算により復元する。
In the recovery processing of a disk subsystem having no spare magnetic disk device, the failed magnetic disk device is replaced with another normal magnetic disk device, and the data is transferred to the replaced magnetic disk device. In the same manner as in the above, restoration is performed by an exclusive OR operation.

【0013】[0013]

【発明が解決しようとする課題】このようなRAID技
術を使用したディスクサブシステムにおいては、次のよ
うな問題点があった。障害が発生しRAID構成から切
り離した磁気ディスク装置のデータを予備の又は交換し
た磁気ディスク装置に復元する際に、上記切り離した磁
気ディスク装置の障害の内容がメディア(磁気ディス
ク)の記録面の場合には、障害の発生していないメディ
アからはそこに記録されているデータの読み出しが可能
にもかかわらず、読み出しが可能なデータも含めて全て
のデータを排他的論理和演算により求めるため、データ
の復元処理に大幅な時間を要していた。
The disk subsystem using the RAID technology has the following problems. When restoring data of a magnetic disk device disconnected from the RAID configuration due to a failure to a spare or replaced magnetic disk device, the content of the failure of the separated magnetic disk device is a recording surface of a medium (magnetic disk) In order to obtain all data, including data that can be read, by exclusive OR operation, even though data recorded on the medium can be read from a medium where no failure has occurred, It took a lot of time to restore the data.

【0014】また、このようなデータの復元処理の際
に、排他的論理和演算のためにRAID構成している障
害の発生していない磁気ディスク装置からデータを読み
出す際に、障害が発生してデータの読み出しができない
場合がある。このとき、この時点でデータの復元処理は
不可能になるばかりでなく、ディスクサブシステム自体
が使用不可になってしまっていた。このようにデータの
復元処理の際に障害が見つかるデータは、普段アクセス
がされていないあまり重要なデータではないと推測され
る。このようなあまり重要でないデータが読み出せない
ことに起因して、障害の発生した磁気ディスク装置のデ
ータの復元ができなくなるとともに、ディスクサブシス
テム自体が使用不能になることは大きな問題であった。
Also, in such data restoration processing, when data is read out from a magnetic disk device having a RAID configuration and having no failure for exclusive OR operation, a failure occurs. In some cases, data cannot be read. At this time, not only the data restoration process becomes impossible at this time, but also the disk subsystem itself becomes unusable. In this way, it is assumed that the data for which a failure is found during the data restoration process is not very important data that is not normally accessed. The fact that such insignificant data cannot be read out makes it impossible to restore the data of the failed magnetic disk device and renders the disk subsystem itself unusable.

【0015】本発明は、これら従来の問題点を解決する
ためになされたもので、障害が発生した磁気ディスク装
置のデータの復元処理を高速化できるディスクサブシス
テムを提供することを目的とする。
The present invention has been made in order to solve these conventional problems, and has as its object to provide a disk subsystem that can speed up data restoration processing of a failed magnetic disk device.

【0016】また、本発明は、障害が発生した磁気ディ
スク装置のデータの復元処理の際に、データの復元処理
に必要なデータが障害の発生していない磁気ディスク装
置から読み出せないことに起因してRAIDが再構成で
きなくなり、ディスクサブシステムが使用不能になるこ
とを防止しするディスクサブシステムを提供することを
目的とする。
Further, the present invention is based on the fact that data required for data restoration processing cannot be read from a magnetic disk apparatus in which no failure has occurred during data restoration processing of a failed magnetic disk apparatus. It is therefore an object of the present invention to provide a disk subsystem which prevents a RAID from being unable to be reconfigured and making the disk subsystem unusable.

【0017】[0017]

【課題を解決するための手段】本発明は、予備の磁気デ
ィスク装置と複数の磁気ディスク装置とでRAIDを構
成したディスクサブシステムにおいて、障害の発生した
磁気ディスク装置のデータを前記予備の磁気ディスク装
置に復元する際に、前記障害の発生した磁気ディスク装
置から読み出せるデータは、そのデータを前記予備の磁
気ディスク装置に格納し、前記障害の発生した磁気ディ
スク装置から読み出せないデータは、前記RAIDを構
成する複数の磁気ディスク装置の内、障害が発生してい
ない磁気ディスク装置に格納されているデータから演算
により復元し、この復元したデータを前記予備の磁気デ
ィスク装置に格納するデータ復元手段を設けたことを特
徴とする。
According to the present invention, in a disk subsystem in which a spare magnetic disk device and a plurality of magnetic disk devices constitute a RAID, data of a failed magnetic disk device is stored in the spare magnetic disk device. When restoring to the device, data that can be read from the failed magnetic disk device stores the data in the spare magnetic disk device, and data that cannot be read from the failed magnetic disk device is Data restoration means for restoring by arithmetic operation from data stored in a magnetic disk device in which no failure has occurred among a plurality of magnetic disk devices constituting RAID, and storing the restored data in the spare magnetic disk device Is provided.

【0018】このような構成によれば、データの復元処
理を高速化できる。また、本発明は、予備の磁気ディス
ク装置と複数の磁気ディスク装置とでRAIDを構成し
たディスクサブシステムにおいて、障害の発生した磁気
ディスク装置のデータを前記予備の磁気ディスク装置に
復元する際に、前記障害の発生した磁気ディスク装置か
ら読み出せるデータは、そのデータを前記予備の磁気デ
ィスク装置に格納し、前記障害の発生した磁気ディスク
装置から読み出せないデータは、前記RAIDを構成す
る複数の磁気ディスク装置の内、障害が発生していない
磁気ディスク装置に格納されているデータから演算によ
り復元し、この復元したデータを前記予備の磁気ディス
ク装置に格納するデータ復元手段を設け、更に前記演算
によりデータを復元する際、その演算に用いられるデー
タが前記障害が発生していない磁気ディスク装置から読
み出せない場合には、その復元対象のデータがECCエ
ラーであると前記予備の磁気ディスク装置に登録するこ
とを特徴とする。
According to such a configuration, the data restoration process can be speeded up. Further, according to the present invention, in a disk subsystem in which a spare magnetic disk device and a plurality of magnetic disk devices constitute a RAID, when data of a failed magnetic disk device is restored to the spare magnetic disk device, The data which can be read from the failed magnetic disk device is stored in the spare magnetic disk device, and the data which cannot be read from the failed magnetic disk device is a plurality of magnetic disks constituting the RAID. Data restoration means for restoring the data stored in the magnetic disk device where no failure has occurred in the disk device by operation and storing the restored data in the spare magnetic disk device is further provided. When restoring data, the data used for the calculation is If can not be read from the disk device is characterized in that data of the restoration target is registered in the magnetic disk apparatus of the preliminary and a ECC error.

【0019】このような構成によれば、データの復元処
理を高速化できるとともに障害が発生した磁気ディスク
装置のデータの復元処理の際に、データの復元処理に必
要なデータが障害の発生していない磁気ディスク装置か
ら読み出せないことに起因してRAIDが再構成できな
くなり、ディスクサブシステムが使用不能になることを
防止できる。
According to such a configuration, the data restoration process can be speeded up, and at the time of the data restoration process of the failed magnetic disk device, the data necessary for the data restoration process has a failure. RAID cannot be reconfigured due to the inability to read data from a magnetic disk device, and the disk subsystem can be prevented from becoming unusable.

【0020】また、本発明は、予備の磁気ディスク装置
と複数の磁気ディスク装置とでRAIDを構成したディ
スクサブシステムにおいて、障害の発生した磁気ディス
ク装置のデータを前記予備の磁気ディスク装置に復元す
る際に、前記RAIDを構成する複数の磁気ディスク装
置の内、障害が発生していない磁気ディスク装置に格納
されているデータから演算により復元し、この復元した
データを前記予備の磁気ディスク装置に格納するととも
に、前記演算によりデータを復元するとき、その演算に
用いられるデータが前記障害が発生していない磁気ディ
スク装置から読み出せない場合には、その復元対象のデ
ータがECCエラーであると前記予備の磁気ディスク装
置に登録するデータ復元手段を設けたことを特徴とす
る。
Further, according to the present invention, in a disk subsystem in which a spare magnetic disk device and a plurality of magnetic disk devices constitute a RAID, data of a failed magnetic disk device is restored to the spare magnetic disk device. At this time, of the plurality of magnetic disk devices constituting the RAID, the data stored in the magnetic disk device in which no failure has occurred is restored by calculation, and the restored data is stored in the spare magnetic disk device. When restoring data by the above calculation, if the data used for the calculation cannot be read from the magnetic disk device where the failure has not occurred, it is determined that the data to be restored is an ECC error. A data restoring means for registering in the magnetic disk device.

【0021】このような構成によれば、障害が発生した
磁気ディスク装置のデータの復元処理の際に、データの
復元処理に必要なデータが障害の発生していない磁気デ
ィスク装置から読み出せないことに起因してRAIDが
再構成できなくなり、ディスクサブシステムが使用不能
になることを防止できる。
According to such a configuration, at the time of data restoration processing of a failed magnetic disk device, data necessary for data restoration processing cannot be read from a magnetic disk device having no failure. Can prevent the RAID from being reconfigured and making the disk subsystem unusable.

【0022】更に、本発明は、複数の磁気ディスク装置
でRAIDが構成され、一つの磁気ディスク装置に障害
が発生した場合にはその障害が発生した磁気ディスク装
置を新しい磁気ディスク装置に交換するディスクサブシ
ステムにおいて、前記障害の発生した磁気ディスク装置
のデータを前記交換した新しい磁気ディスク装置に復元
する際に、前記RAIDを構成する複数の磁気ディスク
装置の内、障害が発生していない磁気ディスク装置に格
納されているデータから演算により復元し、この復元し
たデータを前記交換した新しい磁気ディスク装置に格納
するとともに、前記演算によりデータを復元するとき、
その演算に用いられるデータが前記障害が発生していな
い磁気ディスク装置から読み出せない場合には、その復
元対象のデータがECCエラーであると前記交換した新
しい磁気ディスク装置に登録するデータ復元手段を設け
たことを特徴とする。
Further, according to the present invention, a RAID is constituted by a plurality of magnetic disk devices, and when a failure occurs in one magnetic disk device, the failed magnetic disk device is replaced with a new magnetic disk device. In a subsystem, when restoring data of the failed magnetic disk device to the replaced new magnetic disk device, a magnetic disk device in which no failure has occurred among a plurality of magnetic disk devices constituting the RAID. When data is restored by computation from the data stored in the new magnetic disk device and the restored data is stored in the new magnetic disk device, and data is restored by the computation,
If the data used for the calculation cannot be read from the magnetic disk device in which the failure has not occurred, the data restoring means for registering the data to be restored as an ECC error in the replaced new magnetic disk device is provided. It is characterized by having been provided.

【0023】このような構成によれば、障害が発生した
磁気ディスク装置のデータの復元処理の際に、データの
復元処理に必要なデータが障害の発生していない磁気デ
ィスク装置から読み出せないことに起因してRAIDが
再構成できなくなり、ディスクサブシステムが使用不能
になることを防止できる。
According to such a configuration, at the time of data restoration processing of a failed magnetic disk device, data necessary for data restoration processing cannot be read from a magnetic disk device in which no failure has occurred. Can prevent the RAID from being reconfigured and making the disk subsystem unusable.

【0024】[0024]

【発明の実施の形態】以下、図面を参照して本発明の第
1の実施形態について説明する。図1は本発明の第1の
実施形態に関わるシステムの概略構成を説明する図であ
る。図1には、PCサーバなどのサーバ計算機100と
ディスクサブシステム110とからなる計算機システム
の概略構成を図示している。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a diagram illustrating a schematic configuration of a system according to the first embodiment of the present invention. FIG. 1 shows a schematic configuration of a computer system including a server computer 100 such as a PC server and a disk subsystem 110.

【0025】サーバ計算機100にはシステムバス10
1が設けられており、このシステムバス101にCPU
102が接続されている。また、システムバス101に
はSCSIインタフェース(I/F)111を介してデ
ィスクサブシステム110が接続されている。尚、SC
SIは、Small Computer System
Interfaceの省略語である。
The server computer 100 has a system bus 10
The system bus 101 is provided with a CPU.
102 is connected. Further, a disk subsystem 110 is connected to the system bus 101 via a SCSI interface (I / F) 111. In addition, SC
SI stands for Small Computer System
This is an abbreviation for Interface.

【0026】ディスクサブシステム110は、CPU1
12、ROM113、RAM114、SCSIインタフ
ェース(I/F)111とSCSIインタフェース(I
/F)116がバス115を介して相互に接続されてい
るRAID制御部とSCSIバス117を介してSCS
Iインタフェース(I/F)116に接続された4台の
磁気ディスク装置HD1、HD2、HD3、HDSとか
ら構成されている。
The disk subsystem 110 includes a CPU 1
12, ROM 113, RAM 114, SCSI interface (I / F) 111 and SCSI interface (I / F).
/ F) 116 is connected to a RAID controller connected via a bus 115 and the SCSI
It is composed of four magnetic disk devices HD1, HD2, HD3 and HDS connected to an I interface (I / F) 116.

【0027】CPU112は、ROM113に格納され
たファームウェアに基づいて、ディスクサブシステム1
10の全体を制御する。RAM114には、サーバ計算
機100からディスクサブシステム110に対するデー
タのリード又はライトの命令が出された際のアドレス情
報を実際の磁気ディスク装置に記録されているアドレス
情報に変換する変換テーブルが設けられている。また、
RAM114は、CPU112の動作に伴う各種データ
が保存される。磁気ディスク装置HD1と磁気ディスク
装置HD2と磁気ディスク装置HD3とでレベル5のR
AIDを構成している。そして、磁気ディスク装置HD
Sは、予備の磁気ディスク装置として設けられている。
The CPU 112 executes the disk subsystem 1 based on the firmware stored in the ROM 113.
10 is controlled in its entirety. The RAM 114 is provided with a conversion table for converting address information when a data read or write command is issued from the server computer 100 to the disk subsystem 110 into address information recorded in an actual magnetic disk device. I have. Also,
The RAM 114 stores various data associated with the operation of the CPU 112. The magnetic disk drive HD1, the magnetic disk drive HD2, and the magnetic disk drive HD3 perform level 5 R.
AID. And the magnetic disk drive HD
S is provided as a spare magnetic disk device.

【0028】図2には、サーバ計算機100から見える
論理的にディスクサブシステム110に記録されている
データの配置の構成と実際にRAIDを構成する個々の
磁気ディスク装置に記録されているデータとの関係を図
示している。
FIG. 2 shows the configuration of the arrangement of data logically recorded in the disk subsystem 110 as seen from the server computer 100 and the data recorded in the individual magnetic disk devices actually constituting the RAID. The relationship is illustrated.

【0029】サーバ計算機100から見て論理的にディ
スクサブシステム110に記録されているデータ200
は、所定サイズの6つのブロックに分割されたデータD
1〜D6に分割されている。この6つのデータD1〜D
6は、図示のように3台の磁気ディスク装置HD1、H
D2、HD3に記録されている。磁気ディスク装置HD
1には、パリティデータP1、データD3、データD5
とが記録されている。同様に、磁気ディスク装置HD2
には、データD2、パリティデータP2、データD6と
が記録されている。また、磁気ディスク装置HD3に
は、データD2、データD4、パリティデータP3とが
記録されている。磁気ディスク装置HDSは、予備の磁
気ディスク装置であるため、現時点では何も記録されて
いない。パリティP1は、データD1とデータD2との
排他的論理和演算により求められたデータである。同様
にパリティP2は、データD3とデータD4との排他的
論理和演算により求められたデータである。また、パリ
ティP3は、データD5とデータD6との排他的論理和
演算により求められたデータである。
Data 200 logically recorded in the disk subsystem 110 as viewed from the server computer 100
Is data D divided into six blocks of a predetermined size.
1 to D6. These six data D1 to D
6, three magnetic disk devices HD1 and H
D2 and HD3. Magnetic disk drive HD
1 includes parity data P1, data D3, and data D5.
Is recorded. Similarly, the magnetic disk drive HD2
, Data D2, parity data P2, and data D6 are recorded. Data D2, data D4, and parity data P3 are recorded on the magnetic disk device HD3. Since the magnetic disk device HDS is a spare magnetic disk device, nothing is recorded at this time. The parity P1 is data obtained by an exclusive OR operation of the data D1 and the data D2. Similarly, the parity P2 is data obtained by an exclusive OR operation of the data D3 and the data D4. The parity P3 is data obtained by an exclusive OR operation of the data D5 and the data D6.

【0030】以下、図3、図4、図5に示すフローチャ
ートに基づいて、本発明の第1の実施形態におけるデー
タの復元動作について説明する。尚、データの復元動作
中においても、並行してサーバ計算機100からのディ
スクサブシステム110へのデータの書き込み及び読み
出しの命令を受け付け、その処理を行うものとする。復
元動作中にサーバ計算機100からデータの書き込み又
は読み出しの命令を受け付けた場合の処理は、以下の動
作説明の中で説明する。
The operation of restoring data in the first embodiment of the present invention will be described below with reference to the flowcharts shown in FIGS. 3, 4, and 5. It should be noted that, even during the data restoration operation, instructions for writing and reading data to and from the disk subsystem 110 from the server computer 100 are received in parallel, and the processing is performed. Processing when a data write or read command is received from the server computer 100 during the restoration operation will be described in the following operation description.

【0031】以下、レベル5のRAIDを構成している
図1に図示したディスクサブシステム110において、
メディアの障害により磁気ディスク装置HD3からデー
タD2の読み出しができなくなり、RAID制御装置の
CPU112が磁気ディスク装置HD3をRAID構成
から切り離して縮退状態とし、予備の磁気ディスク装置
HDSに磁気ディスク装置HD3に格納されていたデー
タを復元する場合のCPU112の制御に基づく動作を
説明する。
Hereinafter, in the disk subsystem 110 shown in FIG.
The data D2 cannot be read from the magnetic disk device HD3 due to a media failure, and the CPU 112 of the RAID control device separates the magnetic disk device HD3 from the RAID configuration to a degenerate state and stores it in the spare magnetic disk device HDS in the magnetic disk device HD3. An operation based on the control of the CPU 112 when restoring the data that has been performed will be described.

【0032】まず、磁気ディスク装置HD3に格納され
ていたデータを予備の磁気ディスク装置HDSに復元す
るに際して、CPU112はRAM114上に図6に示
すようなデータ変更/復元マップ300を作成する(ス
テップS1)。このデータ変更/復元マップ300は、
データ301、状態ビット302、復元ビット303の
3行から構成されており、データを復元する磁気ディス
ク装置HD3の復元動作中におけるデータの変更及び復
元の状態を管理するために設けられている。従って、デ
ータ301としては、D2、D4、P3が登録される。
また、この初期時には状態ビット302と復元ビット3
03は、「0」に設定される。復元ビット303は、以
下に説明するデータの復元処理が終了した状態をデータ
(ブロック)毎に表すものである。このビットが「1」
に設定されているということは、その対応するデータが
予備の磁気ディスク装置HDSに復元されたことを意味
する。また、状態ビット302は、この復元動作中にサ
ーバ計算機100からの書き込み命令により、対応する
ブロックのデータが変更された場合にセットされる。
First, when restoring data stored in the magnetic disk device HD3 to the spare magnetic disk device HDS, the CPU 112 creates a data change / restore map 300 as shown in FIG. 6 on the RAM 114 (step S1). ). This data change / restore map 300
It is composed of three rows of data 301, status bits 302, and restoration bits 303, and is provided for managing data change and restoration states during the restoration operation of the magnetic disk device HD3 for restoring data. Therefore, D2, D4, and P3 are registered as the data 301.
At the initial stage, the status bit 302 and the restoration bit 3
03 is set to “0”. The restoration bit 303 indicates a state in which the data restoration processing described below is completed for each data (block). This bit is "1"
Means that the corresponding data has been restored to the spare magnetic disk device HDS. The status bit 302 is set when data of a corresponding block is changed by a write command from the server computer 100 during this restoration operation.

【0033】次に変数Bを「1」を設定する(ステップ
S2)。この変数Bは、磁気ディスク装置HD3の何番
目のブロックのデータを復元動作するかを示すものであ
る。次にフラグ情報である変数SETを「1」を設定す
る(ステップS3)。この変数SETが「1」にセット
されている場合は、CPU112が磁気ディスク装置H
D3のブロック単位のデータを予備の磁気ディスク装置
HDSに復元動作中であることを示す。次にB番目のブ
ロックのデータの復元処理を行う(ステップS4)。即
ち、1番目のブロック(データD1が格納されているブ
ロック)のデータ(データD1)の復元処理を行う。
Next, the variable B is set to "1" (step S2). This variable B indicates the block number of the data in the magnetic disk device HD3 to be restored. Next, the variable SET, which is the flag information, is set to "1" (step S3). When this variable SET is set to “1”, the CPU 112
This indicates that the data of the block unit D3 is being restored to the spare magnetic disk device HDS. Next, the data of the B-th block is restored (step S4). That is, the data (data D1) of the first block (the block in which the data D1 is stored) is restored.

【0034】この復元処理の詳細は、図7に示すフロー
チャートを用いて説明する。まず、該当する1番目のブ
ロックの状態ビットに「1」が設定されているかどうか
をデータ変更/復元マップ300を参照してチェックす
る(ステップS50)。このチェックの結果、状態ビッ
トに「1」が設定されている場合には、ステップS52
へ進む。現時点では、状態ビットに「0」が設定されて
いるため、ステップS51に進む。
The details of the restoration process will be described with reference to the flowchart shown in FIG. First, it is checked whether the status bit of the corresponding first block is set to “1” with reference to the data change / restore map 300 (step S50). As a result of this check, if “1” is set in the status bit, step S52
Proceed to. At this time, since the status bit is set to “0”, the process proceeds to step S51.

【0035】次に、1番目のブロックのデータD2が障
害の発生した磁気ディスク装置HD3から読み出せるか
をチェックする(ステップS51)。読み出せる場合に
は、磁気ディスク装置HD3からデータD2を読み出
し、予備の磁気ディスク装置HDSの対応するブロック
にコピーして復元する(ステップS53)。そして、復
元動作を終了する。もし、読み出せない場合には、ステ
ップS52に進む。
Next, it is checked whether the data D2 of the first block can be read from the failed magnetic disk device HD3 (step S51). If it can be read, the data D2 is read from the magnetic disk device HD3, copied to the corresponding block of the spare magnetic disk device HDS, and restored (step S53). Then, the restoration operation ends. If the data cannot be read, the process proceeds to step S52.

【0036】次に1番目のブロックのデータD2が排他
的論理和演算で復元できるかをチェックする。換言する
と、この排他的論理和演算をするためのデータであるパ
リティP1とデータD1とが、それぞれ磁気ディスク装
置HD1及び磁気ディスク装置HD2から読み出せるか
をチェックする(ステップS52)。読み出せる場合に
は、ステップS54へ進み、パリティP1とデータD1
との排他的論理和演算を行い、データD2を復元し、予
備の磁気ディスク装置HDSの対応するブロックにコピ
ーする(ステップS54)。そして、復元動作を終了す
る。また、読み出せない場合には、ステップS55へ進
む。
Next, it is checked whether the data D2 of the first block can be restored by an exclusive OR operation. In other words, it is checked whether the parity P1 and the data D1 as data for performing the exclusive OR operation can be read from the magnetic disk devices HD1 and HD2, respectively (step S52). If it can be read, the process proceeds to step S54, where the parity P1 and data D1
And the data D2 is restored and copied to the corresponding block of the spare magnetic disk device HDS (step S54). Then, the restoration operation ends. If the data cannot be read, the process proceeds to step S55.

【0037】ステップS55では、現在復元処理をして
いるブロックのデータが、障害の発生した磁気ディスク
装置HD3から読み出せず、更に排他的論理和演算によ
っても復元できない状態のため、予備の磁気ディスク装
置HDSの対応するブロックにECC(Error C
hecking and Correcting )エ
ラーが発生したとして、予備の磁気ディスク装置HDS
のメディアの特定エリアに設定した図示しないエラー状
態マップに該当するブロックにECCエラーが発生した
ことのフラグを登録する。この様な一連の動作でデータ
の復元処理を行い、図3のステップS4のデータの復元
処理が終了する。
In step S55, since the data of the block currently being restored cannot be read from the failed magnetic disk device HD3 and cannot be restored by exclusive OR operation, the spare magnetic disk ECC (Error C) is added to the corresponding block of the device HDS.
[Heating and Correcting] An error has occurred and the spare magnetic disk drive HDS
A flag indicating that an ECC error has occurred is registered in a block corresponding to an error state map (not shown) set in a specific area of the medium. The data restoration process is performed by such a series of operations, and the data restoration process in step S4 in FIG. 3 ends.

【0038】次に図3のステップS5に進む。ステップ
S5では、ステップS4においてデータD2が復元され
たので、図6に示すデータD2に対応する復元ビットを
「1」にセットする。
Next, the process proceeds to step S5 in FIG. In step S5, since the data D2 has been restored in step S4, the restoration bit corresponding to the data D2 shown in FIG. 6 is set to "1".

【0039】次にステップS6では、変数Bを+1して
インクリメントする。続いてステップS7において、変
数SETを「0」を設定する。この変数SETを「0」
にセットすることで、、CPU112が磁気ディスク装
置HD3のブロック単位のデータを予備の磁気ディスク
装置HDSに復元する動作が終了したことを意味する。
Next, in step S6, the variable B is incremented by one. Subsequently, in step S7, the variable SET is set to “0”. Set this variable SET to “0”
Setting this to means that the operation of the CPU 112 restoring the block-based data of the magnetic disk device HD3 to the spare magnetic disk device HDS has been completed.

【0040】続いて処理はステップS8に進み、既に復
元したブロックのデータがサーバ計算機100からのデ
ータの書き込み命令により変更されていないかをチェッ
クする。具体的には、図6に示したデータ変更/復元マ
ップ300において、復元ビット303が「1」に設定
されているデータの内、状態ビット302が「1」に設
定されているデータの有無をチェックする。このチェッ
クの結果、復元ビット303と状態ビット302の双方
が「1」に設定されているデータがある場合には、その
データが既にデータが復元されたもので、且つその後の
サーバ計算機100からのデータの書き込み命令により
変更されているものであると判断されステップS10へ
進む。また、復元ビット303と状態ビット302の双
方が「1」に設定されているデータがない場合には、ス
テップS9に進む。以下、ステップS9に進む場合の動
作を説明し、ステップS10へ進む場合の動作は、後に
説明する。
Subsequently, the process proceeds to step S8, and checks whether the data of the already restored block has been changed by the data write command from the server computer 100. Specifically, in the data change / restoration map 300 shown in FIG. 6, among the data in which the restoration bit 303 is set to “1”, the presence / absence of the data in which the status bit 302 is set to “1” is determined. To check. As a result of this check, if there is data in which both the restoration bit 303 and the status bit 302 are set to “1”, the data is data whose data has already been restored, and the subsequent data from the server computer 100 It is determined that the data has been changed by the data write command, and the process proceeds to step S10. If there is no data in which both the restoration bit 303 and the status bit 302 are set to “1”, the process proceeds to step S9. Hereinafter, the operation when the process proceeds to step S9 will be described, and the operation when the process proceeds to step S10 will be described later.

【0041】ステップS9では、全てのブロックのデー
タが復元されたかを変数Bの値を見ることでチェックす
る。全てのブロックのデータが復元された場合には、全
ての復元処理が終了する。全てのブロックのデータが復
元されていない場合には、ステップS3へ戻り以上説明
した動作を繰り返す。
In step S9, it is checked whether the data of all the blocks has been restored by looking at the value of the variable B. When the data of all the blocks has been restored, all the restoration processing ends. If the data of all the blocks has not been restored, the process returns to step S3 and the above-described operation is repeated.

【0042】次に以上説明したステップS3からS9の
処理を繰り返している間にサーバ計算機100からディ
スクサブシステム110へのデータの書き込み又は読み
出しの命令をCPU112がSCSIインタフェース1
11を介して受理した場合には、以上説明したデータの
復元処理動作を中断して、そのデータの書き込み又は読
み出し処理を実行し、その後復元処理動作を再開する。
Next, the CPU 112 issues a command to write or read data from the server computer 100 to the disk subsystem 110 while the above-described steps S3 to S9 are repeated.
In the case where the data is received via the interface 11, the above-described data restoration processing operation is interrupted, the data writing or reading processing is executed, and then the restoration processing operation is restarted.

【0043】まず、CPU112がサーバ計算機100
からデータの読み出し命令を受理した場合について説明
する。RAIDを構成する正常な磁気ディスク装置から
のデータの読み出しであれば、そのデータを読み出す。
もし、障害が発生しRAID構成から切り離した磁気デ
ィスク装置HD3からのデータの読み出しの場合には、
もしそのデータが磁気ディスク装置HD3から読み出せ
る場合には、そのまま読み出し、読み出せない場合に
は、他の正常な磁気ディスク装置から読み出した対応す
るブロックのデータの排他的論理和演算により求めたデ
ータを読み出しデータとしてサーバ計算機100からへ
転送する。ただし、このように説明したいずれの読み出
しの場合においても、メディアの障害が原因によりにデ
ータが読み出せないときには、上述したようにECCエ
ラーとして登録し、サーバ計算機100からにその旨を
通知する。
First, the CPU 112 operates in the server computer 100.
A case in which a data read command is received from will be described. If data is to be read from a normal magnetic disk device constituting the RAID, the data is read.
If a failure occurs and data is read from the magnetic disk device HD3 separated from the RAID configuration,
If the data can be read from the magnetic disk device HD3, the data is read as it is. If the data cannot be read, the data obtained by exclusive OR operation of the data of the corresponding block read from another normal magnetic disk device. Is transferred from the server computer 100 as read data. However, in any of the read cases described above, if data cannot be read due to a media failure, the data is registered as an ECC error as described above, and the server computer 100 notifies the fact.

【0044】次にCPU112がサーバ計算機100か
らデータの書き込み命令を受理した場合について説明す
る。まず、上記変数SETが「0」であることを確認す
る。もし、上記変数SETが「1」の場合には、「0」
になるまで、その処理を待機させる。変数SETが
「0」であることを確認できた場合には、以下の処理を
行う。RAIDを構成する正常な磁気ディスク装置に記
録されているデータの書き込みであれば、そのまま書き
込み処理を実施する。この際、パリティの変更をするこ
とは説明するまでもない。
Next, a case where the CPU 112 receives a data write command from the server computer 100 will be described. First, it is confirmed that the variable SET is “0”. If the variable SET is “1”, “0”
Until it becomes. When it is confirmed that the variable SET is “0”, the following processing is performed. In the case of writing data recorded on a normal magnetic disk device constituting a RAID, the writing process is performed as it is. At this time, it is needless to say that the parity is changed.

【0045】また、障害が発生しRAID構成から切り
離した磁気ディスク装置HD3へのデータの書き込みの
場合、例えばデータD4の書き込みの場合には、次のよ
うに行う。まず、この新しい書き込みデータD4と磁気
ディスク装置HD1に書き込まれているデータD3とで
排他的論理和演算を行い得られたパリティデータを新し
いパリティP2として磁気ディスク装置HD2に書き込
む。そして、新しい書き込みデータD4を実際に書き込
む代わりに図6に示したデータ変更/復元マップ300
のデータD4に対応する状態ビット302を「1」にセ
ットする。この様な処理をすることで書き込み処理を実
施する。
Further, in the case of writing data to the magnetic disk device HD3 disconnected from the RAID configuration due to the occurrence of a failure, for example, in the case of writing data D4, the following is performed. First, parity data obtained by performing an exclusive OR operation on the new write data D4 and the data D3 written on the magnetic disk device HD1 is written to the magnetic disk device HD2 as a new parity P2. Then, instead of actually writing the new write data D4, the data change / restore map 300 shown in FIG.
Is set to "1" corresponding to the data D4. The writing process is performed by performing such a process.

【0046】次に図4のステップS8において、復元ビ
ット303と状態ビット302の双方が「1」に設定さ
れており、既にそのデータが復元されたもので、且つそ
の後サーバ計算機100からのデータの書き込み命令に
より変更されているデータがあると判断されステップS
10へ進む場合の動作を説明する。以下の説明ではデー
タ変更/復元マップ300が図4に示した状態になって
いる場合を例にして説明する。
Next, in step S8 in FIG. 4, both the restoration bit 303 and the status bit 302 are set to "1", and the data has already been restored, and after that the data from the server computer 100 It is determined that there is data that has been changed by the write command, and step S
The operation when proceeding to step 10 will be described. In the following description, a case where the data change / restoration map 300 is in the state shown in FIG. 4 will be described as an example.

【0047】ステップS10では、フラグ情報である変
数SETを「1」を設定する。続いて、ステップS11
では、ステップS8において復元ビット303と状態ビ
ット302の双方が「1」に設定されていると判断され
たデータD2の復元処理を再度実行する。この復元処理
は、図7で示したルーチンに基づき行われるもので、既
に説明したので、ここではその説明を省略する。
In step S10, a variable SET as flag information is set to "1". Subsequently, step S11
Then, the restoration process of the data D2 for which it is determined in step S8 that both the restoration bit 303 and the status bit 302 are set to "1" is executed again. This restoration processing is performed based on the routine shown in FIG. 7 and has already been described, so that the description is omitted here.

【0048】次にステップS12で図6に示したデータ
変更/復元マップ300におけるデータD2に対応する
状態ビット302を「0」に設定する。続いてステップ
S13において、変数SETを「0」を設定しステップ
S8に戻る。この様に復元ビット303と状態ビット3
02の双方が「1」に設定されているデータが無くなる
まで、ステップS8→S10→S11→S12→S13
の処理を続ける。
Next, in step S12, the status bit 302 corresponding to the data D2 in the data change / restore map 300 shown in FIG. 6 is set to "0". Subsequently, in step S13, the variable SET is set to "0", and the process returns to step S8. Thus, the restoration bit 303 and the status bit 3
Steps S8 → S10 → S11 → S12 → S13 until there is no more data for which both 02 are set to “1”.
Continue processing.

【0049】次に本発明の第2の実施形態について説明
する。第1の実施形態との違いは、図7に示した復元処
理の動作が異なり、他の動作は、第1の実施形態と同一
である。
Next, a second embodiment of the present invention will be described. The difference from the first embodiment is that the operation of the restoration processing shown in FIG. 7 is different, and the other operations are the same as those of the first embodiment.

【0050】第2の実施形態における復元処理の動作を
図8に示したフローチャートを用いて説明する。動作説
明の前提としては、第1の実施形態と同様にレベル5の
RAIDを構成している図1に図示したディスクサブシ
ステム110において、メディアの障害により磁気ディ
スク装置HD3からデータD2の読み出しができなくな
り、RAID制御装置のCPU112が磁気ディスク装
置HD3をRAID構成から切り離して縮退状態とし、
予備の磁気ディスク装置HDSに磁気ディスク装置HD
3に格納されていたデータを復元する場合のCPU11
2の制御に基づく動作を説明する。
The operation of the restoration process in the second embodiment will be described with reference to the flowchart shown in FIG. The description of the operation is based on the assumption that the data D2 can be read from the magnetic disk device HD3 due to a media failure in the disk subsystem 110 illustrated in FIG. 1 that configures a RAID of level 5 as in the first embodiment. And the CPU 112 of the RAID control device disconnects the magnetic disk device HD3 from the RAID configuration and enters the degenerate state,
Replace the magnetic disk drive HD with the spare magnetic disk drive HDS.
CPU 11 for restoring data stored in storage 3
The operation based on the control 2 will be described.

【0051】まず、1番目のブロックのデータD2が排
他的論理和演算で復元できるかをチェックする。換言す
ると、この排他的論理和演算をするためのデータである
パリティP1とデータD1とが、それぞれ磁気ディスク
装置HD1及び磁気ディスク装置HD2から読み出せる
かをチェックする(ステップS60)。読み出せる場合
には、ステップS61へ進み、パリティP1とデータD
1との排他的論理和演算を行い、データD2を復元し、
予備の磁気ディスク装置HDSの対応するブロックにコ
ピーする(ステップS61)。そして、復元動作を終了
する。
First, it is checked whether the data D2 of the first block can be restored by an exclusive OR operation. In other words, it is checked whether the parity P1 and the data D1 as data for performing the exclusive OR operation can be read from the magnetic disk devices HD1 and HD2, respectively (step S60). If it can be read, the process proceeds to step S61, where the parity P1 and the data D
XOR operation with 1 to restore data D2,
The data is copied to the corresponding block of the spare magnetic disk device HDS (step S61). Then, the restoration operation ends.

【0052】また、読み出せない場合には、ステップS
62へ進む。ステップS62では、1番目のブロックの
データD2が障害の発生した磁気ディスク装置HD3か
ら読み出せるかをチェックする(ステップS62)。読
み出せる場合には、磁気ディスク装置HD3からデータ
D2を読み出し、予備の磁気ディスク装置HDSの対応
するブロックにコピーして復元する(ステップS6
3)。そして、復元動作を終了する。
If reading is not possible, step S
Go to 62. In step S62, it is checked whether the data D2 of the first block can be read from the failed magnetic disk device HD3 (step S62). If it can be read, the data D2 is read from the magnetic disk device HD3, copied to the corresponding block of the spare magnetic disk device HDS, and restored (step S6).
3). Then, the restoration operation ends.

【0053】もし、読み出せない場合には、ステップS
64に進む。ステップS64では、現在復元処理をして
いるブロックのデータが、排他的論理和演算によっても
復元できず、更に障害の発生した磁気ディスク装置HD
3から読み出せない状態のため、予備の磁気ディスク装
置HDSの対応するブロックにECCエラーが発生した
として、予備の磁気ディスク装置HDSのメディアの特
定エリアに設定した図示しないエラー状態マップに該当
するブロックにECCエラーが発生したことのフラグを
登録する。この様な一連の動作でデータの復元処理を行
い、図3のステップS4のデータの復元処理が終了す
る。
If reading is not possible, step S
Proceed to 64. In step S64, the data of the block currently being restored cannot be restored even by the exclusive OR operation, and the magnetic disk drive
3, the ECC error has occurred in the corresponding block of the spare magnetic disk drive HDS, and the block corresponding to the error state map (not shown) set in the specific area of the medium of the spare magnetic disk drive HDS. A flag indicating that an ECC error has occurred is registered. The data restoration process is performed by such a series of operations, and the data restoration process in step S4 in FIG. 3 ends.

【0054】次に本発明の第3の実施形態について説明
をする。第1の実施形態との違いは、図7に示した復元
処理の動作が異なることと、ディスクサブシステム11
0に予備の磁気ディスク装置を持たず、RAIDを構成
する磁気ディスク装置に障害が発生した場合には、その
磁気ディスク装置を新しい正常な磁気ディスク装置と交
換することである。その他の動作は、第1の実施形態と
同一である。
Next, a third embodiment of the present invention will be described. The difference from the first embodiment is that the operation of the restoration process shown in FIG.
If a failure occurs in a magnetic disk device constituting a RAID without having a spare magnetic disk device at 0, the magnetic disk device is to be replaced with a new normal magnetic disk device. Other operations are the same as those of the first embodiment.

【0055】第3の実施形態における復元処理の動作を
図9に示したフローチャートを用いて説明する。動作説
明の前提としては、第1の実施形態と同様にレベル5の
RAIDを構成している図1に図示したディスクサブシ
ステム110において、メディアの障害により磁気ディ
スク装置HD3からデータD2の読み出しができなくな
り、磁気ディスク装置HD3を新しい正常な磁気ディス
ク装置と交換し、この交換した新しい磁気ディスク装置
(図示せず)に磁気ディスク装置HD3に格納されてい
たデータを復元する場合のCPU112の制御に基づく
動作を説明する。
The operation of the restoration process in the third embodiment will be described with reference to the flowchart shown in FIG. The description of the operation is based on the assumption that the data D2 can be read from the magnetic disk device HD3 due to a media failure in the disk subsystem 110 illustrated in FIG. 1 that configures a RAID of level 5 as in the first embodiment. The magnetic disk device HD3 is replaced with a new normal magnetic disk device, and the data stored in the magnetic disk device HD3 is restored to the replaced new magnetic disk device (not shown) based on the control of the CPU 112. The operation will be described.

【0056】まず、1番目のブロックのデータD2が排
他的論理和演算で復元できるかをチェックする。換言す
ると、この排他的論理和演算をするためのデータである
パリティP1とデータD1とが、それぞれ磁気ディスク
装置HD1及び磁気ディスク装置HD2から読み出せる
かをチェックする(ステップS70)。読み出せる場合
には、ステップS71へ進み、パリティP1とデータD
1との排他的論理和演算を行い、データD2を復元し、
交換した新しい磁気ディスク装置の対応するブロックに
コピーする(ステップS71)。そして、復元動作を終
了する。
First, it is checked whether the data D2 of the first block can be restored by an exclusive OR operation. In other words, it is checked whether the parity P1 and the data D1 as data for performing the exclusive OR operation can be read from the magnetic disk devices HD1 and HD2, respectively (step S70). If it can be read, the process proceeds to step S71, where the parity P1 and the data D
XOR operation with 1 to restore data D2,
The data is copied to the corresponding block of the replaced new magnetic disk device (step S71). Then, the restoration operation ends.

【0057】また、読み出せない場合には、ステップS
72へ進む。ステップS72では、現在復元処理をして
いるブロックのデータが、排他的論理和演算によっても
復元できないため、交換した新しい磁気ディスク装置の
対応するブロックにECCエラーが発生したとして、交
換した新しい磁気ディスク装置のメディアの特定エリア
に設定した図示しないエラー状態マップに該当するブロ
ックにECCエラーが発生したことのフラグを登録す
る。この様な一連の動作でデータの復元処理を行い、図
3のステップS4のデータの復元処理が終了する。
If reading is not possible, step S
Go to 72. In step S72, since the data of the block currently being restored cannot be restored by the exclusive OR operation, it is determined that an ECC error has occurred in the corresponding block of the replaced new magnetic disk device, and the replaced new magnetic disk A flag indicating that an ECC error has occurred is registered in a block corresponding to an error state map (not shown) set in a specific area of the medium of the apparatus. The data restoration process is performed by such a series of operations, and the data restoration process in step S4 in FIG. 3 ends.

【0058】以上の説明では、復元処理をしているブロ
ックのデータが、復元できないため、ECCエラーが発
生したとして、データの復元をしている磁気ディスク装
置にECCエラーが発生したことのフラグを登録すると
説明した。しかし、その後、その復元できなかったデー
タがサーバ計算機100により新たにデータが書き込ま
れた場合には、そのフラグの登録を削除すればよい。
In the above description, since the data of the block being restored cannot be restored, it is determined that an ECC error has occurred, and a flag indicating that an ECC error has occurred in the magnetic disk device that is restoring the data is set. I explained to register. However, if the data that could not be restored is newly written by the server computer 100 thereafter, the registration of the flag may be deleted.

【0059】尚、このようにECCエラーが発生したこ
とのフラグが登録されるデータは、従来技術の説明で述
べたように、普段アクセスがされていないあまり重要な
データではないと推測される。従って、データが復元で
きなくてRAIDの再構成ができなくなり、ディスクサ
ブシステム自体が使用不能になることに比べて、復元で
きないデータにECCエラーが発生したと登録する処理
の方が、システム全体から見れば、より良い対策であ
る。
It is presumed that the data in which the flag indicating that the ECC error has occurred is not very important data which is not normally accessed as described in the description of the related art. Therefore, the process of registering that an ECC error has occurred in data that cannot be restored is more difficult than the process of registering that an ECC error has occurred in the data that cannot be restored, as compared with the case where RAID cannot be reconfigured because data cannot be restored and the disk subsystem itself becomes unusable. If you look, it is a better measure.

【0060】[0060]

【発明の効果】以上説明した通り、本発明によれば、デ
ータの復元処理を高速化できるとともに、障害が発生し
た磁気ディスク装置のデータの復元処理の際に、データ
の復元処理に必用なデータが障害の発生していない磁気
ディスク装置から読み出せないことに起因してRAID
が再構成できなくなり、ディスクサブシステムが使用不
能になることを防止できる。
As described above, according to the present invention, the data restoration process can be speeded up, and the data necessary for the data restoration process in the data restoration process of the failed magnetic disk device can be obtained. RAID cannot be read from a magnetic disk device where no failure has occurred.
Can not be reconfigured and the disk subsystem becomes unusable.

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

【図1】本発明の第1の実施形態に関わるシステムの概
略構成を示す図である。
FIG. 1 is a diagram showing a schematic configuration of a system according to a first embodiment of the present invention.

【図2】サーバ計算機から見える論理的にディスクサブ
システムに記録されているデータの配置の構成と実際に
RAIDを構成する個々の磁気ディスク装置に記録され
ているデータとの関係を示す図。
FIG. 2 is a view showing the relationship between the configuration of the arrangement of data logically recorded in a disk subsystem as seen from a server computer and the data actually recorded in individual magnetic disk devices constituting a RAID.

【図3】本発明の第1の実施形態におけるデータの復元
動作を説明するためのフローチャート図。
FIG. 3 is a flowchart for explaining a data restoration operation according to the first embodiment of the present invention.

【図4】本発明の第1の実施形態におけるデータの復元
動作を説明するためのフローチャート図。
FIG. 4 is a flowchart for explaining a data restoration operation according to the first embodiment of the present invention.

【図5】本発明の第1の実施形態におけるデータの復元
動作を説明するためのフローチャート図。
FIG. 5 is a flowchart for explaining a data restoration operation according to the first embodiment of the present invention.

【図6】データ変更/復元マップを示す図。FIG. 6 is a diagram showing a data change / restoration map.

【図7】図3におけるデータ復元処理の詳細を説明する
ためのフローチャート図。
FIG. 7 is a flowchart for explaining details of a data restoration process in FIG. 3;

【図8】本発明の第2の実施形態におけるデータ復元処
理の詳細を説明するためのフローチャート図。
FIG. 8 is a flowchart for explaining details of data restoration processing according to the second embodiment of the present invention.

【図9】本発明の第3の実施形態におけるデータ復元処
理の詳細を説明するためのフローチャート図。
FIG. 9 is a flowchart for explaining details of data restoration processing according to the third embodiment of the present invention.

【図10】従来技術を説明するための、サーバ計算機か
ら見える論理的にディスクサブシステムに記録されてい
るデータの配置の構成と実際にRAIDを構成する個々
の磁気ディスク装置に記録されているデータとの関係を
示す図。
FIG. 10 is a diagram illustrating a configuration of an arrangement of data logically recorded in a disk subsystem viewed from a server computer and data actually recorded in individual magnetic disk devices constituting a RAID for explaining a conventional technique; FIG.

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

100‥‥サーバ計算機 110‥‥ディスクサブシステム 111‥‥SCSIインタフェース 112‥‥CPU 113‥‥ROM 114‥‥RAM 115‥‥バス 116‥‥SCSIインタフェース 117‥‥SCSIバス 118‥‥磁気ディスク装置HD1 119‥‥磁気ディスク装置HD2 120‥‥磁気ディスク装置HD3 121‥‥磁気ディスク装置HD4 100 server computer 110 disk subsystem 111 SCSI interface 112 CPU 113 ROM 114 RAM 115 bus 116 SCSI interface 117 SCSI bus 118 magnetic disk drive HD1 119 ‥‥ Magnetic disk device HD2 120 ‥‥ Magnetic disk device HD3 121 ‥‥ Magnetic disk device HD4

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) G06F 12/16 320 G06F 12/16 320L ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) G06F 12/16 320 G06F 12/16 320L

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】予備の磁気ディスク装置と複数の磁気ディ
スク装置とでRAIDを構成したディスクサブシステム
において、 障害の発生した磁気ディスク装置のデータを前記予備の
磁気ディスク装置に復元する際に、前記障害の発生した
磁気ディスク装置から読み出せるデータは、そのデータ
を前記予備の磁気ディスク装置に格納し、前記障害の発
生した磁気ディスク装置から読み出せないデータは、前
記RAIDを構成する複数の磁気ディスク装置の内、障
害が発生していない磁気ディスク装置に格納されている
データから演算により復元し、この復元したデータを前
記予備の磁気ディスク装置に格納するデータ復元手段を
具備したことを特徴とするディスクサブシステム。
In a disk subsystem in which a spare magnetic disk device and a plurality of magnetic disk devices constitute a RAID, when restoring data of a failed magnetic disk device to the spare magnetic disk device, Data which can be read from the failed magnetic disk device is stored in the spare magnetic disk device, and data which cannot be read from the failed magnetic disk device is a plurality of magnetic disks constituting the RAID. Data recovery means for recovering data from data stored in a magnetic disk device in which no failure has occurred by operation and storing the recovered data in the spare magnetic disk device. Disk subsystem.
【請求項2】前記データ復元手段は、演算によりデータ
を復元する際、その演算に用いられるデータが前記障害
が発生していない磁気ディスク装置から読み出せない場
合には、その復元対象のデータがECCエラーであると
前記予備の磁気ディスク装置に登録すること特徴とする
請求項1記載のディスクサブシステム。
2. The data restoration means according to claim 1, wherein, when restoring the data by operation, if the data used for the operation cannot be read from the magnetic disk device in which the failure has not occurred, the data to be restored is deleted. 2. The disk subsystem according to claim 1, wherein an ECC error is registered in the spare magnetic disk device.
【請求項3】予備の磁気ディスク装置と複数の磁気ディ
スク装置とでRAIDを構成したディスクサブシステム
において、 障害の発生した磁気ディスク装置のデータを前記予備の
磁気ディスク装置に復元する際に、前記RAIDを構成
する複数の磁気ディスク装置の内、障害が発生していな
い磁気ディスク装置に格納されているデータから演算に
より復元し、この復元したデータを前記予備の磁気ディ
スク装置に格納するとともに、前記演算によりデータを
復元するとき、その演算に用いられるデータが前記障害
が発生していない磁気ディスク装置から読み出せない場
合には、その復元対象のデータがECCエラーであると
前記予備の磁気ディスク装置に登録するデータ復元手段
を具備したことを特徴とするディスクサブシステム。
3. A disk subsystem in which a spare magnetic disk device and a plurality of magnetic disk devices constitute a RAID, when data of a failed magnetic disk device is restored to the spare magnetic disk device, Among the plurality of magnetic disk devices constituting the RAID, the data is restored by operation from the data stored in the magnetic disk device where no failure has occurred, and the restored data is stored in the spare magnetic disk device. When restoring data by operation, if the data used for the operation cannot be read from the magnetic disk device where the failure has not occurred, the spare magnetic disk device determines that the data to be restored has an ECC error. A disk subsystem comprising a data restoring means for registering data in a disk subsystem.
【請求項4】複数の磁気ディスク装置でRAIDが構成
され、一つの磁気ディスク装置に障害が発生した場合に
はその障害が発生した磁気ディスク装置を新しい磁気デ
ィスク装置に交換するディスクサブシステムにおいて、 前記障害の発生した磁気ディスク装置のデータを前記交
換した新しい磁気ディスク装置に復元する際に、前記R
AIDを構成する複数の磁気ディスク装置の内、障害が
発生していない磁気ディスク装置に格納されているデー
タから演算により復元し、この復元したデータを前記交
換した新しい磁気ディスク装置に格納するとともに、前
記演算によりデータを復元するとき、その演算に用いら
れるデータが前記障害が発生していない磁気ディスク装
置から読み出せない場合には、その復元対象のデータが
ECCエラーであると前記交換した新しい磁気ディスク
装置に登録するデータ復元手段を具備したことを特徴と
するディスクサブシステム。
4. A disk subsystem in which a RAID is constituted by a plurality of magnetic disk devices, and when a failure occurs in one magnetic disk device, the failed magnetic disk device is replaced with a new magnetic disk device. When restoring the data of the failed magnetic disk device to the replaced new magnetic disk device,
Among the plurality of magnetic disk devices constituting the AID, the data is restored by operation from the data stored in the magnetic disk device where no failure has occurred, and the restored data is stored in the exchanged new magnetic disk device. When restoring data by the above operation, if the data used for the operation cannot be read from the magnetic disk device in which the failure has not occurred, the data to be restored is regarded as an ECC error, and What is claimed is: 1. A disk subsystem, comprising: data restoration means for registering data in a disk device.
【請求項5】予備の磁気ディスク装置と複数の磁気ディ
スク装置とでRAIDを構成したディスクサブシステム
において、 障害の発生した磁気ディスク装置のデータを前記予備の
磁気ディスク装置に復元する際に、前記障害の発生した
磁気ディスク装置から読み出せるデータは、そのデータ
を前記予備の磁気ディスク装置に格納し、前記障害の発
生した磁気ディスク装置から読み出せないデータは、前
記RAIDを構成する複数の磁気ディスク装置の内、障
害が発生していない磁気ディスク装置に格納されている
データから演算により復元し、この復元したデータを前
記予備の磁気ディスク装置に格納することを特徴とする
ディスクサブシステムにおけるデータ復元方法。
5. In a disk subsystem in which a spare magnetic disk device and a plurality of magnetic disk devices constitute a RAID, when restoring data of a failed magnetic disk device to the spare magnetic disk device, Data which can be read from the failed magnetic disk device is stored in the spare magnetic disk device, and data which cannot be read from the failed magnetic disk device is a plurality of magnetic disks constituting the RAID. Data restoration in a disk subsystem, wherein the restoration is performed by operation from data stored in a magnetic disk device in which no failure has occurred, and the restored data is stored in the spare magnetic disk device. Method.
【請求項6】前記演算によりデータを復元するとき、そ
の演算に用いられるデータが前記障害が発生していない
磁気ディスク装置から読み出せない場合には、その復元
対象のデータがECCエラーであると前記予備の磁気デ
ィスク装置に登録すること特徴とする請求項5記載のデ
ィスクサブシステムにおけるデータ復元方法。
6. When restoring data by the above operation, if data used for the operation cannot be read from a magnetic disk device in which the failure has not occurred, it is determined that the data to be restored is an ECC error. 6. The data restoration method in the disk subsystem according to claim 5, wherein the data is registered in the spare magnetic disk device.
【請求項7】予備の磁気ディスク装置と複数の磁気ディ
スク装置とでRAIDを構成したディスクサブシステム
において、 障害の発生した磁気ディスク装置のデータを前記予備の
磁気ディスク装置に復元する際に、前記RAIDを構成
する複数の磁気ディスク装置の内、障害が発生していな
い磁気ディスク装置に格納されているデータから演算に
より復元し、この復元したデータを前記予備の磁気ディ
スク装置に格納するとともに、前記演算によりデータを
復元するとき、その演算に用いられるデータが前記障害
が発生していない磁気ディスク装置から読み出せない場
合には、その復元対象のデータがECCエラーであると
前記予備の磁気ディスク装置に登録することを特徴とす
るディスクサブシステムにおけるデータ復元方法。
7. In a disk subsystem in which a spare magnetic disk device and a plurality of magnetic disk devices constitute a RAID, when restoring data of a failed magnetic disk device to said spare magnetic disk device, Among the plurality of magnetic disk devices constituting the RAID, the data is restored by operation from the data stored in the magnetic disk device where no failure has occurred, and the restored data is stored in the spare magnetic disk device. When restoring data by operation, if the data used for the operation cannot be read from the magnetic disk device where the failure has not occurred, the spare magnetic disk device determines that the data to be restored has an ECC error. A method for restoring data in a disk subsystem, wherein the data is registered in a disk subsystem.
【請求項8】複数の磁気ディスク装置でRAIDが構成
され、一つの磁気ディスク装置に障害が発生した場合に
はその障害が発生した磁気ディスク装置を新しい磁気デ
ィスク装置に交換するディスクサブシステムにおいて、 前記障害の発生した磁気ディスク装置のデータを前記交
換した新しい磁気ディスク装置に復元する際に、前記R
AIDを構成する複数の磁気ディスク装置の内、障害が
発生していない磁気ディスク装置に格納されているデー
タから演算により復元し、この復元したデータを前記交
換した新しい磁気ディスク装置に格納するとともに、前
記演算によりデータを復元するとき、その演算に用いら
れるデータが前記障害が発生していない磁気ディスク装
置から読み出せない場合には、その復元対象のデータが
ECCエラーであると前記交換した新しい磁気ディスク
装置に登録することを特徴とするディスクサブシステム
におけるデータ復元方法。
8. A disk subsystem in which a RAID is constituted by a plurality of magnetic disk devices, and when a failure occurs in one magnetic disk device, the failed magnetic disk device is replaced with a new magnetic disk device. When restoring the data of the failed magnetic disk device to the replaced new magnetic disk device,
Among the plurality of magnetic disk devices constituting the AID, the data is restored by operation from the data stored in the magnetic disk device where no failure has occurred, and the restored data is stored in the exchanged new magnetic disk device. When restoring data by the above operation, if the data used for the operation cannot be read from the magnetic disk device in which the failure has not occurred, the data to be restored is regarded as an ECC error, and A data restoration method in a disk subsystem, which is registered in a disk device.
JP11085205A 1999-03-29 1999-03-29 Disk subsystem and data restoration method in disk subsystem Withdrawn JP2000276308A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11085205A JP2000276308A (en) 1999-03-29 1999-03-29 Disk subsystem and data restoration method in disk subsystem

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11085205A JP2000276308A (en) 1999-03-29 1999-03-29 Disk subsystem and data restoration method in disk subsystem

Publications (1)

Publication Number Publication Date
JP2000276308A true JP2000276308A (en) 2000-10-06

Family

ID=13852113

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11085205A Withdrawn JP2000276308A (en) 1999-03-29 1999-03-29 Disk subsystem and data restoration method in disk subsystem

Country Status (1)

Country Link
JP (1) JP2000276308A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100463841B1 (en) * 2002-02-25 2004-12-29 한국전자통신연구원 Raid subsystem and data input/output and rebuilding method in degraded mode
KR100489044B1 (en) * 2000-11-21 2005-05-11 엘지전자 주식회사 Multi package management method
JP2005293119A (en) * 2004-03-31 2005-10-20 Toshiba Solutions Corp Disk array control device, processing method and program for data loss detection applied to the same
US7398459B2 (en) 2003-01-20 2008-07-08 Samsung Electronics Co., Ltd. Parity storing method and error block recovering method in external storage subsystem
CN119847425A (en) * 2024-12-05 2025-04-18 苏州元脑智能科技有限公司 Data management method, device, computer equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100489044B1 (en) * 2000-11-21 2005-05-11 엘지전자 주식회사 Multi package management method
KR100463841B1 (en) * 2002-02-25 2004-12-29 한국전자통신연구원 Raid subsystem and data input/output and rebuilding method in degraded mode
US7398459B2 (en) 2003-01-20 2008-07-08 Samsung Electronics Co., Ltd. Parity storing method and error block recovering method in external storage subsystem
JP2005293119A (en) * 2004-03-31 2005-10-20 Toshiba Solutions Corp Disk array control device, processing method and program for data loss detection applied to the same
CN119847425A (en) * 2024-12-05 2025-04-18 苏州元脑智能科技有限公司 Data management method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
JP3184171B2 (en) DISK ARRAY DEVICE, ERROR CONTROL METHOD THEREOF, AND RECORDING MEDIUM RECORDING THE CONTROL PROGRAM
JP4767139B2 (en) Storage management program, storage management device, and storage management method
US7849356B2 (en) Parity data management system apparatus and method
JPWO2006123416A1 (en) Disk failure recovery method and disk array device
KR100711165B1 (en) Apparatus, method and recording medium for the control of storage
JP2001337792A (en) Disk array device
JP2001344076A (en) Disk array device
US20060190683A1 (en) Disk array apparatus and backup method of data
CN118708130A (en) Data volume remote replication method, device, computer equipment and storage medium
KR100463841B1 (en) Raid subsystem and data input/output and rebuilding method in degraded mode
US20190354433A1 (en) Parity log with by-pass
US20050246576A1 (en) Redundant system utilizing remote disk mirroring technique, and initialization method for remote disk mirroring for in the system
JP2001142650A (en) Method and device for controlling array disk
JP3155836B2 (en) Disk array device
CN101828189A (en) Data storage method, apparatus and system for interrupted write recovery
US10809940B1 (en) Multilevel resiliency
JPH08190461A (en) Disk array system
CN113625950A (en) Method, system, equipment and medium for initializing redundant array of independent disks
CN115373600B (en) A method, apparatus, device, and readable medium for storing RAID card configuration data.
JP2002123372A (en) Disk array device with cache memory, its error- controlling method and recording medium with its control program recorded thereon
JPH09101866A (en) Disk array system and its application method
JP2000293320A (en) Disk subsystem, disk subsystem inspection / diagnosis method, and disk subsystem data restoration method
JPH11154058A (en) Disk array device and data maintenance method
JP4294568B2 (en) Disk array device and control method thereof
JPH10254649A (en) Portable media library device

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20050414

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20050606

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060216

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060221

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20060406