JPH04260115A - Error recovery system - Google Patents

Error recovery system

Info

Publication number
JPH04260115A
JPH04260115A JP3022170A JP2217091A JPH04260115A JP H04260115 A JPH04260115 A JP H04260115A JP 3022170 A JP3022170 A JP 3022170A JP 2217091 A JP2217091 A JP 2217091A JP H04260115 A JPH04260115 A JP H04260115A
Authority
JP
Japan
Prior art keywords
recovery
command
sector
data length
magnetic disk
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
JP3022170A
Other languages
Japanese (ja)
Inventor
Hitoshi Yoshihara
人志 吉原
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP3022170A priority Critical patent/JPH04260115A/en
Publication of JPH04260115A publication Critical patent/JPH04260115A/en
Pending legal-status Critical Current

Links

Landscapes

  • Retry When Errors Occur (AREA)

Abstract

PURPOSE:To improve the success rate of recovery by constituting the system so that the recovery processing can be executed by a control format being different from an operation of an error generation state. CONSTITUTION:When a write or read-out command is finished abnormally, a recovery command divided into one sector data length or data length being below said data length is issued successively to an object sector range of a magnetic disk device 3, and an access by a sector unit is executed successively to a magnetic disk controller 2 from a CPU 1. Accordingly, a recovery processing comes to be executed by a control format being different from an input/output operation extending over plural sectors by a command of an error generation state, and even in the case a fixed fault exists, the recovery whose success rate is high enough can be executed.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】この発明は、ディスク制御システ
ムにおけるエラーリカバリー方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an error recovery method in a disk control system.

【0002】0002

【従来の技術】一般に、コンピュータシステムにおいて
は、CPUから磁気ディスク装置へのアクセスについて
は、磁気ディスク制御装置を経由することにより、1つ
のコマンドの発行によって複数セクタにまたがるデータ
転送を実現している。
[Background Art] Generally, in a computer system, when a CPU accesses a magnetic disk device, data transfer across multiple sectors is achieved by issuing a single command via a magnetic disk control device. .

【0003】この場合、磁気ディスク制御装置内の処理
としてはヘッドアドバンス制御やシリンダアドバンス制
御等が発生し、また磁気ディスク装置内ではデータの読
み出しまたは書き込みが複数セクタに対して連続して行
われる。
In this case, head advance control, cylinder advance control, etc. occur as processing within the magnetic disk control device, and data reading or writing is performed continuously in a plurality of sectors within the magnetic disk device.

【0004】このコマンド処理で磁気ディスク制御装置
から異常終了のステータスを受け取った場合は、CPU
は、同一コマンドを数回リトライするという処理を行な
い、これによってリカバリーを行なっていた。
[0004] If an abnormal termination status is received from the magnetic disk controller during this command processing, the CPU
used to perform a process of retrying the same command several times, thereby performing recovery.

【0005】このため、このリカバリー処理においても
、アドバンス制御や複数セクタに対する連続動作が磁気
ディスク制御装置や磁気ディスク装置内で発生するため
、これら装置内の制御部分にハードウェアバクや他の固
定的な故障が存在している場合はリカバリー不成功とな
る場合が多い。
[0005] For this reason, in this recovery process as well, since advanced control and continuous operations for multiple sectors occur within the magnetic disk control device and magnetic disk device, hardware bugs and other fixed If a failure exists, recovery is often unsuccessful.

【0006】[0006]

【発明が解決しようとする課題】従来では、リカバリー
処理においても複数セクタに跨がるアクセスを1つのコ
マンドで実行させる制御形式であるため、装置内の処理
内容の変化が少なく、リカバリー不成功となる欠点があ
る。
[Problem to be Solved by the Invention] Conventionally, even in recovery processing, access across multiple sectors is executed with a single command, so there is little change in the processing content within the device, and recovery failure may occur. There is a drawback.

【0007】この発明はこのような点に鑑みてなされた
もので、エラー発生状態の動作と別の制御形式でリカバ
リー処理を実行できるようにして、十分に高い成功率が
得られるエラーリカバリー方式を実現することを目的と
する。
[0007] The present invention has been made in view of the above points, and provides an error recovery method that can obtain a sufficiently high success rate by making it possible to execute recovery processing using a control format different from the operation in an error occurrence state. The aim is to realize this.

【0008】[0008]

【課題を解決するための手段および作用】この発明によ
るエラーリカバリー方式は、固定データ長のセクタフォ
ーマットを有するディスク装置に対して複数セクタに跨
がるデータ長の書き込みまたは読み出しを1コマンドで
実行するディスク制御システムにおいて、前記書き込み
または読み出しコマンドの異常終了の有無を検出する手
段と、異常終了が検出された際、1セクタデータ長以下
のデータ長に分割した所定のリカバリーコマンドをアク
セス対象のセクタ範囲に対して順次発行する手段とを具
備し、前記複数セクタに跨がるデータ長の書き込みまた
は読み出しコマンドのリカバリーを複数のリカバリーコ
マンドによって実現することを特徴とする。
[Means and operations for solving the problems] The error recovery method according to the present invention executes writing or reading of data length spanning multiple sectors with one command to a disk device having a fixed data length sector format. In a disk control system, means for detecting whether or not there is an abnormal termination of the write or read command, and when abnormal termination is detected, a predetermined recovery command divided into data lengths of one sector data length or less is sent to a sector range to be accessed. recovery of a write or read command with a data length extending over the plurality of sectors is realized by a plurality of recovery commands.

【0009】このエラーリカバリー方式においては、書
き込みまたは読み出しコマンドが異常終了すると、1セ
クタデータ長またはそれ以下のデータ長に分割したリカ
バリーコマンドが対象セクタ範囲に対して順次発行され
、セクタ単位でのアクセスが順次実行される。したがっ
て、エラー発生状態のコマンドの動作と別の制御形式で
リカバリー処理を実行できるようになり、固定的な故障
が存在している場合においても、十分に成功率の高いリ
カバリーを実行できる。
[0009] In this error recovery method, when a write or read command terminates abnormally, a recovery command divided into data lengths of 1 sector or less is sequentially issued to the target sector range, and access is performed in sector units. are executed sequentially. Therefore, it becomes possible to execute recovery processing using a control format different from the operation of the command in the error state, and even when a fixed failure exists, recovery can be executed with a sufficiently high success rate.

【0010】0010

【実施例】以下、図面を参照してこの発明の実施例を説
明する。
Embodiments Hereinafter, embodiments of the present invention will be described with reference to the drawings.

【0011】図1にはこの発明の一実施例に係るシステ
ム構成が示されている。図において、CPU1はこのデ
ィスク制御システム全体の制御を司るものであり、磁気
ディスク装置3に対するデータの入出力制御のために磁
気ディスク制御部10を備えている。
FIG. 1 shows a system configuration according to an embodiment of the present invention. In the figure, a CPU 1 is in charge of controlling the entire disk control system, and includes a magnetic disk control section 10 for controlling data input/output to the magnetic disk device 3.

【0012】磁気ディスク制御部10は、磁気ディスク
制御装置2の制御を行なうことによって磁気ディスク装
置3に対するデータの入出力を実行させるものであり、
ディスク開始アドレスレジスタ(S−ADRS)11、
ディスク終了アドレスレジスタ(E−ADRS)12、
データ転送長レジスタ(D−LEN)13、1セクタデ
ータ長レジスタ(S−LEN)14を備えている。
The magnetic disk control unit 10 controls the magnetic disk control device 2 to input and output data to and from the magnetic disk device 3.
Disk start address register (S-ADRS) 11,
Disk end address register (E-ADRS) 12,
It is provided with a data transfer length register (D-LEN) 13 and a 1-sector data length register (S-LEN) 14.

【0013】ディスク開始アドレスレジスタ(S−AD
RS)11には、リカバリー時のディスク開始アドレス
つまりディスク装置3におけるリカバリー動作時の書き
込みまたは読み出し対象の先頭アドレスが格納される。 ディスク終了アドレスレジスタ(E−ADRS)12に
は、ディスク終了アドレスつまりディスク装置3におけ
るリカバリー動作時の書き込みまたは読み出し対象の最
終アドレスが格納される。データ転送長レジスタ(D−
LEN)13には、残りデータ転送長つまりリカバリー
時における書き込みまたは読み出し対象のデータの残り
の長さを示す情報が格納される。セクタデータ長レジス
タ(S−LEN)14には、1セクタデータ長つまり1
つのリカバリーコマンドのデータ転送長が格納される。 磁気ディスク制御装置2は、CPU1からの指令に従っ
て磁気ディスク装置3の動作制御を行なう。
Disk start address register (S-AD
RS) 11 stores the disk start address at the time of recovery, that is, the start address of the write or read target during the recovery operation in the disk device 3. The disk end address register (E-ADRS) 12 stores the disk end address, that is, the final address to be written or read during a recovery operation in the disk device 3. Data transfer length register (D-
LEN) 13 stores information indicating the remaining data transfer length, that is, the remaining length of data to be written or read at the time of recovery. The sector data length register (S-LEN) 14 contains one sector data length, that is, 1
The data transfer length of one recovery command is stored. The magnetic disk control device 2 controls the operation of the magnetic disk device 3 according to commands from the CPU 1.

【0014】磁気ディスク装置3は固定データ長のセク
タフォーマットを有する円盤上の磁気記録媒体を備えて
おり、磁気ディスク装置2からの指令に従って記録媒体
(ディスク)に対するデータの書き込み、読み出しを行
なう。
The magnetic disk device 3 includes a disk-shaped magnetic recording medium having a sector format with a fixed data length, and writes and reads data to and from the recording medium (disk) according to commands from the magnetic disk device 2.

【0015】この磁気ディスク制御システムにおいては
、CPU1は、磁気ディスク制御装置2と共同すること
によって1つのコマンド発行によって磁気ディスク装置
3の複数セクタに跨がるデータ書き込み(または読み出
し)を実行制御する。このコマンドのエラーリカバリー
は、図2のフローチャートに従って実行される。
In this magnetic disk control system, the CPU 1 cooperates with the magnetic disk control device 2 to execute and control data writing (or reading) across multiple sectors of the magnetic disk device 3 by issuing one command. . Error recovery for this command is performed according to the flowchart in FIG.

【0016】図2のフローチャートに示されているよう
に、CPU1は書き込み/読み出しコマンドを磁気ディ
スク制御装置2に発行し(ステップA1)、磁気ディス
ク制御装置2からの終了ステータスの有無によって、正
常終了か異常終了かを判断する(ステップA2)。正常
終了の場合にはリカバリーの必要がないためそのまま終
了となる。
As shown in the flowchart of FIG. 2, the CPU 1 issues a write/read command to the magnetic disk control device 2 (step A1), and depending on the presence or absence of the termination status from the magnetic disk control device 2, the CPU 1 issues a write/read command to the magnetic disk control device 2. or abnormal termination (step A2). If the process ends normally, there is no need for recovery, so the process ends as is.

【0017】一方、異常終了の場合は、リカバリー処理
を行なうために、CPU1は、まず、書き込み/読み出
しコマンド(W/Rコマンド)のディスク開始アドレス
をS−ADRSレジスタ11にセットし(ステップA3
)、次いで、W/Rコマンドのディスク終了アドレスを
E−ADRSレジスタ12にセットし(ステップA4)
、W/Rコマンドのデータ転送長をD−LENレジスタ
13にセットし(ステップA5)、そして、1セクタデ
ータ長をS−ADRSレジスタ14にセットする(ステ
ップA6)。
On the other hand, in the case of abnormal termination, in order to perform recovery processing, the CPU 1 first sets the disk start address of the write/read command (W/R command) in the S-ADRS register 11 (step A3).
), then sets the disk end address of the W/R command in the E-ADRS register 12 (step A4).
, the data transfer length of the W/R command is set in the D-LEN register 13 (step A5), and the one sector data length is set in the S-ADRS register 14 (step A6).

【0018】この後、CPU1は、S−ADRSレジス
タ11のディスク開始アドレスの値とE−ADRSレジ
スタ12のディスク終了アドレスの値とを比較する(ス
テップA7)。
After that, the CPU 1 compares the value of the disk start address of the S-ADRS register 11 and the value of the disk end address of the E-ADRS register 12 (step A7).

【0019】S−ADRSレジスタ11の開始アドレス
の値がE−ADRSレジスタ12の終了アドレスの値よ
りも小さい場合には、データの書き込みまたは読み出し
対象の最終セクタに対するアクセスではないと判断でき
るため、1セクタデータ長のリカバリーコマンドをS−
ADRSで示されるディスクアドレスに対して実行し(
ステップA8)、その結果を判断し(ステップA9)、
異常終了であればリカバリー不成功として異常終了する
If the value of the start address of the S-ADRS register 11 is smaller than the value of the end address of the E-ADRS register 12, it can be determined that the access is not to the final sector for data writing or reading. S-Sector data length recovery command
Execute for the disk address indicated by ADRS (
Step A8), judge the result (Step A9),
If the process ends abnormally, the recovery is considered unsuccessful and the process ends abnormally.

【0020】一方、リカバリーコマンドが正常終了であ
れば、次のディスクセクタアドレスに対する1セクタデ
ータ長の転送を行なうために、S−ADRSの内容に1
加算してそれを新たなディスク開始アドレスとし(ステ
ップA10)、D−LENレジスタ13の内容からS−
LENレジスタ14の内容を減算してその減算結果を新
たな残りデータ長とし(ステップA11)、そして、ス
テップA7に戻り処理を続ける。
On the other hand, if the recovery command ends normally, 1 is added to the contents of S-ADRS in order to transfer 1 sector data length to the next disk sector address.
Add it and use it as a new disk start address (step A10), and from the contents of the D-LEN register 13, select S-
The contents of the LEN register 14 are subtracted and the subtraction result is used as a new remaining data length (step A11), and the process returns to step A7 to continue the process.

【0021】最終セクタの場合は、S−ADRSレジス
タ11のディスク開始アドレスの値とE−ADRSレジ
スタ12のディスク終了アドレスの内容が等しいので、
ステップA7からステップA12、A13と処理が移り
、データ転送長を残り転送バイト数とするために、D−
LENレジスタ13の残りデータ長をS−LENレジス
タ14にセットし(ステップA13)、ステップA8以
降の処理を行なう。これにより、最終セクタのデータ転
送長が1セクタデータ長より小さい場合のデータ転送を
可能としている。
In the case of the final sector, since the value of the disk start address in the S-ADRS register 11 and the contents of the disk end address in the E-ADRS register 12 are the same,
The process moves from step A7 to steps A12 and A13, and in order to set the data transfer length to the number of remaining transfer bytes, D-
The remaining data length of the LEN register 13 is set in the S-LEN register 14 (step A13), and the processing from step A8 onwards is performed. This enables data transfer when the data transfer length of the final sector is smaller than one sector data length.

【0022】最終セクタのリカバリーコマンドの終了後
は、S−ADRSレジスタ11のディスク開始アドレス
の値がE−ADRSレジスタ12のディスク終了アドレ
スの値よりも大きくなるため、ステップA12により正
常終了となり、リカバリー処理が終了される。
After the final sector recovery command is completed, the value of the disk start address in the S-ADRS register 11 becomes greater than the value of the disk end address in the E-ADRS register 12, so step A12 ends normally, and the recovery is completed. Processing is terminated.

【0023】以上のように、この実施例においては、書
き込みまたは読み出しコマンドが異常終了すると、CP
U1から磁気ディスク制御装置2に対して1セクタデー
タ長またはそれ以下のデータ長に分割したリカバリーコ
マンドが磁気ディスク装置3の対象セクタ範囲に対して
順次発行され、セクタ単位でのアクセスが順次実行され
る。
As described above, in this embodiment, when a write or read command terminates abnormally, the CP
A recovery command divided into data lengths of 1 sector or less is sequentially issued from U1 to the magnetic disk control device 2 for the target sector range of the magnetic disk device 3, and accesses in sector units are sequentially executed. Ru.

【0024】したがって、エラー発生状態のコマンドに
よる複数セクタに跨がる入出力動作とは別の制御形式で
リカバリー処理を実行できるようになり、固定的な故障
が存在している場合においても、十分に成功率の高いリ
カバリーを実行できる。
[0024] Therefore, it is now possible to execute recovery processing using a control format that is different from the input/output operation that spans multiple sectors due to a command in an error state, and even when a fixed failure exists, the recovery process can be can perform recovery with a high success rate.

【0025】尚、ここでは、磁気ディスク装置について
説明したが、この発明のエラーリカバリー方式は、フロ
ッピーディスクや光ディスクに対しても同様に適用する
ことができる。
Although a magnetic disk device has been described here, the error recovery method of the present invention can be similarly applied to floppy disks and optical disks.

【0026】[0026]

【発明の効果】以上詳記したようにこの発明によれば、
エラー発生状態のコマンドによる複数セクタに跨がる入
出力動作とは別の制御形式でリカバリー処理を実行でき
るようになり、固定的な故障が存在している場合におい
ても、十分に成功率の高いリカバリーを実行できるよう
になる。
[Effects of the Invention] As detailed above, according to the present invention,
It is now possible to execute recovery processing using a control method different from input/output operations that span multiple sectors due to commands in an error state, and the success rate is sufficiently high even when fixed failures exist. You will be able to perform recovery.

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

【図1】この発明の一実施例に係るシステム構成を示す
ブロック図。
FIG. 1 is a block diagram showing a system configuration according to an embodiment of the present invention.

【図2】同実施例におけるエラーリカバリー動作を示す
フローチャート。
FIG. 2 is a flowchart showing error recovery operation in the same embodiment.

【符号の説明】[Explanation of symbols]

1…CPU,2…磁気ディスク制御装置,3…磁気ディ
スク装置、11…ディスク開始アドレスレジスタ、12
…ディスク終了アドレスレジスタ、13…残りデータ長
レジスタ、14…セクタデータ長レジスタ。
DESCRIPTION OF SYMBOLS 1... CPU, 2... Magnetic disk control device, 3... Magnetic disk device, 11... Disk start address register, 12
...Disk end address register, 13...Remaining data length register, 14...Sector data length register.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  固定データ長のセクタフォーマットを
有するディスク装置に対して複数セクタに跨がるデータ
長の書き込みまたは読み出しを1コマンドで実行するデ
ィスク制御システムにおいて、前記書き込みまたは読み
出しコマンドの異常終了の有無を検出する手段と、異常
終了が検出された際、1セクタデータ長以下のデータ長
に分割した所定のリカバリーコマンドをアクセス対象の
セクタ範囲に対して順次発行する手段とを具備し、前記
複数セクタに跨がるデータ長の書き込みまたは読み出し
コマンドのリカバリーを複数のリカバリーコマンドによ
って実現することを特徴とするエラーリカバリー方式。
1. In a disk control system that executes writing or reading of a data length spanning multiple sectors with one command to a disk device having a sector format of a fixed data length, and means for sequentially issuing a predetermined recovery command divided into data lengths of one sector data length or less to the sector range to be accessed when abnormal termination is detected, An error recovery method characterized by realizing recovery of a write or read command with a data length that spans sectors using multiple recovery commands.
JP3022170A 1991-02-15 1991-02-15 Error recovery system Pending JPH04260115A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3022170A JPH04260115A (en) 1991-02-15 1991-02-15 Error recovery system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3022170A JPH04260115A (en) 1991-02-15 1991-02-15 Error recovery system

Publications (1)

Publication Number Publication Date
JPH04260115A true JPH04260115A (en) 1992-09-16

Family

ID=12075333

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3022170A Pending JPH04260115A (en) 1991-02-15 1991-02-15 Error recovery system

Country Status (1)

Country Link
JP (1) JPH04260115A (en)

Similar Documents

Publication Publication Date Title
JPS605023B2 (en) memory system
JPH04260115A (en) Error recovery system
JPH04295677A (en) Magnetic-disk processing device
JP2684717B2 (en) Disk controller bad track control method
JPH0793101A (en) Data backup device
JPH0528651A (en) Information recorder and reproducer
JP2737495B2 (en) I / O control unit
JPH0750428B2 (en) Disk double writing controller
JPS59221810A (en) Alternate sector device in magnetic storage device
JPS6095762A (en) Magnetic disc controller
JPH05181613A (en) Information processor
JPH0628779A (en) Method for recording and controlling data in disk device
JPH0335477A (en) Peripheral memory controller
JP2630932B2 (en) Program recording method for disk-shaped recording medium
JPS6247735A (en) Controller for external memory device
JPH06168079A (en) Data backup system
JPS58171724A (en) Copy controller of magnetic disc tape
JPH0431129B2 (en)
JPS6113259B2 (en)
JPH06103510A (en) Method for processing data of recording and reproducing device
JPS59157813A (en) Controller for magnetic memory of rotor
JPS6126974A (en) Information recorder
JPS63208960A (en) Peripheral controller
JPH0235664A (en) Logic sector write system for magnetic disk controller
JPH01122073A (en) Control system for magnetic disk device