JPH01223673A - Data recording control system - Google Patents

Data recording control system

Info

Publication number
JPH01223673A
JPH01223673A JP63047385A JP4738588A JPH01223673A JP H01223673 A JPH01223673 A JP H01223673A JP 63047385 A JP63047385 A JP 63047385A JP 4738588 A JP4738588 A JP 4738588A JP H01223673 A JPH01223673 A JP H01223673A
Authority
JP
Japan
Prior art keywords
record
track
defective
write
overrun
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
JP63047385A
Other languages
Japanese (ja)
Inventor
Yoshihiro Azumi
安積 義弘
Mamoru Touraku
東落 守
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63047385A priority Critical patent/JPH01223673A/en
Publication of JPH01223673A publication Critical patent/JPH01223673A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To surely execute the erasion processing of a defective record area by executing the erasion processing of the defective record area by only the decision of a controller side, when a track overrun is generated and a write failure record area is generated. CONSTITUTION:When a track overrun is detected, a head SN of a C part 212 of Rn 211 which has become a track overrun and the defective record is stored as SNa. Subsequently, SN of a C part 208 is calculated, and denoted as SNb. SNa and SNb are compared, and when they coincide, it is recognized as the defective record caused by a track overrun, the erasing operation of the C part 212 of the defective record is executed. Next, the erasion processing of a K part and a D part is executed. After the erasion processing to 1X201 is ended, an error end report is executed. In such a way, by reading continuously each record, while waiting for the rotation of a magnetic disk, and confirming the physical position on a track, the position of a head on the track can always be confirmed in the course of a repositioning operation.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、磁気ディスク・サブシステムのデータ記録制
御方式に係り、特にトラック・オーバーラン障害に対す
るO8のエラー回復プログラムの負荷軽減と、データの
信頼性向上を図るのに好適なデータ記録制御方式に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data recording control method for a magnetic disk subsystem, and in particular to a method for reducing the load on an O8 error recovery program for track overrun failures and for data storage. The present invention relates to a data recording control method suitable for improving reliability.

〔従来の技術〕[Conventional technology]

第6図に、磁気ディスク記憶装置(回転型記憶装置)を
含むデータ記録システムの一般的システム構成を示す。
FIG. 6 shows a general system configuration of a data recording system including a magnetic disk storage device (rotary storage device).

中央処理装置(Central  Processin
g Unit 、以下CPUと略す)101のチャネル
(Channel、以下CHLと略す)102に、磁気
ディスク制御装置(Disk Controller 
、以下DKCと略す)103が接続され、更に、磁気デ
ィスク接続装置(Disk Storing  Con
troller 。
Central Processing Unit
g Unit (hereinafter abbreviated as CPU) 101 and channel (hereinafter abbreviated as CHL) 102, a magnetic disk controller (Disk Controller)
, hereinafter abbreviated as DKC) 103 is connected, and a magnetic disk storage device (Disk Storage Con) 103 is connected.
troller.

以下DSCと略す)104が接続される。DSC−10
4には、n台(0〜n−1)の磁気ディスク記憶装置(
Device 、以下DEVと略す)105が接続され
る。
(hereinafter abbreviated as DSC) 104 is connected. DSC-10
4 includes n units (0 to n-1) of magnetic disk storage devices (
Device (hereinafter abbreviated as DEV) 105 is connected.

第2図に、DEV 105内の磁気ディスク媒体(回転
型記憶媒体)上の、一般的な可変長記録方式であるCK
Dフォーマットによる1回転分即ち1トラック分のトラ
ックの状態を示す。さらに、トラック・オーバーランに
よって不良レコードが作成されたトラックの様子を示す
。第3図に、トラック・オーバーランを引き起こしたコ
マンド・チェーンの一例を示す。
Figure 2 shows CK, which is a general variable length recording method, on the magnetic disk medium (rotary storage medium) in the DEV 105.
It shows the track status of one rotation, that is, one track, according to the D format. Furthermore, a track in which a defective record is created due to a track overrun is shown. FIG. 3 shows an example of a command chain that caused a track overrun.

第2図において、各トラックの先頭位置を示すインデッ
クス・マーカー(以下IXと略す)(図中、2つのIX
は同じものを指す)201に続いて、ギャップ202を
挟んでホーム・アドレス(以下HAと略す)203があ
り、更にギャップ202を挟んでレコード0 (以下R
0と略す)204゜レコード1 (以下R1と略す)2
05.  レコード2 (以下R2と略す)206のよ
うに任意のn個のレコードがレコードR,,−,(以下
R7−1と略す)207まで存在する。各レコードは、
カウント部(以下C部と略す)20.8.キ一部(以下
に部と略す)209.データ部(以下り部と略す)21
0の各フィールドによって構成されている。なお、IX
マーカーは予め各トラックに記録しであるが、可変長記
録方式では、K部、D部だけでなく、0部も消去処理に
より更新されるようになっている。
In Figure 2, there are index markers (hereinafter abbreviated as IX) that indicate the beginning position of each track (in the figure, there are two IX
201 (indicates the same thing), there is a home address (hereinafter abbreviated as HA) 203 with a gap 202 in between, and record 0 (hereinafter referred to as R) with a gap 202 in between.
(abbreviated as 0) 204° record 1 (hereinafter abbreviated as R1) 2
05. There are arbitrary n records such as record 2 (hereinafter abbreviated as R2) 206 up to records R,,-, (hereinafter abbreviated as R7-1) 207. Each record is
Count section (hereinafter abbreviated as C section) 20.8. Ki part (hereinafter abbreviated as part) 209. Data section (hereinafter abbreviated as the following section) 21
It is composed of 0 fields. Furthermore, IX
Markers are recorded in advance on each track, but in the variable length recording method, not only the K and D sections but also the 0 section are updated by erasure processing.

また、Ro 204.Rz 206のようにに部209
を含まないレコードも許される。
Also, Ro 204. Part 209 like Rz 206
Records that do not contain are also allowed.

第3図に、トラック上に新たにレコードを作成するコマ
ンド・チェーンの一例を示す。シーク・コマンド(SE
EK、以下SKと略す)301はシリンダ・アドレス、
ヘッド・アドレスを示す情報をチャネルより受領し、指
定されたシリンダ・アドレス、ヘッド・アドレスのトラ
ックにヘッドを位置付ける。サーチ・アイデイ−・イコ
ール(SEARCHID  EQUAL、以下SCHI
D  EQと略す)302はアイデイ一部(ID部=シ
リンダ・アドレス、ヘッド・アドレス、レコード・ナン
バー、以下IDと略す)を示す情報をCHL 102よ
り受領し、同一のIDの書き込まれている0部208を
検索する。ティック・コマンド(TiC)303は、I
Dが不一致となった場合、再度SCHID  EQ30
2を発行する。
FIG. 3 shows an example of a command chain for creating a new record on a track. Seek command (SE
(EK, hereinafter abbreviated as SK) 301 is the cylinder address,
Information indicating the head address is received from the channel, and the head is positioned on the track of the specified cylinder address and head address. SEARCHID EQUAL (SCHI)
D EQ) 302 receives information indicating a part of ID (ID part = cylinder address, head address, record number, hereinafter abbreviated as ID) from CHL 102, and selects 0 where the same ID is written. Section 208 is searched. The tick command (TiC) 303 is
If D does not match, try SCHID EQ30 again.
Issue 2.

ライト・シー・ケープ−・コマンド(WRITECKD
、以下WRCKDと略す)304は、CHL102より
転送されたデータを書き込みデータとして、0部、に部
、D部の順に新たにレコードの書き込みを行う。
Write Sea Cape Command (WRITECKD)
, hereinafter abbreviated as WRCKD) 304 uses the data transferred from the CHL 102 as write data and writes new records in the order of 0 part, 2 part, and D part.

次に、トラック・オーバーランとなる場合の一例を第2
図、第3図を用いて説明する。5K30LSCHID 
 EQ302.TiC303を用いて8亥トラック上の
レコードR,,207(目的レコードの1つ手前)にヘ
ッドを位置付け、WRCKD304によって新レコード
、レコードn (以下Rnと略す)211の書き込み動
作を行ったところ、書き込みデータバイト数がトラック
上の残バイト数より多かったため、書き込み動作実行中
にlX201を検出し、書き込み動作を異常終了した。
Next, an example of a case where a track overrun occurs is shown in the second example.
This will be explained using FIG. 5K30LSCHID
EQ302. Using the TiC303, the head was positioned at record R, 207 (one place before the target record) on the 8-track, and when a new record, record n (hereinafter abbreviated as Rn) 211, was written using the WRCKD304, the writing was completed. Since the number of data bytes was greater than the number of remaining bytes on the track, lX201 was detected during execution of the write operation, and the write operation was abnormally terminated.

R,,211は、途中までしか書き込まれていない不良
レコードとして該トラック上に残る。
R, 211 remains on the track as a defective record that has been written only halfway.

このような障害を一般的に、トラック・オーバーラン(
Track  0verrun) 、もしくは、不当ト
ラック形式(I nvalid  Track  F 
ormat)と言う。
Such failures are commonly referred to as track overruns (
Track 0verrun) or invalid track format (Invalid Track F)
ormat).

トラック・オーバーランによる不良レコードがトラック
上に残されたまま当該トラックに対しアクセスがあると
、当該不良レコードの読み取り動作時にエラーとなる。
If a track is accessed while a defective record due to a track overrun remains on the track, an error will occur when reading the defective record.

当該レコードの読み取りエラーは、当該トラックの読み
取り命令による動作時にのみならず、当該トラック上で
のサーチ命令動作時にもエラーとなる。
An error in reading the record becomes an error not only when a read command is performed on the track, but also when a search command is performed on the track.

従来の技術では、トラック・オーバーランが検出される
と、CHL102に対してエラー終了報告を行い、セン
ス・バイト(エラー内容を示す24バイトのデータで、
トラック・オーバーランがあったこと、トラック・オー
バーランのため書き込みできなかった残バイト数などの
情報)でトラツり°オーバーランのエラー報告に対しオ
ペレーティング・システム(Operating  S
ystem 、以下O8と略す)は、エラー回復プログ
ラムによって不良レコードの消去を行う。第4図に、エ
ラー回復プログラムによって発行される不良レコードの
消去処理を行うコマンド・チェーンの一例を示し、第2
図、第4図を用いてその処理を示す。
In the conventional technology, when a track overrun is detected, an error completion report is sent to the CHL 102, and a sense byte (24 bytes of data indicating error details) is sent to the CHL 102.
In response to an overrun error report, the operating system (Operating S
system (hereinafter abbreviated as O8) erases defective records using an error recovery program. Figure 4 shows an example of a command chain for erasing bad records issued by an error recovery program.
The process will be explained using FIG.

5K401で当言亥トラックへヘッドを(立置イ寸け、
リード・ホーム・アドレス(READ  HA、以下R
D  HAと略す)402でトラックの先頭のHA20
3の直後に位置付ける。更にSCHID  EQ403
とTiC404によって該トラック上のR,!2−07
に位置付ける。イレーズ・コマンド(ERASE、以下
ER3と略す)405は、CHL 102より任意のデ
ータを受領し、次に、トラック先頭マークlX201が
現れるまで消去する命令であり、本例ではヘッドがRn
−,207に位置付けられた状態でコマンドを受領する
ので、R,+207の0部210の直後からlX201
まで消去動作を行う。これらの処理により、該トラック
上に残されている不良レコード、R,211は消去され
る。
Attach the head to the truck with 5K401 (stand upright,
Read home address (READ HA, hereinafter referred to as R)
(abbreviated as D HA) 402 and HA20 at the beginning of the track.
Position it immediately after 3. Furthermore, SCHID EQ403
and R, ! on the track by TiC404. 2-07
Positioned in The erase command (ERASE, hereinafter abbreviated as ER3) 405 is a command to receive arbitrary data from the CHL 102 and then erase it until the track head mark lX201 appears.
Since the command is received while positioned at -,207, lX201 starts immediately after the 0 part 210 of R,+207.
The erase operation is performed until Through these processes, the defective record R, 211 remaining on the track is erased.

なお、上記従来技術に関連するものとして、特開昭58
−48161号公報が挙げられる。
In addition, as related to the above-mentioned prior art, Japanese Patent Application Laid-Open No. 58
-48161 publication is mentioned.

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

上記従来技術では、磁気ディスク制御装置は、不良レコ
ードの発生(トラック・オーバーラン)を知ると、先ず
上位装置へそのことを報告し、この報告を受けた上位装
置から、O8による当該不良レコードの消去命令が発せ
られ、該命令によって、磁気ディスク制41U装置は不
良レコードの消去を行うものである。従って、従来技術
によると、トラック・オーバーランに対するエラー回復
処理、即ち不良レコードの消去処理を、O8のエラー回
復プログラムによる入出力命令を待って、該命令に基づ
いて行うため、以下の問題点がある。
In the above-mentioned conventional technology, when the magnetic disk control device learns of the occurrence of a bad record (track overrun), it first reports this to the host device, and the host device that receives this report sends an O8 to check the bad record. An erase command is issued, and in accordance with the command, the magnetic disk system 41U erases the defective record. Therefore, according to the prior art, error recovery processing for track overruns, that is, deletion processing of bad records, is performed based on an input/output instruction by the error recovery program of O8, which causes the following problems. be.

1、ディスク制?11装置から上位装置への、トラック
・オーバーランのエラー報告以降、−上位装置から何か
の原因で不良レコード消去のための入出力命令が発行さ
れない場合や、未だこの入出力命令が発行される以前の
場合には、不良レコードはトラック上に残ったままとな
っている。不良レコードが残存するトラック上で、例え
ば、別のCPUから新たにデータ読み取り命令等の動作
を行うと、当該不良レコードにおいて読み取りエラーと
なる。これは、−旦エラー報告が行われてしまうと、記
憶装置は、他のCPUからの起動を受は付ける状態にな
るからである。
1. Disc system? 11 After the track overrun error is reported from the device to the host device, - If the host device does not issue an I/O command to delete the bad record for some reason, or this I/O command is still issued. In the previous case, the bad record remained on the track. If, for example, another CPU issues a new data read command or the like on a track where a defective record remains, a read error will occur in the defective record. This is because once an error report has been made, the storage device is in a state where it can accept activation from other CPUs.

2、O3によるエラー回復処理を実現するためには、新
たな入出力命令が必要であり、O8の負荷となる。
2. In order to implement error recovery processing by O3, a new input/output instruction is required, which becomes a burden on O8.

一般に、データを消去してしまうような処理は重大なも
のであって、従来はいちいち上位装置の指示を仰がなけ
ればならないとされていた。しかし、トラック・オーバ
ーランのような不良レコードに対する消去処理は、制御
装置だけの判断でよいことに、本発明者等は着目した。
Generally, processing such as erasing data is important, and conventionally it has been thought that instructions must be sought from the host device each time. However, the inventors of the present invention have focused on the fact that erasure processing for defective records such as track overruns can be determined only by the control device.

従って、本発明の1つの目的は、データ記録制御方式に
おいて、O8が不良レコード消去処理を行わなかった場
合、もしくは、不良レコード消去命令が発行されるまで
の間、不良レコードがトラック上に残存する状態で、新
たな当該トラックへのアクセスを受けたために、読み取
りエラーを引き起こすことのないようにすることにある
Therefore, one object of the present invention is to provide a data recording control system in which a defective record remains on a track when the O8 does not perform defective record erasing processing or until a defective record erasing command is issued. The object of the present invention is to prevent a read error from occurring due to a new access to the track in the current state.

本発明の他の目的は、データ記録制御方式において、上
記のO8によるエラー回復処理のための負担を軽減する
ことにある。
Another object of the present invention is to reduce the burden of error recovery processing by the O8 in a data recording control system.

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

上記目的を達成するため、本発明のデータ記録制御方式
は、基本的には、上位装置からの書込み指令により回転
型記憶装置でデータ書込みをする場合、トラック・オー
バーランが発行したとき、その発生したことを従来のよ
うに(制御装置から上位装置に)直ちに報告し、その報
告を受けた上位装置からのO8のエラー回復プログラム
による入出力命令によって消去を行うのではなく、先ず
、制御装置側の判断でオーバーランによる不良レコード
部を消去して取り除き、その消去動作の開始後ないし消
去の完了後に上位装置へトラック・オーバーランしたこ
との報告を行うように構成する。
In order to achieve the above object, the data recording control method of the present invention basically detects the occurrence of a track overrun when writing data in a rotating storage device based on a write command from a host device. Instead of immediately reporting what has happened (from the control device to the higher-level device) as in the past, and then erasing it using the input/output command from the higher-level device using the O8 error recovery program, the control device first The defective record portion due to the overrun is erased and removed based on the judgment, and the track overrun is reported to the host device after the erase operation is started or after the erase is completed.

更に、回転記録媒体の回転待ちによる磁気ヘッドの再位
置付けを利用して制御装置側での制御により前記不良レ
コード部の消去を行うように構成する。
Furthermore, the defective record portion is erased under control of the control device by utilizing repositioning of the magnetic head while waiting for rotation of the rotary recording medium.

具体的な例において、前記磁気ヘッドの再位置付けを行
うための手段として、トラック・オーバーランを起こし
た不良レコードの物理的位置(セグメント番号)を制御
装置側で記憶しておき、該記憶した物理的位置と記録媒
体の一回転中に読み出される次々のレコードの物理的位
置(セグメント番号)と比較し、その一致を検出する手
段により構成される。
In a specific example, as a means for repositioning the magnetic head, the physical position (segment number) of the defective record that caused the track overrun is stored on the control device side, and the stored physical The target position is compared with the physical position (segment number) of successive records read during one rotation of the recording medium, and a match is detected.

〔作用〕[Effect]

上記構成に基づく作用を説明する。 ′トラック・オー
バーランとなった不良レコードが発生してから、記録媒
体が一回転する回転待ちの間に、該不良レコード部の消
去処理は終了する。
The effect based on the above configuration will be explained. 'After the occurrence of a defective record resulting in a track overrun, the erasing process for the defective record portion is completed while the recording medium is waiting for one revolution.

この動作を以下に詳しく述べる。This operation will be described in detail below.

トラック・オーバーラン検出直後には、従来の技術のよ
うなエラー報告処理も、動作終了報告も行わず、CHL
 102との接続状態を維持する。
Immediately after a track overrun is detected, CHL
102 is maintained.

同時に、不良レコードへの再位置付けの目標値とするた
めると、当該不良レコードのトラック上の物理的な位置
を記[する。この物理的な位置は、トラック上の予め定
められた一点(通常はI X201)を基点とし、各レ
コードまでの絶対的な距離によって示される。
At the same time, the physical position of the bad record on the track is recorded as a target value for repositioning to the bad record. This physical position is based on a predetermined point on the track (usually IX 201) and is indicated by the absolute distance to each record.

次に、トラックの先頭のHA202から各レコードを連
続して読み取り、各レコードの物理的な位置を認識し、
続く次のレコードの物理的な位置を、例えば計算によっ
て導き出す。可変長記録方式では、HA部及び0部は一
定長であるが、K部とD部とは可変長で、その長さは通
常C部で管理されているので、各フィールドの長さ(バ
イト長)やフィールド間ギャップ長(バイト長)を計算
することで、次のレコードの物理的な位置を計算するこ
とができる。導き出した次のレコードの物理的な位置と
トラック・オーバーランとなった不良レコードの物理的
な位置とを比較することによって、当該不良レコードの
物理的な位置と同位置にあるレコードの先頭を捜索する
。検出すると当該レコードをトラック・オーバーランに
より作成された不良レコード、即ちR,211と認識し
、以降、lX201まで消去処理を行う、消去処理終了
後、CHL102に対しトラック・オーバーランのエラ
ー報告を行う。
Next, each record is successively read from the HA 202 at the beginning of the track, the physical position of each record is recognized,
The physical location of the next record is derived, for example, by calculation. In variable length recording, the HA and 0 sections have a fixed length, but the K and D sections have variable lengths, and their lengths are usually managed by the C section, so the length of each field (bytes) By calculating the length) and the interfield gap length (byte length), the physical position of the next record can be calculated. By comparing the derived physical position of the next record with the physical position of the bad record that caused the track overrun, searches for the beginning of the record at the same physical position as the bad record. do. When detected, the record is recognized as a defective record created by a track overrun, that is, R, 211, and from then on, erasure processing is performed up to lX201. After the erasure processing is completed, a track overrun error report is sent to the CHL 102. .

以上により制御装置は、トラック・オーバーラン検出直
後にはエラー報告を行わず、不良レコードの消去処理終
了後のエラー報告までCHL102との接続状態を維持
するため、この間当該記憶装置は、当該記憶装置に対す
る新たな起動を受けつけない。従って、当該トラック上
に不良レコードが残存する状態で、リード、サーチ等の
動作を行うことはな(、リード・エラーを引き起こすこ
とはない。
As described above, the control device does not report an error immediately after detecting a track overrun, but maintains the connection state with the CHL 102 until an error report is made after the deletion process of the defective record is completed. does not accept new invocations of . Therefore, operations such as read and search are not performed while a defective record remains on the track (and a read error does not occur).

トラック・オーバーラン検出から、不良レコードの消去
処理終了後のトラック・オーバーランのエラー報告まで
、DKC103とCHL102とは何らのデータ転送も
行わないため、従来O3のエラー回復処理に必要な情報
である、トラック・オーバーラン発生時に何バイト未書
き込みのデータが残っているかを示す残バイト数は保証
される。
Since no data is transferred between the DKC 103 and CHL 102, from track overrun detection to track overrun error reporting after the defective record deletion process is completed, this information is necessary for conventional O3 error recovery processing. , the number of remaining bytes indicating how many bytes of unwritten data remain when a track overrun occurs is guaranteed.

このため、従来のO8とのインタフェースに何らの変更
も必要とせず、従来のO8の下でも動作は保証される。
Therefore, there is no need to make any changes to the interface with the conventional O8, and operation is guaranteed even under the conventional O8.

又、不良レコードの消去は、上位装置のO3回復プログ
ラムによらずに、制御装置の判断(マイクロ・プログラ
ムによる)による制御のみで、確実に行うことができる
Furthermore, erasure of defective records can be reliably performed only by control based on the judgment of the control device (based on the micro program), without depending on the O3 recovery program of the host device.

〔実施例〕〔Example〕

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

まずトラック上の物理的な位置の表し方の一例を、第5
図を用いて示す。トラック上をlX201を基点として
数バイト単位に均等に分割する。この1単位をセグメン
トと呼ぶことにする。IX 201からセグメントの個
数をカウントすることにより、トラック上の物理的な位
置が定まる。この値をセグメント・ナンバー(以下SN
と略す)と呼ぶことにする。CKDフォーマットで記録
されているトラック上の各フィールド、即ちHA、C部
、に部、D部は必ずセグメント境界で終るように定める
ことにすると(D部のように必ずしもデータの終りがセ
グメントの境界に来ないことがあるが、そのときには、
補助パターンを付加してデータの終りを境界に一致させ
る。)、各フィールドの位置がSNによって表わされる
。第5図においては、lX201から0部208後端ま
でのセグメント数がSNとなる。HA203及び、各レ
コードの0部208に、該レコードの各々のフィールド
後端のSNを書き込むことと定めておくと、各レコード
のトラック上の物理的な位置が示される。
First, let's look at an example of how to represent the physical position on the track.
Illustrated with diagrams. The track is evenly divided into units of several bytes with lX201 as the base point. This one unit will be called a segment. By counting the number of segments from IX 201, the physical location on the track is determined. This value is referred to as the segment number (hereinafter SN
(abbreviated as ). Each field on a track recorded in the CKD format, that is, the HA, C section, NI section, and D section, is defined so that it always ends at a segment boundary (as in section D, the end of data does not necessarily end at a segment boundary. Sometimes they don't come, but at that time,
Add an auxiliary pattern to match the end of the data to the boundary. ), the position of each field is represented by SN. In FIG. 5, the number of segments from lX 201 to the rear end of 0 part 208 is SN. If it is determined that the SN at the rear end of each field of each record is written in the HA 203 and the 0 part 208 of each record, the physical position of each record on the track is indicated.

次に、第1図のフローチャート、第2図のトラックフォ
ーマット、及び第6図のシステム構成図により、本発明
の実施例のデータ記録制御方式の構成及び動作を説明す
る。
Next, the configuration and operation of the data recording control method according to the embodiment of the present invention will be explained with reference to the flowchart of FIG. 1, the track format of FIG. 2, and the system configuration diagram of FIG. 6.

第1図において、ステップ601でトラック・オーバー
ランを検出すると(このトラック・オーバーランの検出
は、不良レコードR7の直後のtXの検出、即ちトラッ
クの先頭を表わすインデック即ちトラック・オーバーラ
ンとなり不良レコードとなったRfi211の0部21
2の先頭SNを記憶する。本例では便宜上これをSNa
とする。ステップ603では、トラックの先頭にヘッド
を位置付けるためにHA203の読み取り動作を行う。
In FIG. 1, when a track overrun is detected in step 601 (the detection of this track overrun is the detection of tX immediately after the defective record R7, that is, the index representing the beginning of the track, that is, the track overrun is detected, and the defective record is detected). 0 part 21 of Rfi211 which became
Store the first SN of 2. In this example, for convenience, this is SNa
shall be. In step 603, a read operation of the HA 203 is performed to position the head at the beginning of the track.

ステップ604で次にVt<c部208のSNを計算す
る。これを便宜上SNbとする。ステップ605におい
てSNaとSNbの比較を行う。この演算の結果、両者
が等しくない場合は、該レコードは不良レコードR,l
 211以前の良好なレコードと認識し、ステップ60
6で0部208を読み取り、ステップ607でに部20
9を、ステップ608で0部211を読み飛ばしくK部
の存在しないRECORDにおいては、直ちにD部を読
み飛ばす。)、次のレコードの直前に位置付け、ステッ
プは604へ戻る。このようにして繰り返し、次々のレ
コードの先頭のSNを捜索することによって、不良レコ
ードの検出を行う。
Next, in step 604, the SN of the Vt<c section 208 is calculated. For convenience, this is referred to as SNb. In step 605, SNa and SNb are compared. As a result of this operation, if the two are not equal, the record is a bad record R,l
It is recognized as a good record before 211, and step 60 is performed.
6 reads part 0 208, and reads part 20 in step 607.
In RECORD where the K part does not exist, the D part is immediately skipped. ), the record is positioned immediately before the next record, and the step returns to 604. By repeating this process and searching for the SN at the beginning of successive records, defective records are detected.

ステップ605においてSNaとSNbが一致すると(
前記のように、各レコードのC部には、そのレコードの
各々のフィールドの後端のSNが書き込まれているので
、不良レコードのC部の直前位置まで来れば、次の不良
レコードのSNaとSNbの一致を確認することができ
る。)、当該レコードをトラック・オーバーランによる
不良レコードと認識し、ステップ609にて該不良レコ
ードの0部212の消去動作を行う。続けてステップ6
10にて、K部、D部の消去処理を行い(K部の存在し
ない場合は、直ちにD部の消去を行う。)、lX201
まで消去処理が終了した後、ステップ611にてCHL
 102ヘエラー終了報告を行う。
When SNa and SNb match in step 605 (
As mentioned above, the SN at the end of each field of each record is written in the C part of each record, so when you reach the position just before the C part of the bad record, you can find the SNa of the next bad record. Matching of SNb can be confirmed. ), the record is recognized as a defective record due to track overrun, and in step 609, the 0 section 212 of the defective record is erased. Continue with step 6
10, erase the K part and the D part (if the K part does not exist, immediately erase the D part), and lX201
After the erasing process is completed, in step 611 the CHL
An error completion report is sent to 102.

本実施例によれば、トラック・オーバーランによって発
生した不良レコードへの再位置付は動作に際し、磁気デ
ィスクの回転待ちの間に、各レコードを連続して読み取
り、トラック上の物理的な位置を確認することにより、
再位置付は動作中にトラック上のヘッドの位置を常に正
確に認識することが可能となる効果がある。また、該当
不良し゛コードの捜索を、トラック上の物理的な位置の
比較により行っているので、目的レコード先頭への正確
な位置付けが可能となる。従って、不良レコード以外の
良好なレコードを誤って消去することはな(、既存のデ
ータの信頬性は保証され、該不良レコードは、該不良レ
コードの書込み時点から磁気ディスクが1回転する間に
、全て正確に消去される。
According to this embodiment, when repositioning a defective record caused by a track overrun, each record is successively read while waiting for rotation of the magnetic disk, and the physical position on the track is determined. By checking,
Repositioning has the effect that the position of the head on the track can always be accurately recognized during operation. Furthermore, since the search for the corresponding defective code is performed by comparing the physical positions on the track, accurate positioning at the beginning of the target record is possible. Therefore, good records other than bad records will not be erased by mistake (the authenticity of existing data is guaranteed, and bad records will be erased during one rotation of the magnetic disk from the time the bad record is written). , everything is erased accurately.

上記実施例では、不良レコードのC部、に部、及びD部
の消去処理を全部行った後に、CHL102へのエラ二
報告を行っているが、上記ステップ609で0部212
の消去処理を行った後、先にステップ611のCHL 
102へのエラー報告処理を行い、K部及びD部の消去
処理は、形式書き込み動作(フォーマット・ライティン
グ、に部とD部だけでなく、C部も含めて全部を更新す
る書込み方式で、あるレコードR8までの書込み終了後
、続いて制御装置側からの信号で、駆動装置がその後の
部分をIXまで全部消去処理する方式をいう。)の終了
後の消去処理を行う方法を適用することも考えられる。
In the above embodiment, an error report is sent to the CHL 102 after all of the deletion processing of the C, 2, and D parts of the defective record is performed.
After performing the erasing process of CHL in step 611,
102, and the erasing process of the K section and the D section is a format writing operation (format writing, which is a writing method that updates not only the N section and the D section but also the entire C section. After the writing up to record R8 is completed, the drive device then uses a signal from the control device to erase all subsequent parts up to IX. Conceivable.

このようにすると、エラー終了報告を、lX201まで
消去処理が終了するまで待たずに、不良レコードの0部
の消去処理が終った時点で行うことができるので、不良
レコードのD部が著しく長い場合のエラー報告を早く行
うことができる効果がある。この場合でも、消去処理は
上位装置からのO8によるエラー回復プログラムで行う
のではな(、制御装置からの信号で′ζ駆動装置自体が
行うものであるから、消去は確実に行われる。
In this way, the error completion report can be made as soon as the 0th copy of the defective record has been erased, without having to wait until the deletion process is completed up to lX201, so if the D section of the defective record is extremely long, This has the effect of allowing faster error reporting. Even in this case, the erasing process is not performed by the error recovery program by the O8 from the host device (but is performed by the 'ζ driving device itself using a signal from the control device, so the erasing is reliably performed).

゛〔発明の効果〕 以上詳しく述べたように、本発明のデータ記録制御方式
によれば、トラック・オーバーランが発生しそれによっ
て書き込み不良レコード領域が生じたとき、この不良レ
コード領域の消去処理を、従来のような上位装置のO8
の介在なしに、専ら制御装置側の判断のみによって行う
ようにしたので、不良レコード領域の消去処理が確実に
行われる効果がある。又、上位装置へのトラック・オー
バーランの報告は、不良レコード領域の消去がされてか
ら行われるため、上位装置のO8が不良レコードの消去
命令を発行する必要はなくなり、O8の負担が軽減され
る。更に、上位装置へのトラック・オーバーランの報告
がある迄、記憶装置の上位装置に対する接続状態が維持
されるので、不良レコードの残存する状態で他のCPU
等から当該記憶装置への起動を受は付けることがなくな
り、信頼性が向上する等、優れた効果を奏する。
[Effects of the Invention] As described above in detail, according to the data recording control method of the present invention, when a track overrun occurs and a writing defective record area is generated, the erasing process of this defective record area is performed. , O8 of a conventional host device
Since the deletion process is performed solely based on the judgment of the control device without any intervention, there is an effect that the deletion process of the defective record area is performed reliably. In addition, since the track overrun is reported to the host device after the defective record area has been erased, the O8 of the host device does not need to issue a command to delete the bad record, reducing the burden on the O8. Ru. Furthermore, the connection status of the storage device to the higher-level device is maintained until a track overrun is reported to the higher-level device, so other CPUs can
It is no longer possible to accept booting to the storage device from other sources, resulting in excellent effects such as improved reliability.

【図面の簡単な説明】 第1図は本発明の一実施例の構成及び動作を説明するた
めのフローチャート、第2図は磁気ディスク記録媒体上
の一般的な可変長記録方式におけるCKDフォーマット
によるトラックの状態図、第3図は新レコード作成コマ
ンド・チェーンを示す図、第4図は不良レコード消去コ
マンド・チェーンを示す図、第5図はセグメントナンバ
ーの説明図、第6図は磁気ディスク記憶装置を含む一般
的なデータ記録システムの構成図である。 101−・−一−−−中央処理装置、102−・〜・・
−・チャネル、103−−−−−−一磁気ディスク制御
装置、104・−・−磁気ディスク接続装置、105−
・−磁気ディスク記憶装置、201・−・−・−インデ
ックス・マーカー、20 S”−−−−−−−ギャップ
、203−−−−−−−ホーム・アドレス、204〜2
07−−−−−−−レコード、208−・・−カウンタ
部、209−−−−−−−キ一部、21 (1−・−・
−データ部、211−・−・−トラック・オーバーラン
により作成された不良レコード、212−−−−−−−
・不良しl−1’のカウント部、301〜304.40
1〜405・−・−コマンド、601〜611−−−−
−−−ステップ。−第1図 区           1 第3図   第4図 第5図
[Brief Description of the Drawings] Fig. 1 is a flowchart for explaining the configuration and operation of an embodiment of the present invention, and Fig. 2 shows tracks according to the CKD format in a general variable length recording method on a magnetic disk recording medium. Figure 3 is a diagram showing the new record creation command chain, Figure 4 is a diagram showing the bad record deletion command chain, Figure 5 is an explanatory diagram of segment numbers, and Figure 6 is a diagram showing the magnetic disk storage device. 1 is a configuration diagram of a general data recording system including: FIG. 101-・-1---Central processing unit, 102-・~・・
--- Channel, 103 --- Magnetic disk control device, 104 --- Magnetic disk connection device, 105-
-Magnetic disk storage device, 201-- Index marker, 20 S''-- Gap, 203-- Home address, 204-2
07------Record, 208---Counter section, 209---Key part, 21 (1-------
-Data section, 211---Bad record created by track overrun, 212--
・Count part of defective l-1', 301 to 304.40
1 to 405 --- Command, 601 to 611 ---
---Step. -Figure 1 Area 1 Figure 3 Figure 4 Figure 5

Claims (1)

【特許請求の範囲】 1、中央処理装置と、チャネル装置と、制御装置と、前
記制御装置により制御され前記チャネル装置に接続され
る回転型記憶装置とを有し、前記中央処理装置からのデ
ータ書き込み命令に従つて前記回転型記憶装置の記憶媒
体の回転方向に可変長方式でデータを記録するデータ記
録制御方式において、前記制御装置側にあつて、前記デ
ータ書込み命令により指定された書き込みデータ量が前
記記憶媒体の回転方向の許容記憶容量を越えたことによ
つて書き込み不良領域が発生するとき、その発生を検出
する検出手段と、前記制御装置による制御の下に、前記
書き込み不良領域の発生を検出したときに直ちに前記回
転型記憶装置を前記書き込み不良領域に再位置付けして
該書き込み不良領域の消去を行う消去手段とを備えたこ
とを特徴とするデータ記録制御方式。 2、前記消去手段により前記書き込み不良領域の消去が
完了したときに前記制御装置から前記チャネル装置に向
けて前記書き込み不良領域の発生したことの報告を行う
手段を備えたことを特徴とする請求項1記載のデータ記
録制御方式。
[Scope of Claims] 1. A central processing unit, a channel device, a control device, and a rotary storage device controlled by the control device and connected to the channel device, wherein data from the central processing device is controlled by the control device and connected to the channel device. In a data recording control method in which data is recorded in a variable length manner in a rotational direction of a storage medium of the rotary storage device according to a write command, on the control device side, an amount of write data specified by the data write command; detecting means for detecting the occurrence of a write defective area when the write error area exceeds the allowable storage capacity in the rotational direction of the storage medium; and erasing means for immediately repositioning the rotary storage device in the write-defective area and erasing the write-defective area when the write-defective area is detected. 2. The device further comprises means for reporting the occurrence of the write failure area from the control device to the channel device when the erasure of the write failure area is completed by the erasing unit. 1. The data recording control method described in 1.
JP63047385A 1988-03-02 1988-03-02 Data recording control system Pending JPH01223673A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63047385A JPH01223673A (en) 1988-03-02 1988-03-02 Data recording control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63047385A JPH01223673A (en) 1988-03-02 1988-03-02 Data recording control system

Publications (1)

Publication Number Publication Date
JPH01223673A true JPH01223673A (en) 1989-09-06

Family

ID=12773636

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63047385A Pending JPH01223673A (en) 1988-03-02 1988-03-02 Data recording control system

Country Status (1)

Country Link
JP (1) JPH01223673A (en)

Similar Documents

Publication Publication Date Title
JP2635023B2 (en) Label writing method for file data
US5497472A (en) Cache control method and apparatus for storing data in a cache memory and for indicating completion of a write request irrespective of whether a record to be accessed exists in an external storage unit
CN101308683A (en) Disk drive device and data rewrite method thereof
US6204984B1 (en) Disk apparatus, and recording/reproduction method therefor
JPH0279266A (en) Magnetic disk device and its control system
US7167332B2 (en) Method and apparatus for recording data onto a recording medium including warning of the approach to an end of medium position
US7443624B2 (en) Method for recording data freshness degrees by a tape drive
US8027109B1 (en) Reuse of partially expired physical tape volume
JPS5841578B2 (en) Control method for rotating storage device
JPH01223673A (en) Data recording control system
KR100899826B1 (en) Storage apparatus, storage apparatus control method, and control apparatus
JPH01171044A (en) Method for positioning block of memory
JP3107028B2 (en) Recording control device for disk-shaped recording medium and data recording method for magneto-optical disk device
JPH0883151A (en) Magnetic disk device
JP2963470B2 (en) Control method of disk cache subsystem
JPH04254969A (en) Recording data protection means for draw type recording system
US7110203B2 (en) Magnetic disk drive improved in a reliability of data retrieve
JPS6013360A (en) Storage device
JPS5891512A (en) Data recording system
JPS59221810A (en) Alternate sector device in magnetic storage device
JP2913477B2 (en) Control device
JPH10269729A (en) Disk apparatus
JPH03147571A (en) Magneto-optical disk recorder
JPH03160670A (en) Data reader
JP2005011454A (en) Magnetic disk device