JPS62248171A - Errored track substituting method for magnetic disk - Google Patents

Errored track substituting method for magnetic disk

Info

Publication number
JPS62248171A
JPS62248171A JP9134786A JP9134786A JPS62248171A JP S62248171 A JPS62248171 A JP S62248171A JP 9134786 A JP9134786 A JP 9134786A JP 9134786 A JP9134786 A JP 9134786A JP S62248171 A JPS62248171 A JP S62248171A
Authority
JP
Japan
Prior art keywords
track
magnetic disk
error
tracks
errored
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
JP9134786A
Other languages
Japanese (ja)
Inventor
Hideaki Kitada
北田 秀昭
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP9134786A priority Critical patent/JPS62248171A/en
Publication of JPS62248171A publication Critical patent/JPS62248171A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To speed up the information processing by storing errored track substitution information and track state information to decrease the times of accessing a magnetic disk even in case there is an errored track. CONSTITUTION:In the magnetic disk 10, in addition to normal tracks for data, a substitution area and an index area are provided, and an errored track substitution information table 13 to show the correspondence relation between the errored track 11 and a substitution track 12 is provided. In a memory 4 incorporated in an information processor, a table 41 whose content is the same as that of the table 13 and a track state information table 42 are stored. Following the starting of a magnetic disk device, the table 13 is transferred to the memory 4, and the states of all the tracks are stored in the table 42. When an errored track is accessed, a substitution track is selected by one accessing through the tables 41 and 42.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、磁気ディスクのエラートラック代替方法に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for replacing error tracks on a magnetic disk.

〔従来の技術〕[Conventional technology]

磁気ディスクは、主として、情報処理装置の外部記憶装
置として、広く利用されている。
Magnetic disks are widely used primarily as external storage devices for information processing devices.

磁気ディスクに対しデータの読み出しあるいは書き込み
を行うには、磁気ヘッドが使用される。
A magnetic head is used to read or write data to a magnetic disk.

磁気ヘッドは、入出力命令に従って、磁気ディスクの指
定されたトラックをアクセスして、データの読み出しあ
るいは書き込み処理を行う。
A magnetic head accesses a designated track on a magnetic disk in accordance with an input/output command to read or write data.

ところが、このような磁気ディスクの多数のトラックの
中には、何らかの原因で損傷を受け、入出力に障害を生
じるものもある。
However, among the many tracks of such a magnetic disk, some may be damaged for some reason, causing input/output problems.

そこで、従来、この入出力障害を生じたトラックをエラ
ートラックとして扱い、その代用として、磁気ディスク
に別途予備的に設けた代替トラックを使用する方式が採
用されている。
Conventionally, therefore, a method has been adopted in which the track in which the input/output failure occurs is treated as an error track, and a substitute track prepared separately and preliminarily on the magnetic disk is used as a substitute for the track.

この方式では、磁気ディスクに、索引等のデータを格納
する索引エリアと、正規のデータを格納するデータエリ
アのほかに、予備的な代替エリアが設けられている。こ
の代替エリアは、所定数の代替トラックから構成されて
いる。
In this method, in addition to an index area for storing data such as an index and a data area for storing regular data, a preliminary alternative area is provided on the magnetic disk. This alternative area is made up of a predetermined number of alternative tracks.

この磁気ディスクに対するデータの入出力命令の実行の
際には、通常、まず、データエリアのトラックがアクセ
スされる。ここで、エラートラックに対する入出力命令
が実行されると、その段階で、例えばアイオーエラー等
が発生し、そのトラックがエラートラックであることが
認識される。
When executing a data input/output command to the magnetic disk, the tracks of the data area are usually accessed first. Here, when an input/output command for an error track is executed, at that stage, for example, an I-O error occurs, and the track is recognized as an error track.

一方、索引エリアには、データエリアのエラートラック
と、その代替トラックとの対応関係を表示するエラート
ラック代替情報テーブルが格納されている。入出力命令
が実行されたトラックがエラートラックと認識された場
合、このエラートラック代替情報テーブルが参照され、
代替エリアの所定の代替トラックのトラックアドレスが
得られる。
On the other hand, the index area stores an error track replacement information table that displays the correspondence between error tracks in the data area and their replacement tracks. If the track on which the input/output command was executed is recognized as an error track, this error track alternative information table is referenced and
A track address of a given alternate track of the alternate area is obtained.

こうして、この代替トラックのトラックアドレスをアク
セスし、再度入出力命令を実行して、データの読み出し
あるいは書き込みが完了する。
In this way, the track address of this alternative track is accessed, the input/output command is executed again, and data reading or writing is completed.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

ところが、このような従来の磁気ディスクのエラートラ
ック代替方法では、エラートラックに対して入出力命令
が実行されてはじめて、そのトラックがエラートラック
であることがS2識される。
However, in such a conventional method for replacing an error track of a magnetic disk, it is recognized at step S2 that the track is an error track only after an input/output command is executed for the error track.

従って、入出力命令の実行にあたって、エラートラック
へのアクセスと、エラートラック代替情報テーブルの参
照のためのアクセスと、代替トラックに、対するアクセ
スとの3回のアクセスを必要とする場合があり、その入
出力回数が多(なって、ディスクアクセスの時間的性能
が劣るという難点があった。
Therefore, when executing an input/output command, three accesses may be required: access to the error track, access to refer to the error track alternative information table, and access to the alternative track. The problem was that the number of inputs and outputs was large (as a result, the temporal performance of disk access was poor).

本発明は以上の点に着目してなされたもので、磁気ディ
スクのアクセス回数を減少させてその処理の高速化を図
っ°た磁気ディスクのエラートラック代替方法を提供す
ることを目的とするものである。
The present invention has been made in view of the above points, and it is an object of the present invention to provide a method for replacing error tracks on a magnetic disk, which reduces the number of times the magnetic disk is accessed and speeds up the processing. be.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の磁気ディスクのエラートラック代替方法は、磁
気ディスク装置の起動後に、磁気ディスクに存在するエ
ラートラックとその代替トラックとの対応関係を表示す
る、エラートラック代替情報テーブルと、上記磁気ディ
スクのすべてのトラックの状態を表示する、トラック状
態情報テーブルとを、メモリ上に作成し、上記トラック
状態情報テーブルにエラートラックの表示がある場合に
、上記エラートラック代替情報テーブルを参照して、代
替トラックに入出力を実行することを特徴とするもので
ある。
The error track replacement method for a magnetic disk according to the present invention includes an error track replacement information table that displays the correspondence between error tracks existing on the magnetic disk and their replacement tracks after the magnetic disk device is started, and all of the above-mentioned magnetic disks. Create a track status information table in memory that displays the status of the track in the track status information table, and if an error track is displayed in the track status information table, refer to the error track alternative information table and select an alternative track. It is characterized by executing input/output.

〔作用〕[Effect]

このように、メモリ上に磁気ディスクのすべてのトラッ
クの状態を表示するトラック状態情報テーブルを作成し
、これを参照すれば、アクセスしようとするトラックが
エラートラックであるか否かがただちに判明する。
In this way, a track status information table that displays the status of all tracks on the magnetic disk is created on the memory, and by referring to this table, it can be immediately determined whether or not the track to be accessed is an error track.

そして、これがエラートラックである場合に、同様にメ
モリ上に作成したエラートラック代替情報テーブルを参
照して代替トラックを調べる。
If this is an error track, an alternative track is checked by referring to the error track alternative information table similarly created on the memory.

こうして磁気ディスク上の代替トラックをアクセスする
ようにすれば、磁気ディスクへのアクセス回数が減少し
、そのデータの書き込みあるいは読み出しを高速で行う
ことができる。
By accessing alternative tracks on the magnetic disk in this way, the number of accesses to the magnetic disk is reduced, and data can be written or read at high speed.

〔実施例〕〔Example〕

図は、本発明の磁気ディスクのエラートラック代替方法
の実施に適する情報処理装置のブロック図である。
The figure is a block diagram of an information processing apparatus suitable for implementing the method for replacing error tracks on a magnetic disk according to the present invention.

この装置は、磁気ディスク10と、これに対するデータ
の入出力を制御する入出力制御機構1、エラートラック
代替処理機構2、エラートラック情報作成機構3、およ
びメモリ4を備えている。
This device includes a magnetic disk 10, an input/output control mechanism 1 for controlling data input/output to the magnetic disk, an error track alternative processing mechanism 2, an error track information creation mechanism 3, and a memory 4.

入出力制御機構1とエラートラック代替処理機構2およ
びエラートラック情報作成機構3は、マイクロプロセッ
サや実行用メモリ等から構成される。
The input/output control mechanism 1, the error track alternative processing mechanism 2, and the error track information creation mechanism 3 are composed of a microprocessor, an execution memory, and the like.

磁気ディスク10には、データを書き込む正規のトラッ
クのほかに、代替トラック用の代替エリアと索引エリア
とが設けられている。図中、障害の発生したエラートラ
ック11を、T100、T150、T300と表示し、
代替トラック12を31〜Snと表示した。またこの磁
気ディスク10の索引エリアには、エラートラック11
と代替トラック12との対応関係を示すエラートラック
代替情報テーブル13が設けられている。
In addition to regular tracks for writing data, the magnetic disk 10 is provided with an alternative area for alternative tracks and an index area. In the figure, error tracks 11 where a failure has occurred are indicated as T100, T150, and T300.
The alternative tracks 12 are indicated as 31-Sn. Also, in the index area of this magnetic disk 10, there is an error track 11.
An error track replacement information table 13 is provided that shows the correspondence between the track and the replacement track 12.

一方、メモリ4は、情報処理装置に組み込まれた半導体
素子等から成る高速メモリで、その一部に、磁気ディス
ク10に格納されたエラートラック代替情報テーブル1
3と同一内容のテーブル41と、トラック状態情報テー
ブル42とを格納する領域が確保されている。
On the other hand, the memory 4 is a high-speed memory made of a semiconductor element or the like incorporated in the information processing device, and a part of the memory 4 includes an error track replacement information table 1 stored in the magnetic disk 10.
An area is reserved for storing a table 41 with the same contents as 3 and a track status information table 42.

このトラック状態情報テーブル42は、磁気ディスク1
0のすべてのトラックについて、その状態を表示するテ
ーブルで、例えばエラートラックについては1”、その
他のトラックについては′0″という内容のデータ群で
構成される。
This track status information table 42 is based on the magnetic disk 1
This is a table that displays the status of all 0 tracks, and is composed of a data group containing, for example, 1" for error tracks and 0 for other tracks.

このような装置を用いて、本発明の方法は次のように実
施される。
Using such an apparatus, the method of the present invention is carried out as follows.

まず、磁気ディスク装置10が起動されると、エラート
ラック情報作成機構3が、磁気ディスク10に格納され
たエラートラック代替情報テーブル13を読み出し、こ
れをそのままメモリ4の所定の領域に転記する。
First, when the magnetic disk device 10 is started, the error track information creation mechanism 3 reads the error track replacement information table 13 stored in the magnetic disk 10 and transcribes it as is into a predetermined area of the memory 4.

この作業と前後して、エラートラック情報作成機構3は
、磁気ディスク10の全トラックを調べて、その中のエ
ラートラックT100、T150、T300のトラック
アドレスを言忍識して、トラック状態情報テーブル42
を作成する。そしてこのトラック状態情報テーブル42
をメモリ4の所定の領域に格納する。
Before and after this operation, the error track information creation mechanism 3 examines all the tracks on the magnetic disk 10, knows the track addresses of the error tracks T100, T150, and T300 among them, and writes the track status information table 42.
Create. And this track status information table 42
is stored in a predetermined area of the memory 4.

この実施例においては、エラートラックT100が代替
トラックS1に、エラートラックT150が代替トラッ
クS2に、エラートラックT300が代替トラックS3
に代替されている。
In this embodiment, the error track T100 is the substitute track S1, the error track T150 is the substitute track S2, and the error track T300 is the substitute track S3.
has been replaced by

従って、トラック状態情報テーブル42は全トラックの
中で、エラートラックT100.T150、T300に
対応するデータのみが“1″とされ、他はO″とされる
内容のものとなる。なお、この磁気ディスク10の代替
トラックはn個用意されており、最大n個までエラート
ラックの存在が許容される。
Therefore, the track status information table 42 shows error track T100 among all the tracks. Only the data corresponding to T150 and T300 will be set to "1", and the others will be set to O". Note that n alternative tracks are prepared for this magnetic disk 10, and up to n pieces of error can be detected. The presence of trucks is allowed.

ここで、入出力制御機構1によって、データの入出力要
求が出されると、その処理はエラートラック代替処理機
構2に渡される。
Here, when the input/output control mechanism 1 issues a data input/output request, the processing is passed to the error track alternative processing mechanism 2.

エラートラック代替処理機構2は、まず、入出力命令に
含まれるアクセスすべきトラックアドレスがエラートラ
ックをアクセスするものであるか否かを、メモリ4のト
ラック状態情報テーブル42を用いて調べる。
The error track replacement processing mechanism 2 first uses the track status information table 42 in the memory 4 to check whether the track address to be accessed included in the input/output command is for accessing an error track.

これがエラートラックでない場合には、そのトラックア
ドレスを用いて、ただちに磁気ディスクがアクセスされ
る。こうして、そのトラックへの入出力命令が実行され
る。
If this is not an error track, the magnetic disk is immediately accessed using that track address. In this way, input/output commands to that track are executed.

一方、このトラックアドレスが、例えばエラートラック
T100をアクセスするものである場合、メモリ4のエ
ラートラック代替情報テーブル41を参照する。これに
よって、その代替トラックS1のトラックアドレスを用
いて磁気ディスク10がアクセスされる。こうして、そ
のトラックへの入出力命令が実行される。
On the other hand, if this track address is for accessing the error track T100, for example, the error track replacement information table 41 in the memory 4 is referred to. As a result, the magnetic disk 10 is accessed using the track address of the alternative track S1. In this way, input/output commands to that track are executed.

以上のように、エラートラック代替情報テーブルの参照
等の代替処理は高速メモリを使用して行われ、入出力要
求のあったトラックアドレスが正常なトラックのもので
あってもエラートラックのものであっても、ディスクア
クセスは1回で完了する。
As described above, alternative processing such as referencing the error track alternative information table is performed using high-speed memory, and even if the track address for which the input/output request was made is for a normal track, it may be for an error track. However, disk access is completed only once.

〔変形例〕[Modified example]

本発明の磁気ディスクのエラートラック代替方法は以上
の実施例に限定されない。
The method for replacing error tracks on a magnetic disk according to the present invention is not limited to the above embodiments.

エラートラック代替情報テーブルやトラック状態情報テ
ーブルの形式については、他の種々の態様とすることが
できる。また、エラートラック代替処理機構とエラート
ラック情報作成機構等は、必ずしも別々に分離した機構
でなく、一体化されたものであってもさしつかえない。
The formats of the error track replacement information table and the track status information table may be in various other formats. Further, the error track alternative processing mechanism, the error track information creation mechanism, etc. are not necessarily separate mechanisms, but may be integrated.

〔発明の効果〕〔Effect of the invention〕

以上説明した本発明の磁気ディスクのエラートラック代
替方法によれば、エラートラックの存在する磁気ディス
クのディスクアクセス回数を減少させて高速でアクセス
することが可能になる。
According to the method for replacing error tracks on a magnetic disk of the present invention as described above, it becomes possible to reduce the number of disk accesses to a magnetic disk on which an error track exists and to access the disk at high speed.

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

図は本発明の磁気ディスクのエラートラック代替方法の
実施に適する情報処理装置のブロック図である。 1・・・・・・入出力制御機構、 2・・・・・・エラートラック代替処理機構、3・・・
・・・エラートラック情報作成機構、4・・・・・・メ
モリ、 10・・・・・・磁気ディスク、 11・・・・・・エラートラック、 12・・・・・・代替トラック、 13.41・・・・・・エラートラック代替情報テーブ
ル、42・・・・・・トラック状態情報テーブル。 出  願  人 日本電気株式会社 代  理  人
The figure is a block diagram of an information processing apparatus suitable for implementing the method for replacing error tracks on a magnetic disk according to the present invention. 1... Input/output control mechanism, 2... Error track alternative processing mechanism, 3...
... Error track information creation mechanism, 4 ... Memory, 10 ... Magnetic disk, 11 ... Error track, 12 ... Alternative track, 13. 41...Error track alternative information table, 42...Track status information table. Applicant: NEC Corporation Representative

Claims (1)

【特許請求の範囲】[Claims] 磁気ディスク装置の起動後に、磁気ディスクに存在する
エラートラックとその代替トラックとの対応関係を表示
する、エラートラック代替情報テーブルと、前記磁気デ
ィスクのすべてのトラックの状態を表示する、トラック
状態情報テーブルとを、メモリ上に作成し、前記トラッ
ク状態情報テーブルにエラートラックの表示がある場合
に、前記エラートラック代替情報テーブルを参照して、
代替トラックに入出力を実行することを特徴とする磁気
ディスクのエラートラック代替方法。
An error track alternative information table that displays the correspondence between error tracks existing on the magnetic disk and their alternative tracks after the magnetic disk device is started; and a track status information table that displays the status of all tracks on the magnetic disk. and when an error track is displayed in the track status information table, refer to the error track alternative information table,
A method for replacing an error track of a magnetic disk, characterized by performing input/output on a replacement track.
JP9134786A 1986-04-22 1986-04-22 Errored track substituting method for magnetic disk Pending JPS62248171A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9134786A JPS62248171A (en) 1986-04-22 1986-04-22 Errored track substituting method for magnetic disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9134786A JPS62248171A (en) 1986-04-22 1986-04-22 Errored track substituting method for magnetic disk

Publications (1)

Publication Number Publication Date
JPS62248171A true JPS62248171A (en) 1987-10-29

Family

ID=14023881

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9134786A Pending JPS62248171A (en) 1986-04-22 1986-04-22 Errored track substituting method for magnetic disk

Country Status (1)

Country Link
JP (1) JPS62248171A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6470961A (en) * 1987-09-11 1989-03-16 Fujitsu Ltd System for controlling hard disk device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6470961A (en) * 1987-09-11 1989-03-16 Fujitsu Ltd System for controlling hard disk device

Similar Documents

Publication Publication Date Title
JPH04220738A (en) High-speed writing system
JPH0667812A (en) Patrol seaking system for high density magnetic disk device
JPS62239226A (en) Partial alteration of data record for direct access memory
JPS62248171A (en) Errored track substituting method for magnetic disk
JPH01235075A (en) Disk memory controller
US6934801B2 (en) Disk device having cache memory
JPH06222889A (en) Peripheral device controller
JPH0743634B2 (en) Split volume control method
JP2507399B2 (en) Database equipment
JPH02306473A (en) Magnetic disk device
JPH01223529A (en) Semiconductor disk device
JPH05233159A (en) Duplex auxiliary storage system
JPH04102143A (en) Compare and swap control system
JPH06208512A (en) Virtual disk device
JPH0442462A (en) Magnetic disk subsystem
JPH0261717A (en) Disk device
JPS6180340A (en) Data input/output method of auxiliary memory device
JPS59132057A (en) Floppy disk control system
JPH02203473A (en) Magnetic disk system
JPS6349859A (en) Access method to cache memory
JPH04195424A (en) Information processor
JPS6385845A (en) Cache device
JP2000010944A (en) Multiprocessor disk array controller
JPH02293947A (en) Virtual storage dualizing system
JPH01188966A (en) Magnetic disk controller containing cache