JP2699984B2 - Alternation area management method and apparatus - Google Patents

Alternation area management method and apparatus

Info

Publication number
JP2699984B2
JP2699984B2 JP2123189A JP12318990A JP2699984B2 JP 2699984 B2 JP2699984 B2 JP 2699984B2 JP 2123189 A JP2123189 A JP 2123189A JP 12318990 A JP12318990 A JP 12318990A JP 2699984 B2 JP2699984 B2 JP 2699984B2
Authority
JP
Japan
Prior art keywords
data storage
external data
replacement area
replacement
threshold value
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
JP2123189A
Other languages
Japanese (ja)
Other versions
JPH0421974A (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 JP2123189A priority Critical patent/JP2699984B2/en
Publication of JPH0421974A publication Critical patent/JPH0421974A/en
Application granted granted Critical
Publication of JP2699984B2 publication Critical patent/JP2699984B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Description

【発明の詳細な説明】 〔概 要〕 例えば磁気ディスク装置等の外部データ記憶装置上の
データ記憶媒体の管理方法および装置に関し、特に、デ
ータ記憶媒体上の欠陥(不良)領域に対する交代領域の
割り付けの状態を管理する交代領域管理方法と装置に関
し、 ホストコンピュータ側で運用管理のためのソフトウェ
アを特に用意することなく、交代領域の割り付け状態を
管理することの可能な交代領域管理方法および装置を提
供することを目的とし、 ホストコンピュータと、外部データ記憶制御装置と、
外部データ記憶媒体とからなるシステムにおいて該外部
データ記憶媒体内の欠陥領域の代替として設けられる交
代領域の割り付けを管理する交代領域管理方法であっ
て、交代領域の割り付けという事象を該交代領域のアク
セス時間の多少に応じて2種類以上に分類し、該外部デ
ータ記憶制御装置内に該分類毎に閾値を記憶し、システ
ムの稼動中に該事象が発生する毎に該分類毎にその回数
を該外部データ記憶制御装置内でカウントし、該外部デ
ータ記憶制御装置内で分類毎に該事象の発生回数と該閾
値とを比較し、発生回数が閾値より大となったものがあ
れば通報する各段階を具備して構成する。
DETAILED DESCRIPTION OF THE INVENTION [Summary] For example, a method and apparatus for managing a data storage medium on an external data storage device such as a magnetic disk device, and more particularly, assigning a replacement area to a defective (defective) area on the data storage medium The present invention provides a method and apparatus for managing a spare area that can manage the state of the spare area allocation without specially preparing software for operation management on the host computer side. A host computer, an external data storage controller,
A replacement area management method for managing allocation of a replacement area provided as a replacement for a defective area in the external data storage medium in a system including an external data storage medium, wherein an event of allocation of a replacement area is determined by accessing the replacement area. The data is classified into two or more types according to the time, and a threshold value is stored in the external data storage control device for each of the classifications. Each time the event occurs during the operation of the system, the number of times is classified by the classification. Counting in the external data storage control device, comparing the number of occurrences of the event with the threshold value for each classification in the external data storage control device, and reporting any event in which the number of occurrences exceeds the threshold value. It comprises steps.

〔産業上の利用分野〕[Industrial applications]

本発明は、例えば磁気ディスク装置等の外部データ記
憶装置上のデータ記憶媒体の管理方法および装置に関
し、特に、データ記憶媒体上の欠陥(不良)領域に対す
る交代領域の割り付けの状態を管理する交代領域管理方
法と装置に関するものである。
The present invention relates to a method and apparatus for managing a data storage medium on an external data storage device such as a magnetic disk device, and more particularly to a replacement area for managing the state of assignment of a replacement area to a defective (defective) area on a data storage medium. The present invention relates to a management method and a device.

近年、コンピュータシステムの高性能化と大容量化に
伴い、磁気ディスク装置を中心とした外部データ記憶装
置は、記憶容量の拡大と高性能化が求められている。一
般に、磁気ディスク装置に使用される磁気記録媒体の様
な外部データ記憶媒体では、その材料や製造プロセス上
の特質により、いくつかの微小欠陥部分が含まれること
は、安価な大容量データ記憶手段を安定的に供給する上
で、許容しなければならない条件となっている。このた
め、記憶媒体へのデータの記録および再生を制御する制
御装置には、前記データ記憶媒体上の欠陥部分を回避す
るための方策が不可欠である。また、長時間の運用中に
データ記憶媒体の経時的特性変化等によって発生する欠
陥に対しても、前記制御装置は、その欠陥部分を回避し
てデータ記憶装置の継続的使用を可能とする手段を具備
しなければならない。本発明は、この様な欠陥部分を回
避するために自動的に割り付けられる交代領域の割り付
け状態の管理に言及する。
In recent years, as the performance and capacity of computer systems have increased, external data storage devices, mainly magnetic disk devices, have been required to have higher storage capacity and higher performance. Generally, in an external data storage medium such as a magnetic recording medium used in a magnetic disk drive, it is inexpensive to use a large-capacity data storage means due to the nature of its material and manufacturing process. This is a condition that must be allowed for stable supply of Therefore, a control device for controlling recording and reproduction of data on and from the storage medium requires a measure for avoiding a defective portion on the data storage medium. In addition, even if a defect occurs due to a change over time in characteristics of the data storage medium during long-term operation, the control device avoids the defective portion and enables continuous use of the data storage device. Must be provided. The present invention refers to the management of the allocation state of the alternate area which is automatically allocated to avoid such a defective portion.

〔従来の技術〕 データ記憶媒体上の欠陥部分を回避する手法として
は、媒体上でのデータ記録の特質により種々の方法が考
案されているが、一般には、データ記憶媒体上での記録
単位毎に、その単位内に欠陥が存在するか否かを調べ、
欠陥が存在する時は、その記録単位に対して、あらかじ
め用意しておいた予備の記憶領域の一部を交代領域とし
て割り付けることが行われる。例えば、セクタ記録方式
の磁気ディスク装置では、トラック内またはシリンダ内
の数セクタ、あるいは特定の数シリンダを交代領域用の
予備として確保しておき、媒体欠陥の存在するセクタに
対しては、これらの予備の記憶領域の中から正常なセク
タを交代セクタとして割り付ける。
[Prior Art] As a method of avoiding a defective portion on a data storage medium, various methods have been devised depending on the characteristics of data recording on the medium. To determine if there are any defects in the unit,
When a defect exists, a part of a spare storage area prepared in advance is assigned to the recording unit as a replacement area. For example, in a magnetic disk drive of the sector recording system, several sectors in a track or a cylinder, or a specific number of cylinders are reserved as spares for an alternate area, and these sectors are used for a sector having a medium defect. A normal sector is allocated as a replacement sector from the spare storage area.

一方、磁気ディスク装置では、その物理的構造の性格
上、データのアクセスは、同一トラック上をディスク媒
体の回転に伴って連続的に処理していくことが最も効率
的である。しかし、前記交代セクタ処理によって、一般
に、欠陥の存在するセクタに対して、物理的に非連続な
位置に設けられた予備の記憶領域に交代セクタを割り付
けることが多いため、欠陥の回避処理により、交代セク
タへの位置づけのために回転待ちやシーク動作等を必要
とし、データアクセスの性能が著しく低下する。
On the other hand, in the magnetic disk device, it is most efficient to access data continuously on the same track as the disk medium rotates, due to its physical structure. However, the replacement sector processing generally assigns a replacement sector to a spare storage area provided at a physically non-contiguous position with respect to a sector having a defect. A rotation wait, a seek operation, and the like are required for positioning in the replacement sector, and the data access performance is significantly reduced.

交代セクタの割り付けは、一般に、(1)データ記憶
媒体の全面初期化時、(2)運用中に特定セクタのみの
交代処理を実施する時、に行うことができる。前者の場
合には、データ記憶媒体上の既存データは保存の必要が
なく、従って、制御装置は、可能な限りデータアクセス
の連続性を維持できるように、交代セクタとの物理的な
位置関係を考慮して比較的自由に交代セクタの再割り当
てを実行することが許される。しかし、後者の場合は、
データ記憶媒体上の既存データは、交代セクタ処理を行
う対象セクタを除いて、その保全を第一優先とする必要
があるため、一般に、アクセスの連続性維持は犠牲にさ
れデータ保全が確実な方法で交代セクタの割り当てが行
われる。結果として、交代セクタは元のセクタからは物
理的に非連続な位置に割り付けられ、以降のアクセス性
能の低下は余儀無くされる。
Allocation of a replacement sector can be generally performed (1) when the entire surface of the data storage medium is initialized, and (2) when the replacement process of only a specific sector is performed during operation. In the former case, the existing data on the data storage medium does not need to be stored, and therefore, the control device establishes a physical positional relationship with the replacement sector so as to maintain continuity of data access as much as possible. It is permissible to perform the reassignment of the replacement sector relatively freely taking into account. But in the latter case,
Existing data on a data storage medium must be given top priority to preserve its data, except for the target sector to be subjected to alternate sector processing. Therefore, in general, maintaining continuity of access is sacrificed and data security is ensured. , A replacement sector is allocated. As a result, the replacement sector is allocated to a physically non-contiguous position from the original sector, and the subsequent access performance must be reduced.

交代セクタの割り付け処理により、その磁気ディスク
装置は見かけ上は無欠陥の状態となり、その磁気ディス
ク装置を使用するホストコンピュータはデータの記録保
存に対して特別な考慮を払う必要がなくなる。しかし、
特に交代セクタの逐次追加により、前記したようにデー
タアクセスの性能低下が徐々に進行していることに注意
しなければならない。
As a result of the replacement sector allocation process, the magnetic disk device becomes apparently defect-free, and the host computer using the magnetic disk device does not need to pay special consideration to data recording and storage. But,
In particular, it should be noted that the performance of the data access is gradually degraded as described above due to the sequential addition of replacement sectors.

コンピュータシステムの性能向上に伴い、この性能低
下を回避する必要が生じ、このため、ホストコンピュー
タでは磁気ディスク媒体の運用状況を監視・解析するた
めの特別なソフトウェアを用意する必要があった。この
ソフトウェアは記憶媒体の物理アドレスを直接指定して
その内容を読み出す命令を含むプログラムからなり、こ
れを定期的にあるいは随時にホストコンピュータのコン
ソールからの指令により実行することによって、交代セ
クタの割り付け状態をオペレータが知ることができると
いうものである。その結果として交代セクタの増加が判
明した記憶媒体については、その記憶内容を他の媒体に
移した後、全面の再初期化処理を行うことで、交代セク
タを物理的に最適な位置に再割り当てし、本来のアクセ
ス性能に近づけることができる。また、異常に交代セク
タの増加した装置については、装置そのものに何らかの
異常があるものとしてその予防交換を行うことで致命的
な障害の発生を事前に回避することも可能となる。
As the performance of the computer system has improved, it has become necessary to avoid the performance degradation. For this reason, it has been necessary for the host computer to prepare special software for monitoring and analyzing the operation status of the magnetic disk medium. This software consists of a program including an instruction to directly specify the physical address of the storage medium and read out the contents. By executing this program periodically or at any time according to a command from the console of the host computer, the allocation status of the replacement sector is determined. Can be known by the operator. As a result, for the storage medium for which the number of replacement sectors has been found to increase, the storage contents are transferred to another medium, and then the entire surface is re-initialized to reallocate the replacement sector to a physically optimal position. However, it is possible to approach the original access performance. Further, for a device in which the number of replacement sectors has abnormally increased, it is possible to avoid a fatal failure in advance by performing preventive replacement assuming that the device itself has some kind of abnormality.

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

何れにしても、従来は、データ記憶媒体の運用管理の
ための特別なソフトウェアを用意する必要があり、ま
た、欠陥回避処理は個々の外部データ記憶装置の機種毎
にその手法が異なるため、ホストコンピュータ側にはそ
れに接続される外部データ記憶装置の機種特性に応じた
何種類もの運用管理プログラムを準備する必要があっ
た。
In any case, conventionally, it is necessary to prepare special software for operation management of the data storage medium, and since the method of the defect avoidance processing is different for each model of the external data storage device, the host computer needs to prepare the software. On the computer side, it was necessary to prepare several types of operation management programs according to the model characteristics of the external data storage device connected to the computer.

したがって本発明の目的は、ホストコンピュータ側で
運用管理のためのソフトウェアを特に用意することな
く、交代領域の割り付け状態を管理することの可能な交
代領域管理方法および装置を提供することにある。
Therefore, an object of the present invention is to provide a method and an apparatus for managing a replacement area, which can manage the allocation state of the replacement area without specially preparing software for operation management on the host computer side.

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

第1図は本発明の交代領域管理装置の原理構成図であ
り、第2図は本発明の交代領域管理方法のフローチャー
トである。
FIG. 1 is a block diagram showing the principle of a spare area management apparatus according to the present invention, and FIG. 2 is a flowchart of a spare area management method according to the present invention.

本発明の交代領域管理方法は、ホストコンピュータ1
と、外部データ記憶制御装置2と、外部データ記憶媒体
3とからなるシステムにおいて該外部データ記憶媒体3
内の欠陥領域の代替として設けられる交代領域の割り付
けを管理する交代領域管理方法であって、交代領域の割
り付けという事象を該交代領域のアクセス時間の多少に
応じて2種類以上に分類し、該外部データ記憶制御装置
2内に該分類毎に閾値を記憶し(ステップa)、システ
ムの稼動中に該事象が発生する毎に該分類毎に(ステッ
プb)その回数を該外部データ記憶制御装置2内でカウ
ントし(ステップc)、該外部データ記憶制御装置2内
で分類毎に該事象の発生回数と該閾値とを比較し(ステ
ップd)、発生回数が閾値より大となったものがあれば
通報する(ステップe)各段階を具備することを特徴と
するものである。
The replacement area management method according to the present invention includes a host computer 1
, An external data storage control device 2, and an external data storage medium 3
A replacement area management method for managing the allocation of a replacement area provided as a substitute for a defective area in the replacement area, wherein an event of allocation of the replacement area is classified into two or more types according to the access time of the replacement area. A threshold value is stored in the external data storage control device 2 for each category (step a), and each time the event occurs during operation of the system (step b), the number of times is stored in the external data storage control device. 2 (step c), and the external data storage controller 2 compares the number of occurrences of the event with the threshold for each classification in the external data storage control device 2 (step d). It is characterized by providing each step of reporting if there is any (step e).

また、本発明の交代領域管理装置は、ホストコンピュ
ータ1と、外部データ記憶媒体3と、該外部データ記憶
媒体3への書込み読出しを制御する記憶制御手段24を具
備する外部データ記憶制御装置2とからなるシステムに
おいて該外部データ記憶媒体3内の欠陥領域の代替とし
て設けられる交代領域の割り付けを管理する交代領域管
理装置であって、該外部データ記憶制御装置2内に具備
され、該交代領域のアクセス時間の多少に応じた分類毎
の閾値を2つ以上記憶する閾値記憶手段21と、該記憶制
御手段24が交代領域を割り付けた回数を該分類毎にカウ
ントする計数手段22と、該分類毎に該計数手段22の計数
値と該閾値記憶手段21が記憶する閾値とを比較する比較
手段23とを具備することを特徴とするものである。
Further, the replacement area management device of the present invention includes an external data storage control device 2 including a host computer 1, an external data storage medium 3, and storage control means 24 for controlling writing and reading to and from the external data storage medium 3. A replacement area management device for managing allocation of a replacement area provided as a replacement for a defective area in the external data storage medium 3 in the system comprising: Threshold value storage means 21 for storing two or more threshold values for each category according to the degree of access time; counting means 22 for counting the number of times the storage control means 24 has assigned a replacement area for each category; And a comparing means 23 for comparing the count value of the counting means 22 with the threshold value stored in the threshold value storage means 21.

〔作 用〕(Operation)

外部データ記憶媒体3を直接制御する外部データ記憶
制御装置2内で交代セクタの割り付け回数をカウントす
るのであるから、装置の機種毎に異なる欠陥回避処理に
外部データ記憶制御装置2内で個別に対応することがで
きる。交代領域のアクセスに要する時間に応じて分類し
て回数がカウントされ閾値と比較されるので、交代領域
の割り付けによるアクセス時間の増大を確実に知ること
ができる。
Since the number of times of replacement sector allocation is counted in the external data storage control device 2 which directly controls the external data storage medium 3, the external data storage control device 2 individually copes with defect avoidance processing which differs for each device model. can do. Since the number of times is classified according to the time required for accessing the replacement area and the number is counted and compared with the threshold value, it is possible to surely know the increase in the access time due to the allocation of the replacement area.

〔実施例〕〔Example〕

磁気ディスク装置を例にとって本発明を具体的に説明
する。
The present invention will be specifically described by taking a magnetic disk drive as an example.

通常の磁気ディスク装置の場合、同一のシリンダ番号
に属する各セクタを同一のトラック番号のものについて
順次アクセスし、他のトラック番号へ移行するときは移
行前のトラックで次に読み出される順番にあったセクタ
番号と同一のセクタ番号のセクタをアクセスし、以下同
一のトラック内で順次他のセクタをアクセスするといっ
た順番にアクセスしていけば、最小の待ち時間でアクセ
スすることができる。同一のシリンダ内で前記の順番か
ら外れた位置のセクタをアクセスする場合には、対象と
するセクタをシークする動作が必要となり、通常、最大
でディスク1回転分の時間が必要になる。他のシリンダ
をアクセスする場合には、ヘッドをディスクの半径方向
へ動かす動作のための時間がさらに必要となる。
In the case of a normal magnetic disk drive, each sector belonging to the same cylinder number is sequentially accessed with the same track number, and when shifting to another track number, the next read order was used in the track before the shift. If a sector having the same sector number as the sector number is accessed, and then other sectors are sequentially accessed in the same track, access can be made with a minimum waiting time. When accessing a sector at a position out of the above order in the same cylinder, an operation of seeking the target sector is required, and usually, a time corresponding to a maximum of one rotation of the disk is required. When accessing another cylinder, more time is required for the operation of moving the head in the radial direction of the disk.

すなわち、通常の磁気ディスク装置のアクセス時間
は、 所定の順番でアクセスする場合、 同一のシリンダ内で所定の順番からはずれてアクセ
スする場合 他のシリンダをアクセスする場合 の3通りに分類される。
That is, the access time of a normal magnetic disk device is classified into three types: access in a predetermined order, access out of a predetermined order within the same cylinder, and access to another cylinder.

したがって磁気ディスクを全面初期化する場合には、
物理アドレスに対してできるだけの順番に近くなる様
に論理アドレスが割り当てられる。
Therefore, when initializing the entire magnetic disk,
Logical addresses are assigned so as to be as close as possible to physical addresses.

第4図は全面初期化において磁気ディスクに全く欠陥
がない場合の論理アドレスの割り当ての一例を概念的に
示すもので、各枡目が1つのセクタを、T0〜T3は各トラ
ックを、CYL0〜CYLn,CYLn+1は各シリンダを示す。各シ
リンダ内では枡目内に示す数字の順番で論理アドレスが
割り当てられ、数セクタ(枡目内にSで示す)が予備と
して確保され、さらに特定の数シリンダ(CYLn+1で示
す)が予備として確保される。同一シリンダ内で付され
た番号の順にアクセスする限り、最小アクセス時間が達
成される。
FIG. 4 conceptually shows an example of the assignment of logical addresses when there is no defect in the magnetic disk at the time of the entire initialization. Each cell has one sector, T0 to T3 each track, and CYL0 to CYL0. CYL n and CYL n + 1 indicate each cylinder. Within each cylinder, logical addresses are assigned in the order of the numbers shown in the cells, several sectors (represented by S in the cells) are reserved as spares, and a specific number of cylinders (represented by CYL n + 1 ) are further reserved. Reserved as a reserve. As long as access is made in the order of the numbers assigned in the same cylinder, the minimum access time is achieved.

第5図は欠陥セクタが発生したときの交代セクタの割
り当てを説明する図である。(A)欄は記憶媒体の全面
初期化の際に図中の×印で示した個所に欠陥セクタがあ
ったときの割り付け方式を示す。図に示す様に、欠陥セ
クタをスキップする形で論理アドレスが割り当てられ
る。この場合、欠陥セクタの数がそのシリンダ内の予備
セクタの数より少ないので、同一シリンダ内にすべての
セクタが割り当てられ、しかも、出来るだけ物理的連続
性を維持する形で割り当てられる。したがってこの場
合、欠陥セクタがあってもそのためのアクセス時間の増
加はわずかである。
FIG. 5 is a diagram for explaining replacement sector allocation when a defective sector occurs. The column (A) shows an allocation method when there is a defective sector at the location indicated by the mark x in the figure when the storage medium is entirely initialized. As shown in the figure, logical addresses are assigned in such a manner that defective sectors are skipped. In this case, since the number of defective sectors is smaller than the number of spare sectors in the cylinder, all the sectors are allocated in the same cylinder, and moreover, the physical sectors are allocated as much as possible. Therefore, in this case, even if there is a defective sector, the access time for the defective sector is slightly increased.

(B)欄は(A)欄の状態で稼動中に、さらに番号
“14"で示された位置のセクタに欠陥が発生したときの
交代セクタの割り当てを示す。稼動中であるので番号
“15"〜“28"のセクタにすでにデータが書き込まれてい
る可能性があり、(A)の様に交代セクタを割り当てる
操作を行うことは危険であるので、交代セクタは予備セ
クタの位置に割り当てられる。この場合には、番号“1
3"“14"“15"のセクタを連続的にアクセスする際には、
ディスクの回転待ちの時間が必要となり、アクセス時間
が増大する。
The (B) column shows the allocation of the replacement sector when a defect occurs in the sector at the position indicated by the number “14” during the operation in the state of the (A) column. Since there is a possibility that data has already been written in the sectors of numbers "15" to "28" since the operation is in progress, and it is dangerous to perform the operation of allocating the replacement sector as shown in FIG. Is assigned to the position of the spare sector. In this case, the number "1
When accessing 3 "," 14 "and" 15 "sectors continuously,
The time for waiting for the rotation of the disk is required, and the access time increases.

(C)欄はさらに、番号“25"の位置のセクタに欠陥
が発生したときの交代シリンダの割り当て方式を示す。
同一シリンダ内の予備セクタは、すでに使い尽くされて
いるので、交代セクタは予備シリンダCYLn+1内の1つの
セクタに割り当てられる。この場合に番号“24"“25"
“26"のセクタを連続的にアクセスする際には、ディス
クの回転待ちの時間に加えて、ヘッドを機械的に動かし
位置決めするための時間を必要とするので、アクセス時
間は著しく増大する。
The (C) column further shows a replacement cylinder allocation method when a defect occurs in the sector at the position of the number “25”.
Since the spare sector in the same cylinder has already been used up, the replacement sector is assigned to one sector in the spare cylinder CYL n + 1 . In this case, the numbers “24” and “25”
When continuously accessing the "26" sectors, a time for mechanically moving and positioning the head is required in addition to a waiting time for the rotation of the disk, so that the access time is significantly increased.

以上説明したように、この方式の磁気ディスク装置に
おいては、交代シリンダの割り当てにあたって、アクセ
ス時間がほとんど変わらない場合とアクセス時間が増大
する場合とがあり、さらに後者はヘッドの動きを必要と
しない場合と必要とする場合との2通りに分類される。
As described above, in the magnetic disk drive of this type, when allocating the replacement cylinder, there are cases where the access time hardly changes and cases where the access time increases, and the latter does not require the movement of the head. And when needed.

第3図は本発明の一実施例を示すもので、前述した磁
気ディスク装置に適用した例を示す。
FIG. 3 shows an embodiment of the present invention, and shows an example in which the present invention is applied to the above-described magnetic disk drive.

図示のシステムは、磁気ディスク装置30を外部データ
記憶として用いるホストコンピュータ10、ホストコンピ
ュータ10と磁気ディスク装置30の間に接続される磁気デ
ィスク制御装置20、および磁気ディスク装置30から構成
される。
The illustrated system includes a host computer 10 using the magnetic disk device 30 as external data storage, a magnetic disk control device 20 connected between the host computer 10 and the magnetic disk device 30, and a magnetic disk device 30.

磁気ディスク制御装置20はコントローラ部240を備え
ており、これはホストコンピュータ10からのコマンドを
制御部241を介して受けとり、それに応じた各種の制御
を行うもので、マイクロプロセッサ等を用いたプログラ
ム制御の構造をとっている。241はホストコンピュータ1
0との入出力を制御する制御部であり、242は磁気ディス
ク装置30との入出力を制御する制御部である。243は磁
気ディスク装置30からの読み出しデータおよび磁気ディ
スク装置30への書込みデータを一時的に格納してホスト
コンピュータ10との間でのデータの転送を効率良く実行
するためのデータバッファである。
The magnetic disk control device 20 includes a controller unit 240, which receives a command from the host computer 10 via the control unit 241 and performs various controls in accordance with the command.Program control using a microprocessor or the like is performed. The structure is taken. 241 is the host computer 1
Reference numeral 242 denotes a control unit for controlling input / output to / from the magnetic disk device 30. Reference numeral 243 denotes a data buffer for temporarily storing read data from the magnetic disk device 30 and write data to the magnetic disk device 30, and efficiently executing data transfer with the host computer 10.

カウンタ220は第5図(B)欄で説明した事象の発生
回数、すなわち、コントローラ部240が同一シリンダ内
の予備セクタを交代セクタとして使用した回数をカウン
トするもので、コントローラ部240からの制御信号によ
り+1される。レジスタ210にはホストコンピュータ10
から送られてきた定数がコントローラ部240を経由して
書込まれる。この定数はカウンタ220でカウントされる
事象の許容値に相当する。比較器230はカウンタ220の計
数値とレジスタ210内の定数とを比較し、“計数値≧定
数”の条件のときに信号232を発生する。信号232を受け
とったコントローラ部240はその信号をホストコンピュ
ータ10へ伝達し、ホストコンピュータ10のコンソール上
に警告のメッセージが表示される。
The counter 220 counts the number of occurrences of the event described in the column of FIG. 5B, that is, the number of times the controller unit 240 uses a spare sector in the same cylinder as a replacement sector. Is incremented by 1. Register 210 contains host computer 10
Is written via the controller unit 240. This constant corresponds to the allowable value of the event counted by the counter 220. The comparator 230 compares the count value of the counter 220 with a constant in the register 210, and generates a signal 232 when “count value ≧ constant”. The controller unit 240 that has received the signal 232 transmits the signal to the host computer 10, and a warning message is displayed on the console of the host computer 10.

カウンタ221、レジスタ211、および比較器231も同様
な構成を有し、第5図(B)欄で説明した事象の発生回
数、または(C)欄で説明した事象の発生回数、すなわ
ち、コントローラ部240が予備シリンダ内の予備セクタ
を交代セクタとして使用した回数についての処理を同様
に行う。
The counter 221, the register 211, and the comparator 231 have the same configuration, and the number of occurrences of the event described in the column (B) of FIG. 5 or the number of occurrences of the event described in the column (C) of FIG. The process for the number of times 240 uses the spare sector in the spare cylinder as a replacement sector is similarly performed.

なお、カウンタ220,221、レジスタ210,211、および比
較器230,231の機能はコントローラ部240のソフトウェア
処理によっても実現が可能であり、むしろその方が好適
である。
Note that the functions of the counters 220 and 221, the registers 210 and 211, and the comparators 230 and 231 can be realized by software processing of the controller unit 240, and that is more preferable.

またこの例では、閾値の設定はホストコンピュータか
らの指令によるものとしている。したがってホストシス
テム側で要求される要件に応じて閾値を設定することが
可能であり、閾値の与え方によっては制御装置側で監視
される事象の一部を選択的に禁止することも可能であ
る。
In this example, the threshold value is set by a command from the host computer. Therefore, it is possible to set the threshold value according to the requirements required on the host system side, and it is also possible to selectively inhibit some of the events monitored on the control device side depending on how the threshold value is provided. .

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

以上説明した様に、本発明によれば、交代セクタ処理
を実際に実行する制御装置が、アクセス性能を阻害する
ような交代セクタ割り当ての事象を累積し、その発生回
数により、所定の閾値を超えたことをホストコンピュー
タに報告することができるので、ホストコンピュータ
は、使用する外部記憶装置の属性によって異なる事象を
個別に管理するような手段を用意する必要がなくなり、
また、交代領域のアクセスに要する時間に応じて分類し
て回数がカウントされて閾値と比較されるので、意図し
ないアクセス性能の低下や予防保守のための情報を的確
に得ることが可能となる。
As described above, according to the present invention, the control device that actually executes the alternate sector process accumulates the events of the alternate sector allocation that hinders the access performance, and exceeds the predetermined threshold value depending on the number of occurrences. Can be reported to the host computer, so that the host computer does not need to prepare a means for individually managing different events depending on the attribute of the external storage device to be used,
In addition, since the number is classified according to the time required for accessing the replacement area and the number is counted and compared with the threshold value, it is possible to accurately obtain information for unintended deterioration in access performance and preventive maintenance.

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

第1図は本発明の交代領域管理装置の原理構成図、 第2図は本発明の交代領域管理方法のフローチャート、 第3図は本発明の一実施例を表わす図、 第4図および第5図は交代領域の割り当ての例を説明す
るための図。 図において、 1……ホストコンピュータ、 2……外部データ記憶制御装置、 3……外部データ記憶媒体、 21……閾値記憶手段、22……計数手段、 23……比較手段、24……記憶制御手段。
FIG. 1 is a block diagram of the principle of a replacement area management apparatus of the present invention, FIG. 2 is a flowchart of a replacement area management method of the present invention, FIG. 3 is a diagram showing an embodiment of the present invention, FIG. The figure is a figure for explaining the example of allocation of a substitution field. In the drawing, 1 ... host computer, 2 ... external data storage control device, 3 ... external data storage medium, 21 ... threshold storage means, 22 ... counting means, 23 ... comparison means, 24 ... storage control means.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】外部データ記憶制御装置(2)と、外部デ
ータ記憶媒体(3)とからなるシステムにおいて該外部
データ記憶媒体(3)内の欠陥領域の代替として設けら
れる交代領域の割り付けを管理する交代領域管理方法で
あって、 交代領域の割り付けという事象を該交代領域のアクセス
時間に応じて2種類以上に分類し、 該外部データ記憶制御装置(2)内に該分類毎に閾値を
記憶し、 システムの稼動中に該事象が発生する毎に該分類毎にそ
の回数を該外部データ記憶制御装置(2)内でカウント
し、 該外部データ記憶制御装置(2)内で分類毎に該事象の
発生回数と該閾値とを比較し、 発生回数が閾値より大となったものがあれば通報する各
段階を具備することを特徴とする交代領域管理方法。
1. A system comprising an external data storage control device (2) and an external data storage medium (3) manages the allocation of a replacement area provided as a substitute for a defective area in the external data storage medium (3). A replacement area management method, wherein the event of replacement area allocation is classified into two or more types according to the access time of the replacement area, and a threshold value is stored in the external data storage control device (2) for each classification. Each time the event occurs during the operation of the system, the number is counted in the external data storage control device (2) for each classification, and the number is counted in the external data storage control device (2) for each classification. A method according to claim 1, further comprising the step of comparing the number of occurrences of the event with the threshold value and notifying if the number of occurrences exceeds the threshold value.
【請求項2】外部データ記憶媒体(3)と、該外部デー
タ記憶媒体(3)への書込み読出しを制御する記憶制御
手段(24)を具備する外部データ記憶制御装置(2)と
からなるシステムにおいて該外部データ記憶媒体(3)
内の欠陥領域の代替として設けられる交代領域の割り付
けを管理する交代領域管理装置であって、 該外部データ記憶制御装置(2)内に具備され、 該交代領域のアクセス時間に応じた分類毎の閾値を2つ
以上記憶する閾値記憶手段(21)と、 該記憶制御手段(24)が交代領域を割り付けた回数を該
分類毎にカウントする計数手段(22)と、 該分類毎に該計数手段(22)の計数値と該閾値記憶手段
(21)が記憶する閾値とを比較する比較手段(23)と、 計数値が閾値より大であるときその旨を通報する通報手
段と、 を具備することを特徴とする交代領域管理装置。
2. A system comprising an external data storage medium (3) and an external data storage control device (2) having storage control means (24) for controlling writing and reading to and from the external data storage medium (3). The external data storage medium (3)
A replacement area management device that manages the assignment of a replacement area provided as a substitute for a defective area in the external data storage control device (2), and is provided for each classification according to the access time of the replacement area. Threshold value storage means (21) for storing two or more threshold values; counting means (22) for counting the number of times the storage control means (24) has assigned the replacement area for each of the classifications; Comparing means (23) for comparing the count value of (22) with the threshold value stored in the threshold value storing means (21), and notifying means for notifying when the count value is larger than the threshold value. A replacement area management device, characterized in that:
JP2123189A 1990-05-15 1990-05-15 Alternation area management method and apparatus Expired - Lifetime JP2699984B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2123189A JP2699984B2 (en) 1990-05-15 1990-05-15 Alternation area management method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2123189A JP2699984B2 (en) 1990-05-15 1990-05-15 Alternation area management method and apparatus

Publications (2)

Publication Number Publication Date
JPH0421974A JPH0421974A (en) 1992-01-24
JP2699984B2 true JP2699984B2 (en) 1998-01-19

Family

ID=14854396

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2123189A Expired - Lifetime JP2699984B2 (en) 1990-05-15 1990-05-15 Alternation area management method and apparatus

Country Status (1)

Country Link
JP (1) JP2699984B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6363166A (en) * 1986-09-02 1988-03-19 Canon Inc Information recording system
JP2589378B2 (en) * 1989-06-19 1997-03-12 群馬日本電気株式会社 Magneto-optical disk processing unit

Also Published As

Publication number Publication date
JPH0421974A (en) 1992-01-24

Similar Documents

Publication Publication Date Title
EP0801344B1 (en) An apparatus for reallocating logical to physical disk devices using a storage controller and method of the same
JP3699166B2 (en) Method for monitoring data loss in hierarchical data storage
US5423018A (en) Queue time reduction in a data storage hierarchy using volume mount rate
KR20020011996A (en) Disk Drive Controller Circuit and Method for Skipping Defective and/or Undesired Sectors
JP2008071478A (en) Disk drive with nonvolatile memory for storage of failure-related data
JPH06131233A (en) Access method and library device for multi-file type storage medium
KR100413018B1 (en) Method for assigning alternative sector, method for reading data, disk drive apparatus, and apparatus for writing/reading av data
JP3860967B2 (en) Method for automatically changing leads and magnetic disk device using the same
JP2699984B2 (en) Alternation area management method and apparatus
JPH0467469A (en) Rotary type storage device and control method for same
JP5621801B2 (en) Magnetic disk control device, magnetic disk device, and magnetic disk control method
JPH07182792A (en) Processing method for defect of information sector
JPH0935418A (en) Information memory
US5590272A (en) Method and system for a high-reliable disk system
JPS5823307A (en) Assigning method of alternative storage area for rotating type magnetic storage device
JPH04119441A (en) Disk cache control system
JP2773740B2 (en) Disk unit diagnostic system
JPS6348662A (en) Information recording and reproducing method for optical disk device
EP0316867A2 (en) Semiconductor file apparatus
JP3136207B2 (en) Method of using information recording medium in information recording device
JP3136811B2 (en) Alternative sector processing method
JPH02113467A (en) Disk control system
JPH04137032A (en) Alternate sector allocating system
JP2001222866A (en) Reallotting method of logic address, data storage system and recording medium
US20090303628A1 (en) Data managing method, information storage apparatus, and data mangement circuit