JP3183912B2 - SCSI device self-diagnosis method - Google Patents

SCSI device self-diagnosis method

Info

Publication number
JP3183912B2
JP3183912B2 JP20566191A JP20566191A JP3183912B2 JP 3183912 B2 JP3183912 B2 JP 3183912B2 JP 20566191 A JP20566191 A JP 20566191A JP 20566191 A JP20566191 A JP 20566191A JP 3183912 B2 JP3183912 B2 JP 3183912B2
Authority
JP
Japan
Prior art keywords
command
diagnosis
self
scsi
result
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 - Fee Related
Application number
JP20566191A
Other languages
Japanese (ja)
Other versions
JPH0528077A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP20566191A priority Critical patent/JP3183912B2/en
Publication of JPH0528077A publication Critical patent/JPH0528077A/en
Application granted granted Critical
Publication of JP3183912B2 publication Critical patent/JP3183912B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、SCSI(Small Comp
uter System Interface)を介してホストコンピュータか
ら送られる指令を実行するSCSI装置(ターゲット)
の自己診断方式に関する。
The present invention relates to a SCSI (Small Comp
SCSI device (target) that executes commands sent from the host computer via uter System Interface)
The self-diagnosis method.

【0002】[0002]

【従来の技術】SCSIは、米国シュガート社の小型コ
ンピュータとその周辺装置とを結ぶインターフェースS
ASI(Shugart Associates System Interface)を基に
ANSI(米国規格協会)X3T9.2作業委員会で審
議がなされ、ANSI X3.131−1986として
規格化されたもので、現在パーソナル・コンピュータと
その周辺装置を結ぶ標準インターフェースとなりつつあ
る。また、最近ではその拡張版であるSCSI−2の規
格化のための作業が進められているが、現時点では最終
決定には至っていない。上記ANSIが規定するSCS
Iインターフェース規約の範囲は、次の5点である。 (1)インターフェース信号の種類とその定義、信号授
受のタイミング。 (2)インターフェースとしての動作シーケンスを規定
するプロトコル、各フェーズ等の定義。 (3)ケーブル仕様、コネクタ仕様等の物理的インター
フェース条件、電送系の電気的条件。 (4)周辺機器の各種制御やデータ転送を実行するため
のコマンド体系並びにコマンドの形式および各コマンド
の機能。 (5)コマンドの実行結果をホストコンピュータに知ら
せるためのステータスバイト形式、並びにその過程にお
ける異常状態等を知らせるセンスデータの構造。
2. Description of the Related Art SCSI is an interface S that connects a small computer manufactured by Sugart Corporation in the United States and its peripheral devices.
It was deliberated by the ANSI (American Standards Association) X3T9.2 Working Committee based on ASI (Shugart Associates System Interface) and standardized as ANSI X3.131-1986. Currently, personal computers and their peripheral devices are It is becoming a standard interface to connect. Recently, work has been underway to standardize an extended version of SCSI-2, but a final decision has not been reached at this time. SCS defined by the ANSI
The scope of the I-interface rules is the following five points. (1) Types of interface signals, their definitions, and signal transfer timings. (2) Definition of a protocol, each phase, and the like that define an operation sequence as an interface. (3) Physical interface conditions such as cable specifications and connector specifications, and electrical conditions of the transmission system. (4) A command system for executing various controls and data transfer of peripheral devices, a command format, and a function of each command. (5) A status byte format for notifying the host computer of the execution result of the command, and a structure of sense data for notifying an abnormal state in the process.

【0003】また、上記(4)項におけるコマンド体系
は、以下の通りである。まず、SCSIコマンドは、8
種類のグループに分けられる。CDB(Command Descri
pterBlock)の最初のバイトはオペレーション・コード
であり、その上位3ビットがグループコードを指定し、
下位5ビットがグループ毎のコマンドコード(コマンド
の種類を示すコード)を指定する。上記CDBの長さ
は、グループ毎に以下のように規定されている。 (1)グループ0 ・・・・・・ 6バイト (2)グループ1 ・・・・・・ 10バイト (3)グループ2〜4 ・・・・ リザーブ (4)グループ5 ・・・・・・ 12バイト (5)グループ6〜7 ・・・・ ベンダーユニーク
(製造者規定) 上記グループ6〜7のCDBは、SCSIデバイス固有
に定義可能なコマンド群である。各コマンドにおいて、
論理ブロックアドレスはロジカルユニット上で固定長の
データブロックが連続して配列されている。
The command system in the above item (4) is as follows. First, the SCSI command is 8
Divided into different groups. CDB (Command Descri
pterBlock) is the first byte of the operation code, the upper three bits of which specify the group code,
The lower 5 bits specify the command code (code indicating the type of command) for each group. The length of the CDB is defined as follows for each group. (1) Group 0 ... 6 bytes (2) Group 1 ... 10 bytes (3) Groups 2 to 4 Reserved (4) Group 5 ... 12 Byte (5) Groups 6-7 Vendor Unique (Manufacturer-Specified) The CDBs of the above groups 6-7 are commands that can be defined uniquely for SCSI devices. In each command,
In the logical block address, fixed-length data blocks are continuously arranged on the logical unit.

【0004】図5は、ハードディスク装置における論理
ブロックの構成を示す図である。図5において、シリン
ダ=0、セクタ=0のデータブロックを論理ブロックア
ドレス=0とし、セクタ、トラック、シリンダの順番で
それぞれ1つ増えるごとに、論理ブロックアドレスを1
つ増加させる。論理ブロックアドレスが優れている点
は、イニシエータ(ホストコンピュータ)が先頭データ
ブロックの論理ブロックアドレスと処理ブロック数を指
定してデータをアクセスするので、物理的な構造を意識
する必要がない点である。従って、上記論理ブロックア
ドレッシングを使用すると、シリンダ、トラック、セク
タ等の数が互いに異なるデバイス同士を接続した場合
に、同一のソフトウエアで動作させることが可能であ
る。
FIG. 5 is a diagram showing a configuration of a logical block in a hard disk drive. In FIG. 5, a logical block address = 0 is set for a data block of cylinder = 0 and sector = 0, and the logical block address is increased by 1 each time the data block is incremented by one in the order of sector, track, and cylinder.
One. The logical block address is excellent in that the initiator (host computer) accesses the data by designating the logical block address of the first data block and the number of processing blocks, so that there is no need to be aware of the physical structure. . Therefore, by using the logical block addressing, when devices having different numbers of cylinders, tracks, sectors, and the like are connected to each other, it is possible to operate the same software.

【0005】図6は、SCSIのシステム構成の一般的
な例を示す図である。論理ユニットとしては、通常図6
に示すように、ハードディスク等の物理的なデバイスを
接続することが多いが、論理ユニット番号(LUN:Lo
gical Unit Number)は物理的なデバイスに付与しても良
いし、仮想的なデバイスに付与しても良い。通常SCS
Iにおいては、SCSIバス上にLUN=0〜7の8台
の論理ユニットを接続可能であり、さらに、拡張メッセ
ージを使用することにより、最大2048台の論理ユニ
ットを接続可能である。SCSIインターフェースにお
いては、イニシエータからのコマンドが正常終了した場
合、ターゲットはイニシエータに対してgoodステータス
を返す。一方、コマンドが異常終了した場合には、chec
k condition ステータスを返すと共に、センスデータと
呼ばれるエラー情報を作成する。イニシエータは、発行
したコマンドに対してcheck condition ステータスがタ
ーゲットから返送された場合は、request statusコマン
ドを発行してターゲットの作成したセンスデータを受信
し、どのようなエラーがどこ(どの論理ブロック)で発
生したかを知ることができる。
FIG. 6 is a diagram showing a general example of a SCSI system configuration. As a logical unit, FIG.
As shown in FIG. 2, a physical device such as a hard disk is often connected, but a logical unit number (LUN: Lo
gical Unit Number) may be assigned to a physical device or a virtual device. Normal SCS
In I, eight logical units of LUN = 0 to 7 can be connected on the SCSI bus, and a maximum of 2048 logical units can be connected by using an extension message. In the SCSI interface, when a command from the initiator ends normally, the target returns a good status to the initiator. On the other hand, if the command terminates abnormally, chec
k condition Returns status and creates error information called sense data. When the check condition status is returned from the target for the issued command, the initiator issues the request status command to receive the sense data created by the target. You can know what happened.

【0006】SCSIインターフェースにおけるコマン
ド中には、ターゲット及びターゲットに接続されている
論理ユニットの自己診断を行うコマンド、Send Diagnos
ticコマンドが規定されている。本コマンドはターゲッ
ト及びターゲットに接続されている論理ユニットの自己
診断を行い、自己診断が正常に実行できればgoodステー
タスを返し、正常に実行できなければcheck condition
ステータスを返すが、自己診断結果の詳細情報は得られ
ない。詳細情報を得るためには、イニシエータはReceiv
e Diagnostic Resultsコマンドを発行する必要がある。
当然のことながら、Receive Diagnostic Resultsコマン
ドを発行する前に、Send Diagnostic コマンドを発行し
て自己診断を実行しておくことが必要である。そして、
Send Diagnostic コマンドを実行することなくReceive
Diagnostic Resultsコマンドが発行された場合は、エラ
ーとなり、ターゲットはイニシエータに対してcheck co
ndition ステータスを返送するのが一般的である。
Among commands in the SCSI interface, a command for performing self-diagnosis of a target and a logical unit connected to the target, Send Diagnos
The tic command is specified. This command performs self-diagnosis of the target and the logical unit connected to the target, and returns a good status if the self-diagnosis can be executed normally.
Returns status, but does not provide detailed information on self-diagnosis results. To get more information, the initiator must
e Diagnostic Results command must be issued.
As a matter of course, before issuing the Receive Diagnostic Results command, it is necessary to issue a Send Diagnostic command to perform self-diagnosis. And
Receive without executing Send Diagnostic command
If a Diagnostic Results command is issued, an error occurs and the target checks the
It is common to return the ndition status.

【0007】図7はSend Diagnostic コマンドのCDB
の構成の一例を示す図である。図7において、Seltst(S
elf Test)は、所定(ディフォルト)の自己診断を実行
するか、Parameter Listで示される自己診断を実行する
かを選択するビットである。DevOfL(Device Off Line)
は、同一ターゲットの他のドライブに影響を与える診断
を許すか許さないかを選択するビットである。UntOfL(U
nit Off Line)は、ユーザ媒体へのアクセスに影響を及
ぼす操作を許すか許さないかを選択するビットである。
Parameter List Length は、パラメータを用いる診断
(SelTst=0)用に転送されるパラメータリストの転送
長を示すものである。
FIG. 7 shows the CDB of the Send Diagnostic command.
FIG. 3 is a diagram showing an example of the configuration of FIG. In FIG. 7, Seltst (S
elf Test) is a bit for selecting whether to execute a predetermined (default) self-diagnosis or a self-diagnosis indicated by the Parameter List. DevOfL (Device Off Line)
Is a bit for selecting whether or not to permit diagnosis affecting other drives of the same target. UntOfL (U
nit Off Line) is a bit for selecting whether or not to permit an operation affecting access to the user medium.
The Parameter List Length indicates the transfer length of the parameter list transferred for diagnosis using parameters (SelTst = 0).

【0008】ところで、最近の装置はインテェリジェン
ト化が進み、装置自身で電源オン等の装置の初期化時
に、所定の自己診断を行うのが一般的である。また、イ
ニシエータはイニシエータ自身の電源オン等の初期化動
作において、SCSIバスに接続されているターゲッ
ト、及び論理ユニットの状態を知るために各ターゲッ
ト、及び論理ユニットの所定の自己診断を行うためにSe
nd Diagnostic コマンドを、その結果を得るためにRece
ive Diagnostic Resultsコマンドを発行するのが一般的
である。
[0008] By the way, recent devices are becoming more intelligent, and it is general to perform a predetermined self-diagnosis at the time of initialization of the device itself, such as power-on. In addition, in the initialization operation such as turning on the power of the initiator itself, the initiator performs a self-diagnosis of each target to check the status of the target connected to the SCSI bus and the logical unit and a predetermined self-diagnosis of the logical unit.
Execute the nd Diagnostic command to
It is common to issue an ive Diagnostic Results command.

【0009】[0009]

【発明が解決しようとしている課題】前述の装置自身で
電源オン等の装置の初期化時に所定の自己診断を行う装
置がターゲットとしてSCSIインターフェースにより
イニシエータと接続された場合、ターゲットは初期化時
に一度自動的に所定の自己診断を実行しているにもかか
わらず、イニシエータよりSend Diagnostic コマンドが
発行されることなく、Receive Diagnostic Resultsコマ
ンドが発行された場合はエラーを返し、イニシエータか
らのSend Diagnostic コマンドにより再度所定の自己診
断動作を行うことになり、自己診断動作にメカの動きを
伴う装置等、自己診断動作に時間がかかる装置において
は、コマンドの処理時間が無駄になると云う欠点があっ
た。
When a device which performs a predetermined self-diagnosis at the time of initialization of a device such as power-on by itself is connected to an initiator by a SCSI interface as a target, the target is once automatically initialized at the time of initialization. If the initiator issues a Receive Diagnostic Results command without issuing a Send Diagnostic command even though the specified self-diagnosis is being executed, an error is returned and the initiator returns a Send Diagnostic command. In a device that takes a long time to perform a self-diagnosis operation, such as a device in which a predetermined self-diagnosis operation is performed and a self-diagnosis operation involves movement of a mechanism, there is a disadvantage that command processing time is wasted.

【0010】本発明は、このような欠点を解消するため
になされたもので、その目的は自己診断動作に時間がか
かる装置であっても、初期化時の自己診断コマンドの処
理時間を大幅に短縮できるようにしたSCSI装置の自
己診断方式を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made to solve such a drawback. The purpose of the present invention is to significantly reduce the processing time of a self-diagnosis command at the time of initialization even in a device that requires a long time for a self-diagnosis operation. It is an object of the present invention to provide a SCSI device self-diagnosis method which can be shortened.

【0011】[0011]

【課題を解決するための手段】本発明の目的は、SCS
Iを介してホストコンピュータからの指令を実行するS
CSI装置の自己診断方式において、前記SCSI装置
の初期化時に、所定の自己診断を実行し、その結果を記
憶し、初期化後にセンド・ダイアグノスティック・コマ
ンドを受信することなく、レシーブ・ダイアグノスティ
ック・リザァルト・コマンドを受信した場合には、前記
記憶していた所定の自己診断結果をホストコンピュータ
に返送することを特徴とするSCSI装置の自己診断方
式によって達成される。
SUMMARY OF THE INVENTION An object of the present invention is to provide an SCS.
S for executing a command from the host computer via I
In the self-diagnosis method of the CSI device, a predetermined self-diagnosis is executed at the time of initialization of the SCSI device, a result thereof is stored, and a receive diagnostic command is received without receiving a send diagnostic command after the initialization. This is achieved by a SCSI device self-diagnosis method characterized by returning the stored predetermined self-diagnosis result to a host computer when receiving a stick result command.

【0012】また本発明の目的は、SCSIを介してホ
ストコンピュータからの指令を実行するSCSI装置の
自己診断方式において、前記SCSI装置の初期化時に
所定の自己診断を実行し、その結果を記憶し、ユニット
アテンション状態がクリアされた後、最初に受信した所
定の自己診断を要求するセンド・ダイアグノスティック
・コマンドに対しては、所定の自己診断動作を行うこと
なく、グッド・ステータスをホストコンピュータに返送
することを特徴とするSCSI装置の自己診断方式によ
って達成される。
Another object of the present invention is to provide a self-diagnosis system for a SCSI device that executes a command from a host computer via SCSI, to execute a predetermined self-diagnosis at the time of initialization of the SCSI device, and to store the result. After the unit attention state is cleared, a good status is sent to the host computer without performing the prescribed self-diagnosis operation for the first received send diagnostic command requesting the prescribed self-diagnosis. This is achieved by a self-diagnosis method of the SCSI device, which is characterized by returning.

【0013】[0013]

【実施例】以下、本発明の実施例について、図面を参照
して詳細に説明する。まず、本発明のSCSI装置の自
己診断方式に係るSCSIシステムの構成について説明
する。図3はそのSCSIシステムの一例を示したブロ
ック図で、5はターゲットとしてのSCSIコントロー
ラである。SCSIコントローラ5は、SCSI規格に
基づきSCSI信号のシーケンス制御を行うSCSIプ
ロトコル回路(SPC)6、ROM7に記憶されている
プログラムに従いSCSIコントローラ5を制御するた
めの制御装置であるMPU8、センスデータ等種々のデ
ータの記憶に使用されるRAM9で構成されている。ま
た、SCSIコントローラ5には、例えば情報記録再生
装置等の論理ユニット10が接続されている。なお、図
中13はホストアダプタである。
Embodiments of the present invention will be described below in detail with reference to the drawings. First, the configuration of the SCSI system according to the SCSI device self-diagnosis method of the present invention will be described. FIG. 3 is a block diagram showing an example of the SCSI system, and 5 is a SCSI controller as a target. The SCSI controller 5 includes a SCSI protocol circuit (SPC) 6 for performing sequence control of SCSI signals based on the SCSI standard, an MPU 8 which is a control device for controlling the SCSI controller 5 according to a program stored in a ROM 7, various types of sense data, and the like. And a RAM 9 used for storing the data. The SCSI controller 5 is connected to a logical unit 10 such as an information recording / reproducing device. In the figure, reference numeral 13 denotes a host adapter.

【0014】次に、本発明のSCSI装置の自己診断方
式の一実施例を図1に示すフローチャートを参照して説
明する。図1において、まず、ステップ100でSCS
Iコントローラ5の電源が投入されると、SCSIコン
トローラ5は初期化処理の一部として、ステップ101
で自分自身及び接続されている論理ユニット10の所定
の自己診断を実行し、ステップ102でRAM9にその
結果の詳細情報を記憶させる。所定の自己診断の内容は
各SCSIコントローラ、論理ユニット固有のものであ
るから、ここでは省略する。次に、SCSIコントロー
ラ5はステップ103でホストコンピュータ12からの
最初のコマンドを待つ。ターゲットの電源オン直後はS
CSIインターフェース規格に規定されているユニット
アテンション状態であるから、ステップ103で最初の
コマンドを受信すると、ステップ104でユニットアテ
ンションを示すセンスデータをRAM9にセットしてch
eck condition ステータスをホストコンピュータ12に
返送してコマンドを終了する。なお、SCSI規格で
は、ユニットアテンション状態でもインクアイリ(inqu
iry)コマンドは実行する等の規定もあるが、ここではユ
ニットアテンション状態では実行しない一般的なコマン
ドの場合とする。
Next, an embodiment of a self-diagnosis method for a SCSI device according to the present invention will be described with reference to a flowchart shown in FIG. In FIG. 1, first, in step 100, the SCS
When the power of the I controller 5 is turned on, the SCSI controller 5 executes step 101 as part of the initialization processing.
And performs a predetermined self-diagnosis of itself and the connected logical unit 10, and stores the detailed information of the result in the RAM 9 in step 102. The content of the predetermined self-diagnosis is specific to each SCSI controller and logical unit, and therefore will not be described here. Next, the SCSI controller 5 waits for the first command from the host computer 12 in step 103. S immediately after the target power is turned on
Since the unit attention state is defined by the CSI interface standard, when the first command is received in step 103, sense data indicating the unit attention is set in the RAM 9 in step 104 and the channel is set.
The eck condition status is returned to the host computer 12 and the command ends. In the SCSI standard, even when the unit is in the attention state, the ink air (inqu
Although there is a rule that the iry) command is to be executed, it is assumed here that the command is a general command that is not executed in the unit attention state.

【0015】次に、ステップ105で次のコマンドを待
つ。ステップ105でコマンドを受信すると、ユニット
アテンション状態をクリアしてコマンドを実行する。す
なわち、ステップ106でReceive Diagnostic Results
コマンドかどうかをチェックし、Receive Diagnostic R
esultsコマンドであれば、ステップ107でRAM9に
記憶しておいた電源オン時の所定の自己診断結果の詳細
情報をホストコンピュータ12に転送してコマンドを終
了し、ステップ105で次のコマンドを待つ。なおこの
場合、一般的に行われているように、電源オン後Send D
iagnostic コマンドを受信することなく、Receive Diag
nostic Resultsコマンドを受信した場合には、上記のス
テップ107のようにRAM9に記憶しておいた電源オ
ン時の所定の自己診断結果の詳細情報をホストコンピュ
ータ12に転送するのではなく、check condition ステ
ータスを返送してコマンドを終了しても良い。
Next, at step 105, the next command is waited for. When the command is received in step 105, the unit attention state is cleared and the command is executed. That is, in Step 106, Receive Diagnostic Results
Check if it is a command and receive Diagnostic R
If it is an esults command, the detailed information of the predetermined self-diagnosis result at the time of power-on stored in the RAM 9 is transferred to the host computer 12 in step 107, the command is terminated, and in step 105, the next command is waited for. In this case, as is generally done, after power is turned on, Send D
Receive Diag without receiving iagnostic command
When the nostic results command is received, the detailed information of the predetermined self-diagnosis result at the time of power-on stored in the RAM 9 is not transferred to the host computer 12 as in step 107, but the check condition status May be returned to end the command.

【0016】一方、ステップ106でReceive Diagnost
icResultsコマンドでない場合は、ステップ108でSen
d Diagnostic コマンドかどうかをチェックし、Send Di
agnostic コマンドであれば、ステップ109でSCS
Iコントローラ5自身、及び論理ユニット10の受信し
たSend Diagnostic コマンドの指示に従った自己診断
(所定の自己診断かもしれないし、パラメータリストに
より示されるパラメータによる自己診断かもしれない)
を実行し、RAM9にその結果の詳細情報を記憶し、ス
テップ105で次のコマンドを待つ。ステップ108で
Send Diagnosticコマンドでなければ、ステップ111
で各コマンドの機能に従った処理を実行しステップ10
5で次のコマンドを待つ。以降、ステップ105以降の
処理を各コマンドに従い繰り返す。
On the other hand, in step 106, Receive Diagnost
If it is not an icResults command, Sen
d Check if it is a Diagnostic command, and
If it is an agnostic command, SCS
Self-diagnosis according to the instruction of the Send Diagnostic command received by the I-controller 5 and the logic unit 10 (may be a predetermined self-diagnosis or a self-diagnosis based on parameters indicated by a parameter list)
Is executed, the detailed information of the result is stored in the RAM 9, and the next command is awaited at step 105. At step 108
If not a Send Diagnostic command, step 111
Executes the processing according to the function of each command in step 10
At 5, wait for the next command. Thereafter, the processing from step 105 is repeated according to each command.

【0017】図2はReceive Diagnostic Resultsコマン
ドによりホストコンピュータ12に転送される自己診断
結果(Result List)の一例を示した説明図である。図2
において、バイト0のResult List Lengthはバイト1以
降に続く診断結果のバイト数(この場合は2)を示す。
バイト1にはSCSIコントローラ5自身の診断結果の
詳細情報が、バイト2には接続されている論理ユニット
(この場合は論理ユニット番号0番のユニットとする)
の診断結果の詳細情報がそれぞれ、例えば各ビットに各
機能の状態が対応したコード等として示される。
FIG. 2 is an explanatory diagram showing an example of a self-diagnosis result (Result List) transferred to the host computer 12 by a Receive Diagnostic Results command. FIG.
, The Result List Length of byte 0 indicates the number of bytes (2 in this case) of the diagnostic result following byte 1 and subsequent bytes.
Byte 1 contains detailed information of the diagnosis result of the SCSI controller 5 itself, and Byte 2 a connected logical unit (in this case, the logical unit number is unit 0).
The detailed information of the diagnosis result is shown, for example, as a code or the like in which the state of each function corresponds to each bit.

【0018】ここで、前述のようにイニシエータがター
ゲットに所定の自己診断を実行し、その詳細な結果を要
求する場合は、イニシエータはSend Diagnostic コマン
ド、Receive Diagnostic Resultsコマンドの順序でコマ
ンドを発行するのが一般的である。この場合、本実施例
では、電源オン後Send Diagnostic コマンドを受信する
ことなく、Receive Diagnostic Resultsコマンドを受信
した場合に、既にターゲットは電源オン時に所定の自己
診断を実行して、その結果を記憶しているのでcheck co
ndition ステータスを返送してコマンドを終了するので
はなく、記憶してある自己診断結果を返送しているため
に、無駄な処理を行い、いたずらにコマンドの処理時間
を増大させることがなく有用である。
Here, as described above, when the initiator executes a predetermined self-diagnosis to the target and requests a detailed result, the initiator issues commands in the order of a Send Diagnostic command and a Receive Diagnostic Results command. Is common. In this case, in this embodiment, if the Receive Diagnostic Results command is received without receiving the Send Diagnostic command after the power is turned on, the target already executes a predetermined self-diagnosis when the power is turned on, and stores the result. Check co
Rather than returning the ndition status and terminating the command, the stored self-diagnosis result is returned, which is useful without performing unnecessary processing and unnecessarily increasing the processing time of the command. .

【0019】次に、本発明の他の実施例を図4に示すフ
ローチャートを参照して説明する。なお、この実施例は
図1の実施例とステップ100からステップ106まで
は同じであるので、ここではその説明を省略する。図4
において、ステップ106でReceive Diagnostic Resul
tsコマンドでない場合は、ステップ108でSend Diagn
ostic コマンドかどうかをチェックし、Send Diagnosti
c コマンドであれば、ステップ112でユニットアテン
ション状態がクリアされた後、最初の所定の自己診断を
要求するSend Diagnostic コマンドであるかどうかをチ
ェックをする。ステップ112で最初の所定の自己診断
を要求するSend Diagnostic コマンドの場合は、ステッ
プ113で自己診断動作を行うことなくgoodステータス
を返送する。ステップ112で最初のSend Diagnostic
コマンドでない場合、または最初のSend Diagnostic コ
マンドであっても所定の自己診断以外を要求するSend D
iagnostic コマンドの場合は、ステップ109でSCS
Iコントローラ5自身及び論理ユニット10の受信した
Send Diagnostic コマンドの指示に従った自己診断(所
定の自己診断かもしれないし、パラメータリストにより
示されるパラメータによる自己診断かもしれない)を実
行し、RAM9にその結果の詳細情報を記憶し、ステッ
プ105で次のコマンドを待つ。ステップ108でSend
Diagnosticコマンドでなければ、ステップ111で各
コマンドの機能に従った処理を実行しステップ105で
次のコマンドを待つ。以降、ステップ105以降の処理
を各コマンドに従い繰り返す。なお、図2は前記実施例
と同様に本実施例のホストコンピュータ12に転送され
る自己診断結果の一例を示すものである。
Next, another embodiment of the present invention will be described with reference to a flowchart shown in FIG. Note that this embodiment is the same as the embodiment of FIG. 1 from step 100 to step 106, and a description thereof will be omitted. FIG.
In step 106, Receive Diagnostic Resul
If it is not a ts command, the Send Diagn
ostic command, and check Send Diagnosti
If the command is a c command, after the unit attention state is cleared in step 112, it is checked whether the command is the first Send Diagnostic command requesting a predetermined self-diagnosis. In the case of the Send Diagnostic command requesting the first predetermined self-diagnosis in step 112, the good status is returned without performing the self-diagnosis operation in step 113. In step 112, the first Send Diagnostic
If not a command, or even the first Send Diagnostic command, a request other than the prescribed self-diagnosis Send D
In the case of the iagnostic command, the SCS
Received by the I controller 5 itself and the logical unit 10
A self-diagnosis (may be a predetermined self-diagnosis or a self-diagnosis based on a parameter indicated by a parameter list) is executed according to the instruction of the Send Diagnostic command, and detailed information of the result is stored in the RAM 9. Wait for the next command. Send at step 108
If it is not a Diagnostic command, the process according to the function of each command is executed in step 111, and the next command is waited in step 105. Thereafter, the processing from step 105 is repeated according to each command. FIG. 2 shows an example of the self-diagnosis result transferred to the host computer 12 of the present embodiment, similarly to the above-described embodiment.

【0020】本実施例にあっては、電源オン後ユニット
アテンション状態がクリアされた後最初の所定の自己診
断を要求するSend Diagnosticコマンドの場合は、既に
ターゲットは電源オン時に所定の自己診断を実行してい
るので、Send Diagnostic コマンドに対して所定の自己
診断動作を実行しないことは、無駄な処理を行い、いた
ずらにコマンドの処理時間を増大させないために有用で
ある。
In the present embodiment, in the case of the Send Diagnostic command requesting the first predetermined self-diagnosis after the unit attention state is cleared after the power is turned on, the target already executes the predetermined self-diagnosis when the power is turned on. Therefore, not performing the predetermined self-diagnosis operation in response to the Send Diagnostic command is useful for performing unnecessary processing and preventing the command processing time from being unnecessarily increased.

【0021】なお、以上の実施例では、SCSI装置が
初期化される場合として電源オンの場合を例に説明した
が、本発明はこれに限ることなく、例えばBus Device R
esetメッセージを受信した場合、リセット・コンディシ
ョンが発生した場合等、SCSI装置が初期化される場
合に適用することができる。
In the above embodiment, the case where the SCSI device is initialized and the case where the power is turned on is described as an example. However, the present invention is not limited to this.
The present invention can be applied to a case where the SCSI device is initialized, such as when an eset message is received or a reset condition occurs.

【0022】[0022]

【発明の効果】以上説明したように本発明は、電源オン
等の装置の初期化時に所定の自己診断を実行し、その結
果を記憶し、初期化後にSend Diagnostic コマンドを受
信することなく、Receive Diagnostic Resultsコマンド
を受信した場合には、前記記憶していた初期化時の所定
の自己診断結果を返送する自己診断方式であるから、タ
ーゲットは初期化時に一度自動的に所定の自己診断を実
行しているにもかかわらず、イニシエータよりSend Dia
gnostic コマンドが発行されることなくReceiveDiagnos
tic Resultsコマンドが発行された場合はエラーを返
し、イニシエータからのSend Diagnostic コマンドによ
り再度所定の自己診断動作を行う必要がなく自己診断動
作にメカの動きを伴う装置等、自己診断動作に時間がか
かる装置であっても、コマンドの処理時間が無駄になる
ことがなく、初期化時の自己診断コマンドの処理時間を
大幅に短縮できるという効果がある。
As described above, according to the present invention, a predetermined self-diagnosis is executed at the time of initialization of a device such as power-on, the result is stored, and a Receive Diagnostic command is received after initialization without receiving a Send Diagnostic command. When the Diagnostic Results command is received, the target performs the predetermined self-diagnosis automatically at the time of initialization because the self-diagnosis method returns the stored predetermined self-diagnosis result at the time of initialization. Despite the initiator, Send Dia
ReceiveDiagnos without issuing gnostic command
If the tic Results command is issued, an error is returned, and the self-diagnosis operation takes a long time, such as a device that involves mechanical movement in the self-diagnosis operation without having to perform the predetermined self-diagnosis operation again by the Send Diagnostic command from the initiator. Even with the device, there is an effect that the processing time of the command is not wasted and the processing time of the self-diagnosis command at the time of initialization can be greatly reduced.

【0023】また、ユニットアテンション状態がクリア
された後、最初に受信した所定の自己診断を要求するSe
nd Diagnostic コマンドに対しては、所定の自己診断動
作を行うことなく、goodステータスを返送することによ
り、既に記憶してある結果と同じ結果を得るために無駄
な動作をすることがなく、自己診断動作にメカの動きを
伴う装置等、自己診断動作に時間がかかる装置であって
も、コマンドの処理時間が無駄になることがなく、初期
化時の自己診断コマンドの処理時間を大幅に短縮するこ
とができる。
After the unit attention state is cleared, the first received self-diagnosis request for a predetermined self-diagnosis
For the nd Diagnostic command, by returning the good status without performing the predetermined self-diagnosis operation, there is no needless operation to obtain the same result as the result already memorized. Even if the self-diagnosis operation takes a long time, such as an apparatus that involves mechanical movement, the command processing time is not wasted, and the processing time of the self-diagnosis command at initialization is greatly reduced. be able to.

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

【図1】本発明のSCSI装置の自己診断方式の一実施
例を示したフローチャートである。
FIG. 1 is a flowchart illustrating an embodiment of a self-diagnosis method for a SCSI device according to the present invention.

【図2】Receive Diagnostic Resultsコマンドによりホ
ストコンピュータに転送される自己診断結果の一例を示
した説明図である。
FIG. 2 is an explanatory diagram showing an example of a self-diagnosis result transferred to a host computer by a Receive Diagnostic Results command.

【図3】本発明に係るSCSIシステムの一例を示した
ブロック図である。
FIG. 3 is a block diagram showing an example of a SCSI system according to the present invention.

【図4】本発明の他の実施例を示したフローチャートで
ある。
FIG. 4 is a flowchart showing another embodiment of the present invention.

【図5】ハードディスク装置における論理ブロックの構
成を示した説明図である。
FIG. 5 is an explanatory diagram showing a configuration of a logical block in the hard disk device.

【図6】一般的なSCSIシステムの構成を示したブロ
ック図である。
FIG. 6 is a block diagram showing a configuration of a general SCSI system.

【図7】Send Diagnostic コマンドのCDBの構成例を
示した説明図である。
FIG. 7 is an explanatory diagram showing a configuration example of a CDB of a Send Diagnostic command.

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

5 SCSIコントローラ 6 SCSIプロトコル回路(SPC) 7 ROM 8 MPU 9 RAM 10 論理ユニット 12 ホストコンピュータ Reference Signs List 5 SCSI controller 6 SCSI protocol circuit (SPC) 7 ROM 8 MPU 9 RAM 10 Logical unit 12 Host computer

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 13/00 - 13/14 330 G06F 3/06 - 3/08 G06F 11/22 - 11/26 310 JICSTファイル(JOIS)──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int. Cl. 7 , DB name) G06F 13/00-13/14 330 G06F 3/06-3/08 G06F 11/22-11/26 310 JICST File (JOIS)

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 スモールコンピュータシステムインター
フェース(以下、SCSIと略す)を介してホストコン
ピュータからの指令を実行するSCSI装置の自己診断
方式において、前記SCSI装置の初期化時に所定の自
己診断を実行し、その結果を記憶し、初期化後にセンド
・ダイアグノスティック・コマンドを受信することな
く、レシーブ・ダイアグノスティック・リザァルト・コ
マンドを受信した場合には、前記記憶していた所定の自
己診断結果をホストコンピュータに返送することを特徴
とするSCSI装置の自己診断方式。
In a self-diagnosis method for a SCSI device that executes a command from a host computer via a small computer system interface (hereinafter abbreviated as SCSI), a predetermined self-diagnosis is performed when the SCSI device is initialized, If the result is stored and the receive diagnostic result command is received without receiving the send diagnostic command after initialization, the stored predetermined self-diagnosis result is stored in the host. A self-diagnosis method for a SCSI device, which is returned to a computer.
【請求項2】 SCSIを介して送られるホストコンピ
ュータの指令を実行するSCSI装置の自己診断方式に
おいて、前記SCSI装置の初期化時に所定の自己診断
を実行し、その結果を記憶し、ユニットアテンション状
態がクリアされた後、最初に受信した所定の自己診断を
要求するセンド・ダイアグノスティック・コマンドに対
しては、所定の自己診断動作を行うことなく、グッド・
ステータスをホストコンピュータに返送することを特徴
とするSCSI装置の自己診断方式。
2. A self-diagnosis method for a SCSI device which executes a command of a host computer sent via SCSI, executes a predetermined self-diagnosis at the time of initialization of the SCSI device, stores a result thereof, and stores a unit attention state. After the is cleared, the first received send diagnostic command requesting the predetermined self-diagnosis is performed without performing the predetermined self-diagnosis operation.
A self-diagnosis method for a SCSI device, which returns a status to a host computer.
【請求項3】 SCSI装置の初期化後に、センド・ダ
イアグノスティック・コマンドを受信することなく、レ
シーブ・ダイアグノスティック・コマンドを受信した場
合には、前記記憶していた所定の自己診断結果をホスト
コンピュータに返送することを特徴とする請求項2のS
CSI装置の自己診断方式。
3. When the receive diagnostic command is received without receiving the send diagnostic command after the initialization of the SCSI device, the stored self-diagnosis result is stored. 3. The method according to claim 2, wherein the data is returned to the host computer.
Self-diagnosis method of CSI device.
JP20566191A 1991-07-23 1991-07-23 SCSI device self-diagnosis method Expired - Fee Related JP3183912B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20566191A JP3183912B2 (en) 1991-07-23 1991-07-23 SCSI device self-diagnosis method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20566191A JP3183912B2 (en) 1991-07-23 1991-07-23 SCSI device self-diagnosis method

Publications (2)

Publication Number Publication Date
JPH0528077A JPH0528077A (en) 1993-02-05
JP3183912B2 true JP3183912B2 (en) 2001-07-09

Family

ID=16510595

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20566191A Expired - Fee Related JP3183912B2 (en) 1991-07-23 1991-07-23 SCSI device self-diagnosis method

Country Status (1)

Country Link
JP (1) JP3183912B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4509549B2 (en) * 2003-12-24 2010-07-21 株式会社日立製作所 Disk array apparatus and hard disk drive diagnostic method
WO2008120280A1 (en) 2007-03-29 2008-10-09 Fujitsu Limited Distortion reduction fixing structure
JP5320780B2 (en) * 2008-03-17 2013-10-23 富士通株式会社 Information processing system, function expansion device, and control method

Also Published As

Publication number Publication date
JPH0528077A (en) 1993-02-05

Similar Documents

Publication Publication Date Title
US5073854A (en) Data processing system with search processor which initiates searching in response to predetermined disk read and write commands
US4825406A (en) Secondary storage facility employing serial communications between drive and controller
US5909592A (en) Method in a basic input-output system (BIOS) of detecting and configuring integrated device electronics (IDE) devices
US20090144586A1 (en) System and program products for facilitating access to status and measurement data associated with input/output processing
US20030041207A1 (en) Input/output controller, device identification method, and input/output control method
US5996045A (en) IDE disk drive arrangement that combines the capacity of a master drive and slave drive while hiding the presence of slave drive to a host computer
US5461719A (en) Method for recording/reproducing information on recording medium in accordance with parameters stored in memory to allow sectors of different data capacities to collectively exist
US4811279A (en) Secondary storage facility employing serial communications between drive and controller
EP0163883B1 (en) Secondary storage facility employing serial communications between drive and controller
JP4583507B2 (en) Supplementary communication between the host processor and the mass storage controller
JP3183912B2 (en) SCSI device self-diagnosis method
US7437503B2 (en) Method and apparatus for handling data transfers
US5948075A (en) System for identifying operating parameters in a storage enclosure having each of first connector only for specifying a physical location associated with each of backplane interfaces
US4811278A (en) Secondary storage facility employing serial communications between drive and controller
JP4324993B2 (en) Data transfer method and apparatus
US20040177183A1 (en) Interface circuit, disc controller, disc drive apparatus and interface control method
US5469546A (en) Method for retrying recording information into a next logical block by sending sense data including address information to host computer and responding to command therefrom
JP2630198B2 (en) Broadcast bus interface for peripheral devices
JP3128102B2 (en) Information recording / reproducing method
JP2006294052A (en) Computer system and secondary storage device
US6625676B1 (en) Small computer system with interface control and method of operating same
CN114124301B (en) Virtual media transmission system with data check and error retransmission mechanism
JPH0374425B2 (en)
JPH0376059A (en) Magnetic disk device
JPH0574110B2 (en)

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees