JPS63288470A - Disk controller - Google Patents

Disk controller

Info

Publication number
JPS63288470A
JPS63288470A JP12262787A JP12262787A JPS63288470A JP S63288470 A JPS63288470 A JP S63288470A JP 12262787 A JP12262787 A JP 12262787A JP 12262787 A JP12262787 A JP 12262787A JP S63288470 A JPS63288470 A JP S63288470A
Authority
JP
Japan
Prior art keywords
information area
information
block
alternative
sector
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
JP12262787A
Other languages
Japanese (ja)
Inventor
Hirobumi Takechi
武市 博文
Kenji Takahashi
健次 高橋
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.)
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Electric Industries 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 Sumitomo Electric Industries Ltd filed Critical Sumitomo Electric Industries Ltd
Priority to JP12262787A priority Critical patent/JPS63288470A/en
Publication of JPS63288470A publication Critical patent/JPS63288470A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To quickly perform alternative processing by providing a semiconductor memory and reading out block alternative information or sector alternative information from a magnetic disk device to store this information in the semiconductor memory and referring to the stored alternative information. CONSTITUTION:A disk controller 12 incorporates a semiconductor memory 12c, and a magnetic disk device 13 is so set at the time of formatting that data is written and read in block units. The disk controller 12 reads out block alternative information from the magnetic disk device 13 and a stores it in the semiconductor memory 12c. When a command to indicate data input/output is received from a host computer 11 stored block alternative information is referred to discriminate whether the block designated by the command is includ ed in block alternative information or not, and data is inputted to or outputted from an alternative block indicated by block alternative information if it is included there.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明はディスク制御装置に関し、情報の読出し・書込
み能率が向上するよう企図したものである。
DETAILED DESCRIPTION OF THE INVENTION <Industrial Application Field> The present invention relates to a disk control device and is intended to improve the efficiency of reading and writing information.

〈従来の技術〉 第3図は電子計算機システムの一例を示すブロック図で
ある。同図中、1はホストコンピュータ、2はディスク
制御装置、3は磁気ディスク装置である。ホストコンピ
ュータ1から、読出し又は書込みを指令するコマンドが
出力されると、ディスク制御装置2は磁気ディスク装置
3を作動させるコマンドを出力する。磁気ディスク装置
3の所定の動作くベッドシーク等)が完了すると、読出
し又は書込み準備が完了したことを示すステータスが、
磁気ディスク装置3から出力され、ディスク制御装置2
を介してホストコンピュータ1に入力される。このよう
な制御が終ると、ホストコンピュータlは、ディスク制
御装置2を介して、磁気ディスク装置3に対しデータの
読出し又は書込みを行なう。
<Prior Art> FIG. 3 is a block diagram showing an example of an electronic computer system. In the figure, 1 is a host computer, 2 is a disk control device, and 3 is a magnetic disk device. When the host computer 1 outputs a command for reading or writing, the disk control device 2 outputs a command to operate the magnetic disk device 3. When the predetermined operation (bed seek, etc.) of the magnetic disk device 3 is completed, the status indicating that read or write preparation has been completed changes to
Output from the magnetic disk device 3 and sent to the disk controller 2
The data is input to the host computer 1 via the host computer 1. When such control is completed, the host computer 1 reads or writes data to the magnetic disk device 3 via the disk control device 2.

磁気ディスク装置3内には、第4図に示すように、複数
のディスクD及び複数のヘッドHが備えられている。複
数のディスクDは回転軸4に固定されて一体に回転し、
複数のヘッドHはシーク機構5に設置されてディスクの
径方向に沿い一体に移動する。
As shown in FIG. 4, the magnetic disk device 3 includes a plurality of disks D and a plurality of heads H. The plurality of disks D are fixed to the rotating shaft 4 and rotate as one,
A plurality of heads H are installed in a seek mechanism 5 and move together along the radial direction of the disk.

このため、第5図に示すように、各ディスクDには情報
の記録部分となるトラックTが同心円状に複数形成され
、しかも、各ディスクDに形成されたトラックTの形成
位置く回転軸4の中心からの距III)は、上下のディ
スクDにおいて一致する。各ディスクDのうちトラック
形成位置が一致するものを上下に結びつける面を想定す
ると筒状の面となり、これをシリンダと呼ぶ。逆に言う
ならば、シリンダナンバーとヘッドナンバーを決めると
一つのトラックを特定することかできるのである。また
、各トラックTはセクタと呼称される複数エリアに区分
されており、データの記憶最小単位はセクタごとに割り
付けて入出力する。なお、各セクタに固有アドレスを書
込む動作をフォーマットという。
Therefore, as shown in FIG. 5, a plurality of concentric tracks T, which are information recording portions, are formed on each disk D, and the formation positions of the tracks T formed on each disk D are located at the rotation axis 4. The distances III) from the center of the upper and lower disks D are the same. Assuming a surface that connects the disks D with the same track formation positions vertically, it becomes a cylindrical surface, which is called a cylinder. In other words, you can specify a single track by determining the cylinder number and head number. Furthermore, each track T is divided into a plurality of areas called sectors, and the minimum unit of data storage is assigned to each sector for input/output. Note that the operation of writing a unique address to each sector is called formatting.

データの書込み・読出しは、システム構成に合せて、セ
クタを一単位として行なったり、ブロックを一単位とし
て行なったりする。ブロックとは同一トラック上で連続
する一つ以上のセクタである。ブロックを単位として入
出力処理をすると、同一トラック上の連続するセクタに
対する連続的なデータ入出力の効率がよいという磁気デ
ィスク装置の長所を、引き出すことができる。
Data is written and read in units of sectors or blocks, depending on the system configuration. A block is one or more consecutive sectors on the same track. By performing input/output processing in units of blocks, it is possible to take advantage of the magnetic disk drive's advantage of efficient continuous data input/output to consecutive sectors on the same track.

ところで、ディスクの磁性面は製造時のバラツキにより
、書込みをしても正しく記憶できない欠陥部が存在する
。この欠陥部は記憶部として使用できない。このためデ
ィスク装置3では、全セクタについてデータの正常な入
出力を保証せず、ある程度の不良セクタが発生すること
を前提にしている。
By the way, due to variations during manufacturing, there are defective areas on the magnetic surface of the disk where data cannot be stored correctly even if written. This defective part cannot be used as a storage part. For this reason, the disk device 3 does not guarantee normal data input/output for all sectors, but assumes that some defective sectors will occur.

ここで、上述した不良セクタに対する従来の対処手段を
説明する。第6図は磁気ディスク装置3の記憶エリアの
状態を示す。同図に示すようにNot〜No (n −
2)のシリンダを通常の記憶部である入出カニリアとし
、No(n−1)、 No nの2つのシリンダを人出
カニリアの欠陥部にある不良セクタをバックアップして
記憶する代替用エリアとし、NoOのシリンダのうち欠
陥のないセクタにセクタ代替情報を書込んである。セク
タ代替情報とは、人出カニリアの不良セクタと代替用エ
リアの代替セクタとの対応関係を示す情報であり、第7
図に示すように不良セクタNoと代替セクタNoが組と
なって代替単位を構成するようなメモリテーブルとして
記憶されている。
Here, conventional means for dealing with the above-mentioned bad sectors will be explained. FIG. 6 shows the state of the storage area of the magnetic disk device 3. As shown in the figure, Not~No (n −
The cylinder 2) is used as an input/output canister which is a normal storage section, and the two cylinders No. (n-1) and No. Sector replacement information is written in sectors with no defects among the NoO cylinders. Sector replacement information is information that indicates the correspondence relationship between defective sectors in the turnout caniglia and replacement sectors in the replacement area.
As shown in the figure, a defective sector number and a substitute sector number are stored as a memory table in which a pair constitutes a substitute unit.

ディスク制御装置2は、ホストコンピュータlからデー
タ入出力を指示するコマンドを受けると、まず、磁気デ
ィスク装置3からセクタ代替情報を読出し、コマンドに
より指定したセクタがセクタ代替情報に含まれているが
どうかを判別する。コマンドにより指定したセクタがセ
クタ代替情報に含まれていないときには、指定したセク
タに対しデータの入出力をする。コマンドにより指定し
たセクタかセクタ代替情報に含まれているときには、セ
クタ代替情報により示される代替セクタに対しデータの
入出力をする。
When the disk control device 2 receives a command to instruct data input/output from the host computer 1, it first reads sector substitution information from the magnetic disk device 3 and checks whether the sector specified by the command is included in the sector substitution information. Determine. If the sector specified by the command is not included in the sector replacement information, data is input/output to the specified sector. When the sector specified by the command is included in the sector alternative information, data is input/output to the alternative sector indicated by the sector alternative information.

〈発明か解決しようとする問題点〉 不良セクタに対する従来の対処手段では、セクタ代替情
報が磁気ディスク装置3に記憶されているため、ディス
ク制御装置2は、不良セクタを代替セクタに代替するセ
クタ代替処理をするたびに、磁気ディスク装置3の制御
情報エリアを参照する必要がある。この結果、ディスク
制御装置2の負担が増え、入出力効率が低下する。
<Problems to be Solved by the Invention> In the conventional means for dealing with bad sectors, since sector replacement information is stored in the magnetic disk device 3, the disk control device 2 performs sector replacement to replace the bad sector with a replacement sector. It is necessary to refer to the control information area of the magnetic disk device 3 every time processing is performed. As a result, the load on the disk control device 2 increases and input/output efficiency decreases.

また、ブロックを単位として入出力をする場合には、1
ブロツクに含まれる不良セクタを代替セクタに置き換え
るため、このブロック内の正常セクタと他替セクタとが
離れてしまい、連続したセクタ入出力ができなくなる。
Also, when performing input/output in units of blocks, 1
Since a defective sector included in a block is replaced with an alternative sector, the normal sector in this block and the alternative sector become separated, making it impossible to perform continuous sector input/output.

この結果、入出力単位をブロックにしてもそのメリット
が減削されてしまう。
As a result, the benefits of using a block as the input/output unit are reduced.

本発明は、上記従来技術に鑑み、代替処理を迅速にでき
るディスク制御装置を提供するものである。
In view of the above-mentioned prior art, the present invention provides a disk control device that can quickly perform alternative processing.

く問題点を解決するための手段〉 上記問題点を解決する本発明は、ディスク制御装置内に
半導体メモリを備え、磁気ディスク装置からブロック代
替情報又はセクタ代替情報を読み出して半導体メモリに
格納し、格納した代替情報を参照することにより、代替
処理をすることを特徴とする。
Means for Solving the Problems> The present invention for solving the above problems includes a semiconductor memory provided in a disk control device, reading block replacement information or sector replacement information from a magnetic disk device and storing it in the semiconductor memory, It is characterized by performing alternative processing by referring to stored alternative information.

〈実 施 例〉 第1図は本発明の実施例を示す。同図中、11はホスト
コンピュータ、12はディスク制御装置、13は磁気デ
ィスク装置である。
<Example> FIG. 1 shows an example of the present invention. In the figure, 11 is a host computer, 12 is a disk control device, and 13 is a magnetic disk device.

ディスク制御装fi12には、データバッファ12a及
びプロセッサ12bの他に、新たに半導体メモリ12c
が内蔵されている。この例では、磁気ディスク装置13
は、ブロック単位でデータの書込み・読出しができるよ
うフォーマット時に設定されている。そして、磁気ディ
スク装置13の制御情報エリアには、不良ブロックを代
替ブロックに代替するためのブロック代替情報が書き込
まれている。このブロック代替情報は、第2図に示すよ
うに、不良ブロックNOと代替ブロックNOが組となっ
て代替単位を構成するようなメモリテーブルとして記憶
されている。
In addition to the data buffer 12a and processor 12b, the disk control device fi12 also includes a semiconductor memory 12c.
is built-in. In this example, the magnetic disk device 13
is set during formatting so that data can be written and read in blocks. Block replacement information for replacing a defective block with a replacement block is written in the control information area of the magnetic disk device 13. This block replacement information is stored as a memory table in which a defective block number and a replacement block number form a set to form a replacement unit, as shown in FIG.

かかる本実施例では、コンピュータシステムが運用を開
始すると、まずはじめに、ディスク制御装置12は磁気
ディスク装置13からブロック代替情報を読出してこれ
を半導体メモリ12cに格納する。
In this embodiment, when the computer system starts operating, the disk control device 12 first reads block replacement information from the magnetic disk device 13 and stores it in the semiconductor memory 12c.

ディスク制御装置12のプロセッサ12bは、ホストコ
ンピュータ11からデータ入出力を指示するコマンドを
受けると、半導体メモリ12bに格納しているブロック
代替情報を参照することにより、コマンドにより指定し
たブロックがブロック代替情報に含まれているかどうか
を判別する。コマンドにより指定したブロックがブロッ
ク代替情報に含まれていないときには、指定したブロッ
クに対しデータの入出力をする。コマンドにより指定し
たブロックがブロック代替情報に含まれているときには
、ブロック代替情報により示される代替ブロックに対し
データの入出力をする。なお、データの授受は、データ
をバッファ12aを介して行なわれる。
When the processor 12b of the disk control device 12 receives a command instructing data input/output from the host computer 11, by referring to the block replacement information stored in the semiconductor memory 12b, the block specified by the command is replaced with the block replacement information. Determine whether it is included in If the block specified by the command is not included in the block replacement information, data is input/output to the specified block. When the block specified by the command is included in the block replacement information, data is input/output to the replacement block indicated by the block replacement information. Note that the data is exchanged via the buffer 12a.

かかる本実施例では、ブロック代替情報を格納した半導
体メモリ12cが高速メモリであるため、代替処理が迅
速にできる。また、ブロックごとに代替処理をしている
ため、情報の入出力が高速にできる。
In this embodiment, since the semiconductor memory 12c that stores the block replacement information is a high-speed memory, replacement processing can be performed quickly. In addition, since alternative processing is performed for each block, information can be input and output at high speed.

なお、1ブロツクが1個のセクタで構成されるようメモ
リ配置をした磁気ディスク装置を制御する場合には、磁
気ディスク装置からセクタ代替情報を読出して半導体メ
モリに格納し、上述したブロックのときと同様にしてセ
クタ代替処理をすればよい。
Note that when controlling a magnetic disk device whose memory is arranged so that one block consists of one sector, the sector substitution information is read from the magnetic disk device and stored in the semiconductor memory, and then Sector replacement processing may be performed in the same manner.

〈発明の効果〉 以上実施例とともに具体的に説明したように本発明によ
れば、代替情報を半導体メモリに格納し、格納した代替
情報を参照して代替処理をするため、代替処理のたびに
磁気ディスク装置を参照する必要がなくなり、この結果
データの入出力効率が向上する。
<Effects of the Invention> As specifically explained above in conjunction with the embodiments, according to the present invention, alternative information is stored in the semiconductor memory, and the stored alternative information is referred to to perform alternative processing. There is no need to refer to the magnetic disk device, resulting in improved data input/output efficiency.

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

第1図は本発明の実施例を示すブロック図、第2図はブ
ロック代替情報を説明する説明図、第3図は従来のコン
ピュータシステムの一例を示すブロック図、第4図は磁
気ディスク装置の内部構成を示す構成図、第5図はシリ
ンダとトラックの概念を説明する説明図、第6図は磁気
ディスク装置のメモリ構成を示す説明図、第7図はセク
タ代替情報を説明する説明図である。 図面中、 11はホストコンピュータ、 12はディスク制御装置、 12aはデータバッファ、 12bはプロセッサ、 12cは半導体メモリ、 13は磁気ディスク装置である。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is an explanatory diagram explaining block replacement information, FIG. 3 is a block diagram showing an example of a conventional computer system, and FIG. 4 is a block diagram of a magnetic disk device. 5 is an explanatory diagram illustrating the concept of cylinders and tracks; FIG. 6 is an explanatory diagram illustrating the memory configuration of the magnetic disk device; and FIG. 7 is an explanatory diagram illustrating sector replacement information. be. In the drawings, 11 is a host computer, 12 is a disk control device, 12a is a data buffer, 12b is a processor, 12c is a semiconductor memory, and 13 is a magnetic disk device.

Claims (3)

【特許請求の範囲】[Claims] (1)コンピュータからデータの入出力要求を受けると
、記憶領域の一部にデータの正常な 入出力が保証されていない不良情報エリアが存在する磁
気ディスク装置に対し、データの入出力制御を行なうデ
ィスク制御装置において、 不良情報エリアを代替情報エリアに代替す るための情報エリア代替情報を、運用時に磁気ディスク
装置から読み出して内蔵している半導体メモリに格納し
、格納した情報エリア代替情報を参照することにより、
コンピュータで入出力要求した情報エリアが不良情報 エリアであるか否かを判別し、入出力要求した情報エリ
アが正常情報エリアであるときにはこの情報エリアに対
しデータの入出力を 行ない、入出力要求した情報エリアが不良 情報エリアであるときには情報エリア代替 情報で示す代替情報エリアに対してデータの入出力を行
なうことを特徴とするディスク制御装置。
(1) When a data input/output request is received from a computer, data input/output is controlled for a magnetic disk device that has a defective information area in a part of the storage area where normal data input/output is not guaranteed. In a disk control device, information area replacement information for replacing a defective information area with a replacement information area is read from a magnetic disk device during operation, stored in the built-in semiconductor memory, and the stored information area replacement information is referenced. By this,
The computer determines whether or not the information area requested for input/output is a defective information area, and if the information area requested for input/output is a normal information area, data is input/output to this information area, and the input/output request is made. A disk control device characterized in that when an information area is a defective information area, data is input/output to an alternative information area indicated by information area alternative information.
(2)特許請求の範囲第1項において、不良情報エリア
が不良セクタ、代替情報エリアが代替セクタ、情報エリ
ア代替情報がセクタ代替 情報、情報エリアがセクタ、正常情報エリアが正常セク
タ、であることを特徴とするディスク制御装置。
(2) In claim 1, the defective information area is a defective sector, the alternative information area is an alternative sector, the information area alternative information is sector alternative information, the information area is a sector, and the normal information area is a normal sector. A disk control device featuring:
(3)特許請求の範囲第1項において、不良情報エリア
が不良ブロック、代替情報エリアが代替ブロック、情報
エリア代替情報がブロック代替情報、情報エリアがブロ
ック、正常情報エリアが正常ブロック、であることを特
徴とするディスク制御装置。
(3) In claim 1, the defective information area is a defective block, the alternative information area is a substitute block, the information area substitute information is block substitute information, the information area is a block, and the normal information area is a normal block. A disk control device featuring:
JP12262787A 1987-05-21 1987-05-21 Disk controller Pending JPS63288470A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12262787A JPS63288470A (en) 1987-05-21 1987-05-21 Disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12262787A JPS63288470A (en) 1987-05-21 1987-05-21 Disk controller

Publications (1)

Publication Number Publication Date
JPS63288470A true JPS63288470A (en) 1988-11-25

Family

ID=14840646

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12262787A Pending JPS63288470A (en) 1987-05-21 1987-05-21 Disk controller

Country Status (1)

Country Link
JP (1) JPS63288470A (en)

Similar Documents

Publication Publication Date Title
US5835930A (en) One or more logical tracks per physical track in a headerless disk drive
JPH03113779A (en) Parallel transfer type disk system
JPH10340551A (en) Port number recording method for servo track writer
JPH0316712B2 (en)
JPS63288470A (en) Disk controller
JPH03205657A (en) Information recording and reproducing device
JP2639064B2 (en) Magnetic disk and magnetic disk device
JP3409306B2 (en) Disk controller
JPH05210915A (en) Disk device
JP2728949B2 (en) Control method of optical disk subsystem
JPS63288468A (en) Magnetic disk device using non-volatile memory
JP2503371B2 (en) Disk system
JPH02235264A (en) Electronic filing device
JPH1049312A (en) Magnetic disk drive
JP2725343B2 (en) Data recording device and method
JPH0845190A (en) Hard disk device
JPS6149229A (en) Information processor
JPH02276070A (en) Floppy disk device
JPS634327A (en) Optical disk device
JPH0384775A (en) Magnetic disk device
JPH01112574A (en) Defective sector alternating system for disk device
JPH05282792A (en) Disk device
JPH04341977A (en) Data reproducing control system
JPH0417458B2 (en)
JPH03100901A (en) Disk device equipped with attached information track