JPH0814934B2 - Disk controller for controlling sector replacement management - Google Patents

Disk controller for controlling sector replacement management

Info

Publication number
JPH0814934B2
JPH0814934B2 JP62235759A JP23575987A JPH0814934B2 JP H0814934 B2 JPH0814934 B2 JP H0814934B2 JP 62235759 A JP62235759 A JP 62235759A JP 23575987 A JP23575987 A JP 23575987A JP H0814934 B2 JPH0814934 B2 JP H0814934B2
Authority
JP
Japan
Prior art keywords
sector
replacement
management
area
allocation
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.)
Expired - Lifetime
Application number
JP62235759A
Other languages
Japanese (ja)
Other versions
JPS6478468A (en
Inventor
強志 山本
博樹 増田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP62235759A priority Critical patent/JPH0814934B2/en
Publication of JPS6478468A publication Critical patent/JPS6478468A/en
Publication of JPH0814934B2 publication Critical patent/JPH0814934B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Description

【発明の詳細な説明】 〔概 要〕 ハードディスクの一般エリア内の障害セクタに対して
代わりのセクタをハードディスクの交代エリア内のセク
タに割り付けるためのセクタの交代管理を制御するディ
スク制御装置に関し、 交代セクタ割付状況の上位への通知処理を高速化し、
オンライン処理に影響を及ぼさないようにすることを目
的とし、 交代セクタの割付状況に関する情報をまとめて記録する
管理データ記憶手段と、前記管理データ記録手段に対し
交代セクタ割付情報のリード/ライトを可能にすると共
に交代セクタの割付処理毎に記録情報を更新し、かつ上
位からの情報読出要求に対し記録情報を上位へ転送する
交代セクタ管理制御手段とを備えてなるものである。
The present invention relates to a disk controller for controlling replacement management of a sector for allocating a substitute sector to a sector in a replacement area of a hard disk for a defective sector in a general area of a hard disk. Speed up the process of notifying the sector allocation status to the upper level,
Management data storage means that collectively records information on the allocation status of alternate sectors and read / write of alternate sector allocation information to the management data recording means for the purpose of not affecting online processing In addition, the recording information is updated for each allocation process of the replacement sector, and the replacement sector management control means is provided for transferring the recording information to the host in response to the information read request from the host.

〔産業上の利用分野〕 本発明は、ハードディスク装置のセクタの交代管理を
制御する装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a device for controlling replacement management of sectors of a hard disk device.

ハードディスク装置においては、記憶媒体上の欠陥を
救済する観点から、媒体上に予備の交代エリアを設けて
おき、一般エリア内の欠陥の生じたセクタに対しては、
その代わりとなるセクタを交代エリア内のセクタに割り
付けるようになっている。
In the hard disk device, from the viewpoint of relieving defects on the storage medium, a spare replacement area is provided on the medium, and the defective sector in the general area is
The substitute sector is assigned to the sector in the replacement area.

また、交代エリア内の全セクタが障害セクタに割り付
けられた後、更に一般エリアに障害セクタが発生した場
合、その障害セクタを交代エリアに割り当てることがで
きず、アクセス不能となってしまう。そこで、このよう
な事態を未然に防止するために、交代セクタの使用状況
をソフトウェアにより監視し、ディスクユニットの交換
時期を判断する必要がある。
Further, after all the sectors in the replacement area have been assigned to the failure sector, if a failure sector further occurs in the general area, the failure sector cannot be assigned to the replacement area, which makes access inaccessible. Therefore, in order to prevent such a situation, it is necessary to monitor the usage status of the alternate sector by software and determine the replacement time of the disk unit.

〔従来の技術〕[Conventional technology]

従来、交代セクタの使用状況を管理する方式として
は、交代エリア内の全セクタの割付状況を読み取り、こ
れにより、割付部が割付済みであることを示すフラグビ
ットが立っているセクタ数をカウントする。そして、そ
の計数結果を主記憶装置又はディスクユニットの一般エ
リア内の特定アドレスに記録し、この記録内容からディ
スクユニットの交換時期を上位のシステムが判断できる
ようにしていた。
Conventionally, the method of managing the usage status of the replacement sector is to read the allocation status of all the sectors in the replacement area, and thereby count the number of sectors in which a flag bit indicating that the allocation unit has been allocated is set. . Then, the counting result is recorded in a specific address in the general area of the main storage device or the disk unit so that the host system can judge the replacement time of the disk unit from the recorded contents.

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

上述のような従来のディスクユニットの交代セクタ管
理方式では、上位装置が交代セクタの割付状況を知りた
い場合、上位装置から割付情報読出用コマンドをディス
ク制御装置に発行し、これにより交代エリア内の全セク
タを先頭番地から順次検索して交代セクタの割付状況に
関する情報を得るものであるため、交代セクタの総数が
数千乃至数万もある大容量ディスクユニットの場合に
は、その割付状況の読出しに数十秒〜数分の時間がかか
り、その間ディスクユニットに対する他のアクセスが不
能になり、オンライン処理に多大な影響を与える問題が
あった。
In the conventional alternate sector management method of the disk unit as described above, when the host device wants to know the allocation status of the alternate sector, the host device issues a command for reading allocation information to the disk control device, which causes Since all sectors are sequentially searched from the top address to obtain information on the allocation status of the replacement sectors, in the case of a large-capacity disk unit with a total of thousands to tens of thousands of replacement sectors, the allocation status is read. It takes several tens of seconds to several minutes, and other access to the disk unit is disabled during that time, which has a problem that the online processing is greatly affected.

本発明は、上述のような問題点を解決したもので、交
代セクタ割付状況の上位への通知処理を高速化し、オン
ライン処理に影響を及ぼさないようにしたセクタの交代
管理を制御するディスク制御装置を提供することを目的
とする。
DISCLOSURE OF THE INVENTION The present invention solves the above-mentioned problems, and speeds up the process of notifying the upper level of the alternate sector allocation status, and controls the sector alternate management so as not to affect the online process. The purpose is to provide.

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

第1図は、本発明のセクタの交代管理を制御するディ
スク制御装置の原理ブロック図を示す。
FIG. 1 shows a principle block diagram of a disk control device for controlling the replacement management of sectors according to the present invention.

図において、ディスクユニットの一般エリア内の障害
セクタに対して代わりのセクタを交代エリア内のセクタ
に割り付けるディスク制御装置は、交代セクタ管理制御
手段10と、交代セクタの割付状況に関する情報を記録す
る管理データ記録手段11とを備え、前記交代セクタ管理
制御手段10は、管理データ記録手段11に対し交代セクタ
割付情報のリード/ライトを可能にすると共に、交代セ
クタの割付けがある毎に記録情報を更新し、かつ上位か
らの割付情報読出要求に対し更新された記録情報を上位
に出力する機能を有している。
In the figure, a disk control device for allocating a substitute sector to a sector in a replacement area for a defective sector in a general area of a disk unit is a replacement sector management control means 10 and a management for recording information on allocation status of the replacement sector. The alternate sector management control means 10 is provided with data recording means 11 and enables the read / write of the alternate sector allocation information to the management data recording means 11 and updates the recorded information every time the alternate sector is allocated. In addition, it has a function of outputting the updated record information to the upper layer in response to the allocation information reading request from the upper layer.

〔作 用〕[Work]

本発明においては、障害セクタに対して代わりのセク
タを交代エリア内のセクタに割り付けるとき、交代セク
タ管理制御手段10が管理データ記録手段11の記録内容
を、交代エリア内のセクタ使用状況に合わせて更新し、
常に最新の交代セクタ割付状況を保持させることにな
る。従って、上位から割付情報の読出要求があれば、管
理データ記録手段11内のデータが読み出され上位へ出力
されることになる。
In the present invention, when a substitute sector is assigned to a sector in the replacement area for the faulty sector, the replacement sector management control means 10 adjusts the recorded contents of the management data recording means 11 to the sector usage status in the replacement area. Updated,
The latest replacement sector allocation status will always be maintained. Therefore, if there is a request to read the allocation information from the upper layer, the data in the management data recording means 11 will be read and output to the upper layer.

従って、本発明にあっては、交代セクタ割付状況の上
位への通知処理を高速化でき、オンライン処理に影響を
及ぼすことがなくなる。
Therefore, according to the present invention, it is possible to speed up the process of notifying the upper rank of the alternate sector allocation status, and to prevent the online process from being affected.

〔実施例〕〔Example〕

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

第2図は、本発明のセクタの交代管理を制御するディ
スク制御装置を適用した実施例の全体構成図を示す。
FIG. 2 shows an overall configuration diagram of an embodiment to which a disk controller for controlling sector replacement management of the present invention is applied.

図において、中央制御装置20は、演算制御、共通バス
制御及びメモリアクセス制御等の機能を備え、コンピュ
ータの論理的中枢をなすものである。
In the figure, a central controller 20 has functions such as arithmetic control, common bus control, and memory access control, and serves as a logical center of a computer.

主記憶装置21は、演算や制御に必要なプログラム及び
中央制御装置20の演算結果等のデータを格納するもの
で、中央制御装置20に接続されている。
The main storage device 21 stores a program necessary for calculation and control and data such as a calculation result of the central control device 20, and is connected to the central control device 20.

チャンネル装置22は、中央処理装置20及び主記憶装置
21と周辺装置間でデータの転送を行なうもので、このチ
ャンネル装置22には、共通バス23を介してディスク制御
装置24が接続され、ディスク制御装置24にはバス25を介
してハードディスク装置26が接続されている。
The channel device 22 includes the central processing unit 20 and the main storage device.
Data is transferred between the peripheral device 21 and a peripheral device. A disk controller 24 is connected to the channel device 22 via a common bus 23, and a hard disk device 26 is connected to the disk controller 24 via a bus 25. It is connected.

前記ハードディスク装置26は、前記主記憶装置21の補
助用として利用されるもので、その記憶エリアは、第3
図に示すように上位の中央処理装置20からのアクセスが
可能な一般エリアと、一般エリアの障害セクタに対する
代わりのセクタとなる交代エリア、及びコントローラの
正常性のためのリード/ライト試験、診断、その他のデ
ータを格納する保守エリアから成っている。
The hard disk device 26 is used as an auxiliary for the main storage device 21, and its storage area is the third
As shown in the figure, a general area accessible from the higher-level central processing unit 20, a replacement area serving as a substitute sector for a failed sector in the general area, and a read / write test for the normality of the controller, diagnosis, It consists of a maintenance area that stores other data.

前記ディスク制御装置24は、全体を制御するマイクロ
プロセッサ24aと、このマイクロプロセッサ24aに内部バ
ス24bを介して接続され、交代セクタの割付処理プログ
ラム、交代セクタの使用状況を使用する管理プログラム
及び交代セクタの管理データを更新処理するプログラム
等を格納するROM24cと、マイクロプロセッサ24aでの演
算結果及びその他のデータを格納するRAM24dと、内部バ
ス24bと共通バス23間に接続され、チャネル装置22とマ
イクロプロセッサ24aとの間のデータ授受を行なう内部
レジスタ24eと、マイクロプロセッサ24aにより制御さ
れ、内部バス24bに双方向ドライバ24fを介して接続され
た入出力制御回路24gと、入出力制御回路24gにバス25を
介して接続されたハードディスク装置26とRAM24d及び上
位の主記憶装置21間のデータ転送を行なうFIFO(ファー
ストイン・ファーストアウト)バッファ24hと、FIFOバ
ッファ24hと上位の主記憶装置21間のDMA(ダイレクト・
メモリ・アクセス)モードの転送制御を行なう上位側DM
A制御回路24iと、FIFOバッファ24hとハードディスクデ
バイス26間のDMAモードの転送制御を行なう下位側DMA制
御回路24jと、RAM24d及び上位の主記憶装置21からFIFO
バッファ24hへの転送データを選択するセレクタ24k等か
ら構成されている。
The disk controller 24 is connected to the microprocessor 24a for controlling the whole and the microprocessor 24a through the internal bus 24b, and the allocation processing program of the replacement sector, the management program and the replacement sector using the usage status of the replacement sector. ROM 24c for storing a program for updating the management data of RAM, RAM 24d for storing the calculation result in the microprocessor 24a and other data, and the connection between the internal bus 24b and the common bus 23, the channel device 22 and the microprocessor. An internal register 24e for exchanging data with the 24a, an input / output control circuit 24g controlled by the microprocessor 24a and connected to the internal bus 24b via a bidirectional driver 24f, and an input / output control circuit 24g for the bus 25. The hard disk drive 26, which is connected via the RAM 24d, and the FIFO (File Host-in / first-out buffer 24h, and DMA (direct transfer) between the FIFO buffer 24h and the host main memory 21.
Higher-order DM that controls transfer in memory access mode
A control circuit 24i, a lower side DMA control circuit 24j for controlling the transfer of the DMA mode between the FIFO buffer 24h and the hard disk device 26, the RAM 24d and the upper main memory 21 to the FIFO.
It is composed of a selector 24k and the like for selecting data to be transferred to the buffer 24h.

なお、第2図において、ディスク制御装置24のマイク
ロプロセッサ24a、ROM24c内の管理プログラム及び更新
処理プログラムが第1図の交代セクタ管理制御手段10に
相当する。また、第1図の管理データ記録手段11は、ハ
ードディスク装置26の保守エリアの一部を利用して構成
されるものである。
In FIG. 2, the management program and update processing program in the microprocessor 24a and ROM 24c of the disk controller 24 correspond to the alternate sector management control means 10 in FIG. Further, the management data recording means 11 of FIG. 1 is configured by utilizing a part of the maintenance area of the hard disk device 26.

次に、上記のように構成された本実施例の動作を第4
図及び第5図のフローチャートを参照しながら説明す
る。
Next, the operation of the present embodiment configured as described above will be described as the fourth operation.
Description will be made with reference to the flowcharts of FIGS.

第4図は、交代セクタ割付処理のフローを示すもの
で、上位の中央処理装置20からディスク制御装置24に対
し割込みが発生すると、その割込み情報が内部レジスタ
24cに書き込まれ、これによりマイクロプロセッサ24a
は、割込情報を受け付けて起動する。そして、ステップ
100において、交代セクタ割付指示か否かを判定する。
ここで、「NO」の時は他の割込原因の解析を実行する。
また交代セクタの割付指示であると判定された場合は、
障害が生じた一般セクタのアドレスを指定して交代割付
の指示を起動し、次のステップ101に移行して、指定さ
れた一般セクタに対し交代元のフォーマットを実行す
る。即ち、一般セクタの交代元が障害であるというフラ
グと交代割付を行なっているというフラグを立て、交代
エリアに対する交代先のアドレスを割付部に書き込む。
そして、次のステップ102では、交代エリア内の空セク
タに対し交代先のフォーマットを実行する。即ち、交代
元に対する交代先アドレスであるというフラグを立て、
交代元のアドレスを割付部に書き込む。その後はステッ
プ103において、障害の生じた一般セクタに代えて交代
先のセクタに上位からのデータを書き込む。
FIG. 4 shows a flow of the alternate sector allocation process. When an interrupt occurs from the upper central processing unit 20 to the disk control unit 24, the interrupt information is stored in the internal register.
Written in 24c, which causes microprocessor 24a
Accepts interrupt information and starts. And step
At 100, it is determined whether or not it is a replacement sector allocation instruction.
Here, when the result is "NO", analysis of other interrupt causes is executed.
If it is determined that the replacement sector is assigned,
The address of the general sector in which the failure has occurred is specified to activate the replacement allocation instruction, and the process proceeds to the next step 101, where the replacement source format is executed for the specified general sector. That is, a flag that the replacement source of the general sector is a failure and a flag that the replacement allocation is being performed are set, and the address of the replacement destination for the replacement area is written in the allocation unit.
Then, in the next step 102, the formatting of the replacement destination is executed for the empty sectors in the replacement area. In other words, set a flag that it is the replacement destination address for the replacement source,
Write the replacement source address in the allocation section. Thereafter, in step 103, the data from the higher order is written in the sector of the replacement destination instead of the general sector in which the failure has occurred.

この時、上位側DMA制御回路24iにより上位からのデー
タはセレクタ24kを通してFIFOバッフア24hに書き込ま
れ、その後、FIFOバッファ24h内のデータは、下位側DMA
制御回路24jにより入出力制御回路24gを通してハードデ
ィスク装置26の交代エリアに書き込まれる。
At this time, the upper DMA control circuit 24i writes the data from the upper side to the FIFO buffer 24h through the selector 24k, and then the data in the FIFO buffer 24h is transferred to the lower DMA side.
The data is written in the alternate area of the hard disk device 26 by the control circuit 24j through the input / output control circuit 24g.

また、交代セクタの割付処理の終了に伴い、次のステ
ップ104において、保守エリアの管理データ更新処理が
実行される。
Further, with the completion of the allocation processing of the replacement sector, in the next step 104, the management data updating processing of the maintenance area is executed.

第5図は、管理データ更新処理のフローを示す。 FIG. 5 shows a flow of management data update processing.

図において、交代セクタの割付処理が終了するに伴い
更新処理プログラムがスタートすると、まず、ステップ
200において、マイクロプロセッサ24aが入出力制御回路
24gに対しリードコマンドを発行し、入出力制御回路24g
を起動する。これに伴い入出力制御回路24gは、ハード
ディスク装置26に対し、アドレス指定された保守エリア
の管理データセーブエリアから、これに記録されている
管理データを読み出すと共に、入出力制御回路24gから
の指令により動作する、下位側DMA制御回路24jによっ
て、ディスクからの読出データを入出力制御回路24g、
セレクタ24kを通してFIFOバッファ24hにDMA転送する。
その後、ステップ201において、マイクロプロセッサ24a
が入出力制御回路の終了ステータスを見て正常終了した
かを判定する。ここで、正常終了したと判定された時に
は、次のステップ202に移行して、FIFOバッファ24hに一
旦書き込まれた読出データを、下位側DMA制御回路24jに
より双方向ドライバ24f及び内部バス24bを通してRAM24d
にDMA転送する。
In the figure, when the update processing program starts with the completion of the replacement sector allocation processing, first, the step
In 200, the microprocessor 24a is an input / output control circuit.
Issue a read command to 24g and input / output control circuit 24g
To start. Along with this, the input / output control circuit 24g reads out the management data recorded in the management data save area of the addressed maintenance area to the hard disk device 26, and at the same time, receives an instruction from the input / output control circuit 24g. By the lower DMA control circuit 24j which operates, read data from the disk is input / output control circuit 24g,
DMA transfer is performed to the FIFO buffer 24h through the selector 24k.
Then, in step 201, the microprocessor 24a
Checks the end status of the I / O control circuit to determine whether it ended normally. Here, when it is determined that the process has ended normally, the process proceeds to the next step 202, and the read data once written in the FIFO buffer 24h is transferred to the RAM 24d through the bidirectional driver 24f and the internal bus 24b by the lower DMA control circuit 24j.
DMA transfer to.

次のステップ203では、マイクロプロセッサ24aがROM2
4cに格納されている更新処理プログラムに従ってRAM24d
上の転送データを、交代割付後の新しいデータに書き替
える。管理データの更新処理が終了すると、RAM24d内の
更新データは、内部バス24b、双方向ドライバ24f及びセ
レクタ24kを通してFIFOバッファ24hに転送される(ステ
ップ204)。その後、マイクロプロセッサ24aからの入出
力制御回路24gに対しライトコマンドが発行されると、
入出力制御回路24gが起動し、かつ下位側DMA制御回路24
jが動作してFIFOバッファ24h内の更新データがハードデ
ィスク装置26の保守エリア内の管理データセーブエリア
に書き込まれる(ステップ205)。そして、マイクロプ
ロセッサ24aが入出力制御回路24gの終了ステータスを見
て正常終了したかをチェックする(ステップ206)。正
常終了であれば、更新処理フローが終了する。
In the next step 203, the microprocessor 24a
RAM24d according to the update processing program stored in 4c
Rewrite the above transfer data to new data after the replacement assignment. When the management data update processing is completed, the update data in the RAM 24d is transferred to the FIFO buffer 24h through the internal bus 24b, the bidirectional driver 24f and the selector 24k (step 204). After that, when a write command is issued from the microprocessor 24a to the input / output control circuit 24g,
The input / output control circuit 24g is activated, and the lower DMA control circuit 24
j operates to write the updated data in the FIFO buffer 24h to the management data save area in the maintenance area of the hard disk device 26 (step 205). Then, the microprocessor 24a checks the termination status of the input / output control circuit 24g to check whether it has terminated normally (step 206). If normal termination, the update processing flow ends.

一方、前記ステップ201及び206において、入出力制御
回路24gの終了ステータスが異常であると判定された場
合は、ステップ207に移行して、エラー原因を解析し、
次のステップ208において、リトライを実行するか否か
を判定すると共に、リトライを実行した場合は、ステッ
プ200に戻る。また、リトライを実行してもエラーが救
済されなかったり、あるいはリトライを実行しない場合
は、次のステップ209において、エラーフラグをセット
して異常終了させる。
On the other hand, in steps 201 and 206, if it is determined that the end status of the input / output control circuit 24g is abnormal, the process proceeds to step 207 to analyze the error cause,
In the next step 208, it is determined whether or not to execute the retry, and when the retry is executed, the process returns to step 200. Further, if the error is not relieved even if the retry is executed, or if the retry is not executed, the error flag is set in the next step 209 to terminate abnormally.

次に、保守エリアの管理データセーブエリアに記録さ
れた管理データ、即ち交代エリアの全セクタ数、一般エ
リアの障害セクタに対し割り付けた割付済み交代セクタ
数等の交代セクタ使用状況に関する情報を、上位の中央
処理装置20から読出要求に対し転送する場合について述
べる。
Next, the management data recorded in the management data save area of the maintenance area, that is, the information on the replacement sector usage status such as the total number of sectors in the replacement area and the number of allocated replacement sectors allocated to the failed sector in the general area The case of transferring a read request from the central processing unit 20 will be described.

この場合は、まず、中央処理装置20から読出要求コマ
ンドをディスク制御装置24に出すと、マイクロプロセッ
サ24aが読出要求コマンドを受け付けて、入出力制御回
路24gにリード起動を指示する。これに伴いハードディ
スク装置26の保守エリアに記録されている管理データを
下位側DMA制御回路24jによりFIFOバッファ24hにDMA転送
する。その後、FIFOバッファ24h内のデータは上位側のD
MA制御回路24iにより中央処理装置20へDMA転送される。
これにより、交代セクタの使用状況に関する情報は、数
m secの単位で上方へ通知し得ることになる。
In this case, first, when the central processing unit 20 issues a read request command to the disk controller 24, the microprocessor 24a accepts the read request command and instructs the input / output control circuit 24g to perform read activation. Along with this, the management data recorded in the maintenance area of the hard disk device 26 is DMA-transferred to the FIFO buffer 24h by the lower DMA control circuit 24j. After that, the data in the FIFO buffer 24h is
DMA transfer to the central processing unit 20 is performed by the MA control circuit 24i.
This gives information on the usage of the replacement sector
It will be possible to notify upward in units of m sec.

上述のような本実施例にあっては、ディスク制御装置
24を交代セクタ管理用ファームウェアが、交代エリア内
の全セクタ数及び割付済交代セクタ数等の交代セクタ使
用状況を表す管理データを一般エリア及び交代エリアの
割付部からまとめて、ハードディスク装置26の保守エリ
ア内の管理データセーブエリアに記録し、そして、その
管理データは、交代セクタ割付が行なわれる毎に更新
し、常に最新の情報として保持するようにしたものであ
るから、交代セクタの使用状況を上位のシステムが知り
たい場合、上位の中央処理装置20から割付情報読出要求
コマンドをディスク制御装置24に出すだけで良く、その
通知処理を従来方式に比し大幅に高速化できると共に、
オンライン処理に影響を及ぼすことのない、信頼性の高
い交代セクタの割付情報を上位へ通知できる。従って、
交代セクタを使いきったことに伴うアクセス不能等の事
態を未然に防止できるほか、ハードディスク装置の交換
時期を正確に判断することができる。
In this embodiment as described above, the disk controller
The replacement sector management firmware collects the management data indicating the usage status of the replacement sectors such as the total number of sectors in the replacement area and the allocated replacement sectors from the allocation section of the general area and the replacement area to maintain the hard disk drive 26. It is recorded in the management data save area in the area, and the management data is updated every time the alternate sector allocation is performed, and is always held as the latest information. If the higher-level system wants to know, it only needs to issue the allocation information read request command from the higher-level central processing unit 20 to the disk control unit 24, and the notification process can be significantly speeded up compared with the conventional system.
It is possible to notify the upper layer of highly reliable replacement sector allocation information that does not affect online processing. Therefore,
It is possible to prevent inaccessibility and the like due to exhaustion of the alternate sector and to accurately determine the replacement time of the hard disk drive.

〔発明の効果〕〔The invention's effect〕

以上述べたように、本発明によれば、一般エリアの障
害セクタに対して代わりのセクタを交代エリア内のセク
タに割り付けたときの交代セクタ割付状況をまとめて管
理データエリアにセーブし、この管理データを更新して
新しい情報に保持するようにしたので、上位への交代セ
クタ割付情報の読出要求に対し、その通知処理を高速化
できると共に、その通知処理がオンライン処理に影響す
るのを防止できる。
As described above, according to the present invention, the replacement sector allocation status when a substitute sector is allocated to a sector in the replacement area for a failed sector in the general area is collectively saved in the management data area, and this management is performed. Since the data is updated and held in the new information, the notification processing can be speeded up for the request to read the alternate sector allocation information to the upper layer, and the notification processing can be prevented from affecting the online processing. .

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

第1図は本発明のセクタの交代管理を制御するディスク
制御装置の原理ブロック図、 第2図は本発明のセクタの交代管理を制御するディスク
制御装置を適用した実施例の全体構成図、 第3図はハードディスク装置の記憶エリア状態を示す説
明図、 第4図は本発明の実施例における交代セクタ割付処理の
概略を示すフローチャート、 第5図は本発明の実施例におけるデータ更新処理を示す
フローチャートである。 図において、 10は交代セクタ管理制御手段、 11は管理データ記録手段、 20は中央処理装置、 21は主記憶装置、 22はチャネル装置、 24はディスク制御装置、 24aはマイクロプロセッサ、 24cはROM、 24dはRAM、 24gは入出力制御回路、 24hはFIFOバッファ、 26はハードディスク装置である。
FIG. 1 is a block diagram showing the principle of a disk control device for controlling sector replacement management according to the present invention. FIG. 2 is an overall configuration diagram of an embodiment to which the disk control device for controlling sector replacement management according to the present invention is applied. FIG. 3 is an explanatory diagram showing a storage area state of the hard disk device, FIG. 4 is a flow chart showing an outline of alternate sector allocation processing in the embodiment of the present invention, and FIG. 5 is a flow chart showing data update processing in the embodiment of the present invention. Is. In the figure, 10 is an alternate sector management control means, 11 is management data recording means, 20 is a central processing unit, 21 is a main memory device, 22 is a channel device, 24 is a disk control device, 24a is a microprocessor, 24c is ROM, 24d is a RAM, 24g is an input / output control circuit, 24h is a FIFO buffer, and 26 is a hard disk device.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】ハードディスクの一般エリア内の障害セク
タに対して代わりのセクタをハードディスクの交代エリ
ア内のセクタに割り付ける機能を有するディスク制御装
置において、 交代セクタの割付状況に関する情報をまとめて記録する
管理データ記録手段と、 前記管理データ記録手段に対し交代セクタ割付情報のリ
ード/ライトを可能にすると共に交代セクタの割付処理
毎に記録情報を更新し、且つ上位からの情報読み出し要
求に対し記録情報を上位へ転送する交代セクタ管理制御
手段とを、 備えて成ることを特徴とするセクタの交代管理を制御す
るディスク制御装置。
1. A disk controller having a function of allocating a substitute sector to a sector in a replacement area of a hard disk for a failed sector in a general area of a hard disk, and managing to collectively record information on allocation status of the replacement sector. The data recording unit and the management data recording unit can read / write the alternate sector allocation information, update the recording information for each alternate sector allocation process, and write the recording information in response to an information read request from the host. A disk control device for controlling the replacement management of a sector, characterized by comprising replacement sector management control means for transferring to a higher level.
JP62235759A 1987-09-19 1987-09-19 Disk controller for controlling sector replacement management Expired - Lifetime JPH0814934B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62235759A JPH0814934B2 (en) 1987-09-19 1987-09-19 Disk controller for controlling sector replacement management

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62235759A JPH0814934B2 (en) 1987-09-19 1987-09-19 Disk controller for controlling sector replacement management

Publications (2)

Publication Number Publication Date
JPS6478468A JPS6478468A (en) 1989-03-23
JPH0814934B2 true JPH0814934B2 (en) 1996-02-14

Family

ID=16990816

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62235759A Expired - Lifetime JPH0814934B2 (en) 1987-09-19 1987-09-19 Disk controller for controlling sector replacement management

Country Status (1)

Country Link
JP (1) JPH0814934B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010055718A (en) * 2008-08-29 2010-03-11 Nippon Hoso Kyokai <Nhk> Hard disk device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5694454A (en) * 1979-12-28 1981-07-30 Fujitsu Ltd Access control system of magnetic disc device

Also Published As

Publication number Publication date
JPS6478468A (en) 1989-03-23

Similar Documents

Publication Publication Date Title
US6467054B1 (en) Self test for storage device
JP2548480B2 (en) Disk device diagnostic method for array disk device
JP2501752B2 (en) Storage device of computer system and method of storing data
US5568628A (en) Storage control method and apparatus for highly reliable storage controller with multiple cache memories
JPH07311661A (en) Semiconductor disk device
JP3260999B2 (en) Control method of disk controller
JP2004013313A (en) Storage device, information processing system equipped with the storage device, formatting method for the storage device, recording method for data, and program for realizing recording of format and data.
JPH01231122A (en) Data storage device
JPH0646488B2 (en) Storage medium auto changer device
JPH0814934B2 (en) Disk controller for controlling sector replacement management
JPH08190510A (en) Information processor capable of mounting semiconductor memory including defective part
US6360296B1 (en) Disk control apparatus
JPH1196685A (en) Computer system
US7765452B2 (en) Disk controller
US20060026459A1 (en) Method and apparatus for storing data
JP2000056934A (en) Storage subsystem
JP3573599B2 (en) Data recovery method for disk array
JPH11353127A (en) Disk array device
JP3614886B2 (en) File system
JPS601672A (en) Processing method for defective block of magnetic disk device
KR100216365B1 (en) Disk error detection and recovery method in electronic exchange
JP2699984B2 (en) Alternation area management method and apparatus
JPH11237959A (en) Multiple writing storage device
JP3136207B2 (en) Method of using information recording medium in information recording device
JPH08123626A (en) Disk device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080214

Year of fee payment: 12