JPH01251372A - Magnetic disk control device - Google Patents

Magnetic disk control device

Info

Publication number
JPH01251372A
JPH01251372A JP7694388A JP7694388A JPH01251372A JP H01251372 A JPH01251372 A JP H01251372A JP 7694388 A JP7694388 A JP 7694388A JP 7694388 A JP7694388 A JP 7694388A JP H01251372 A JPH01251372 A JP H01251372A
Authority
JP
Japan
Prior art keywords
alternate
defective
data
alternative
track
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
JP7694388A
Other languages
Japanese (ja)
Inventor
Koji Kato
浩二 加藤
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 JP7694388A priority Critical patent/JPH01251372A/en
Publication of JPH01251372A publication Critical patent/JPH01251372A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To facilitate a regular maintenance work by securing an alternate area on a disk, rereading a defective part when this defective part is generated and processing alternately the alternate area. CONSTITUTION:The subject device is provided with a work register 3 for holding a defective address, a work resister 1 for holding an alternate address, a flag 2 for indicating internally the occurrence of an error and a data buffer (in HDC) 4 to be used for carrying out a data copy at the alternate time. Then, based on an error at the time of drive access, the defective part is reread without any instruction from a host, and these data are stored in the data buffer 4, while a using part in the alternate area on the disk is automatically formatted. Then, this alternate part possesses a write mechanism for the data stored temporarily in the data buffer 4, which is equipped with a real time automatic alternate processing function in such a way that the format of the alternate part is automatically performed at the time of generating the defective part, such as a defective track, etc., and a write process of the temporarily stored data is performed in this alternate part. By this method, the working operation in regular maintenance, etc., can thus be facilitated.

Description

【発明の詳細な説明】 [発明の目的コ (産業上の利用分野) 本発明は、欠陥トラック等の欠陥部の発生時に、ホスト
側からの命令なしに欠陥部のデータを再リードし一時保
存して、自動的に代替部のフォーマットを行ない、その
代替部に上記−時保存したデータを書込み処理する、リ
アルタイム自動代替処理機能をもつ磁気ディスク制御装
置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Purpose of the Invention (Industrial Application Field) The present invention is capable of re-reading and temporarily storing data in the defective part without a command from the host side when a defective part such as a defective track occurs. The present invention relates to a magnetic disk control device having a real-time automatic substitute processing function, which automatically formats a substitute section and writes the data stored at the above-mentioned time to the substitute section.

(従来の技術) 情報処理システムに用いられる磁気ディスク装置に於い
て、従来、使用中に新たな欠陥トラックが発生すると、
その時点でリトライ処理又は他のエラー回復処理を行な
っているが、その欠陥トラックについては、その後の定
期保守時等に於いて、人為的に、独立したテストプログ
ラムなどで別の正常なトラックに割当てる処理(代替ト
ラック処理)作業を行なっていた。このため、従来では
、定期保守の際の作業が増加し、作業性が悪かった。
(Prior Art) Conventionally, when a new defective track occurs during use in a magnetic disk device used in an information processing system,
At that point, retry processing or other error recovery processing is being performed, but the defective track will be artificially assigned to another normal track using an independent test program during subsequent periodic maintenance, etc. Processing (alternative truck processing) work was being carried out. For this reason, in the past, the work required during periodic maintenance increased, resulting in poor workability.

(発明が解決しようとする課題) 上述したように、従来では、使用中に新たな欠陥トラッ
クが発生すると、その欠陥トラックについて、その後の
定期保守の際に、独立したテストプログラムなどで別の
正常なトラックに割当てる代替トラック処理を行なって
いたため1、定期′保守の際の作業性が悪いという問題
があった。
(Problem to be Solved by the Invention) As described above, conventionally, when a new defective track occurs during use, the defective track is checked by an independent test program or the like during subsequent periodic maintenance. 1, there was a problem that workability during periodic maintenance was poor because alternative track processing was performed to allocate to a different track.

本発明は上記実情に鑑みなされたもので、磁気ディスク
保守の自動化を目指し、ディスクコントローラ(HDC
)のファームウェア(F W)にリアルタイムの自動代
替処理(代替トラック処理。
The present invention was made in view of the above circumstances, and aims to automate magnetic disk maintenance.
) real-time automatic alternative processing (alternative track processing) in firmware (FW).

又は代替セクタ処理等)をさせるようにして、定期保守
作業の煩雑さを減らし、定期保守作業を能率よく円滑に
行なうことのできるようにした磁気ディスク制御装置を
提供することを目的とする。
It is an object of the present invention to provide a magnetic disk control device that can reduce the complexity of periodic maintenance work and perform periodic maintenance work efficiently and smoothly.

[発明の構成] (課題を解決するための手段及び作用)本発明は、ディ
スク上に代替エリアを確保し、内部に、ドライブアクセ
ス時に欠陥部が発生したとき同欠陥部を再リードし上記
ディスク上の代替エリアに代替処理を行なう手段を有し
てなる磁気ディスク制御装置であって、磁気ディスク制
御装置内部に、デイフェクティブアドレス(DADR)
を保持するワークレジスタと、代替アドレス(PALT
)を保持するワークレジスタと、エラーの発生を内部表
示するフラグ(EALTフラグ)と、代替時にデータコ
ピーを行なうために使用するデータバッファと、ドライ
ブアクセス時のエラーにもとづいて、ホストからの命令
なしに欠陥部を再リードし、同データを上記データバッ
ファに貯えるとともに、自動的に上記ディスク上の代替
エリア内使用部をフォーマット処理し、同代替部に上記
データバッファに一時保存したデータをライトする機構
をもち、欠陥トラック等の欠陥部の発生時に1、ホスト
側からの命令なしに欠陥部のデータを再リードし一時保
存して、自動的に代替部のフォーマットを行ない、その
代替部に上記−時保存したデータを書込み処理する、リ
アルタイムの自動代替処理機能を備えた構成としたもの
で、これによりデイフェクティブトラックに対する処理
が自動化され、定期保守等のメンテナンス時に於ける作
業が容易化される。
[Structure of the Invention] (Means and Effects for Solving the Problems) The present invention secures an alternative area on the disk, and when a defective area occurs internally during drive access, the defective area is re-read and the disk is re-read. A magnetic disk control device having means for performing alternative processing in the above alternative area, the magnetic disk control device having a defective address (DADR) inside the magnetic disk control device.
and a work register that holds the alternate address (PALT
), a flag (EALT flag) that internally indicates the occurrence of an error, a data buffer used to copy data during substitution, and a command from the host based on an error during drive access. re-reads the defective part and stores the same data in the data buffer, automatically formats the used part in the alternative area on the disk, and writes the data temporarily saved in the data buffer to the substitute part. When a defective part such as a defective track occurs, 1. The data in the defective part is re-read and temporarily saved without any command from the host side, and a replacement part is automatically formatted, and the above data is written to the replacement part. - The configuration is equipped with a real-time automatic alternative processing function that writes and processes saved data, which automates processing for defective tracks and facilitates maintenance work such as periodic maintenance. .

(実施例) 以下図面を参照して本発明の一実施例を説明する。(Example) An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

図中、1乃至4はそれぞれ磁気ディスク装置(HDC)
の内部構成要素であり、l、2,34よそれぞれファー
ムウェア上のレジスタである。このうち、■は次に使用
する代替トラックのアドレス(PALT)を保持するワ
ークレジスタであり、以下PALTレジスタと称す。2
は代替エリアが一杯になった場合等のエラー状態を内部
表示するエラーフラグであり、以下EALTフラグと称
す。
In the figure, 1 to 4 are magnetic disk drives (HDC), respectively.
1, 2, and 34 are registers on the firmware. Among these, ① is a work register that holds the address (PALT) of the next alternative track to be used, and is hereinafter referred to as the PALT register. 2
is an error flag that internally displays an error state such as when the alternative area is full, and is hereinafter referred to as the EALT flag.

3は実際のドライブアクセス時(リード/ライト時)に
エラーが発生したとき、そのアドレスを保持するワーク
レジスタであり、以下DADRレジスタと称す。4はデ
ィスク(D I S K)のリード/ライト時に使用す
るデータバッファであり、ここでは代替処理の際にも使
用され、サイズは1セクタ以上の所定の容量をもつ。又
、5はディスク(DISK)の内周側に設けられた代替
トラックエリアである。
A work register 3 holds the address when an error occurs during actual drive access (read/write), and is hereinafter referred to as the DADR register. Reference numeral 4 denotes a data buffer used when reading/writing a disk (DISK), which is also used during alternative processing, and has a predetermined capacity of one sector or more. Further, 5 is an alternative track area provided on the inner circumferential side of the disk (DISK).

第2図(a)乃至(c)は上記実施例に於ける磁気ディ
スク装置(HDC)内のファームウェア(FW)により
実現されたリアルタイム自動代替処理ルーチン、を示す
フローチャートである。
FIGS. 2(a) to 2(c) are flowcharts showing a real-time automatic substitution processing routine realized by firmware (FW) in the magnetic disk drive (HDC) in the above embodiment.

ここで、上記第1図及び第2図を参照して上記実施例の
動作を説明する。
Here, the operation of the above embodiment will be explained with reference to FIGS. 1 and 2.

ここでの動作は、磁気ディスク制御装置(IDC)の電
源投入時と、実際のドライブアクセス時とに分れる。
The operation here is divided into the time when the magnetic disk controller (IDC) is powered on and the time when the drive is actually accessed.

電源投入時に於いては、制御対象となるドライブのディ
スク(DISK)に対し、代替エリアのチエツクを行な
う。ここでの最低限のチエツクは、利用可能な代替トラ
ックの先頭アドレス(PALT)を得ることである(第
2図(a)ステップSl)。
When the power is turned on, an alternative area is checked for the disk of the drive to be controlled. The minimum check here is to obtain the start address (PALT) of an available alternative track (step Sl in FIG. 2(a)).

また、上記代替トラック先頭アドレス (PALT)のチエツクの際に、何らかの不具合(代替
トラックが一杯になった場合等)はEALTフラグ2を
セットする(第2図(a)ステップS2)。
Further, when checking the alternative track start address (PALT), if there is any problem (such as when the alternative track is full), the EALT flag 2 is set (step S2 in FIG. 2(a)).

一方、実際のディスクアクセスに於いては、先ず通常の
リード動作(又はライト動作)を行なう(第2図(c)
ステップS 14)。
On the other hand, in actual disk access, a normal read operation (or write operation) is first performed (Fig. 2(c)).
Step S14).

ディスクアクセス中にエラーが発生したとき、そのエラ
ーがディスクのメディアに起因するエラーか否かを判別
し、ここで、ディスクのメディアに起因するエラーであ
れば、代替処理が必要なので、そのアドレスをDADR
レジスタ3に保持する(第2図(c)ステップS 15
. S 1B)。
When an error occurs during disk access, it is determined whether the error is caused by the disk media or not. If the error is caused by the disk media, alternative processing is required, so the address is D.A.D.R.
Hold in register 3 (Fig. 2(c) step S15)
.. S1B).

又、メディアに起因するエラーの場合は、ECC修正可
能なエラーやりトライで救われたエラーについてのみ、
当該コマンドが終了した直後に自動代替処理を行なう(
第2図(c)ステップSL7,817〜823)。
In addition, in the case of errors caused by the media, only errors that can be corrected using ECC and are saved by trying
Perform automatic substitution processing immediately after the command finishes (
FIG. 2(c) Step SL7, 817-823).

また、メディアに起因するエラーで、かつリライトでも
データを読み出せなかった場合に、エラー終了の直後に
ホストから代替処理を指示する命令が来たときには、リ
トライ成功の場合と同様の代替処理を行なう(第2図(
b)ステップSLl〜513)。
Additionally, in the case of an error caused by the media and the data cannot be read even after rewriting, if a command to instruct alternative processing is received from the host immediately after the error ends, the same alternative processing as in the case of a successful retry is performed. (Figure 2 (
b) Step SL1~513).

代替処理については、磁気ディスク制御装置(IDC)
内部のデータバッファ4を介して行なう。この代替処理
は、代替トラック処理の場合と代替セクター処理の場合
とがあるが、基本動作はいずれも同様である。
For alternative processing, the magnetic disk controller (IDC)
This is done via the internal data buffer 4. This alternative processing includes alternative track processing and alternative sector processing, but the basic operation is the same in both cases.

代替処理に際しては、EALTフラグ2、及びDADR
レジスタ3の内容からディスクのメディアに起因するエ
ラーであるか否かが判断される(第2図(c)ステップ
818)。
For alternative processing, EALT flag 2 and DADR
From the contents of register 3, it is determined whether the error is caused by the disk medium (step 818 in FIG. 2(c)).

この際、上記EALTフラグ2のチエツクで何らかのエ
ラーがあれば、代替処理を行なわない。
At this time, if there is any error in checking the EALT flag 2, no alternative processing is performed.

但し、このときはホストに対して如何なるエラーステー
タスも報告しない。
However, at this time, no error status is reported to the host.

又、ディスクのメディアに起因するエラーであるとき(
即ち上記DADRレジスタ8にデイフェクティブアドレ
スがセットされていて、かつ上記EALTフラグ2のチ
エツクでエラーが無いとき)は、先ず、既に保持しであ
る欠陥部のデータを再度データバッファ4に読み出す(
第2図<C>ステップS 19)。
Also, if the error is caused by the disc media (
That is, when the defective address is set in the DADR register 8 and there is no error in checking the EALT flag 2), first, the data of the defective part that is already held is read out again to the data buffer 4 (
FIG. 2 <C> Step S19).

次に、代替トラックとすべき、PALTレジスタ1が示
すアドレスのトラックのチエツクを行なう。この際、既
に使用中であったり、欠陥トラックであった場合は、P
ALTレジスタ■のアドレス値(PALT)を更新し、
その更新アドレスに従う次のトラックに対して同様のチ
エツクを行なう(第2図(c)ステップ520)。
Next, the track at the address indicated by the PALT register 1, which should be used as an alternative track, is checked. At this time, if the track is already in use or defective, please
Update the address value (PALT) of the ALT register ■,
A similar check is performed for the next track according to the updated address (step 520 in FIG. 2(c)).

又、トラックが正常ならば、代替トラックとしてフォー
マットする。このときデータバッファ4のデータも同様
にライトする(第2図(C)ステップ521)。
If the track is normal, it is formatted as an alternative track. At this time, the data in the data buffer 4 is also written in the same way (step 521 in FIG. 2(C)).

次に欠陥のある元のトラックを“欠陥トラック2として
フォーマットし、代替トラックとリンクする。すなわち
、欠陥トラックに代替トラックのリンク情報を入れる(
第2図(C)ステップ522)。
Next, format the defective original track as "defective track 2" and link it with the replacement track. In other words, put the link information of the replacement track in the defective track (
FIG. 2(C) step 522).

最後に必要ならばベリフィケーションを行なって終了と
する(第2図(C)ステップ823)。
Finally, if necessary, verification is performed and the process ends (step 823 in FIG. 2(C)).

他の実施例としては、上記第2図(c)ステップS19
の処理で1度リードできたデータが再度リードできる保
証はないので、実際の(ホストからの)ドライブアクセ
ス中にエラーが発生した時点で同図(C)ステップ81
8〜523)の処理を行な、  う必要がある場合も考
えられる。
As another embodiment, step S19 in FIG. 2(c) above
Since there is no guarantee that data that has been read once can be read again in the above process, if an error occurs during actual drive access (from the host), step 81 (C) in the same figure is executed.
8 to 523) may need to be performed.

又は、上記第2図(C)ステップS22の処理を行なう
前に、代替トラックのベリフィケーションを行なう必要
もある。
Alternatively, it is also necessary to verify the alternative track before performing the process of step S22 in FIG. 2(C) above.

上記したような代替トラック処理により、ドライブのデ
イフェクティブに対する処理が自動化されるので、保守
の手間が省かれる。又、ホストから見えるエラーの回数
が減ることがあるので信頼性が上がる。また、開発コス
トは極く僅かで済むことから実用化が容易である。
The above-described alternative track process automates the process for defective drives, thereby saving maintenance effort. Additionally, reliability is increased because the number of errors visible to the host may be reduced. In addition, the development cost is extremely low, so it is easy to put it into practical use.

以上は代替トラック処理について述べてきたが、代替セ
クター処理についても同様にして自動化ができる。
Alternative track processing has been described above, but alternative sector processing can also be automated in the same manner.

[発明の効果] 以上詳記したように本発明の磁気ディスク制御装置によ
れば、ディスク上に代替エリアを確保し、内部に、ドラ
イブアクセス時に欠陥部が発生したとき、同欠陥部を再
リードし上記代替エリアに代替処理を行なう手段を有し
て、欠陥トラック等の欠陥部の発生時に、ホスト側から
の命令なしに欠陥部のデータを再リードし一時保存して
、自動的に代替部のフォーマットを行ない、その代替部
に上記−時保存したデータを書込み処理する、リアルタ
イムの自動代替処理機能を備えた構成としたことにより
、デイフェクティブトラックに対する処理が自動化され
、定期保守等のメンテナンス時に於ける作業を容易化で
きる。
[Effects of the Invention] As detailed above, according to the magnetic disk control device of the present invention, an alternative area is secured on the disk, and when a defective area occurs internally during drive access, the defective area can be re-read. The above-mentioned alternative area has a means for performing alternative processing, so that when a defective area such as a defective track occurs, the data of the defective area is re-read and temporarily saved without any command from the host side, and the data is automatically transferred to the alternative area. The configuration is equipped with a real-time automatic alternative processing function that formats the data and writes the data saved in the above-mentioned time to the alternative section, thereby automating the processing of defective tracks and making it easier to perform maintenance operations such as regular maintenance. It can make the work easier.

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

第1図は本発明の一実施例を示すブロック図、第2図は
上記実施例の処理フローを示すフローチャートである。 1・・・PALTレジスタ(次に使用する代替トラック
のアドレスを保持するワークレジスタ)、2・・・EA
LTフラグ(エラー状態を内部表示するエラーフラグ)
、3・・・DADRレジスタ(ドライブアクセス時のエ
ラー発生トラックのアドレスを保持す°るワークレジス
タ)、4・・・データバッファ、5・・・ディスク(D
ISK)内の代替トラックエリア。 出願人代理人 弁理士 鈴江武彦 1−IDc内データバッファ 第1図
FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG. 2 is a flowchart showing the processing flow of the above embodiment. 1...PALT register (work register that holds the address of the next alternative track to be used), 2...EA
LT flag (error flag that internally displays error status)
, 3... DADR register (work register that holds the address of the track where the error occurred during drive access), 4... data buffer, 5... disk (D
Alternative track area within ISK). Applicant's representative Patent attorney Takehiko Suzue 1-IDc data buffer Figure 1

Claims (1)

【特許請求の範囲】[Claims] ディスク上に代替エリアを確保し、内部に、ドライブア
クセス時に欠陥部が発生したとき、同欠陥部を再リード
し上記代替エリアに代替処理を行なう手段を有してなる
磁気ディスク制御装置。
A magnetic disk control device comprising means for securing an alternative area on a disk, and re-reading the defective area when a defective area occurs therein during drive access and performing alternative processing in the alternative area.
JP7694388A 1988-03-30 1988-03-30 Magnetic disk control device Pending JPH01251372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7694388A JPH01251372A (en) 1988-03-30 1988-03-30 Magnetic disk control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7694388A JPH01251372A (en) 1988-03-30 1988-03-30 Magnetic disk control device

Publications (1)

Publication Number Publication Date
JPH01251372A true JPH01251372A (en) 1989-10-06

Family

ID=13619829

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7694388A Pending JPH01251372A (en) 1988-03-30 1988-03-30 Magnetic disk control device

Country Status (1)

Country Link
JP (1) JPH01251372A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08329625A (en) * 1995-05-30 1996-12-13 Hokkaido Nippon Denki Software Kk Alternate processing method in disk storage device and disk storage device
US6341085B1 (en) 1991-11-26 2002-01-22 Hitachi, Ltd. Storage device employing a flash memory
US6347051B2 (en) 1991-11-26 2002-02-12 Hitachi, Ltd. Storage device employing a flash memory

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7002851B2 (en) 1991-11-26 2006-02-21 Renesas Technology Corp. Storage device employing a flash memory
US7064995B2 (en) 1991-11-26 2006-06-20 Renesas Technology Corp. Storage device employing a flash memory
US6347051B2 (en) 1991-11-26 2002-02-12 Hitachi, Ltd. Storage device employing a flash memory
US6567334B2 (en) 1991-11-26 2003-05-20 Hitachi, Ltd. Storage device employing a flash memory
US6788609B2 (en) 1991-11-26 2004-09-07 Renesas Technology Corp. Storage device employing a flash memory
US6925012B2 (en) 1991-11-26 2005-08-02 Renesas Technology Corp. Storage device employing a flash memory
US6341085B1 (en) 1991-11-26 2002-01-22 Hitachi, Ltd. Storage device employing a flash memory
US7006386B2 (en) 1991-11-26 2006-02-28 Renesas Technology Corp. Storage device employing a flash memory
US7379379B2 (en) 1991-11-26 2008-05-27 Solid State Storage Solutions Llc Storage device employing a flash memory
US7082510B2 (en) 1991-11-26 2006-07-25 Renesas Technology Corp. Storage device employing a flash memory
US7123519B2 (en) 1991-11-26 2006-10-17 Renesas Technology Corp. Storage device employing a flash memory
US7154805B2 (en) 1991-11-26 2006-12-26 Renesas Technology Corp. Storage device employing a flash memory
US7184320B2 (en) 1991-11-26 2007-02-27 Renesas Technology Corp. Storage device employing a flash memory
US7327624B2 (en) 1991-11-26 2008-02-05 Solid State Storage Solutions, Llc Storage device employing a flash memory
JPH08329625A (en) * 1995-05-30 1996-12-13 Hokkaido Nippon Denki Software Kk Alternate processing method in disk storage device and disk storage device

Similar Documents

Publication Publication Date Title
US6625096B1 (en) Optical disk recording and reproduction method and apparatus as well as medium on which optical disk recording and reproduction program is recorded
EP0078492B1 (en) Method of controlling storage device
JPH02216672A (en) Optical disk drive device
JPH086862A (en) Method and related system for enhancement of preservation ofdata stored in storage medium
JPH01251372A (en) Magnetic disk control device
JPH03240821A (en) Information recording device
JPH1050005A (en) Method for managing defect on optical disk and device therefor
JPS629444A (en) Copy and inspection control method between floppy medias of computer system
JP3439425B2 (en) Data recording device and data recording method
JP3264528B2 (en) Information replacement processing method for write-protected information recording medium
JP2910803B2 (en) Highly reliable auxiliary storage device
JPH04123242A (en) Write error identification system
JPS63195877A (en) Data recording and reproducing system
JPH0492916A (en) Double write control system
JPS60261079A (en) Maintenance system of magnetic disc
JPS59112353A (en) Data reading out system from recording medium
JPH06202818A (en) Method for controlling disk controller
JPH01154335A (en) Magneto-optical disk device
JPH04302321A (en) Magnetic disk controller
JPS62194557A (en) File trouble recovery system
JPH04184772A (en) Disk control device
JPH0259924A (en) Patrol diagnosis system for magnetic disk device
JPH0191375A (en) Magnetic disk controller
JPS59173846A (en) Program correcting system
JPS59180811A (en) Ecc control system