JPH02113467A - Disk control system - Google Patents

Disk control system

Info

Publication number
JPH02113467A
JPH02113467A JP26524788A JP26524788A JPH02113467A JP H02113467 A JPH02113467 A JP H02113467A JP 26524788 A JP26524788 A JP 26524788A JP 26524788 A JP26524788 A JP 26524788A JP H02113467 A JPH02113467 A JP H02113467A
Authority
JP
Japan
Prior art keywords
sector
data
disk control
replacement
defective
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
JP26524788A
Other languages
Japanese (ja)
Inventor
Masaaki Kobayashi
正明 小林
Toshihiko Tamiya
田宮 敏彦
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 JP26524788A priority Critical patent/JPH02113467A/en
Publication of JPH02113467A publication Critical patent/JPH02113467A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate the delay of response and to improve the throughput of a system by providing a disk controller with a memory where data of an alternative sector which cannot be assigned in the same track as a defect posi tion on a medium is stored. CONSTITUTION:When a power source is turned on or a disk driving device 13 is changed to a ready state, a magnetic disk controller 11 reads a correspondence table stored on a disk medium 14 and stores it in the memory of the controller 11. Simultaneously, the controller 11 reads the data of the alternative sector from the medium and stores it in an alternative sector data storage memory 12 of the controller 11. When a higher-order device 15 makes access to the medium, the controller 11 uses the read correspondence table and the data of the alternative sector which cannot be assigned in the same track as a defective sector read into the memory 12 to control the device 13 and responds to the device 15. Thus, the delay of response is eliminated to improve the throughput of the system.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ディスク装置における、欠陥セクタに対応す
る交替セクタの処理に係り、特に、交替セクタのアクセ
ス処理の性能を向上させることを可能にしたディスク制
御方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to processing of a replacement sector corresponding to a defective sector in a disk device, and in particular, it is possible to improve the performance of access processing of the replacement sector. This paper relates to a disk control method.

〔従来の技術〕[Conventional technology]

ディスク装置において、媒体の不良箇所を他の良好な箇
所に代替えする場合には、セクタ単位で行われるのが一
般的である。この代替え用のセクタ(以下、交替セクタ
という。)は、アクセス処理性能を低下させないため、
欠陥箇所と同一のトラックあるいは同一のシリンダ内に
割り付けられるのが一般的である。しかし、同一トラッ
クあるいは同一シリンダ内に、ある定められた規定箇所
以上の欠陥セクタが存在することにより、同一トラック
あるいは同一シリンダ内に交替セクタを割り当てること
が不可能な場合、従来技術によるディスク装置は、規定
数を越えるセクタについては、媒体上の他のエリアに交
替セクタを割り当て、あるいは、規定数を越える欠陥セ
クタを持つトラックについては、このトラックを欠陥ト
ラックとみなし、他の良好なトラックを交替トラックと
じて割り当てるものであった。また、この従来技術は、
欠陥セクタと交替セクタとの対応を媒体上に記録してお
くと共に、ディスク制御装置内にも保持しておき、上位
装置から、欠陥セクタまたは欠陥トラックを含むエリア
に対するアクセスが指示されると、保持されている対応
表をサーチして、交替エリアのアドレスを調べ、欠陥箇
所については、そのエリアをアクセスしている。
In a disk device, when a defective part of a medium is replaced with another good part, it is generally done on a sector by sector basis. This alternative sector (hereinafter referred to as replacement sector) does not reduce access processing performance, so
It is generally assigned to the same track or the same cylinder as the defective location. However, if it is impossible to allocate a replacement sector to the same track or cylinder because there are more than a certain number of defective sectors in the same track or cylinder, the conventional disk device For sectors that exceed the specified number, replacement sectors are allocated to other areas on the medium, or for tracks that have more than the specified number of defective sectors, this track is regarded as a defective track and replaced with another good track. It was to be allocated as a track. In addition, this conventional technology
The correspondence between defective sectors and replacement sectors is recorded on the medium and also stored in the disk control device. The address of the replacement area is checked by searching the correspondence table provided, and if a defective area is found, that area is accessed.

なお、この種ディスク装置に関する従来技術として、例
えば、特開昭61−272821号公報等に記載された
技術が知られている。
Incidentally, as a conventional technique related to this type of disk device, for example, a technique described in Japanese Patent Application Laid-Open No. 61-272821 is known.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

前述した従来技術は、特に、交替セクタが欠陥セクタと
同一のトラックあるいは同一のシリンダ内に割り当てら
れなかった場合、交替トラックが欠陥トラックと同一の
シリンダ内に割り当てられなかった場合に、上位装置か
ら、欠陥セクタを含むエリアに対するアクセス指示が出
されると、交替セクタあるいは交替トラックへのアクセ
スのために、メカニカルなシーク動作が必要となり、上
位装置への応答に、大幅な時間遅延を生じ、スループッ
トを低下させるという問題点があった。
In the above-mentioned conventional technology, in particular, when a replacement sector is not allocated to the same track or the same cylinder as a defective sector, or when a replacement track is not allocated to the same cylinder as a defective track, When an access instruction is issued to an area containing a defective sector, a mechanical seek operation is required to access the replacement sector or replacement track, causing a significant time delay in response to the host device and reducing throughput. There was a problem in that it decreased.

本発明の目的は、前記従来技術の問題点を解決し、交替
セクタあるいは交替トラックが、アクセスに時間のかか
る位置に割り当てられている場合にも、通常のエリアへ
のアクセスと同程度の時間で上位装置への応答を可能と
し、スループットを低下させることのないディスク制御
方式を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the problems of the prior art described above, and even when a replacement sector or a replacement track is assigned to a position that takes time to access, it can be accessed in the same amount of time as accessing a normal area. The object of the present invention is to provide a disk control method that enables response to a host device and does not reduce throughput.

〔課題を解決するための手段〕[Means to solve the problem]

本発明によれば、前記目的は、ディスク制御装置内に、
媒体上の欠陥箇所と同一のトラック内あるいは同一のシ
リンダ内に割り当てることができなかった交替セクタあ
るいは交替トラックのデータを記憶しておくメモリを備
える事により達成される。
According to the present invention, the object is to include, in the disk controller,
This is achieved by providing a memory that stores data of a replacement sector or track that could not be allocated within the same track or cylinder as the defective location on the medium.

〔作用〕 ディスク制御装置は、電源の投入あるいはディスク装置
のノットレディ状態からレディ状態への移行を契機とし
て、媒体上に書き込まれている欠陥セクタと交替セクタ
との対応あるいは欠陥トラックと交替トラックとの対応
を自制御装置内のメモリに読み込むとともに、媒体上の
欠陥箇所と同一のトラック内あるいは同一のシリンダ内
に割り当てることができなかった交替セクタあるいは交
替トラックのデータ、すなわち、アクセスに時間のかか
る位置に割り当てられている交替セクタあるいは交替ト
ラックのデータについて、予め、そのデータを読み取り
、自制御装置内のメモリに格納しておく。
[Operation] When the power is turned on or the disk device shifts from the not-ready state to the ready state, the disk control device determines the correspondence between defective sectors written on the medium and replacement sectors, or between defective tracks and replacement tracks. At the same time, data of the replacement sectors or tracks that could not be allocated in the same track or the same cylinder as the defective part on the medium, i.e., data that takes time to access, is read into the memory in the self-control device. The data of the spare sector or track assigned to the position is read in advance and stored in the memory within the self-control device.

これにより、ディスク制御装置は、上位装置から、交替
セクタが同一トラック内あるいは同一シリンダ内にない
欠陥セクタを含むエリア、あるいは、交替トラックが同
一シリンダ内にない欠陥トラックを含むエリアをアクセ
スするようなRead指示を受けた場合、実際には媒体
上の交替セクタあるいは交替トラックをアクセスするこ
となく、自制御装置内のメモリから指示されたデータを
読み出し、上位装置へこのデータを転送することができ
る。また、同様にWrite指示を受けた場合、ディス
ク制御装置は、前記メモリ内のデータを更新するのみで
、上位装置に対する応答を返すことができる。
This allows the disk control device to access from a host device an area containing a defective sector where the replacement sector is not in the same track or the same cylinder, or an area containing a defective track where the replacement track is not in the same cylinder. When a Read instruction is received, the designated data can be read from the memory within the self-control device and transferred to the host device without actually accessing a replacement sector or track on the medium. Further, when similarly receiving a write instruction, the disk control device can return a response to the host device simply by updating the data in the memory.

従って、本発明を用いることにより、システムのスルー
プットの向上を図ることが可能となる。
Therefore, by using the present invention, it is possible to improve the throughput of the system.

〔実施例〕〔Example〕

以下、本発明によるディスク制御方式の一実施例を図面
により詳細に説明する。
Hereinafter, one embodiment of the disk control method according to the present invention will be described in detail with reference to the drawings.

第1図は本発明が適用される磁気ディスクシステムの構
成を示すブロック図、第2図は磁気ディスク媒体上のト
ラックフォーマットを説明する図、第3図は磁気ディス
ク媒体上の欠陥セクタと交替セクタとの対応表を示す図
、第4図はWrite処理動作を説明するフローチャー
ト、第5図はRead処理動作を説明するフローチャー
トである。第1図、第2図において、11は磁気ディス
ク制御装置、12は交替セクタデータ格納用メモリ、1
3は磁気ディスク駆動装置、14は磁気ディスク媒体、
15は上位装置、16.17はバックアップ用バッテリ
電源、22.23は交替セクタである。
FIG. 1 is a block diagram showing the configuration of a magnetic disk system to which the present invention is applied, FIG. 2 is a diagram explaining the track format on the magnetic disk medium, and FIG. 3 is a diagram showing defective sectors and replacement sectors on the magnetic disk medium. FIG. 4 is a flowchart explaining the write processing operation, and FIG. 5 is a flowchart explaining the read processing operation. In FIGS. 1 and 2, 11 is a magnetic disk control device, 12 is a memory for storing alternate sector data, and 1
3 is a magnetic disk drive device; 14 is a magnetic disk medium;
15 is a host device, 16.17 is a backup battery power source, and 22.23 is a replacement sector.

第1図において、磁気ディスク制御装置11は、ホスト
コンピュータ等の上位装置15からの指令に基づき、磁
気ディスク駆動装置13を制御し、磁気ディスク媒体1
4をアクセスする。
In FIG. 1, a magnetic disk control device 11 controls a magnetic disk drive device 13 based on a command from a host computer or other host device 15, and controls a magnetic disk medium 1.
Access 4.

磁気ディスク制御装置11は、交替セクタデータ格納用
メモリ12を備えており、また、磁気ディスク制御装置
11及び磁気ディスク駆動装置13は、それぞれ、バッ
クアップ用バッテリ電源16.17を備え、電源断後も
、ある一定の時間動作可能とされている。
The magnetic disk control device 11 is equipped with a memory 12 for storing alternate sector data, and the magnetic disk control device 11 and the magnetic disk drive device 13 are each equipped with backup battery power sources 16 and 17, so that even after the power is cut off, , which can be operated for a certain period of time.

磁気ディスク媒体14上の各トラックは、第2図に示す
ように、セクタと呼ばれる情報記録・再生単位に分割さ
れており、トラック上の各セクタは、トラック上に欠陥
がない場合に、ユーザのデータが記録されるユーザセク
タ21と、ユーザセクタ21のいずれかに欠陥があった
場合に、その代替用に使用される交替セクタ22とに分
類される。通常、交替セクタ22は、各トラックに1個
または数個設けられており、これで各トラックの欠陥セ
クタを救済するに充分であるが、まれに、欠陥セクタの
数が準備されている交替セクタ22の数を上まわること
がある。この場合、磁気ディスク媒体14上の予め定め
られた位置に用意されている欠陥セクタがあるトラック
とは異なる他の交替セクタ用トラック上に、超過した分
の交替セクタ23が割り当てられる。
As shown in FIG. 2, each track on the magnetic disk medium 14 is divided into information recording/reproduction units called sectors. The sectors are classified into user sectors 21 in which data is recorded, and replacement sectors 22 which are used as a replacement if one of the user sectors 21 is defective. Normally, one or several replacement sectors 22 are provided on each track, and this is sufficient to relieve defective sectors on each track, but in rare cases, the number of replacement sectors 22 prepared is equal to the number of defective sectors. The number may exceed 22. In this case, the excess replacement sector 23 is allocated to a replacement sector track different from the track containing the defective sector prepared at a predetermined position on the magnetic disk medium 14.

磁気ディスク制御装置11内の交替セクタデータ格納用
メモリ12は、欠陥セクタのあるトラックと異なるトラ
ックに交替セクタが割り当てられた場合、その交替セク
タのデータを保持する。
The spare sector data storage memory 12 in the magnetic disk control device 11 holds the data of the spare sector when the spare sector is assigned to a track different from the track containing the defective sector.

欠陥セクタと認識されたユーザセクタ21と交替セクタ
22.23との対応は、磁気ディスク媒体14のフォー
マツティング時等に、例えば、第3図に示すような対応
表30として、磁気ディスク媒体14上に記録させて保
持されている。
The correspondence between the user sector 21 recognized as a defective sector and the replacement sector 22, 23 is determined when formatting the magnetic disk medium 14, for example, as a correspondence table 30 as shown in FIG. recorded and maintained.

磁気ディスク制御装置11は、電源投入時、あるいは、
磁気ディスク駆動装置13がノットレディ状態からレデ
ィ状態に変化したときに、磁気ディスク媒体14上に記
録されている前述の対応表30をよみとり、自制御装置
内のメモリに格納するとともに、欠陥セクタと同一のト
ラック上に割り当てることのできなかった対応する交替
セクタ23に′ついて、そのデータを磁気ディスク媒体
14から読み取り、自制鍵装置11内の交替セクタデー
タ格納用メモリ12に格納しておく。
The magnetic disk control device 11 is activated when the power is turned on or when
When the magnetic disk drive device 13 changes from the not-ready state to the ready state, it reads the above-mentioned correspondence table 30 recorded on the magnetic disk medium 14, stores it in the memory in the self-control device, and also identifies defective sectors. Regarding the corresponding replacement sector 23' that could not be allocated on the same track, the data is read from the magnetic disk medium 14 and stored in the replacement sector data storage memory 12 in the self-control key device 11.

前述の状態で、上位装置からアクセスがあれば、磁気デ
ィスク制御装置11は、磁気ディスク制御装置11内に
読み込まれた対応表30と、交替セクタデータ格納用メ
モリ12に読み込まれている、欠陥セクタと同一のトラ
ック上に割り当てることのできなかった対応する交替セ
クタ23のデータとを利用して、磁気ディスク駆動装置
13を制御し、上位装置15に対する応答を行う。
In the above-mentioned state, if there is an access from the host device, the magnetic disk control device 11 will check the correspondence table 30 read into the magnetic disk control device 11 and the defective sector read into the replacement sector data storage memory 12. The data of the corresponding spare sector 23 that could not be allocated on the same track is used to control the magnetic disk drive device 13 and respond to the host device 15.

以下、上位装置15からのアクセスに対する磁気ディス
ク制御装置11の動作を詳細に説明する。
The operation of the magnetic disk control device 11 in response to access from the host device 15 will be described in detail below.

まず、上位装置からWrij(3指示を受けた場合の処
理を第4図に示すフローにより説明する。
First, the processing when receiving the Wrij (3 instruction) from the host device will be explained with reference to the flow shown in FIG.

(1)、磁気ディスク制御装置11は、まず、上位装置
からWrite指示とWriteデータを受は取り、内
部のメモリに格納されている対応表30をサーチし、W
rite処理の対象範囲内に欠陥セクタがあるか否かを
調べる(ステップ41.42)。
(1) First, the magnetic disk control device 11 receives a write instruction and write data from the host device, searches the correspondence table 30 stored in the internal memory, and writes the W
It is checked whether there is a defective sector within the target range of the rite process (steps 41 and 42).

(2)、ステップ42の結果、欠陥のないセクタについ
ては、磁気ディスク媒体14上のユーザセクタ21へ、
欠陥のあるセクタについては、磁気ディスク媒体14上
の対応する交替セクタ22.23へ、上位装置15から
受は取ったデータを書き込む(ステップ43)。
(2) As a result of step 42, sectors with no defects are transferred to the user sector 21 on the magnetic disk medium 14;
For defective sectors, the data received from the host device 15 is written to the corresponding replacement sectors 22, 23 on the magnetic disk medium 14 (step 43).

(3)1次に、Write処理の対象範囲内に存在する
欠陥セクタで、対応する交替セクタが欠陥セクタのある
トラックとは異なるトラックに割り当てられているもの
があるか否かを調べ、その存無を判定する(ステップ4
4.45)。
(3) First, check whether there are any defective sectors existing within the write processing target range whose corresponding replacement sectors are assigned to a track different from the track where the defective sector is located, and Determine whether there is nothing (Step 4)
4.45).

(4)、ステップ45で、該当する欠陥セクタがあると
判定された場合、交替セクタデータ格納用メモリ12内
の対応する交替セクタデータを更新して処理を終了する
(ステップ46)。
(4) If it is determined in step 45 that there is a corresponding defective sector, the corresponding replacement sector data in the replacement sector data storage memory 12 is updated and the process ends (step 46).

(5)、ステップ45で、該当する欠陥セクタがないと
判定された場合、交替セクタデータ格納用メモリ12内
の対応する交替セクタデータを更新することなくそのま
ま処理を終了する。
(5) If it is determined in step 45 that there is no corresponding defective sector, the process is terminated without updating the corresponding replacement sector data in the replacement sector data storage memory 12.

前述したWrite指示を受けた場合の処理フローにお
いて、ステップ43で、欠陥セクタに対応する交替セク
タが、該欠陥セクタと同一のトラック上に割り当てられ
ていない場合にも、この交替セクタに他のセクタと同様
にデータの書き込みを行っているが、このような交替セ
クタについては、交替セクタデータ格納用メモリ12に
のみデータの書き込みを行い、実際の磁気ディスク媒体
14上へのデータの書き込みは、後刻、磁気ディスク制
御装置11及び磁気ディスク駆動装置13に実行ずべき
処理がなくなったときに行うようにしてもよい。このよ
うにすると、磁気ディスク制御装置11は、前述した交
替セクタをアクセスすることな(、上位装置15にWr
ite処理の終了の報告をすることができるので、Wr
ite処理のスループットを向上させることができる。
In the process flow when the above-mentioned Write instruction is received, in step 43, even if the replacement sector corresponding to the defective sector is not allocated on the same track as the defective sector, other sectors are allocated to this replacement sector. However, for such a replacement sector, data is written only to the replacement sector data storage memory 12, and data is actually written onto the magnetic disk medium 14 at a later time. , it may be performed when the magnetic disk control device 11 and the magnetic disk drive device 13 have no more processes to execute. In this way, the magnetic disk control device 11 can avoid accessing the above-mentioned replacement sector (and send the Wr.
It is possible to report the completion of ite processing, so Wr
It is possible to improve the throughput of ite processing.

また、この場合、磁気ディスク制御装置11及び磁気デ
ィスク駆動装置13内のバックアップ用バッテリ16.
17は、不要である。
In this case, the backup battery 16. in the magnetic disk control device 11 and the magnetic disk drive device 13.
17 is unnecessary.

また、磁気ディスク制御装置11及び磁気ディスク駆動
装置13にバックアップ用のバッテリ電源16.17を
備えれば、交替セクタデータ格納用メモリ12に格納さ
れている交替セクタデータを、磁気ディスク制御装置1
1あるいは磁気ディスク駆動装置13の電源断時に一括
して行うようにすることができる。
Furthermore, if the magnetic disk control device 11 and the magnetic disk drive device 13 are provided with backup battery power sources 16 and 17, the spare sector data stored in the spare sector data storage memory 12 can be transferred to the magnetic disk control device 11.
1 or all at once when the magnetic disk drive device 13 is powered off.

また、前記バックアップ用のバッテリ電源は、磁気ディ
スク制御装置11にのみ備え、磁気ディスク制御装置1
1が電源断中、交替セクタデータ格納用メモリ12内の
内容を保持するに足りる最小限の容量をもつものであっ
てもよい。この場合、磁気ディスク制御装置11の電源
断時も、交替セクタデータ格納用メモリ12内の内容を
保持することができるので、磁気ディスク制御装置11
の電源復旧時に、交替セクタデータ格納用メモリ12に
保持されているデータを、磁気ディスク媒体14上の交
替セクタに書き込むことができる。
Further, the backup battery power source is provided only in the magnetic disk control device 11, and the backup battery power source is provided only in the magnetic disk control device 11.
1 may have a minimum capacity sufficient to hold the contents of the spare sector data storage memory 12 during power-off. In this case, even when the magnetic disk controller 11 is powered off, the contents of the spare sector data storage memory 12 can be retained, so the magnetic disk controller 11
When the power is restored, the data held in the spare sector data storage memory 12 can be written to the spare sector on the magnetic disk medium 14.

次に、上位装置からRead指示を受けた場合の処理を
第5図に示すフローにより説明する。
Next, processing when a Read instruction is received from a host device will be explained using the flow shown in FIG.

fl)、[気ディスク制御装置11は、まず、上位装置
からRead指示を受は取ると、内部のメモリに格納さ
れている対応表30をサーチし、Read処理の対象範
囲内に欠陥セクタがあるか否かを調べる(ステップ51
)。
fl), [When the disk control device 11 first receives a Read instruction from the host device, it searches the correspondence table 30 stored in the internal memory and determines whether there is a defective sector within the target range of the Read process. (Step 51)
).

(2)、ステップ51の結果、欠陥のないセクタについ
ては、磁気ディスク媒体14上のユーザセクタ21から
データを読み取り、欠陥のあるセクタであっても、対応
する交替セクタが同一のトラック上に割り当てられてい
れば、その交替セクタ22からデータを読み取る(ステ
ップ52)。
(2) As a result of step 51, data is read from the user sector 21 on the magnetic disk medium 14 for non-defective sectors, and even for defective sectors, corresponding replacement sectors are allocated on the same track. If so, data is read from that replacement sector 22 (step 52).

(3)0次に、Read処理対象範囲内に存在する欠陥
セクタで、対応する交替セクタが欠陥セクタと同一のI
・ラック上に割り当てられていないも゛のがあるか否か
を調べ、該当する欠陥セクタがあるか否かを判定する(
ステップ53.54)。
(3) Next, in the defective sector existing within the Read processing target range, the corresponding replacement sector is the same as the defective sector.
・Check whether there are any unallocated sectors on the rack and determine whether there are any corresponding defective sectors (
Steps 53.54).

(4)、ステップ54で、8亥当する欠陥セクタ力くな
いと判定された場合、読み取ったデータを上位装置15
に転送して処理を終了する(ステップ55)。
(4) If it is determined in step 54 that there are no defective sectors, the read data is transferred to the host device 15.
and the process ends (step 55).

(5)、ステップ54で、該当する欠陥セクタが存在す
ると判定された場合、該当する欠陥セクタについては、
磁気ディスク媒体14上の対応する交替セクタをアクセ
スすることなく、磁気ディスク制御装置11内の交替セ
クタデータ格納用メモリ12内に保持されている対応す
る交替セクタデータを読み出し、このデータをステップ
52で読み取ったデータと共に上位装置15に転送して
処理を終了する(ステップ56)。
(5) If it is determined in step 54 that the corresponding defective sector exists, for the corresponding defective sector,
The corresponding spare sector data held in the spare sector data storage memory 12 in the magnetic disk controller 11 is read out without accessing the corresponding spare sector on the magnetic disk medium 14, and this data is stored in step 52. It is transferred together with the read data to the host device 15, and the process ends (step 56).

前述した本発明の実施例は、トラック毎に欠陥セクタに
対応する交替セクタを備え、各トラック上の交替セクタ
の数を越える欠陥セクタが発生した場合に、超過した分
の欠陥セクタについて、そのセクタに対応する交替セク
タを磁気ディスク媒体14上の別のエリアに割り当てる
方式に本発明を適用したものであるが、本発明は、シリ
ンダを単位として交替セクタを備え、各シリンダ上の交
替セクタの数を越える欠陥セクタが、そのシリンダ内に
発生している場合に、超過した分の欠陥セクタについて
、対応する交替セクタを磁気ディスク媒体14の他のエ
リアに割り当てる方式にも、同様に適用することができ
る。
In the embodiment of the present invention described above, each track is provided with a replacement sector corresponding to a defective sector, and when the number of defective sectors exceeding the number of replacement sectors on each track occurs, the excess number of defective sectors is replaced with that sector. The present invention is applied to a method in which spare sectors corresponding to The present invention can be similarly applied to a method of allocating corresponding replacement sectors to other areas of the magnetic disk medium 14 for the excess number of defective sectors when more than 100 defective sectors occur in that cylinder. can.

前述した本発明の実施例において、磁気ディスク制御装
置11が、複数の磁気ディスク駆動装置13を制御する
場合、交替セクタデータ格納用メモリ12は、磁気ディ
スク駆動装置13のそれぞれに対応する領域を備えて構
成される。
In the embodiment of the present invention described above, when the magnetic disk control device 11 controls a plurality of magnetic disk drive devices 13, the alternate sector data storage memory 12 includes an area corresponding to each of the magnetic disk drive devices 13. It consists of

前述した本発明の実施例によれば、欠陥セクタに対する
交替セクタが、磁気ディスク媒体上のどのようなエリア
に割り当てられている場合にも、磁気ディスク制御装置
11は、磁気ディスク駆動装置13に1度のシーク動作
を行わせるだけで、アクセス処理を終了することができ
、短時間で上〔発明の効果〕 以上説明したように、本発明によれば、磁気ディスク制
御装置が上位装置から欠陥セクタを含むエリアのRea
d指示を受けたとき、その欠陥セクタに対応する交替セ
クタが当該欠陥セクタ同一トラック内あるいは同一シリ
ンダ内に存在しない場合にも、交替セクタへのメカニカ
ルなシーク動作を再度実行しないですみ、上位装置への
データ転送を遅延なく速やかに行うことができる。
According to the embodiment of the present invention described above, no matter what area on the magnetic disk medium a replacement sector for a defective sector is allocated, the magnetic disk control device 11 causes the magnetic disk drive device 13 to [Effects of the Invention] As explained above, according to the present invention, the magnetic disk control device receives the defective sector from the host device in a short time. Rea of the area containing
When the d instruction is received, even if the replacement sector corresponding to the defective sector does not exist in the same track or the same cylinder as the defective sector, the host device does not have to perform the mechanical seek operation to the replacement sector again. Data can be transferred quickly and without delay.

また、磁気ディスク制御装置が上位装置から欠陥セクタ
を含むエリアのWrii6指示を受けたとき、その欠陥
セクタに対応する交替セクタが当該欠陥セクタ同一トラ
ック内あるいは同一シリンダ内に存在しない場合、磁気
ディスク媒体上の当該交替セクタについては、上位装置
へ応答を返した後に、データを書き込むことができるの
で、上位装置への応答に遅延を生じさせることがなくな
る。
In addition, when the magnetic disk control device receives a Wrii6 instruction for an area including a defective sector from a host device, if a replacement sector corresponding to the defective sector does not exist in the same track or cylinder as the defective sector, the magnetic disk Data can be written to the above replacement sector after a response is returned to the higher-level device, so there is no delay in responding to the higher-level device.

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

第1図は本発明が適用される磁気ディスクシステムの構
成を示すブロック図、第2図は磁気ディスク媒体上のト
ラックフォーマットを説明する図、第3図は磁気ディス
ク媒体上の欠陥セクタと交替セクタとの対応表を示す図
、第4図はWrite処理動作を説明するフローチャー
ト、第5図はRead処理動作を説明するフローチャー
トである。 11・・・・・・磁気ディスク制御装置、12・・・・
・・交替セクタデータ格納用メモリ、13・・・・・・
磁気ディスク駆動装置、14・・・・・・磁気ディスク
媒体、15・・・・・・上位装置、16.17・・・・
・・バックアップ用バッテリ電源、22.23・・・・
・・交替セクタ。 第2図 第3図
FIG. 1 is a block diagram showing the configuration of a magnetic disk system to which the present invention is applied, FIG. 2 is a diagram explaining the track format on the magnetic disk medium, and FIG. 3 is a diagram showing defective sectors and replacement sectors on the magnetic disk medium. FIG. 4 is a flowchart explaining the write processing operation, and FIG. 5 is a flowchart explaining the read processing operation. 11...Magnetic disk control device, 12...
...Memory for storing alternate sector data, 13...
Magnetic disk drive device, 14...Magnetic disk medium, 15...Host device, 16.17...
・・Backup battery power supply, 22.23・・・・
...Replacement sector. Figure 2 Figure 3

Claims (1)

【特許請求の範囲】 1、媒体上の欠陥セクタに対応して、該媒体上の他の良
好な箇所に交替セクタを割り当てるディスク制御方式に
おいて、前記欠陥セクタと同一のトラックあるいは同一
のシリンダ内に割り当てることができなかつた前記欠陥
セクタに対応する交替セクタのデータを格納するメモリ
を、前記ディスク制御装置内に備え、上位装置より、欠
陥セクタを含むエリアに対するRead指示があつたと
き、該欠陥セクタに対応する交替セクタが、該欠陥セク
タと同一のトラック内、あるいは、同一のシリンダ内に
存在しないならば、前記媒体上の該交替セクタをアクセ
スすることなく、該交替セクタについては、前記メモリ
内の対応位置のデータを読み出して、上位装置へ転送す
ることを特徴とするディスク制御方式。 2、媒体上の欠陥セクタに対応して、該媒体上の他の良
好な箇所に交替セクタを割り当てるディスク制御方式に
おいて、前記欠陥セクタと同一のトラックあるいは同一
のシリンダ内に割り当てることができなかつた前記欠陥
セクタに対応する交替セクタのデータを格納するメモリ
を、前記ディスク制御装置内に備え、上位装置より、欠
陥セクタを含むエリアに対するWrite指示があつた
とき、該欠陥セクタに対応する交替セクタが、該欠陥セ
クタと同一のトラック内、あるいは、同一のシリンダ内
に存在しないならば、前記媒体上の交替セクタへのデー
タの書き込みを行うことなく、該交替セクタについては
、前記メモリ内の対応位置のデータの更新を行うのみで
、上位装置へ応答を返すことを特徴とするディスク制御
方式。 3、前記媒体上の交替セクタへのデータの書き込みを行
わなかつた交替セクタへのデータの書き込みを、前記メ
モリ内のデータをもとに、後刻行うことを特徴とする特
許請求の範囲第2項記載のディスク制御方式。 4、前記媒体上の交替セクタへのデータの書き込みを行
わなかつた交替セクタへのデータの書き込みを、ディス
ク制御装置及びディスク駆動装置にバックアップ用のバ
ッテリ電源を備えることにより、前記メモリ内のデータ
をもとに、前記ディスク制御装置の電源断時あるいは前
記ディスク駆動装置の電源断時に行うことを特徴とする
特許請求の範囲第2項記載のディスク制御方式。 5、前記媒体上の交替セクタへのデータの書き込みを行
わなかつた交替セクタへのデータの書き込みを、ディス
ク制御装置に前記メモリの内容を保持させるバックアッ
プ用のバッテリ電源を備えることにより、前記メモリ内
のデータをもとに、前記ディスク制御装置の電源復旧後
に行うことを特徴とする特許請求の範囲第2項記載のデ
ィスク制御方式。
[Claims] 1. In a disk control method that allocates a replacement sector to another good location on the medium in response to a defective sector on the medium, a replacement sector may be placed on the same track or in the same cylinder as the defective sector. A memory for storing data of a replacement sector corresponding to the defective sector that could not be allocated is provided in the disk control device, and when a read instruction for an area including a defective sector is received from a higher-level device, the data of a replacement sector corresponding to the defective sector that could not be allocated is stored. If a replacement sector corresponding to the defective sector does not exist in the same track or in the same cylinder as the defective sector, the replacement sector is not accessed in the memory without accessing the replacement sector on the medium. A disk control method characterized by reading data at a corresponding location and transferring it to a host device. 2. In a disk control method that allocates a replacement sector to another good location on the medium in response to a defective sector on the medium, it is not possible to allocate a replacement sector to the same track or the same cylinder as the defective sector. A memory for storing data of a replacement sector corresponding to the defective sector is provided in the disk control device, and when a write instruction is received from a host device to an area including the defective sector, the replacement sector corresponding to the defective sector is stored. , if the defective sector does not exist in the same track or in the same cylinder, the replacement sector is written to the corresponding location in the memory without writing data to the replacement sector on the medium. A disk control method that is characterized by returning a response to the host device only by updating data. 3. Writing data to the spare sector on the medium where data has not been written to the spare sector is performed at a later time based on the data in the memory. Disk control method described. 4. By providing a backup battery power source in the disk control device and the disk drive, the data in the memory can be written to a spare sector in which data has not been written to a spare sector on the medium. 3. The disk control method according to claim 2, wherein the disk control method is performed when the disk control device is powered off or when the disk drive device is powered off. 5. By providing a backup battery power source that causes the disk control device to retain the contents of the memory, it is possible to prevent data from being written to a spare sector on the medium where data has not been written to the spare sector. 3. The disk control method according to claim 2, wherein the disk control method is performed based on the data after power restoration of the disk control device.
JP26524788A 1988-10-22 1988-10-22 Disk control system Pending JPH02113467A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26524788A JPH02113467A (en) 1988-10-22 1988-10-22 Disk control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26524788A JPH02113467A (en) 1988-10-22 1988-10-22 Disk control system

Publications (1)

Publication Number Publication Date
JPH02113467A true JPH02113467A (en) 1990-04-25

Family

ID=17414576

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26524788A Pending JPH02113467A (en) 1988-10-22 1988-10-22 Disk control system

Country Status (1)

Country Link
JP (1) JPH02113467A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH087485A (en) * 1994-06-14 1996-01-12 Nec Gumma Ltd Optical disk controller
JPH1049312A (en) * 1996-07-29 1998-02-20 Shikoku Nippon Denki Software Kk Magnetic disk drive
JPH10143329A (en) * 1996-11-06 1998-05-29 Nec Ibaraki Ltd Magnetic disk control device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH087485A (en) * 1994-06-14 1996-01-12 Nec Gumma Ltd Optical disk controller
JPH1049312A (en) * 1996-07-29 1998-02-20 Shikoku Nippon Denki Software Kk Magnetic disk drive
JPH10143329A (en) * 1996-11-06 1998-05-29 Nec Ibaraki Ltd Magnetic disk control device

Similar Documents

Publication Publication Date Title
US6360232B1 (en) Disaster recovery method for a removable media library
US6513135B2 (en) Automatic read reassignment method and a magnetic disk drive
JP3137346B2 (en) Flexible magnetic disk drive
JPH06131233A (en) Access method and library device for multi-file type storage medium
US5546556A (en) Disk storage system have a defect map of the disk stored in a memory which is different from the disk
JPH02281474A (en) Auto changer device for storage medium
US5025432A (en) Autochanger of writable discs including a non-volatile memory for storing most recent defect management information relating to the writable discs
US6393580B1 (en) Automatic read reassignment method and a magnetic disk drive
JPH02113467A (en) Disk control system
JPH0520196A (en) Disk cache controller
JPH0644118A (en) File backup system
JP2752750B2 (en) Auto changer
JP2005316697A (en) Disk array system and method for data backup
JPH1049312A (en) Magnetic disk drive
CN100367369C (en) Method for destroying data access on CD
JPH04162127A (en) Magnetic disk storage device
JPS629444A (en) Copy and inspection control method between floppy medias of computer system
JPH0514353Y2 (en)
JPH05101545A (en) Magnetic disk controller
JP3183253B2 (en) Dynamic capacity increase method and dynamic capacity increase method for disk device
JPH06290547A (en) High-speed data transferring method
JPH06250927A (en) Storage device
JPH06180635A (en) Alternate sector processing method
JPH05250105A (en) Information processor
JPH04341977A (en) Data reproducing control system