JPH11327808A - Retry controller for external storage device controller - Google Patents

Retry controller for external storage device controller

Info

Publication number
JPH11327808A
JPH11327808A JP10138420A JP13842098A JPH11327808A JP H11327808 A JPH11327808 A JP H11327808A JP 10138420 A JP10138420 A JP 10138420A JP 13842098 A JP13842098 A JP 13842098A JP H11327808 A JPH11327808 A JP H11327808A
Authority
JP
Japan
Prior art keywords
time
processing
retry
external storage
command
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
JP10138420A
Other languages
Japanese (ja)
Inventor
Keisuke Makita
恵典 牧田
Akira Kojima
昭 小島
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 JP10138420A priority Critical patent/JPH11327808A/en
Publication of JPH11327808A publication Critical patent/JPH11327808A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a retry controller for an external storage device controller, which is suitable for shortening processing time in an environment where command execution time is severe. SOLUTION: Total time required for processing a received command is set 102 in an external storage device controller. Access time to a sector where a retry processing to a magnetic disk device is not generated and time required for the retry processing are sequentially subtracted 106 and 110 from the total which is set. It is judged 104 and 108 whether access and retry processings can be executed in subtracted time or not. When they can be executed, processing of the command is compulsorily interrupted 118. It is judged whether an automatic exchange processing is required or not as the result of the retry processing. When the automatic exchange processing is judged to be required, it is confirmed that the automatic exchange processing can be executed within the subtracted time before the automatic exchange processing is executed.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、磁気ディスク装置
等に対する外部記憶装置コントローラのリトライ制御装
置に関し、特に、コマンド実行時間の厳しい環境におけ
る処理時間短縮に好適な外部記憶装置コントローラのリ
トライ制御装置に関する。
The present invention relates to a retry control device for an external storage device controller for a magnetic disk device or the like, and more particularly to a retry control device for an external storage device controller suitable for reducing processing time in an environment where command execution time is severe. .

【0002】[0002]

【従来の技術】従来の外部記憶装置コントローラでは、
リード及びライトに関してリトライ回数に対応するリト
ライ処理時間のテーブル(リトライの回数毎に要するリ
トライ処理時間がリードまたはライト別にテーブル化さ
れている)を用いて、前記コントローラによる磁気ディ
スク装置に対する時間監視を行っていた。
2. Description of the Related Art In a conventional external storage device controller,
Using the table of retry processing time corresponding to the number of retries for reading and writing (retry processing time required for each number of retries is tabulated for each read or write), the controller monitors the time for the magnetic disk device. I was

【0003】このリード及びライトに関するリトライ処
理時間テーブルを使用してリトライ処理毎の時間監視を
行った場合、リードエラー、ライトエラーが発生した時
のリトライ処理の時間監視にとっては有効であるが、複
数セクタに亘るコマンド処理の時間監視にとっては前記
テーブルだけでは不十分である。
When monitoring the time for each retry process using the retry process time table relating to read and write, it is effective for monitoring the retry process when a read error or a write error occurs. The above table alone is not sufficient for monitoring the time of command processing over sectors.

【0004】[0004]

【発明が解決しようとする課題】従来の技術におけるリ
ードおよびライトに関するリトライ処理時間テーブルを
使用して前記コントローラによる磁気ディスク装置に対
する時間監視を行った場合、リードエラー、ライトエラ
ーが発生した時のリトライ処理の時間監視には有効であ
るが、複数セクタに亘るコマンド処理の時間監視にとっ
ては、リトライ処理が発生しない正常セクタへのアクセ
ス時間を考慮していないため、上位のホストコンピュー
タがコマンド全体の処理時間を規定する場合、その規定
時間以内にコマンドが終了しない場合が発生する。
When the controller monitors the time of the magnetic disk device by using the retry processing time table relating to read and write in the prior art, the retry when a read error or a write error occurs is performed. Although effective for monitoring the processing time, the monitoring of the command processing over a plurality of sectors does not consider the access time to the normal sector where retry processing does not occur. When the time is specified, the command may not be completed within the specified time.

【0005】即ち、上位装置による複数セクタに亘るコ
マンド処理をその処理のための規定時間をもって管理し
つつ、コントローラに指令する場合、コントローラはリ
トライ処理のテーブルによる時間管理のみを行っている
ので、例えば、第1回目のリトライ処理に要する時間を
テーブルで検知して、このようなリトライ処理を複数回
繰り返してその都度テーブルで時間を検知してその積算
値が上位装置の規定時間に未だ達していないと判断して
も、実際には、多数の正常セクタへのアクセス時にその
アクセスのための時間(セクタ毎の正常アクセス時間は
リトライ処理時間に較べて非常に小であるが、正常セク
タが多数ある場合には、正常アクセス時間の積算値は無
視できない時間となる)を要しているのであるから(正
常セクタへのアクセス時間はコントローラで管理してい
ないので)、規定時間に達してしまっている場合が有り
得る。この場合には、規定時間以内にコマンドが終了し
ないこととなる。
That is, when a command is issued to a controller while managing command processing over a plurality of sectors by a host device with a prescribed time for the processing, the controller performs only time management using a retry processing table. The time required for the first retry processing is detected in a table, such retry processing is repeated a plurality of times, the time is detected in the table each time, and the integrated value has not yet reached the specified time of the higher-level device. However, in practice, when accessing a large number of normal sectors, the time for the access (the normal access time for each sector is very small compared to the retry processing time, but there are many normal sectors). In this case, the integrated value of the normal access time is a time that cannot be ignored.) Since the scan time is not managed by the controller), there can be when they've reached the specified time. In this case, the command does not end within the specified time.

【0006】[0006]

【課題を解決するための手段】前記課題を解決するため
に、本発明は次のような構成を採用する。
In order to solve the above problems, the present invention employs the following configuration.

【0007】磁気ディスク装置に対する外部記憶装置コ
ントローラにおいて、上位装置から受領したコマンドを
処理する処理時間を監視し、前記磁気ディスク装置への
リトライ処理を含めた前記コマンドの処理が規定時間内
に完了しなかった場合に前記コマンドの処理を強制的に
中断する外部記憶装置コントローラのリトライ制御装
置。
In the external storage device controller for the magnetic disk device, the processing time for processing the command received from the host device is monitored, and the processing of the command including the retry process for the magnetic disk device is completed within a specified time. A retry control device of the external storage device controller for forcibly interrupting the processing of the command when there is no command.

【0008】また、磁気ディスク装置に対する外部記憶
装置コントローラにおいて、上位装置から受領したコマ
ンド処理に要する全体時間を設定し、前記磁気ディスク
装置へのリトライ処理の発生しないセクタへのアクセス
時間およびリトライ処理に要する時間を、前記設定した
全体時間から順次減算し、前記減算した時間内に前記ア
クセスおよび前記リトライ処理が実行可能であるか否か
を判断し、実行不可であれば前記コマンドの処理を強制
的に中断する外部記憶装置コントローラのリトライ制御
装置。
In the external storage controller for the magnetic disk drive, the total time required for command processing received from the host device is set, and the access time to the sector where no retry processing is performed on the magnetic disk drive and the retry processing are performed. The required time is sequentially subtracted from the set total time, and it is determined whether the access and the retry process can be executed within the subtracted time. If the access and the retry process cannot be executed, the process of the command is forcibly performed. The retry control device of the external storage device controller to be interrupted.

【0009】また、前記外部記憶装置コントローラのリ
トライ制御装置において、前記リトライ処理の結果、自
動交替処理が必要であるか否かを判断し、前記自動交替
処理が必要であると判断した場合には、前記自動交替処
理が前記規定時間内にまたは前記減算時間内に実行可能
であることを確認した後に、前記自動交替処理を実行す
る外部記憶装置コントローラのリトライ制御装置。
In the retry control device of the external storage device controller, as a result of the retry processing, it is determined whether or not the automatic replacement processing is necessary. A retry control device for an external storage device controller that executes the automatic replacement processing after confirming that the automatic replacement processing can be executed within the specified time or within the subtraction time.

【0010】[0010]

【発明の実施の形態】本発明の実施形態に係る磁気ディ
スク装置のリトライ制御について、図1を用いて以下説
明する。図1は本発明の実施形態に係る外部記憶装置コ
ントローラの処理の流れを示すフローチャートである。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Retry control of a magnetic disk drive according to an embodiment of the present invention will be described below with reference to FIG. FIG. 1 is a flowchart showing a flow of processing of the external storage device controller according to the embodiment of the present invention.

【0011】ホストコンピュータからのコマンドを受領
すると(101)、外部記憶装置コントローラはホスト
コンピュータが規定する規定時間の値を処理可能時間T
1にセットされ(102)、時間監視はこの処理可能時
間T1を用いて行う。コマンド全体の時間監視が開始さ
れ(103)、指令された目的セクタへのアクセス処理
が処理可能時間T1以内かどうかをチェックし(10
4)、処理可能時間外であれば(通常の処理であればT
1以内であるが、上位装置によって予期されるコマンド
処理時間よりも大なるアクセス処理時間の掛かる動作の
遅い磁気ディスク装置も使用する場合があるので)、エ
ラー報告(118)してコマンドを終了する。
When a command is received from the host computer (101), the external storage device controller changes the value of the specified time specified by the host computer to the processable time T.
It is set to 1 (102), and time monitoring is performed using the processable time T1. The time monitoring of the entire command is started (103), and it is checked whether the access process to the commanded target sector is within the processable time T1 (10).
4) If it is outside the processable time (T for normal processing)
However, there is also a case where a magnetic disk device that requires an access processing time longer than the command processing time expected by the higher-level device but is slower than 1 is used.) An error is reported (118) and the command is terminated. .

【0012】処理(104)のチェックで処理可能時間
T1以内であれば目的セクタへのアクセスが行われ(1
05)、目的セクタへのアクセスに要した時間分だけ処
理可能時間を減少させて処理可能時間をT2とする(1
06)。もし、このアクセスでエラーが発生すると(1
07)、リトライ処理時間が処理可能時間T2以内であ
ることを確認(108)後、リトライ処理(109)が
行われる。そして、このリトライに要した時間分だけ処
理可能時間を減少させて処理可能時間をT3とした(1
10)後、エラーが回復したかどうかチェックする(1
11)。リトライ処理時間が(108)の処理可能時間
T2以内かどうかのチェックの際、処理可能時間T2外
であればエラー報告を行い(118)コマンドを終了す
る。
If the check in the process (104) is within the processable time T1, access to the target sector is performed (1).
05), the processable time is reduced by the time required to access the target sector, and the processable time is set to T2 (1).
06). If an error occurs during this access (1
07), after confirming that the retry processing time is within the processable time T2 (108), the retry processing (109) is performed. Then, the processable time is reduced by the time required for this retry, and the processable time is set to T3 (1
10) Then, check whether the error has been recovered (1)
11). At the time of checking whether the retry processing time is within the processable time T2 of (108), if it is outside the processable time T2, an error report is made (118) and the command is terminated.

【0013】処理(111)のチェック時にエラーが回
復しなかった場合、ホストコンピュータが規定する回数
のリトライが実行されたかどうかを確認(112)し、
規定回のリトライが行われておらず、かつ処理可能時間
以内であればリトライ処理を再度行う。
If the error has not been recovered at the time of the check in the process (111), it is confirmed whether or not the number of retries specified by the host computer has been executed (112)
If the specified number of retries has not been performed and the processing is within the processable time, the retry processing is performed again.

【0014】エラー回復またはは規定回のリトライ処理
が終了した場合は、エラーの種類及びその他の設定値に
より自動交替処理が必要かどうかを判断する(11
3)。ここにおいて、自動交替処理とは、データの書き
込みまたは読み出しに際して、リトライ回数が規定数に
達したり、リトライするエラーの要因等によって、交替
セクタにそのデータを記録しておく処理を云う。
When the error recovery or the retry process for a specified number of times is completed, it is determined whether or not the automatic replacement process is necessary based on the type of error and other set values (11)
3). Here, the automatic replacement process refers to a process of recording the data in a replacement sector due to the number of retries reaching a specified number or the cause of a retry error when writing or reading data.

【0015】自動交替処理を行う場合、自動交替処理に
要する時間が処理可能時間T3以内であるかを調べ、自
動交替処理が時間的に可能かどうか判断する(11
4)。自動交替処理が時間的に不可能と判断するとエラ
ー報告後(118)コマンドを終了し、逆に自動交替処
理が可能であると判断した場合には自動交替処理を行う
(115)。そして、この自動交替処理に要した時間分
だけ処理可能時間を減少させて処理可能時間T4とする
(116)。
When the automatic replacement process is performed, it is checked whether the time required for the automatic replacement process is within the processable time T3, and it is determined whether the automatic replacement process is temporally possible (11).
4). If it is determined that the automatic replacement process is temporally impossible, the command is terminated after an error report (118). Conversely, if it is determined that the automatic replacement process is possible, the automatic replacement process is performed (115). Then, the processable time is reduced by the time required for the automatic replacement process, and is set as the processable time T4 (116).

【0016】最後にホストコンピュータ要求分のデータ
のアクセスが完了したかどうかをチェックし(11
7)、ホストコンピュータ要求分のデータアクセスが完
了するまで時間監視を行いながら繰り返し、コマンド終
了時に時間監視を終了する(119)。
Finally, it is checked whether the access to the data requested by the host computer has been completed (step 11).
7) It repeats while monitoring the time until the data access required by the host computer is completed, and terminates the time monitoring when the command ends (119).

【0017】[0017]

【発明の効果】以上、説明したように、本発明によれ
ば、外部記憶装置コントローラがコマンド処理全体を実
際の時間を用いて監視することにより、リードエラー、
ライトエラー又はシークエラーといったエラーの種類に
よる時間監視(テーブルによるエラー毎のリトライ処理
時間の監視)をする必要がなくなる上に、リトライ処理
時間ばかりでなく、リトライ処理が発生しないセクタへ
のアクセス時間等を含むコマンド全体の処理時間に対し
て上位のホストコンピュータが規定する時間以内にコマ
ンドを終了させることが出来る。
As described above, according to the present invention, the external storage device controller monitors the entire command processing by using the actual time, so that the read error can be reduced.
It is not necessary to monitor the time according to the type of error such as a write error or a seek error (monitoring the retry processing time for each error using a table). In addition to the retry processing time, the access time to a sector where retry processing does not occur, The command can be terminated within the time specified by the host computer with respect to the processing time of the entire command including the command.

【0018】更に、自動交替処理を行う前に事前に自動
交替処理が時間的に実行可能かどうかを調べた上で自動
交替処理を行うことによって、自動交替処理中にホスト
コンピュータの規定時間に達した際に発生する自動交替
処理中断の回避が可能となり、障害が発生する危険性が
低くなる。
Further, before performing the automatic replacement process, it is checked whether or not the automatic replacement process can be temporally executed, and then the automatic replacement process is performed. In this case, it is possible to avoid interruption of the automatic replacement process that occurs when the error occurs, and the risk of occurrence of a failure is reduced.

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

【図1】本発明の実施形態に係る外部記憶装置コントロ
ーラの処理の流れを示すフローチャートである。
FIG. 1 is a flowchart illustrating a process flow of an external storage device controller according to an embodiment of the present invention.

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

101〜119 処理の流れ 101-119 Processing Flow

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 磁気ディスク装置に対する外部記憶装置
コントローラにおいて、 上位装置から受領したコマンドを処理する処理時間を監
視し、 前記磁気ディスク装置へのリトライ処理を含めた前記コ
マンドの処理が規定時間内に完了しなかった場合に前記
コマンドの処理を強制的に中断することを特徴とする外
部記憶装置コントローラのリトライ制御装置。
An external storage device controller for a magnetic disk device monitors a processing time for processing a command received from a host device, and performs processing of the command including a retry process for the magnetic disk device within a specified time. A retry control device for an external storage device controller, wherein the processing of the command is forcibly interrupted when not completed.
【請求項2】 磁気ディスク装置に対する外部記憶装置
コントローラにおいて、 上位装置から受領したコマンド処理に要する全体時間を
設定し、 前記磁気ディスク装置へのリトライ処理の発生しないセ
クタへのアクセス時間およびリトライ処理に要する時間
を、前記設定した全体時間から順次減算し、 前記減算した時間内に前記アクセスおよび前記リトライ
処理が実行可能であるか否かを判断し、実行不可であれ
ば前記コマンドの処理を強制的に中断することを特徴と
する外部記憶装置コントローラのリトライ制御装置。
2. An external storage device controller for a magnetic disk device, wherein an overall time required for command processing received from a host device is set, and an access time to a sector in which no retry process is performed on the magnetic disk device and a retry process are performed. The required time is sequentially subtracted from the set total time, and it is determined whether or not the access and the retry processing can be executed within the subtracted time. If the access and the retry processing cannot be executed, the processing of the command is forcibly performed. A retry control device for an external storage device controller, wherein the retry control is interrupted.
【請求項3】 請求項1または2に記載の外部記憶装置
コントローラのリトライ制御装置において、 前記リトライ処理の結果、自動交替処理が必要であるか
否かを判断し、 前記自動交替処理が必要であると判断した場合には、前
記自動交替処理が前記規定時間内にまたは前記減算時間
内に実行可能であることを確認した後に、前記自動交替
処理を実行することを特徴とする外部記憶装置コントロ
ーラのリトライ制御装置。
3. The retry control device for an external storage device controller according to claim 1, wherein as a result of said retry processing, it is determined whether or not automatic replacement processing is necessary, and said automatic replacement processing is required. An external storage device controller that executes the automatic replacement process after confirming that the automatic replacement process can be performed within the specified time or within the subtraction time when it is determined that there is the automatic replacement process. Retry control device.
JP10138420A 1998-05-20 1998-05-20 Retry controller for external storage device controller Pending JPH11327808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10138420A JPH11327808A (en) 1998-05-20 1998-05-20 Retry controller for external storage device controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10138420A JPH11327808A (en) 1998-05-20 1998-05-20 Retry controller for external storage device controller

Publications (1)

Publication Number Publication Date
JPH11327808A true JPH11327808A (en) 1999-11-30

Family

ID=15221555

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10138420A Pending JPH11327808A (en) 1998-05-20 1998-05-20 Retry controller for external storage device controller

Country Status (1)

Country Link
JP (1) JPH11327808A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009110287A (en) * 2007-10-30 2009-05-21 Fujitsu Ltd Access control device and access control method
CN101859233A (en) * 2009-04-06 2010-10-13 日立乐金资料储存股份有限公司 Optical disc apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009110287A (en) * 2007-10-30 2009-05-21 Fujitsu Ltd Access control device and access control method
US8032721B2 (en) 2007-10-30 2011-10-04 Toshiba Storage Device Corporation Access control apparatus and access control method
CN101859233A (en) * 2009-04-06 2010-10-13 日立乐金资料储存股份有限公司 Optical disc apparatus

Similar Documents

Publication Publication Date Title
US6625096B1 (en) Optical disk recording and reproduction method and apparatus as well as medium on which optical disk recording and reproduction program is recorded
US6513135B2 (en) Automatic read reassignment method and a magnetic disk drive
JP2009110287A (en) Access control device and access control method
JP2005322399A (en) Maintenance method of track data integrity in magnetic disk storage device
US6125459A (en) Information storing method, information storing unit, and disk drive
JP2976780B2 (en) Information recording / reproducing device
US7809978B2 (en) Storage device and control device
US6169710B1 (en) Optical disc recording/reproducing method and apparatus
JP3860967B2 (en) Method for automatically changing leads and magnetic disk device using the same
JP2001092600A (en) Computer system having large capacity storage device and its operating method
US20040153745A1 (en) Bad-sector search method, data recording device, and program
JPH11327808A (en) Retry controller for external storage device controller
US6229743B1 (en) Method of a reassign block processing time determination test for storage device
JPH07182250A (en) Automatic substituting processing system for magnetic disk
JP3120769B2 (en) Disk array device and control method therefor
US6088818A (en) Data read apparatus and data read method
JP3356106B2 (en) Magnetic disk device and retry processing method thereof
JP2000137584A (en) Controller for external storage device, method for substituting defective block and storage medium storing defective block substitution control program
JPH05119932A (en) Read control system for magneto-optical disk device
JPH0581789A (en) Optical disk device
JPH09161415A (en) Control method for magnetic tape apparatus
US7382559B2 (en) Recovery processing method for device specific information of medium storage device and medium storage device
JP4747937B2 (en) Information recording device
JP2001135042A (en) Disk controller, disk device, disk control system, control method for the number of times of retry and recording medium
JP3335969B2 (en) Magnetic disk drive

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040621

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040817

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050105