JPH0713867A - Disk subsystem - Google Patents

Disk subsystem

Info

Publication number
JPH0713867A
JPH0713867A JP5153709A JP15370993A JPH0713867A JP H0713867 A JPH0713867 A JP H0713867A JP 5153709 A JP5153709 A JP 5153709A JP 15370993 A JP15370993 A JP 15370993A JP H0713867 A JPH0713867 A JP H0713867A
Authority
JP
Japan
Prior art keywords
data
cache memory
disk device
writing
spare area
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
JP5153709A
Other languages
Japanese (ja)
Inventor
Shigeru Kijiro
茂 木城
Kazuhide Sano
一英 佐野
Yoshinaga Kuwabara
善祥 桑原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP5153709A priority Critical patent/JPH0713867A/en
Publication of JPH0713867A publication Critical patent/JPH0713867A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To prevent unwritten data from being held on a cache memory in case of trouble of writing from the cache memory to a disk device as to the write-after type disk subsystem. CONSTITUTION:Disk devices 107 and 109 are provided with preliminary areas 108 and 110 where alternate tracks for the writing trouble are assigned, and a memory 104 which stores control information for managing the alternate tracks at the time of the trouble is incorporated in a controller 101. Data which are sent from a CPU 106 to the cache memory 102 are written in the alternate tracks in the preliminary areas 108 and 110 from the cache memory 102 if the writing trouble occurs. When preliminary area alternate tracks overflow, the writing from the CPU 106 to the cache memory 102 is inhibited and data are written directly in the disk devices 107 and 109 from the CPU 106.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ライトアフタ方式を採
用した磁気ディスク装置等のディスクサブシステムに係
り、特に、キャッシュメモリからディスク装置への書き
込みの際にディスク装置障害が発生したときのデータ回
復処理を含むディスクサブシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a disk subsystem such as a magnetic disk device adopting a write-after system, and more particularly to data when a disk device failure occurs during writing from a cache memory to the disk device. The present invention relates to a disk subsystem including a recovery process.

【0002】[0002]

【従来の技術】一般にコンピュータシステムにおいて、
CPUと磁気ディスク装置とのアクセスギャップを解消
する手段として、CPUと磁気ディスク装置の間にキャ
ッシュメモリを介在させることによって、磁気ディスク
装置のアクセス速度を向上させることが行なわれてい
る。これは、キャッシュメモリ上へ、データを保持する
ことにより、磁気ディスク装置のアクセスネックとなっ
ている位置付け、回転待ち等の機械的動作を回避できる
ためである。
2. Description of the Related Art Generally, in a computer system,
As a means for eliminating the access gap between the CPU and the magnetic disk device, an access speed of the magnetic disk device is improved by interposing a cache memory between the CPU and the magnetic disk device. This is because by holding the data in the cache memory, it is possible to avoid mechanical operations such as positioning and waiting for rotation that are access necks of the magnetic disk device.

【0003】従来、キャッシュメモリの書き込み方式に
関し、一般的に次の2つの方式が知られている。
Conventionally, the following two methods are generally known as a writing method of a cache memory.

【0004】第1は、上位CPUからキャッシュ及び磁
気ディスク装置に対するデータ書き込みが完了した後、
上位CPUへ終了報告を行なうライトスルー方式であ
る。
First, after the data writing from the upper CPU to the cache and the magnetic disk device is completed,
This is a write-through method of reporting the end to the upper CPU.

【0005】第2は、上位CPUからキャッシュメモリ
への書き込み後、上位CPUへ終了報告を行ない、その
後、キャッシュメモリから磁気ディスク装置への書き込
みを行なうライトアフタ方式である。
The second is a write-after system in which after writing from the upper CPU to the cache memory, a completion report is sent to the upper CPU, and then writing from the cache memory to the magnetic disk device is performed.

【0006】第1のライトスルー方式では、磁気ディス
ク装置への書き込み後終了報告を行なうため、アクセス
速度は従来の磁気ディスク装置と何ら変わらないが、磁
気ディスク装置への書き込み時の障害が発生したとき、
直ちに上位CPUへのエラー報告を上位CPUと同期し
て行なうことができるため、障害回復が容易である。一
方、第2のライトアフタ方式では、キャッシュメモリへ
のデータ書き込み完了時点で終了報告するため、アクセ
ス速度は、キャッシュメモリの書き込み速度で行なうこ
とができ、非常に高速であるが、その後のキャッシュメ
モリから磁気ディスク装置に対する書き込み時に障害が
発生したとき障害報告が上位CPUと同期しないためデ
ータの回復が難しくなるという問題がある。
In the first write-through method, since the completion report is made after writing to the magnetic disk device, the access speed is no different from that of the conventional magnetic disk device, but a failure occurs when writing to the magnetic disk device. When
Since the error report to the upper CPU can be immediately made in synchronization with the upper CPU, failure recovery is easy. On the other hand, in the second write-after method, since the end is reported when the data writing to the cache memory is completed, the access speed can be the same as the writing speed of the cache memory, which is very high. Therefore, when a failure occurs during writing to the magnetic disk device, the failure report is not synchronized with the upper CPU, which makes it difficult to recover data.

【0007】後者のライトアフタ方式を採用したものと
して、例えば、IBM3990制御装置が知られてお
り、その概要が「IBM3990 Storage C
ontrol Reference」(文献1)に紹介
されている。
An example of the latter write-after type is known as an IBM 3990 control device, the outline of which is "IBM 3990 Storage C".
Intro Reference "(reference 1).

【0008】[0008]

【発明が解決しようとする課題】上記文献1に依れば、
キャッシュメモリから、磁気ディスク装置へのデータ書
き込み時に障害が発生し、書き込み不可となったキャッ
シュメモリ上のデータのことを“Pinned Dat
a”と定義し磁気ディスク装置障害報告とは別に、“P
inned Data”が存在することを上位CPUに
対し、報告する。一旦“Pinned Data”とし
て認識されたデータは、これ以降、磁気ディスク装置へ
の書き込み処理の対象とならず後の回復処置がとられる
迄キャッシュメモリ上に保持されている。
According to the above-mentioned document 1,
"Pinned Data" refers to data in the cache memory that cannot be written due to a failure in writing data from the cache memory to the magnetic disk device.
It is defined as "a", and "P"
The presence of "inned Data" is reported to the upper CPU. The data once recognized as "Pined Data" is not subject to the write processing to the magnetic disk device, and the subsequent recovery action is taken. It is held in the cache memory up to.

【0009】この“Pinned Data”に対する
回復方法として、オペレータが上位装置への“Pinn
ed Data”通知を発見した場合、一般的に次の回
復手順をとる。
As a recovery method for this "Pinned Data", the operator uses the "Pinn Data"
If an "ed Data" notification is found, the following recovery procedure is generally followed.

【0010】(1) キャッシュメモリから磁気ディス
ク装置への書き込みを再度行なう。書き込みは、コマン
ド指示によってなされ、オペレータが回復処置を試みる
ことになる。
(1) The writing from the cache memory to the magnetic disk device is performed again. Writing is done by command, and the operator will attempt recovery actions.

【0011】(2) 上記書き込みで失敗した場合、
“Pinned Data”を含むファイル、または磁
気ディスク装置ボリュームの読み出し(ダンプ)を行
い、読み出しが成功した場合には、障害要因を修復し、
キャッシュメモリ上に保持されている“Pinned
Data”を破棄し、ダンプしたデータをファイル単位
またはボリウム単位で復旧(リストア)することにより
データ回復ができる。
(2) If the above writing fails,
A file including "Pinned Data" or a magnetic disk device volume is read (dumped), and if the read is successful, the failure factor is repaired,
"Pinned" held in the cache memory
Data can be recovered by discarding “Data” and recovering (restoring) the dumped data in file units or volume units.

【0012】(3) 上記(2)で、磁気ディスク装置
ボリュームの読み出しに失敗した場合には、障害要因の
修復はもちろんのこと、定期的にバックアップ取得され
たダンプデータより全面回復を試みなければならない。
このため、障害に対するユーザのバックアップ運用が複
雑となる。
(3) When the reading of the magnetic disk device volume fails in the above (2), not only the cause of failure is repaired but also full recovery from the dump data periodically backed up must be tried. I won't.
Therefore, the backup operation of the user for a failure becomes complicated.

【0013】以上のように、書き込み処理時に障害が発
生した場合、一旦、“PinnedData”として、
キャッシュメモリ上にデータを保持する方法では、後に
回復を図る場合、そのデータの後始末について人手を介
することになり、運用形態も複雑となってしまうという
問題があった。
As described above, when a failure occurs during the writing process, it is temporarily set to "PinnedData",
The method of holding the data in the cache memory has a problem in that when recovering the data later, it is necessary to manually clean up the data, and the operation form becomes complicated.

【0014】従って、本発明の目的は、上記問題点を解
消し、キャッシュメモリからディスク装置に対する書き
込み時に障害が発生したとき“Pinned Dat
a”として未書き込みデータをキャッシュメモリに保持
することなく、容易に回復を行なうことができるディス
クサブシステムを提供することにある。
Therefore, an object of the present invention is to solve the above problems and to provide a "Pinned Data" when a failure occurs during writing from the cache memory to the disk device.
An object of the present invention is to provide a disk subsystem that can easily perform recovery without holding unwritten data as a ″ in a cache memory.

【0015】[0015]

【課題を解決するための手段】上記目的を達成するた
め、本発明は、上位装置(CPU)とディスク装置との
間にキャッシュメモリを有し、データを上位装置からキ
ャッシュメモリに書き込んだときに上位装置へ終了報告
し、その後キャッシュメモリからディスク装置へ書き込
むライトアフタ方式のディスクサブシステムにおいて、
前記キャッシュメモリからディスク装置へのデータ書き
込みの際にディスク装置障害が発生したとき、ディスク
装置の予備エリアに前記キャッシュメモリ上のデータを
書き込む制御手段を備えたものである。
To achieve the above object, the present invention has a cache memory between a host device (CPU) and a disk device, and when data is written from the host device to the cache memory. In the write-after type disk subsystem that reports the end to the upper device and then writes from the cache memory to the disk device,
A control means is provided for writing data in the cache memory to a spare area of the disk device when a disk device failure occurs when writing data from the cache memory to the disk device.

【0016】また、前記予備エリアにデータが書き込ま
れていることを示す管理情報(予備エリア書き込み制御
情報)を記憶する記憶手段がディスク制御装置に設けら
れ、このデータに対する読み出しまたは書き込み命令が
上位置装置からあったとき、この予備エリア書き込み制
御情報を用いて、当該予備エリアから直接データの読み
出しまたは書き込みを行なうように構成する。
Further, a storage means for storing management information (spare area write control information) indicating that data is written in the spare area is provided in the disk controller, and a read or write command for this data is located at the upper position. When the device is present, the spare area write control information is used to directly read or write data from the spare area.

【0017】更に、予備エリアがオーバフローしたとき
は即座に、上位装置からの書き込み命令に対して、キャ
ッシュメモリへの書き込みを抑止し直接ディスク装置へ
の書き込みを行なう手段を備え、これによって、キャッ
シュメモリ内にディスク装置障害による未書き込みデー
タが保持されることはないように構成される。
Furthermore, when the spare area overflows, a means is provided for immediately writing to the disk device in response to a write command from the host device and directly writing to the disk device. It is configured so that unwritten data due to a disk device failure is not retained inside.

【0018】[0018]

【作用】上記構成に基づく作用を説明する。The operation based on the above configuration will be described.

【0019】本発明によれば、ライトアフタ方式のディ
スクサブシステムにおいて、ディスク装置上に予備エリ
アを設け、キャッシュメモリからディスク装置へのデー
タ書き込みの際に障害が発生したときには、制御手段に
よりキャッシュメモリ上のデータがこの予備エリアに書
き込まれる(退避される)ようにしたので、ディスク装
置への書き込みの際に障害が発生したときデータがディ
スク装置に書き込まれずにいつまでもキャッシュメモリ
上に残ってしまうという不都合を防止することができ
る。予備エリアは、障害が発生したのと同一のディスク
装置に持つようにしてもよいし、またはディスク制御装
置配下のディスク装置群中に持つようにしてもよい。
According to the present invention, in the write-after type disk subsystem, a spare area is provided on the disk device, and when a failure occurs at the time of writing data from the cache memory to the disk device, the cache memory is controlled by the control means. Since the above data is written (saved) in this spare area, if a failure occurs when writing to the disk device, the data will not be written to the disk device and will remain in the cache memory forever. Inconvenience can be prevented. The spare area may be provided in the same disk device in which the failure has occurred, or in the disk device group under the disk control device.

【0020】予備エリアにデータが書き込まれたことを
示す予備エリア書き込み制御情報(予備エリア管理情
報)を参照することによって、当該データの所在が認識
できるので、上位装置(CPU)から予備エリア上のデ
ータを含めて直接アクセスすることが可能である。
Since the location of the data can be recognized by referring to the spare area write control information (spare area management information) indicating that the data has been written in the spare area, the host device (CPU) on the spare area can recognize it. Direct access including data is possible.

【0021】また、予備エリアがオーバフローした場
合、即座に、上位装置からの書き込み命令に対して、キ
ャッシュメモリへの書き込みを抑止し、上位装置から直
接ディスク装置への書き込みを行なうようにしたので、
予備エリアがオーバフローになると、それ以降にディス
ク装置への書き込み障害が発生したときに、代替トラッ
クがないため代替書き込みができず、キャッシュメモリ
上に未書き込みデータ(いわゆるPinned Dat
a)が残ってしまうという事態を回避することができ
る。
Further, when the spare area overflows, immediately in response to a write command from the host device, the write to the cache memory is suppressed, and the host device directly writes to the disk device.
When the spare area overflows and a write failure to the disk device occurs thereafter, alternate writing cannot be performed because there is no alternate track, and unwritten data (so-called Pinned Data) on the cache memory.
It is possible to avoid the situation where a) remains.

【0022】このようにして、キャッシュメモリからデ
ィスク装置に対する書き込みの際に障害が発生したと
き、キャッシュメモリ上に未書き込みデータ(Pinn
edData)が保持されることがないので、データ回
復を容易に行なうことができる。
In this way, when a failure occurs in writing from the cache memory to the disk device, unwritten data (Pinn) is written in the cache memory.
Since edData) is not held, data recovery can be easily performed.

【0023】[0023]

【実施例】以下に、本発明の実施例を図面により説明す
る。
Embodiments of the present invention will be described below with reference to the drawings.

【0024】図1は、本発明の一実施例の磁気ディスク
サブシステムの構成図である。同図で、制御装置101
は、キャッシュメモリ102、マイクロプロセッサ10
3、制御メモリ104、データ転送回路105を有し、
上位CPU106から、データ書き込み命令が発行され
ると、データ転送回路105を経て、キャッシュメモリ
102に対し、データを転送し、CPU106に終了報
告を行なう。その後、制御装置101は、上位CPU1
06とは非同期にキャッシュメモリ102から、データ
転送回路105を経て、磁気ディスク装置107に対
し、データの書き込みを行う。この書き込み動作のこと
を以降デステージングと呼ぶ。キャッシュメモリ102
及び制御メモリ104は、不揮発メモリでバックアップ
され、電源断等、キャッシュ障害時のデータ保証及び、
制御装置101の電源ON/OFFに関し、制御情報引
継ぎを可能にしている。
FIG. 1 is a block diagram of a magnetic disk subsystem according to an embodiment of the present invention. In the figure, the control device 101
Is the cache memory 102 and the microprocessor 10.
3, a control memory 104, a data transfer circuit 105,
When a data write command is issued from the upper CPU 106, the data is transferred to the cache memory 102 via the data transfer circuit 105, and a completion report is sent to the CPU 106. After that, the control device 101 determines that the upper CPU 1
Data is written from the cache memory 102 to the magnetic disk device 107 via the data transfer circuit 105 asynchronously with 06. This write operation is hereinafter referred to as destaging. Cache memory 102
Also, the control memory 104 is backed up by a non-volatile memory, and guarantees data in the event of a cache failure such as power failure and
Control information can be handed over when the power of the control device 101 is turned on and off.

【0025】磁気ディスク装置107には、予備エリア
108を設けており、上記デステージング中に、磁気デ
ィスク装置障害のため、データ書き込み不可となった
時、データ書き込み用エリアとして使用される。
The magnetic disk device 107 is provided with a spare area 108, which is used as a data writing area when data cannot be written due to a failure of the magnetic disk device during the destaging.

【0026】磁気ディスク装置109にも、同様の予備
エリア110を設けている。これらの予備エリアは、そ
の中に書き込み不可データの代替トラックを複数本持ち
さらに、制御メモリ104中の制御情報のバックアップ
用としても用いられる。
The magnetic disk device 109 is also provided with a similar spare area 110. These spare areas have a plurality of alternative tracks of unwritable data therein and are also used for backup of the control information in the control memory 104.

【0027】図2は図1の制御メモリ104に格納され
る制御情報のテーブルの概念図である。このテーブル
は、制御装置配下の各磁気ディスク装置対応に予備エリ
アマップ201〜203を持つ。予備エリアマップ20
1は、当該磁気ディスク装置において、代替トラックと
して使われているトラック数を示す予備エリアカウンタ
204、障害トラックのトラックアドレス205、代替
トラックの存在する磁気ディスク装置番号206、代替
トラックアドレス207で構成される。
FIG. 2 is a conceptual diagram of a control information table stored in the control memory 104 of FIG. This table has spare area maps 201 to 203 corresponding to the respective magnetic disk devices under the control device. Reserve area map 20
1 is composed of a spare area counter 204 indicating the number of tracks used as alternative tracks in the magnetic disk device, a track address 205 of a faulty track, a magnetic disk device number 206 in which the alternative track exists, and an alternative track address 207. It

【0028】図1において、キャッシュメモリ102か
ら磁気ディスク装置107のあるトラックアドレスに対
するデステージング処理中に磁気ディスク障害が発生
し、書き込み不可となったとき、マイクロプロセッサ1
03は、障害発生トラックに対する代替トラックを割り
当てる。このとき、マイクロプロセッサ103から、制
御メモリ104に対し、図2で示した制御情報が登録さ
れる。図2において、予備エリアカウンタ204をカウ
ントアップし、障害トラックアドレス205、磁気ディ
スク装置番号206、代替トラックアドレス207につ
いて登録する。代替トラックについては、磁気ディスク
装置の予備エリア108中のトラックを割り当て、この
代替トラックに対して、デステージング処理を試みる。
以降、この磁気ディスク装置では、当該障害トラックア
ドレスに対し、予備エリア中の代替トラックアドレスが
正式トラックアドレスとして使われる。
In FIG. 1, when the magnetic disk failure occurs during the destaging processing for a certain track address of the magnetic disk device 107 from the cache memory 102 and writing becomes impossible, the microprocessor 1
03 assigns an alternative track to the faulty track. At this time, the control information shown in FIG. 2 is registered in the control memory 104 from the microprocessor 103. In FIG. 2, the spare area counter 204 is counted up and the faulty track address 205, the magnetic disk device number 206, and the alternative track address 207 are registered. As an alternative track, a track in the spare area 108 of the magnetic disk device is assigned, and the destaging process is tried on this alternative track.
Thereafter, in this magnetic disk device, the alternative track address in the spare area is used as the official track address for the faulty track address.

【0029】次に代替トラックとして割り当てられたト
ラックに対する上位CPU106からの読み出し/書き
込み命令に対する動作を説明する。マイクロプロセッサ
103は、読み出し/書き込み命令を受けたとき、トラ
ックアドレスが、制御メモリ104に登録されている代
替トラックか否かを判定する。代替トラックであれば、
図2の制御メモリ中の予備エリアマップの予備エリアデ
バイスアドレス(磁気ディスク装置番号)206、代替
トラックアドレス207に対し、位置付け動作を行い、
読み出し/書き込み命令を実行する。また、書き込み命
令に対し、予備エリアカウンタ204を参照し、代替ト
ラックとして当該磁気ディスク装置に割り当てられてい
る上限値(トラック数)をオーバフローしているかいな
いか(空きがないかあるか)チェックする。もしもこの
上限値をオーバフローしている場合に磁気ディスク装置
障害が発生したとすると、代替トラックがないためデー
タ書き込みができなくなってしまう。そこで、この上限
値をオーバフローしている場合には、上位CPU書き込
み命令に対し、上位装置からキャッシュメモリ102へ
のデータ書き込み動作を抑止し(すなわち、ライトアフ
タ動作を中止し)、上位CPUから直接、磁気ディスク
装置へのデータ書き込み動作を行なう。これによって、
キャッシュメモリからのデステージ動作中の障害によ
り、書き込み不可となって予備エリアの代替トラック割
り当てができなくなることを防止することができる。
Next, the operation for the read / write command from the upper CPU 106 for the track assigned as the alternative track will be described. When receiving the read / write command, the microprocessor 103 determines whether the track address is an alternative track registered in the control memory 104. If it ’s an alternative truck,
Positioning operation is performed for the spare area device address (magnetic disk device number) 206 and the alternative track address 207 of the spare area map in the control memory of FIG.
Execute read / write instructions. Further, with respect to the write command, the spare area counter 204 is referred to, and it is checked whether or not the upper limit value (the number of tracks) assigned to the magnetic disk device as an alternative track has overflowed (whether there is a space or not). . If a magnetic disk drive failure occurs when the upper limit value is overflowed, data cannot be written because there is no alternative track. Therefore, when the upper limit value overflows, the data writing operation from the host device to the cache memory 102 is suppressed (that is, the write-after operation is stopped) in response to the host CPU write command, and the host CPU directly , Write data to the magnetic disk device. by this,
It is possible to prevent a situation in which the writing is disabled and the alternative track cannot be assigned to the spare area due to a failure during the destage operation from the cache memory.

【0030】障害がディスク面へのごみの付着や部分的
なきずなどのようにディスクの一部に発生する場合に
は、予備エリアの代替トラックを同一磁気ディスク装置
上に設けることができる。一方、障害がヘッドの不具合
など1つの磁気ディスク装置全体に及ぶ場合には、予備
エリアの代替トラックは別の磁気ディスク装置上にあっ
た方が好都合である。また、ある磁気ディスク装置の予
備エリアがオーバフローしても(一杯になっても)別の
磁気ディスク装置の予備エリアに空きがあれば、それを
利用できるようにした方がよい。従って、予備エリアの
代替トラックは、必ずしも、障害の発生した磁気ディス
ク装置と同一の磁気ディスク装置中に割り当てる必要は
ない。図2の制御メモリ中の予備エリアデバイスアドレ
ス206は、当該磁気ディスク装置の代替トラックを制
御装置配下の別ディスク装置の予備エリアに割り当てた
場合、有効となる。これは、当該磁気ディスク装置にお
いて障害が発生したとき、代替トラックアクセス不可を
避けるための手段である。
In the case where a failure occurs in a part of the disk such as dust adhering to the disk surface or partial flaw, a spare area alternative track can be provided on the same magnetic disk device. On the other hand, when the failure extends to one magnetic disk device as a whole due to a defect in the head, it is preferable that the alternative track in the spare area is on another magnetic disk device. Also, even if the spare area of one magnetic disk device overflows (is full), if there is a spare area in another magnetic disk device, it is better to be able to use it. Therefore, the alternative track in the spare area does not necessarily have to be assigned to the same magnetic disk device as the failed magnetic disk device. The spare area device address 206 in the control memory shown in FIG. 2 becomes valid when the alternative track of the magnetic disk device is assigned to the spare area of another disk device under the control of the control device. This is a means for avoiding the inability to access the alternative track when a failure occurs in the magnetic disk device.

【0031】制御メモリ104は、不揮発メモリで構成
され、これにより、電源断等で制御情報が失われること
を防止するとともに、制御装置の電源ON/OFFに対
する制御情報の引継ぎの目的のために用いられる。ま
た、この制御情報のバックアップを磁気ディスク装置の
予備エリアにもつことも可能である。
The control memory 104 is composed of a non-volatile memory, and is used for the purpose of preventing the control information from being lost due to power-off or the like and inheriting the control information when the power of the control device is turned ON / OFF. To be It is also possible to have a backup of this control information in the spare area of the magnetic disk device.

【0032】なお、データ回復処理では、交替トラック
を含むデータを一旦キャッシュメモリに上げて、これを
ディスク装置の正規トラックに入れなおすようにするこ
ともできる。
In the data recovery process, the data including the replacement track may be temporarily stored in the cache memory and then stored in the regular track of the disk device again.

【0033】本発明は、磁気ディスク装置に限らず、光
ディスク装置や光磁気ディスク装置にも適用できる。
The present invention can be applied not only to magnetic disk devices but also to optical disk devices and magneto-optical disk devices.

【0034】[0034]

【発明の効果】以上詳しく説明したように、本発明によ
れば、ライトアフタ方式のディスクサブシステムにおい
て、ディスク装置上に予備エリアを設け、キャッシュメ
モリからディスク装置へのデータ書き込み障害が発生し
たときに、制御手段により、キャッシュメモリ上のデー
タをこの予備エリアに退避するようにしたので、ディス
ク装置への書き込み障害が生じたときにも未書き込みデ
ータがキャッシュメモリ上に残ることがないという効果
が得られる。また、上位装置(CPU)からの書き込み
命令に対しディスク装置への書き込みは上位装置とは非
同期で行なわれるが、このとき発生した書き込み障害に
ついて上位装置に障害報告することなく、ディスク制御
装置内で容易にデータの書き込み回復処理を行なうこと
ができるという効果もある。
As described above in detail, according to the present invention, in the write-after type disk subsystem, when a spare area is provided on the disk device and a data write failure from the cache memory to the disk device occurs. In addition, since the control means saves the data in the cache memory to this spare area, there is an effect that unwritten data does not remain in the cache memory even when a write failure occurs in the disk device. can get. In addition, writing to the disk device in response to a write command from the host device (CPU) is performed asynchronously with the host device. However, the write failure that occurs at this time is not reported to the host device, There is also an effect that data write recovery processing can be easily performed.

【0035】予備エリアにデータが書き込まれたことを
示す予備エリア書き込み制御情報を記憶しておき、この
制御情報を参照することによって当該データの所在が認
識できるので、上位装置から予備エリアを含めてディス
ク上のデータを直接アクセスすることができるという効
果が得られる。
The spare area write control information indicating that the data has been written in the spare area is stored, and the location of the data can be recognized by referring to this control information. The effect that the data on the disk can be directly accessed is obtained.

【0036】また、予備エリアがオーバフローしたと
き、上位装置からの書き込み命令に対してキャッシュメ
モリへの書き込みを抑止し、上位装置から直接ディスク
装置へデータを書き込むようにしたので、予備エリアが
オーバフローした場合でも、キャッシュメモリ内にディ
スク装置障害による未書き込みデータが保持されるおそ
れはないという効果が得られる。
Further, when the spare area overflows, writing to the cache memory is suppressed in response to a write command from the host device, and data is written directly from the host device to the disk device, so the spare area overflows. Even in this case, it is possible to obtain the effect that the unwritten data due to the disk device failure is not held in the cache memory.

【0037】このようにして、キャッシュメモリ上にデ
ィスクの書き込み障害による未書き込みデータが保持さ
れることはないので、ディスク制御装置内で書き込み回
復を行なうことにより未書き込みデータに対する障害回
復処理を容易に行なうことができるという効果も得られ
る。
In this way, since the unwritten data due to the writing failure of the disk is not held in the cache memory, the writing recovery in the disk control device facilitates the failure recovery processing for the unwritten data. The effect that it can be performed is also obtained.

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

【図1】本発明の一実施例の磁気ディスクサブシステム
の構成図である。
FIG. 1 is a configuration diagram of a magnetic disk subsystem according to an embodiment of the present invention.

【図2】本発明の一実施例に用いる制御メモリに格納さ
れる制御情報の構成図である。
FIG. 2 is a configuration diagram of control information stored in a control memory used in an embodiment of the present invention.

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

101 制御装置 102 キャッシュメモリ 103 マイクロプロセッサ 104 制御メモリ 105 データ転送回路 106 CPU 107,109 磁気ディスク装置 108,110 予備エリア 201〜203 予備エリアマップ 204 予備エリアカウンタ 205 障害トラックアドレス 206 磁気ディスク装置番号 207 代替トラックアドレス 101 Control Device 102 Cache Memory 103 Microprocessor 104 Control Memory 105 Data Transfer Circuit 106 CPU 107,109 Magnetic Disk Device 108,110 Spare Area 201-203 Spare Area Map 204 Spare Area Counter 205 Fault Track Address 206 Magnetic Disk Device Number 207 Alternative Track address

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 上位装置とディスク装置との間にキャッ
シュメモリを有し、データを上位装置からキャッシュメ
モリに書き込んだときに上位装置へ終了報告し、その後
キャッシュメモリからディスク装置へ書き込むライトア
フタ方式のディスクサブシステムにおいて、前記キャッ
シュメモリからディスク装置へのデータ書き込みの際に
ディスク装置障害が発生したとき、ディスク装置の予備
エリアに前記キャッシュメモリ上のデータを書き込む制
御手段を備えたことを特徴とするディスクサブシステ
ム。
1. A write-after system having a cache memory between a host device and a disk device, and when data is written from the host device to the cache memory, an end report is sent to the host device, and then the cache memory writes the data to the disk device. In the disk subsystem described above, when a disk device failure occurs when writing data from the cache memory to the disk device, there is provided control means for writing data in the cache memory to a spare area of the disk device. The disk subsystem to do.
【請求項2】 前記予備エリアにデータが書き込まれて
いることを示す予備エリア書き込み制御情報を記憶する
記憶手段を備え、上位装置からこのデータに対する読み
出しまたは書き込み命令があったとき、前記予備エリア
書き込み制御情報を用いて当該予備エリアから直接デー
タの読み出しまたは書き込みを行なうように構成したこ
とを特徴とする請求項1記載のディスクサブシステム。
2. A spare area write control information indicating that data is written in the spare area is provided, and the spare area write is performed when there is a read or write command for this data from a host device. 2. The disk subsystem according to claim 1, wherein the disk subsystem is configured to directly read or write data from the spare area using control information.
【請求項3】 前記予備エリアがオーバフローしたと
き、即座に上位装置からキャッシュメモリへの書き込み
を抑圧し、上位装置から直接ディスク装置への書き込み
を行なう手段を備えたことを特徴とする請求項1または
2記載のディスクサブシステム。
3. A means for immediately suppressing writing from the host device to the cache memory when the spare area overflows, and directly writing from the host device to the disk device. Alternatively, the disk subsystem described in 2.
JP5153709A 1993-06-24 1993-06-24 Disk subsystem Pending JPH0713867A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5153709A JPH0713867A (en) 1993-06-24 1993-06-24 Disk subsystem

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5153709A JPH0713867A (en) 1993-06-24 1993-06-24 Disk subsystem

Publications (1)

Publication Number Publication Date
JPH0713867A true JPH0713867A (en) 1995-01-17

Family

ID=15568388

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5153709A Pending JPH0713867A (en) 1993-06-24 1993-06-24 Disk subsystem

Country Status (1)

Country Link
JP (1) JPH0713867A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07334424A (en) * 1994-06-08 1995-12-22 Nec Corp Hard disk unit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07334424A (en) * 1994-06-08 1995-12-22 Nec Corp Hard disk unit

Similar Documents

Publication Publication Date Title
US6513097B1 (en) Method and system for maintaining information about modified data in cache in a storage system for use during a system failure
US7721143B2 (en) Method for reducing rebuild time on a RAID device
KR100621446B1 (en) Autonomic power loss recovery for a multi-cluster storage sub-system
US7415636B2 (en) Method and apparatus for replacement processing
JPH0619722B2 (en) Device that saves the state of the computer
JP2004021811A (en) Disk controller using nonvolatile memory
US7171518B2 (en) Data storage system recovery from disk failure during system off-line condition
US20040133741A1 (en) Disk array apparatus and data writing method used in the disk array apparatus
JPH1195933A (en) Disk array system
US20100169572A1 (en) Data storage method, apparatus and system for interrupted write recovery
JP3224970B2 (en) Program exchangeable magnetic storage device control system and program exchange method
JPH07182250A (en) Automatic substituting processing system for magnetic disk
JPH0713867A (en) Disk subsystem
JPH0452725A (en) Fault recovering/processing method for storage device
JP3845239B2 (en) Disk array device and failure recovery method in disk array device
JP3043662B2 (en) Data backup method
JPH06348600A (en) Disk cache device
JP2549197B2 (en) Disk device cache memory management device
JPS6326407B2 (en)
JPH06131123A (en) External storage device for computer
JPH01130243A (en) Fault recovering system for storage device
JPH05181617A (en) Improvement of reliability for disk subsystem
JP3870024B2 (en) Information recording apparatus and information recording method
JPH07248973A (en) Back-up processing method
JPH0436421B2 (en)