Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5288331B2 - I/O command failure recovery circuit, I/O command failure recovery method, and I/O command failure recovery program - Google Patents
[go: Go Back, main page]

JP5288331B2 - I/O command failure recovery circuit, I/O command failure recovery method, and I/O command failure recovery program - Google Patents

I/O command failure recovery circuit, I/O command failure recovery method, and I/O command failure recovery program Download PDF

Info

Publication number
JP5288331B2
JP5288331B2 JP2009024857A JP2009024857A JP5288331B2 JP 5288331 B2 JP5288331 B2 JP 5288331B2 JP 2009024857 A JP2009024857 A JP 2009024857A JP 2009024857 A JP2009024857 A JP 2009024857A JP 5288331 B2 JP5288331 B2 JP 5288331B2
Authority
JP
Japan
Prior art keywords
fault
disk device
input
host
received
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
JP2009024857A
Other languages
Japanese (ja)
Other versions
JP2010182080A (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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2009024857A priority Critical patent/JP5288331B2/en
Publication of JP2010182080A publication Critical patent/JP2010182080A/en
Application granted granted Critical
Publication of JP5288331B2 publication Critical patent/JP5288331B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明はホスト−ディスク装置間インタフェースでのデータ通信においてCRC(Cyclic Redundancy Check)エラー等の軽微な障害が発生した場合のタイムアウト検出に関する。 The present invention relates to timeout detection when a minor error such as a CRC (Cyclic Redundancy Check) error occurs in data communication at a host-disk device interface.

ホスト−ディスク装置間インタフェースでのデータ通信においてCRCエラー等の軽微な障害が発生した場合に、その障害を検知するという技術が存在する。 There is a technology that can detect minor errors, such as CRC errors, that occur in data communication at the host-disk device interface.

例えば特許文献1に記載の技術では、ホストコンピュータ(CPU)が周辺装置の組み込み時に、CPUから与えられた入出力監視時間よりも実行時間が長いコマンドについてそれぞれの延長時間とCPUに対して監視時間の延長を通知することを示すイベント通知フラグをオンとする。そして、CPUでのI/O発行時、周辺装置は、コマンドが監視時間の延長を通知するものである場合に、延長時間をCPUに通知し、監視時間延長通知を受けたCPUは監視時間カウンタのカウンタ値を、通知され延長時間に相当する値だけ加算する。また、周辺装置はコマンド実行を終えた時点で延長時間内に終了した場合には監視時間の短縮通知イベントを送信しCPUは時間監視用のカウント値を、前記通知された短縮時間に相当する値だけ減算する。 For example, in the technology described in Patent Document 1, when a host computer (CPU) incorporates a peripheral device, it turns on an event notification flag indicating that for commands whose execution time is longer than the I/O monitoring time given by the CPU, the host computer notifies the CPU of the respective extension time and the extension of the monitoring time. Then, when the CPU issues an I/O, if the command notifies an extension of the monitoring time, the peripheral device notifies the CPU of the extension time, and upon receiving the notification of the monitoring time extension, the CPU adds a value equivalent to the notified extension time to the counter value of the monitoring time counter. Also, if the peripheral device finishes executing a command within the extension time at the time it finishes, it sends a notification event of the shortened monitoring time, and the CPU subtracts a value equivalent to the notified shortened time from the time monitoring count value.

特開2001−147866号公報JP 2001-147866 A

もっとも、上述の特許文献1に記載の技術では、ホスト−ディスク装置間インタフェースでのデータ通信においてCRCエラー等の軽微な障害が発生した場合、受信した情報が不定でありどのような指示、応答であるか判断することができない。そのような場合、軽微な障害を検出したポートは、単に障害発生が有ったということをカウントするのみで、積極的な障害処理は実施しないのが通例である。 However, with the technology described in Patent Document 1 above, if a minor error such as a CRC error occurs in data communication at the host-disk device interface, the received information is undefined and it is not possible to determine what kind of instruction or response it is. In such cases, the port that detects the minor error typically simply counts the occurrence of the error and does not actively handle the error.

そして、障害の検出が有ったという異常は、上位層が実施するタイムアウト監視により検出し、その後に障害処理を開始する。そのため、通常1s未満で完了するI/O命令の完了までに数s〜数10sの長い時間が必要となる。結果として、システム全体が遅延してしまう。この際、ディスク装置内部障害発生時を考慮すると通常の応答時間よりの2〜3桁長い応答時間を要する場合があるので、単純に上位層のタイムアウト値を短縮することも出来ない。 The abnormality that a fault has been detected is detected by timeout monitoring implemented by the upper layer, and fault processing is then initiated. As a result, an I/O command that would normally be completed in less than 1 second can take several to tens of seconds to complete. As a result, the entire system is delayed. In this case, considering that an internal fault in the disk device may require a response time that is two to three orders of magnitude longer than normal, it is not possible to simply shorten the timeout value of the upper layer.

そこで、本発明は、ホスト−ディスク装置間インタフェースでCRCエラー等の軽微な障害が発生した場合、タイムアウト検出による処理遅延を短縮することができるI/O命令障害回復回路、I/O命令障害回復方法及びI/O命令障害回復プログラムを提供することを目的とする。 The present invention aims to provide an I/O command fault recovery circuit, an I/O command fault recovery method, and an I/O command fault recovery program that can reduce processing delays caused by timeout detection when a minor fault such as a CRC error occurs in the host-disk device interface.

本発明の第1の観点によれば、ィスク装置インタフェースで接続されるホストに組み込まれるI/O命令障害回復回路であって、前記ホストにおいて障害を検出した場合に、当該障害の回数をカウントするカウンタと、前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、第1の一定時間以内に応答がない場合、その旨を入出力処理手段に通知する第1の時間監視手段と、前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、前記第1の一定時間よりも短い時間である第2の一定時間以内に応答がない場合、その旨を前記入出力処理手段に通知する第2の時間監視手段と、前記第1の時間監視手段から通知があった場合と、前記第2の時間監視手段から通知があった場合であって前記カウンタのカウントアップがあった場合に、障害処理を開始する入出力処理手段と、を備え、前記入出力処理手段が、前記第2の時間監視手段から通知があった場合であって前記カウンタのカウントアップがなかった場合に、前記ディスク装置に前記発行したI/O処理が内部で実施されているか否かの問合せを行い、前記ディスク装置内部で実行されていないとの返信が通知された場合は、前記インタフェースにおいて障害が発生していると判断し、該インタフェースにおける障害について前記障害処理を行うことを特徴とするI/O命令障害回復回路が提供される。
また、本発明の第2の観点によれば、ディスク装置とインタフェースで接続されるホストに組み込まれるI/O命令障害回復回路であって、前記ホストにおいて障害を検出した場合に、当該障害の回数をカウントする第1のカウンタと、前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、第1の一定時間以内に応答がない場合、その旨を入出力処理手段に通知する第1の時間監視手段と、前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、前記第1の一定時間よりも短い時間である第2の一定時間以内に応答がない場合、その旨を前記入出力処理手段に通知する第2の時間監視手段と、前記第1の時間監視手段から通知があった場合と、前記第2の時間監視手段から通知があった場合であって前記第1のカウンタのカウントアップがあった場合に、障害処理を開始する入出力処理手段と、を備え、前記入出力処理手段が、前記第2の時間監視手段から通知があった場合であって当該I/O命令障害回復回路が備える前記第1のカウンタのカウントアップがなかった場合に、前記ディスク装置が備えている該ディスク装置において障害を検出した場合に当該障害の回数をカウントする第2のカウンタにカウントアップがあるか問合せを行い、カウントアップがあったとの返信が通知された場合は、該カウントアップした障害検出による影響であると判断し、該カウントアップにおける障害について前記障害処理を行うことを特徴とするI/O命令障害回復回路が提供される。
According to a first aspect of the present invention, there is provided an I/O command failure recovery circuit incorporated in a host connected to a disk device via an interface, comprising: a counter for counting the number of failures when a failure is detected in the host; a first time monitoring means for time-monitoring a response when the host issues an I/O command to the disk device, and notifying an input/output processing means of the fact that there is no response within a first certain time period; a second time monitoring means for time-monitoring a response when the host issues an I/O command to the disk device, and notifying the input/output processing means of the fact that there is no response within a second certain time period that is shorter than the first certain time period; and input/output processing means for starting fault processing when a notification is received from the second time monitoring means and when a notification is received from the second time monitoring means and the counter has counted up, wherein when a notification is received from the second time monitoring means and the counter has not counted up, the input/output processing means inquires of the disk device as to whether or not the issued I/O processing is being performed internally, and when a reply is received indicating that the I/O processing is not being performed internally of the disk device, it determines that a fault has occurred in the interface and performs the fault processing for the fault in the interface .
According to a second aspect of the present invention, there is provided an I/O command failure recovery circuit incorporated in a host connected to a disk device via an interface, comprising: a first counter for counting the number of failures when a failure is detected in the host; first time monitoring means for time-monitoring a response when the host issues an I/O command to the disk device, and notifying an input/output processing means of the fact that there is no response within a first certain time period; second time monitoring means for time-monitoring a response when the host issues an I/O command to the disk device, and notifying the input/output processing means of the fact that there is no response within a second certain time period which is shorter than the first certain time period; and a second time monitoring means for monitoring a response when the host issues an I/O command to the disk device, and notifying the input/output processing means of the fact that there is no response within a second certain time period which is shorter than the first certain time period. an input/output processing means for initiating fault processing when a notification is received from the monitoring means and the first counter has counted up, wherein when a notification is received from the second time monitoring means and the first counter provided in the I/O instruction fault recovery circuit has not counted up, the input/output processing means inquires whether a second counter provided in the disk device, which counts the number of times a fault has occurred when a fault is detected in the disk device, has counted up, and when a reply is received indicating that a count up has occurred, the input/output processing means determines that this is due to the detection of the fault that counted up, and performs the fault processing for the fault at the count up.

更に、本発明の第の観点によれば、ィスク装置インタフェースで接続されるホストに組み込まれるI/O命令障害回復回路が行うI/O命令障害回復方法であって、前記ホストにおいて障害を検出した場合に、当該障害の回数をカウントするカウンタを用意するステップと、前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、第1の一定時間以内に応答がない場合、その旨を入出力処理ステップに通知する第1の時間監視ステップと、前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、前記第1の一定時間よりも短い時間である第2の一定時間以内に応答がない場合、その旨を前記入出力処理ステップに通知する第2の時間監視ステップと、前記第1の時間監視ステップにおける通知があった場合と、前記第2の時間監視ステップにおける通知があった場合であって前記カウンタのカウントアップがあった場合に、障害処理を開始する入出力処理ステップと、を備え、前記入出力処理ステップでは、前記第2の時間監視ステップにおける通知があった場合であって前記カウンタのカウントアップがなかった場合に、前記ディスク装置に前記発行したI/O処理が内部で実施されているか否かの問合せを行い、前記ディスク装置内部で実行されていないとの返信が通知された場合は、前記インタフェースにおいて障害が発生していると判断し、該インタフェースにおける障害について前記障害処理を行うことを特徴とするI/O命令障害回復方法が提供される。
更に、本発明の第4の観点によれば、ディスク装置とインタフェースで接続されるホストに組み込まれるI/O命令障害回復回路が行うI/O命令障害回復方法であって、前記ホストにおいて障害を検出した場合に、当該障害の回数をカウントする第1のカウンタを用意するステップと、前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、第1の一定時間以内に応答がない場合、その旨を入出力処理ステップに通知する第1の時間監視ステップと、前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、前記第1の一定時間よりも短い時間である第2の一定時間以内に応答がない場合、その旨を前記入出力処理ステップに通知する第2の時間監視ステップと、前記第1の時間監視ステップにおける通知があった場合と、前記第2の時間監視ステップにおける通知があった場合であって前記第1のカウンタのカウントアップがあった場合に、障害処理を開始する入出力処理ステップと、を備え、前記入出力処理ステップでは、前記第2の時間監視ステップにおける通知があった場合であって前記I/O命令障害回復回路が備える前記第1のカウンタのカウントアップがなかった場合に、前記ディスク装置が備えている該ディスク装置において障害を検出した場合に該障害の回数をカウントする第2のカウンタにカウントアップがあるか問合せを行い、カウントアップがあったとの返信が通知された場合は、該カウントアップした障害検出による影響であると判断し、該カウントアップにおける障害について前記障害処理を行うことを特徴とするI/O命令障害回復方法が提供される。
Furthermore, according to a third aspect of the present invention, there is provided an I/O command failure recovery method performed by an I/O command failure recovery circuit incorporated in a host connected to a disk device via an interface, comprising: a step of preparing a counter for counting the number of failures when a failure is detected in the host; a first time monitoring step of time-monitoring a response when the host issues an I/O command to the disk device, and notifying an input/output processing step of the fact that there is no response within a first certain time; a second time monitoring step of time-monitoring a response when the host issues an I/O command to the disk device, and notifying the input/output processing step of the fact that there is no response within a second certain time which is shorter than the first certain time; an input/output processing step for initiating fault processing when a notification is received in the first time monitoring step and when a notification is received in the second time monitoring step and the counter has counted up, wherein the input/output processing step, when a notification is received in the second time monitoring step and the counter has not counted up, queries the disk device as to whether or not the issued I/O processing is being performed internally, and when a reply is received indicating that the I/O processing is not being performed internally in the disk device, determines that a fault has occurred in the interface, and performs the fault processing for the fault in the interface .
Furthermore, according to a fourth aspect of the present invention, there is provided an I/O command failure recovery method performed by an I/O command failure recovery circuit incorporated in a host connected to a disk device via an interface, comprising the steps of: preparing a first counter for counting the number of failures when a failure is detected in the host; a first time monitoring step for monitoring a response to an I/O command issued by the host to the disk device over time, and notifying an input/output processing step of the fact that there is no response within a first certain time; a second time monitoring step for monitoring a response to an I/O command issued by the host to the disk device over time, and notifying the input/output processing step of the fact that there is no response within a second certain time which is shorter than the first certain time; and and an input/output processing step for starting fault processing when a notification is received in the second time monitoring step and the first counter has counted up, wherein the input/output processing step, when a notification is received in the second time monitoring step and the first counter provided in the I/O instruction fault recovery circuit has not counted up, queries whether a second counter provided in the disk device, which counts the number of times a fault is detected in the disk device, has counted up, and when a reply is received indicating that a count up has occurred, determines that the count up is due to the fault detection, and performs the fault processing for the fault at the count up.

更に、本発明の第の観点によれば、ィスク装置インタフェースで接続されるホストに組み込まれるI/O命令障害回復回路に搭載されるI/O命令障害回復プログラムであって、前記ホストにおいて障害を検出した場合に、当該障害の回数をカウントするカウンタと、前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、第1の一定時間以内に応答がない場合、その旨を入出力処理手段に通知する第1の時間監視手段と、前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、前記第1の一定時間よりも短い時間である第2の一定時間以内に応答がない場合、その旨を前記入出力処理手段に通知する第2の時間監視手段と、前記第1の時間監視手段から通知があった場合と、前記第2の時間監視手段から通知があった場合であって前記カウンタのカウントアップがあった場合に、障害処理を開始する入出力処理手段と、を備え、前記入出力処理手段が、前記第2の時間監視手段から通知があった場合であって前記カウンタのカウントアップがなかった場合に、前記ディスク装置に前記発行したI/O処理が内部で実施されているか否かの問合せを行い、前記ディスク装置内部で実行されていないとの返信が通知された場合は、前記インタフェースにおいて障害が発生していると判断し、該インタフェースにおける障害について前記障害処理を行うI/O命令障害回復回路としてコンピュータを機能させることを特徴とするI/O命令障害回復プログラムが提供される。
更に、本発明の第6の観点によれば、ディスク装置とインタフェースで接続されるホストに組み込まれるI/O命令障害回復回路に搭載されるI/O命令障害回復プログラムであって、前記ホストにおいて障害を検出した場合に、当該障害の回数をカウントする第1のカウンタと、前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、第1の一定時間以内に応答がない場合、その旨を入出力処理手段に通知する第1の時間監視手段と、前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、前記第1の一定時間よりも短い時間である第2の一定時間以内に応答がない場合、その旨を前記入出力処理手段に通知する第2の時間監視手段と、前記第1の時間監視手段から通知があった場合と、前記第2の時間監視手段から通知があった場合であって前記第1のカウンタのカウントアップがあった場合に、障害処理を開始する入出力処理手段と、を備え、前記入出力処理手段が、前記第2の時間監視手段から通知があった場合であって当該I/O命令障害回復回路が備える前記第1のカウンタのカウントアップがなかった場合に、前記ディスク装置が備えている該ディスク装置において障害を検出した場合に当該障害の回数をカウントする第2のカウンタにカウントアップがあるか問合せを行い、カウントアップがあったとの返信が通知された場合は、該カウントアップした障害検出による影響であると判断し、該カウントアップにおける障害について前記障害処理を行うI/O命令障害回復回路としてコンピュータを機能させることを特徴とするI/O命令障害回復プログラムが提供される。
Furthermore, according to a fifth aspect of the present invention, there is provided an I/O command failure recovery program installed in an I/O command failure recovery circuit incorporated in a host connected to a disk device via an interface, comprising: a counter for counting the number of failures when a failure is detected in the host; a first time monitoring means for time-monitoring a response when the host issues an I/O command to the disk device, and notifying an input/output processing means of the fact that there is no response within a first certain time period; a second time monitoring means for time-monitoring a response when the host issues an I/O command to the disk device, and notifying the input/output processing means of the fact that there is no response within a second certain time period that is shorter than the first certain time period; and and input/output processing means for starting fault processing when a notification is received from the second time monitoring means and when a notification is received from the second time monitoring means and the counter has counted up, wherein when a notification is received from the second time monitoring means and the counter has not counted up, the input/output processing means inquires of the disk device as to whether or not the issued I/O processing is being performed internally, and when a reply is received indicating that the I/O processing is not being performed internally of the disk device, it determines that a fault has occurred in the interface, and causes the computer to function as an I/O instruction fault recovery circuit that performs the fault processing for the fault in the interface .
Furthermore, according to a sixth aspect of the present invention, there is provided an I/O command failure recovery program to be mounted on an I/O command failure recovery circuit incorporated in a host connected to a disk device via an interface, the program comprising: a first counter for counting the number of failures when a failure is detected in the host; first time monitoring means for time-monitoring a response when the host issues an I/O command to the disk device, and notifying an input/output processing means of the fact that there is no response within a first certain time period; second time monitoring means for time-monitoring a response when the host issues an I/O command to the disk device, and notifying the input/output processing means of the fact that there is no response within a second certain time period which is shorter than the first certain time period; and and input/output processing means for starting fault processing when a notification is received from the second time monitoring means and the first counter provided in the I/O instruction fault recovery circuit has counted up, wherein when the input/output processing means receives a notification from the second time monitoring means and the first counter provided in the I/O instruction fault recovery circuit has not counted up, the input/output processing means inquires whether a second counter provided in the disk device, which counts the number of times a fault has occurred when a fault is detected in the disk device, has counted up, and when a reply is notified that a count up has occurred, determines that the count up is due to the fault detection, and causes the computer to function as an I/O instruction fault recovery circuit that performs the fault processing for the fault at the count up.

本発明によれば、ホスト−ディスク装置間インタフェースでCRCエラー等の軽微な障害が発生した場合、一定時間が経過した状態で異常を検出し障害処理を起動することが可能であることから、発生したI/O命令の障害処理の開始を早めることができ、システム全体の遅延の防止が可能となる。 According to the present invention, when a minor fault such as a CRC error occurs in the host-disk device interface, it is possible to detect the abnormality after a certain period of time has elapsed and start fault processing, so that fault processing for the I/O command that has occurred can be started earlier, and delays in the entire system can be prevented.

本発明の実施形態の基本的構成を表す図である。FIG. 1 is a diagram illustrating a basic configuration of an embodiment of the present invention. 本発明の実施形態の基本的動作を表す図(1/2)である。FIG. 1 is a diagram (1/2) showing a basic operation of an embodiment of the present invention. 本発明の実施形態の基本的動作を表す図(2/2)である。FIG. 2 is a diagram (2/2) showing the basic operation of an embodiment of the present invention. 本発明の実施形態の効果について説明するためのフローチャート(1/2)である。1 is a flowchart (1/2) for explaining the effects of the embodiment of the present invention. 本発明の実施形態の効果について説明するためのフローチャート(2/2)である。1 is a flowchart (2/2) for explaining the effects of the embodiment of the present invention.

次に、本発明の実施形態について図面を用いて詳細に説明する。図1を参照すると本実施形態は、ホスト100と、ディスク装置200を有する。ホスト100と、ディスク装置200はシリアルインタフェース300を介して接続されている。 Next, an embodiment of the present invention will be described in detail with reference to the drawings. Referring to FIG. 1, this embodiment has a host 100 and a disk device 200. The host 100 and the disk device 200 are connected via a serial interface 300.

シリアルインタフェース300は、ファイバチャネルインタフェースに代表されるシリアルインタフェースである。 The serial interface 300 is a serial interface such as a Fibre Channel interface.

また、ホスト100は、中央処理装置110と、主記憶装置120と、入出力処理装置130と、第1の時間監視機構141と、第2の時間監視機構142と、CRCエラー類カウンタ150と、送受信回路160と、を有する。 The host 100 also has a central processing unit 110, a main memory unit 120, an input/output processing unit 130, a first time monitoring mechanism 141, a second time monitoring mechanism 142, a CRC error counter 150, and a transmission/reception circuit 160.

中央処理装置110は、例えばCPU等でありホスト100において演算処理を行う。主記憶装置120は、中央処理装置110直接アクセスすることの出来る記憶装置である。 The central processing unit 110 is, for example, a CPU, and performs arithmetic processing in the host 100. The main memory device 120 is a memory device that can be directly accessed by the central processing unit 110.

入出力処理装置130は、中央処理装置110からのI/O命令によりディスク装置200とのデータ読み書きを実行する装置である。 The input/output processing unit 130 is a device that reads and writes data from and to the disk device 200 in response to I/O commands from the central processing unit 110.

また、入出力処理装置130は、I/O命令の異常を検出するために、ディスク装置からの応答を時間監視する第1の時間監視機構141及び第2の時間監視機構142を更に有する。加えて、入出力処理装置130は、ホスト100、ディスク装置200各々の送受信回路が情報伝達する際に検出したCRCエラー等のシリアルインタフェースの障害発生回数を記憶するCRCエラー類カウンタ150を有する。 The I/O processing device 130 also has a first time monitoring mechanism 141 and a second time monitoring mechanism 142 that monitor the time of responses from the disk device to detect I/O command abnormalities. In addition, the I/O processing device 130 has a CRC error counter 150 that stores the number of serial interface failures, such as CRC errors, detected when the transmission and reception circuits of the host 100 and the disk device 200 transmit information.

送受信回路160は、入出処理装置130からの指示によりシリアルインタフェース300を介してディスク装置200との情報伝達を行う送受信回路である。 The transmission/reception circuit 160 is a transmission/reception circuit that transmits information to the disk device 200 via the serial interface 300 in response to instructions from the input/output processing device 130.

一方、ディスク装置200は、送受信回路210と、CRCエラー類カウンタ220と、ディスク230と、ディスク制御装置240を有する。 On the other hand, the disk device 200 has a transmission/reception circuit 210, a CRC error counter 220, a disk 230, and a disk control device 240.

送受信回路210は、シリアルインタフェース300を介してホスト100との情報伝達を行う回路である。CRCエラー類カウンタ220は、CRCエラー類カウンタ150同様にホスト100、ディスク装置200各々の送受信回路が情報伝達する際に検出したCRCエラー等のシリアルインタフェースの障害発生回数を記憶するためのカウンタである。 The transmission/reception circuit 210 is a circuit that transmits information to the host 100 via the serial interface 300. The CRC error counter 220, like the CRC error counter 150, is a counter that stores the number of serial interface failures, such as CRC errors, detected when the transmission/reception circuits of the host 100 and the disk device 200 transmit information.

ディスク230は、データを記憶するディスクである。 Disk 230 is a disk that stores data.

ディスク制御装置240は、送受信回路210からの情報によりホストからのI/O命令を解析し、ディスク230のデータの読み書きを行う装置である。 The disk control device 240 is a device that analyzes I/O commands from the host using information from the transmission/reception circuit 210 and reads and writes data to the disk 230.

次に、図2のフローチャートを参照して、本実施形態の動作について説明する。 Next, the operation of this embodiment will be explained with reference to the flowchart in Figure 2.

まず、ホスト100内の中央処理装置110がディスク装置200とのデータ転送を実行するために、I/O命令を入出力処理装置110に指示した際の動作を説明する。 First, we will explain the operation when the central processing unit 110 in the host 100 issues an I/O command to the input/output processing unit 110 to execute data transfer with the disk device 200.

中央処理装置110よりI/O命令の実行を指示された入出力処理装置110は、その指示を受け付ける(ステップS401)。 When the central processing unit 110 instructs the input/output processing unit 110 to execute an I/O command, the input/output processing unit 110 accepts the instruction (step S401).

そして入出力処理装置110は、CRCエラー類カウンタ150をI/O命令開始前に読み出し内部に記憶しておく(ステップS402)。 The I/O processing device 110 then reads the CRC error counter 150 before starting the I/O command and stores it internally (step S402).

その後、送受信回路160に対し、I/O命令開始をディスク装置200に送信するよう指示する。その指示を受けた送受信回路160は、シリアルインタフェース300を介してディスク装置200にI/O命令開始を送信する(ステップS403)。送受信回路160は、このシリアルインタフェース300を介して情報伝達する際にCRCエラー等のシリアルインタフェース障害を検出した場合には、CRCエラー類カウンタ150をカウントアップする。 Then, the transmission/reception circuit 160 is instructed to send an I/O command start to the disk device 200. Upon receiving this instruction, the transmission/reception circuit 160 transmits the I/O command start to the disk device 200 via the serial interface 300 (step S403). If the transmission/reception circuit 160 detects a serial interface failure such as a CRC error when transmitting information via the serial interface 300, it counts up the CRC error counter 150.

ディスク装置200内部の送受信回路210は、シリアルインタフェース300を介してホスト100からのI/O命令開始を受信する。そして、送受信回路210は、ディスク制御装置240にそれを通知する(ステップS404)。 The transmission/reception circuit 210 inside the disk device 200 receives the start of an I/O command from the host 100 via the serial interface 300. The transmission/reception circuit 210 then notifies the disk control device 240 of this (step S404).

通知を受けたディスク制御装置240は、ホスト100から受信したI/O命令を解析し、ディスク230のデータの読み書きを実行する。ディスク制御装置240は、I/O命令の実行が完了すると、I/O命令応答をホスト100に送信するよう送受信回路210に指示する(ステップS405)。この際、送受信回路210はシリアルインタフェース300を介して情報伝達する間にCRCエラー等のシリアルインタフェース障害を検出した場合には、CRCエラー類カウンタ220をカウントアップする。 The disk control device 240 that has received the notification analyzes the I/O command received from the host 100 and executes the reading and writing of data from and to the disk 230. When the execution of the I/O command is completed, the disk control device 240 instructs the transmission/reception circuit 210 to send an I/O command response to the host 100 (step S405). At this time, if the transmission/reception circuit 210 detects a serial interface failure such as a CRC error while transmitting information via the serial interface 300, it counts up the CRC error counter 220.

入出力処理装置110は、ディスク装置200の異常の検出を目的にI/O命令応答が返るまでの時間を監視するため、第1の時間監視機構141にディスク装置200がI/O命令を実行するのに十分な時間(以下、この時間のことを「時間(A)と表記する。」)で監視するよう指示する(ステップS406)。さらに入出力処理装置110は、第2の時間監視機構142に前述の時間(A)より短い時間であって、通常I/O命令応答が返るまでの時間として十分な時間(以下、この時間のことを「時間(B)と表記する。」)で監視するよう指示する(ステップS407)。 In order to monitor the time until an I/O command response is returned in order to detect an abnormality in the disk device 200, the I/O processing device 110 instructs the first time monitoring mechanism 141 to monitor for a time sufficient for the disk device 200 to execute an I/O command (hereinafter, this time will be referred to as "time (A)") (step S406). Furthermore, the I/O processing device 110 instructs the second time monitoring mechanism 142 to monitor for a time shorter than the aforementioned time (A) and sufficient for a normal I/O command response to be returned (hereinafter, this time will be referred to as "time (B)") (step S407).

その後、入出力処理装置110は、送受信回路160からの「ディスク装置200からのI/O命令応答」、第1の時間監視機構141からの「第1の時間監視オーバー」、第2の時間監視機構142からの「第2の時間監視オーバー」が発生しているかをチェックし続ける。 Then, the input/output processing device 110 continues to check whether an "I/O command response from the disk device 200" has occurred from the transmission/reception circuit 160, whether a "first time monitoring over" has occurred from the first time monitoring mechanism 141, or whether a "second time monitoring over" has occurred from the second time monitoring mechanism 142.

入出力処理装置110はディスク装置200とのI/O命令が正常に完了した際(ステップS408においてYes)は、送受信回路160を介した「ディスク装置200からのI/O命令応答」を認識し、第1の時間監視機構141及び第2の時間監視機構142に対し、時間監視の停止を指示する。そして、第1の時間監視機構141及び第2の時間監視機構142は、その指示を受けて時間監視の停止をする(ステップS409、ステップS410)。 When an I/O command with the disk device 200 is completed normally (Yes in step S408), the I/O processing device 110 recognizes an "I/O command response from the disk device 200" via the transmission/reception circuit 160, and instructs the first time monitoring mechanism 141 and the second time monitoring mechanism 142 to stop time monitoring. Then, in response to this instruction, the first time monitoring mechanism 141 and the second time monitoring mechanism 142 stop time monitoring (steps S409 and S410).

最後に、入出力処理装置110は中央処理装置110に対し、I/O命令の正常終了を報告する。 Finally, the I/O processor 110 reports to the central processor 110 that the I/O command has been completed successfully.

一方(ステップS408においてNo)、入出力処理装置110は第1の時間監視機構141により「第1の時間監視オーバー」すなわち一定時間(A)が経過してもディスク装置200からのI/O命令応答がなかった場合(ステップS412においてYes)、I/O命令の異常と判断し、障害処理を起動する(ステップS415)。 On the other hand (No in step S408), if the first time monitoring mechanism 141 detects that the "first time monitoring has expired," i.e., if there is no I/O command response from the disk device 200 even after a certain period of time (A) has elapsed (Yes in step S412), the I/O processing device 110 determines that the I/O command is abnormal and initiates fault processing (step S415).

ステップS412においてNoだった場合であって、入出力処理装置110は第2の時間監視機構142により「第2の時間監視オーバー」すなわち時間(B)が経過してもディスク装置200からのI/O命令応答がなかった場合(ステップS413においてYes)、CRCエラー類カウンタを読み出し、I/O命令開始以前に読み出した値と比較する(ステップS413)。 If the answer is No in step S412 and the second time monitoring mechanism 142 detects that the "second time monitoring has expired", i.e., the time (B) has elapsed but there has been no I/O command response from the disk device 200 (Yes in step S413), the I/O processing device 110 reads the CRC error counter and compares it with the value read before the I/O command was started (step S413).

そして比較の結果に基づいて、I/O命令実行中にCRCエラー等が発生したかを確認する。ここで、CRCエラー等が発生している場合は(ステップS414においてYes)、この障害により一定時間(B)が経過してもI/O命令の応答がないものと判断し、障害処理を起動する(ステップS415)。 Then, based on the result of the comparison, it is confirmed whether a CRC error or the like occurred during the execution of the I/O command. If a CRC error or the like occurred (Yes in step S414), it is determined that there has been no response to the I/O command even after a certain period of time (B) has elapsed due to this fault, and fault processing is initiated (step S415).

また、第2の時間監視オーバーをしていない場合(ステップS412においてNo)と、CRCエラー等が発生していない場合は(ステップS404においてNo)、それ以外の事由により応答が遅れているものと判断し、再び「ディスク装置200からのI/O命令応答」、第1の時間監視機構141からの「第1の時間監視オーバー」、第2の時間監視機構142からの「第2の時間監視オーバー」が発生しているかをチェックし続ける。 In addition, if the second time monitoring has not been exceeded (No in step S412) and if a CRC error or the like has not occurred (No in step S404), it is determined that the response is delayed for some other reason, and it continues to check again whether an "I/O command response from the disk device 200", a "first time monitoring exceeded" from the first time monitoring mechanism 141, or a "second time monitoring exceeded" from the second time monitoring mechanism 142 has occurred.

[他の実施形態]
前述の実施形態は、本発明を実現する上でもっとも単純なものである。もっとも前述の実施形態では、シリアルインタフェース300上の障害をディスク装置200側の送受信回路210が検出した場合に効果が得られないという欠点があるため、以下の2つの実施形態を変形例として説明する。
[Other embodiments]
The above-described embodiment is the simplest way to realize the present invention. However, the above-described embodiment has a drawback in that it is not effective when the transmission/reception circuit 210 on the disk device 200 side detects a fault on the serial interface 300. Therefore, the following two embodiments will be described as modified examples.

変形例の一つ目は、入出力処理装置110は第2の時間監視機構142により「第2の時間監視オーバー」すなわち一定時間(B)が経過してもディスク装置200からのI/O命令応答がなかった場合、CRCエラー類カウンタ150を読み出し、I/O命令開始以前に読み出した値と比較し、I/O命令実行中にCRCエラー等が発生したかを確認する。確認の結果、CRCエラー等が発生していない場合は、ディスク装置200に対し該当I/O命令が内部で処理中か否かの問合せを行い、ディスク装置200内部で実行されていないと通知された場合は、シリアルインタフェース300の障害の発生により、一定時間(B)が経過してもI/O命令の応答がないものと判断し、障害処理を起動する。 In the first variation, when the second time monitoring mechanism 142 detects that there has been a "second time monitoring over," i.e., when there has been no I/O command response from the disk device 200 after a certain period of time (B), the I/O processing device 110 reads the CRC error counter 150 and compares it with the value read before the I/O command was started to check whether a CRC error or the like has occurred during execution of the I/O command. If the result of the check shows that there has been no CRC error or the like, the disk device 200 is inquired as to whether the I/O command in question is being processed internally, and if it is notified that the I/O command is not being executed internally in the disk device 200, it is determined that there has been no I/O command response even after a certain period of time (B) has passed due to a failure in the serial interface 300, and fault processing is initiated.

変形例の二つ目は、入出力処理装置110は第2の時間監視機構142により「第2の時間監視オーバー」すなわち一定時間(B)が経過してもディスク装置200からのI/O命令応答がなかった場合、CRCエラー類カウンタを読み出し、I/O命令開始以前に読み出した値と比較し、I/O命令実行中にCRCエラー等が発生したかを確認する。確認の結果、CRCエラー等が発生していない場合は、ディスク装置200に対しディスク装置200側ポートのCRCエラー類カウンタの問合せを行う。そして、カウントアップがあった場合はカウントアップした障害検出による影響により、一定時間(B)が経過してもI/O命令の応答がないものと判断し、障害処理を起動する。 In the second variation, when the second time monitoring mechanism 142 detects that "the second time monitoring has expired," that is, when there is no response to an I/O command from the disk device 200 after a certain period of time (B) has elapsed, the I/O processing device 110 reads the CRC error counter and compares it with the value read before the I/O command was started to check whether a CRC error or the like has occurred during execution of the I/O command. If the check shows that no CRC error or the like has occurred, the I/O processing device 110 queries the disk device 200 about the CRC error counter of the disk device 200 side port. If the counter has counted up, it is determined that there has been no response to an I/O command after a certain period of time (B) has elapsed due to the influence of the fault detection that caused the count to be incremented, and fault processing is initiated.

以上説明した、各実施形態はホスト−ディスク装置間インタフェースでCRCエラー等の軽微な障害が発生した場合、一定時間(B)が経過した状態で異常を検出し障害処理を起動することが可能であるため、影響したI/O命令の障害処理の開始を早めることができシステム全体の遅延が防止できるという効果を奏する。 In each of the embodiments described above, when a minor fault such as a CRC error occurs in the host-disk device interface, it is possible to detect the abnormality and start fault processing after a certain period of time (B) has elapsed, thereby achieving the effect of speeding up the start of fault processing for the affected I/O command and preventing delays in the entire system.

この点について、図3及び図4のシーケンス図を用いて説明する。 This point will be explained using the sequence diagrams in Figures 3 and 4.

図3は、本実施形態を適用させない場合の動作例である。まず、ホスト100がディスク装置200に対してI/O命令の開始を通知する(ステップA501)。そして、ディスク装置200がホスト100に対してI/O命令の応答を通知する(ステップA502)。なお、図3に示すようにこの処理は、通常1秒未満で完了する。 Figure 3 shows an example of operation when this embodiment is not applied. First, the host 100 notifies the disk device 200 of the start of an I/O command (step A501). Then, the disk device 200 notifies the host 100 of a response to the I/O command (step A502). As shown in Figure 3, this process is usually completed in less than one second.

そして、CRCエラーが発生し、情報が破棄された場合、CRCエラーカウンタのカウンタアップのみがなされる(ステップA503)。 If a CRC error occurs and the information is discarded, the CRC error counter is simply incremented (step A503).

その後、20秒後にタイムアウトが検出され、I/O障害の処理が開始される(ステップA504)。結果として、障害処理の開始まで20秒ほどかかることとなる。 Then, 20 seconds later, a timeout is detected and processing of the I/O failure is started (step A504). As a result, it takes about 20 seconds for failure processing to start.

次に、図4は、本実施形態を適用させた場合の動作例である。まず、ホスト100がディスク装置200に対してI/O命令の開始を通知する(ステップA501)。そして、ディスク装置200がホスト100に対してI/O命令の応答を通知する(ステップA502)。なお、図3に示すようにこの処理は、通常1秒未満で完了する。 Next, FIG. 4 shows an example of operation when this embodiment is applied. First, the host 100 notifies the disk device 200 of the start of an I/O command (step A501). Then, the disk device 200 notifies the host 100 of a response to the I/O command (step A502). Note that, as shown in FIG. 3, this process is usually completed in less than one second.

そして、CRCエラーが発生し、情報が破棄された場合、CRCエラーカウンタのカウンタアップのみがなされる(ステップA503)。 If a CRC error occurs and the information is discarded, the CRC error counter is simply incremented (step A503).

その後、1秒後(一定時間B)にタイムアウトが検出され、CRCエラーカウンタのカウンタをチェックする。チェックの結果カウンタアップしているため、I/O障害の処理が開始される(ステップA505)。結果として、障害処理の開始まで1秒ほどで済むこととなる。 Then, one second later (fixed time B), a timeout is detected and the CRC error counter is checked. As the check shows that the counter is up, processing of the I/O error is started (step A505). As a result, it takes only about one second until error processing can start.

更に、本実施形態は、障害の発生原因が、ホスト、ディスク装置、シリアルインタフェースの何れかであるかが判断できることから、より適切な障害処理を起動することが可能であるという効果を奏する。 Furthermore, this embodiment has the advantage of being able to determine whether the cause of the failure is the host, the disk device, or the serial interface, making it possible to initiate more appropriate failure handling.

なお、本発明の実施形態であるホスト及びディスク装置は、ハードウェア、ソフトウェア又はこれらの組合せにより実現することができる。 The host and disk device of the present invention can be realized by hardware, software, or a combination of these.

また、上述した実施形態は、本発明の好適な実施形態ではあるが、上記実施形態のみに本発明の範囲を限定するものではなく、本発明の要旨を逸脱しない範囲において種々の変更を施した形態での実施が可能である。 Although the above-mentioned embodiment is a preferred embodiment of the present invention, the scope of the present invention is not limited to the above-mentioned embodiment, and the present invention can be implemented in various modified forms without departing from the spirit of the present invention.

100 ホスト
110 中央処理装置
120 主記憶装置
130 入出力処理装置
141 第1の時間監視機構
142 第2の時間監視機構
150、220 CRCエラー類カウンタ
160、210 送受信回路
200 ディスク装置
230 ディスク
240 ディスク制御装置
300 シリアルインタフェース
100 Host 110 Central Processing Unit 120 Main Memory 130 Input/Output Processing Unit 141 First Time Monitoring Mechanism 142 Second Time Monitoring Mechanism 150, 220 CRC Error Counter 160, 210 Transmitting/Receiving Circuit 200 Disk Unit 230 Disk 240 Disk Control Unit 300 Serial Interface

Claims (9)

ィスク装置インタフェースで接続されるホストに組み込まれるI/O命令障害回復回路であって
前記ホストにおいて障害を検出した場合に、当該障害の回数をカウントするカウンタと、
前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、第1の一定時間以内に応答がない場合、その旨を入出力処理手段に通知する第1の時間監視手段と、
前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、前記第1の一定時間よりも短い時間である第2の一定時間以内に応答がない場合、その旨を前記入出力処理手段に通知する第2の時間監視手段と、
前記第1の時間監視手段から通知があった場合と、前記第2の時間監視手段から通知があった場合であって前記カウンタのカウントアップがあった場合に、障害処理を開始する入出力処理手段と、
を備え
前記入出力処理手段が、前記第2の時間監視手段から通知があった場合であって前記カウンタのカウントアップがなかった場合に、前記ディスク装置に前記発行したI/O処理が内部で実施されているか否かの問合せを行い、前記ディスク装置内部で実行されていないとの返信が通知された場合は、前記インタフェースにおいて障害が発生していると判断し、該インタフェースにおける障害について前記障害処理を行うことを特徴とするI/O命令障害回復回路。
An I/O command fault recovery circuit incorporated in a host that is connected to a disk device through an interface, comprising :
a counter for counting the number of occurrences of a failure when the failure is detected in the host;
a first time monitoring means for monitoring a response to an I/O command issued by the host to the disk device, and notifying an input/output processing means of the fact that no response is received within a first fixed time period;
a second time monitoring means for monitoring a response to an I/O command issued by the host to the disk device, and notifying the input/output processing means of the fact that no response is received within a second fixed time period that is shorter than the first fixed time period;
an input/output processing means for starting a fault processing when a notification is received from the first time monitoring means and when a notification is received from the second time monitoring means and the counter is counted up;
Equipped with
When the input/output processing means receives a notification from the second time monitoring means and the counter has not counted up, it inquires of the disk device as to whether the issued I/O processing is being performed internally, and if it receives a reply that the I/O processing is not being performed internally, it determines that a fault has occurred in the interface and performs the fault processing for the fault in the interface .
ィスク装置インタフェースで接続されるホストに組み込まれるI/O命令障害回復回路であって
前記ホストにおいて障害を検出した場合に、当該障害の回数をカウントする第1のカウンタと、
前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、第1の一定時間以内に応答がない場合、その旨を入出力処理手段に通知する第1の時間監視手段と、
前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、前記第1の一定時間よりも短い時間である第2の一定時間以内に応答がない場合、その旨を前記入出力処理手段に通知する第2の時間監視手段と、
前記第1の時間監視手段から通知があった場合と、前記第2の時間監視手段から通知があった場合であって前記第1のカウンタのカウントアップがあった場合に、障害処理を開始する入出力処理手段と、
を備え
前記入出力処理手段が、前記第2の時間監視手段から通知があった場合であって当該I/O命令障害回復回路が備える前記第1のカウンタのカウントアップがなかった場合に、前記ディスク装置が備えている該ディスク装置において障害を検出した場合に当該障害の回数をカウントする第2のカウンタにカウントアップがあるか問合せを行い、カウントアップがあったとの返信が通知された場合は、該カウントアップした障害検出による影響であると判断し、該カウントアップにおける障害について前記障害処理を行うことを特徴とするI/O命令障害回復回路。
An I/O command fault recovery circuit incorporated in a host that is connected to a disk device through an interface, comprising :
a first counter for counting the number of occurrences of a failure when the failure is detected in the host;
a first time monitoring means for monitoring a response to an I/O command issued by the host to the disk device, and notifying an input/output processing means of the fact that no response is received within a first fixed time period;
a second time monitoring means for monitoring a response to an I/O command issued by the host to the disk device, and notifying the input/output processing means of the fact that no response is received within a second fixed time period that is shorter than the first fixed time period;
an input/output processing means for starting a fault processing when a notification is received from the first time monitoring means and when a notification is received from the second time monitoring means and the first counter is counted up;
Equipped with
When the input/output processing means receives a notification from the second time monitoring means and the first counter provided in the I/O instruction fault recovery circuit has not counted up, it inquires whether a second counter provided in the disk device, which counts the number of times a fault is detected in the disk device, has counted up, and when it receives a reply indicating that a count up has occurred, it determines that the count up is due to the detection of the fault, and performs the fault processing for the fault at the count up .
請求項1又は2に記載のI/O命令障害回復回路であって、前記カウンタが、障害として検出するのはCRC(Cyclic Redundancy Check)エラーであることを特徴とするI/O命令障害回復回路。 3. The I/O instruction fault recovery circuit according to claim 1 , wherein the counter detects a CRC (Cyclic Redundancy Check) error as a fault. ィスク装置インタフェースで接続されるホストに組み込まれるI/O命令障害回復回路が行うI/O命令障害回復方法であって
前記ホストにおいて障害を検出した場合に、当該障害の回数をカウントするカウンタを用意するステップと、
前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、第1の一定時間以内に応答がない場合、その旨を入出力処理ステップに通知する第1の時間監視ステップと、
前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、前記第1の一定時間よりも短い時間である第2の一定時間以内に応答がない場合、その旨を前記入出力処理ステップに通知する第2の時間監視ステップと、
前記第1の時間監視ステップにおける通知があった場合と、前記第2の時間監視ステップにおける通知があった場合であって前記カウンタのカウントアップがあった場合に、障害処理を開始する入出力処理ステップと、
を備え
前記入出力処理ステップでは、前記第2の時間監視ステップにおける通知があった場合であって前記カウンタのカウントアップがなかった場合に、前記ディスク装置に前記発行したI/O処理が内部で実施されているか否かの問合せを行い、前記ディスク装置内部で実行されていないとの返信が通知された場合は、前記インタフェースにおいて障害が発生していると判断し、該インタフェースにおける障害について前記障害処理を行うことを特徴とするI/O命令障害回復方法。
1. An I/O command fault recovery method performed by an I/O command fault recovery circuit incorporated in a host that is connected to a disk device via an interface, comprising:
providing a counter for counting the number of occurrences of a failure when the failure is detected in the host;
a first time monitoring step for monitoring a response to an I/O command issued by the host to the disk device, and notifying an input/output processing step of the fact that no response is received within a first certain time period;
a second time monitoring step for monitoring a response to an I/O command issued by the host to the disk device, and notifying the input/output processing step of the fact that no response is received within a second certain time period that is shorter than the first certain time period;
an input/output processing step of starting a fault processing when a notification is received in the first time monitoring step and when a notification is received in the second time monitoring step and the counter is counted up;
Equipped with
In the input/output processing step, when a notification is received in the second time monitoring step and the counter has not counted up, an inquiry is made to the disk device as to whether or not the issued I/O processing is being performed internally, and when a reply is received indicating that the I/O processing is not being performed internally in the disk device, it is determined that a fault has occurred in the interface, and the fault processing is performed for the fault in the interface .
ィスク装置インタフェースで接続されるホストに組み込まれるI/O命令障害回復回路が行うI/O命令障害回復方法であって
前記ホストにおいて障害を検出した場合に、当該障害の回数をカウントする第1のカウンタを用意するステップと、
前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、第1の一定時間以内に応答がない場合、その旨を入出力処理ステップに通知する第1の時間監視ステップと、
前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、前記第1の一定時間よりも短い時間である第2の一定時間以内に応答がない場合、その旨を前記入出力処理ステップに通知する第2の時間監視ステップと、
前記第1の時間監視ステップにおける通知があった場合と、前記第2の時間監視ステップにおける通知があった場合であって前記第1のカウンタのカウントアップがあった場合に、障害処理を開始する入出力処理ステップと、
を備え
前記入出力処理ステップでは、前記第2の時間監視ステップにおける通知があった場合であって前記I/O命令障害回復回路が備える前記第1のカウンタのカウントアップがなかった場合に、前記ディスク装置が備えている該ディスク装置において障害を検出した場合に該障害の回数をカウントする第2のカウンタにカウントアップがあるか問合せを行い、カウントアップがあったとの返信が通知された場合は、該カウントアップした障害検出による影響であると判断し、該カウントアップにおける障害について前記障害処理を行うことを特徴とするI/O命令障害回復方法。
1. An I/O command fault recovery method performed by an I/O command fault recovery circuit incorporated in a host that is connected to a disk device via an interface, comprising:
providing a first counter for counting the number of occurrences of a failure when the failure is detected in the host;
a first time monitoring step for monitoring a response to an I/O command issued by the host to the disk device, and notifying an input/output processing step of the fact that no response is received within a first certain time period;
a second time monitoring step for monitoring a response to an I/O command issued by the host to the disk device, and notifying the input/output processing step of the fact that no response is received within a second certain time period that is shorter than the first certain time period;
an input/output processing step of starting a fault processing when a notification is received in the first time monitoring step and when a notification is received in the second time monitoring step and the first counter is counted up;
Equipped with
In the input/output processing step, when a notification is received in the second time monitoring step and the first counter provided in the I/O instruction fault recovery circuit has not counted up, an inquiry is made as to whether a second counter provided in the disk device, which counts the number of times a fault is detected in the disk device, has counted up, and when a reply is notified that a count up has occurred, it is determined that the count up is due to the detection of the fault, and the fault processing is performed for the fault in the count up .
請求項4又は5に記載のI/O命令障害回復方法において、前記カウンタが、障害として検出するのはCRC(Cyclic Redundancy Check)エラーであることを特徴とするI/O命令障害回復方法。 6. The I/O command fault recovery method according to claim 4 , wherein the fault detected by said counter is a CRC (Cyclic Redundancy Check) error. ィスク装置インタフェースで接続されるホストに組み込まれるI/O命令障害回復回路に搭載されるI/O命令障害回復プログラムであって
前記ホストにおいて障害を検出した場合に、当該障害の回数をカウントするカウンタと、
前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、第1の一定時間以内に応答がない場合、その旨を入出力処理手段に通知する第1の時間監視手段と、
前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、前記第1の一定時間よりも短い時間である第2の一定時間以内に応答がない場合、その旨を前記入出力処理手段に通知する第2の時間監視手段と、
前記第1の時間監視手段から通知があった場合と、前記第2の時間監視手段から通知があった場合であって前記カウンタのカウントアップがあった場合に、障害処理を開始する入出力処理手段と、
を備え
前記入出力処理手段が、前記第2の時間監視手段から通知があった場合であって前記カウンタのカウントアップがなかった場合に、前記ディスク装置に前記発行したI/O処理が内部で実施されているか否かの問合せを行い、前記ディスク装置内部で実行されていないとの返信が通知された場合は、前記インタフェースにおいて障害が発生していると判断し、該インタフェースにおける障害について前記障害処理を行うI/O命令障害回復回路としてコンピュータを機能させることを特徴とするI/O命令障害回復プログラム。
An I/O command fault recovery program installed in an I/O command fault recovery circuit incorporated in a host that is connected to a disk device via an interface, comprising :
a counter for counting the number of occurrences of a failure when the failure is detected in the host;
a first time monitoring means for monitoring a response to an I/O command issued by the host to the disk device, and notifying an input/output processing means of the fact that no response is received within a first fixed time period;
a second time monitoring means for monitoring a response to an I/O command issued by the host to the disk device, and notifying the input/output processing means of the fact that no response is received within a second fixed time period that is shorter than the first fixed time period;
an input/output processing means for starting a fault processing when a notification is received from the first time monitoring means and when a notification is received from the second time monitoring means and the counter is counted up;
Equipped with
an input/output processing means for inquiring of the disk device as to whether the issued I/O processing is being performed internally when the second time monitoring means has not notified the input/output processing means and the counter has not counted up; and if a reply is received indicating that the processing is not being performed internally in the disk device, the input/output processing means determines that a fault has occurred in the interface, and causes a computer to function as an I/O instruction fault recovery circuit that performs the fault processing for the fault in the interface .
ィスク装置インタフェースで接続されるホストに組み込まれるI/O命令障害回復回路に搭載されるI/O命令障害回復プログラムであって
前記ホストにおいて障害を検出した場合に、当該障害の回数をカウントする第1のカウンタと、
前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、第1の一定時間以内に応答がない場合、その旨を入出力処理手段に通知する第1の時間監視手段と、
前記ホストが前記ディスク装置にI/O命令を発行した際、その応答を時間監視し、前記第1の一定時間よりも短い時間である第2の一定時間以内に応答がない場合、その旨を前記入出力処理手段に通知する第2の時間監視手段と、
前記第1の時間監視手段から通知があった場合と、前記第2の時間監視手段から通知があった場合であって前記第1のカウンタのカウントアップがあった場合に、障害処理を開始する入出力処理手段と、
を備え
前記入出力処理手段が、前記第2の時間監視手段から通知があった場合であって当該I/O命令障害回復回路が備える前記第1のカウンタのカウントアップがなかった場合に、前記ディスク装置が備えている該ディスク装置において障害を検出した場合に当該障害の回数をカウントする第2のカウンタにカウントアップがあるか問合せを行い、カウントアップがあったとの返信が通知された場合は、該カウントアップした障害検出による影響であると判断し、該カウントアップにおける障害について前記障害処理を行うI/O命令障害回復回路としてコンピュータを機能させることを特徴とするI/O命令障害回復プログラム。
An I/O command fault recovery program installed in an I/O command fault recovery circuit incorporated in a host that is connected to a disk device via an interface, comprising :
a first counter for counting the number of occurrences of a failure when the failure is detected in the host;
a first time monitoring means for monitoring a response to an I/O command issued by the host to the disk device, and notifying an input/output processing means of the fact that no response is received within a first fixed time period;
a second time monitoring means for monitoring a response to an I/O command issued by the host to the disk device, and notifying the input/output processing means of the fact that no response is received within a second fixed time period that is shorter than the first fixed time period;
an input/output processing means for starting a fault processing when a notification is received from the first time monitoring means and when a notification is received from the second time monitoring means and the first counter is counted up;
Equipped with
An I/O instruction fault recovery program characterized in that, when the input/output processing means receives a notification from the second time monitoring means and the first counter provided in the I/O instruction fault recovery circuit has not counted up, the input/output processing means inquires whether a second counter provided in the disk device, which counts the number of times a fault is detected in the disk device, has counted up, and if a reply is received indicating that a count up has occurred, the input/output processing means determines that the count up is due to the detection of a fault, and causes the computer to function as an I/O instruction fault recovery circuit that performs the fault processing for the fault in the count up.
請求項7又は8に記載のI/O命令障害回復プログラムにおいて、前記カウンタが、障害として検出するのはCRC(Cyclic Redundancy Check)エラーであることを特徴とするI/O命令障害回復プログラム。 9. The I/O instruction fault recovery program according to claim 7 , wherein the fault detected by said counter is a CRC (Cyclic Redundancy Check) error.
JP2009024857A 2009-02-05 2009-02-05 I/O command failure recovery circuit, I/O command failure recovery method, and I/O command failure recovery program Expired - Fee Related JP5288331B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009024857A JP5288331B2 (en) 2009-02-05 2009-02-05 I/O command failure recovery circuit, I/O command failure recovery method, and I/O command failure recovery program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009024857A JP5288331B2 (en) 2009-02-05 2009-02-05 I/O command failure recovery circuit, I/O command failure recovery method, and I/O command failure recovery program

Publications (2)

Publication Number Publication Date
JP2010182080A JP2010182080A (en) 2010-08-19
JP5288331B2 true JP5288331B2 (en) 2013-09-11

Family

ID=42763635

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009024857A Expired - Fee Related JP5288331B2 (en) 2009-02-05 2009-02-05 I/O command failure recovery circuit, I/O command failure recovery method, and I/O command failure recovery program

Country Status (1)

Country Link
JP (1) JP5288331B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3819166B2 (en) * 1998-11-27 2006-09-06 ヒタチグローバルストレージテクノロジーズネザーランドビーブイ Energy consumption reduction method
JP2001228981A (en) * 2000-02-16 2001-08-24 Hitachi Electronics Eng Co Ltd Storage media library array device
JP2002023966A (en) * 2000-06-30 2002-01-25 Toshiba Corp Disk system with redundant transfer data
JP4317436B2 (en) * 2003-12-16 2009-08-19 株式会社日立製作所 Disk array system and interface conversion device
JP5058582B2 (en) * 2006-12-21 2012-10-24 日本電気株式会社 Multipath system of storage device, failure location identification method and program
JP2008171139A (en) * 2007-01-10 2008-07-24 Hitachi Computer Peripherals Co Ltd Storage system test apparatus and test method

Also Published As

Publication number Publication date
JP2010182080A (en) 2010-08-19

Similar Documents

Publication Publication Date Title
JP6333410B2 (en) Fault processing method, related apparatus, and computer
CN110704228B (en) Solid state disk exception handling method and system
EP2955632B1 (en) Determining and correcting software server error conditions
WO2012046293A1 (en) Fault monitoring device, fault monitoring method and program
US20190179693A1 (en) Multiple automotive multi-core processor error monitoring device and method
EP3118749B1 (en) System and method of monitoring a serial bus
CN112256507A (en) Chip fault diagnosis method and device, readable storage medium and electronic equipment
US11068337B2 (en) Data processing apparatus that disconnects control circuit from error detection circuit and diagnosis method
JP5451087B2 (en) Fault processing apparatus and method
US12314025B2 (en) Control device and control method
JP5288331B2 (en) I/O command failure recovery circuit, I/O command failure recovery method, and I/O command failure recovery program
JP2007323193A (en) System, method and program for detecting abnormality of performance load
JP7012915B2 (en) controller
WO2025195170A1 (en) Vehicle control method and device, computer-readable storage medium, and central computing platform
KR102163762B1 (en) Method for processing error in autonomous drive controller
KR102438148B1 (en) Abnormality detection apparatus, system and method for detecting abnormality of embedded computing module
JP2017043166A (en) Vehicle control device
JP5627414B2 (en) Action log collection system and program
JP6087540B2 (en) Fault trace apparatus, fault trace system, fault trace method, and fault trace program
JP6133614B2 (en) Fault log collection device, fault log collection method, and fault log collection program
JP5768434B2 (en) Mutual monitoring system
WO2024179408A1 (en) Spi communication fault diagnosis method, spi communication device, and storage medium
JP4103141B2 (en) Computer system, input / output control unit and input / output control program
WO2025256441A1 (en) Chip and electronic device
CN118226832A (en) A task processing method, system and vehicle

Legal Events

Date Code Title Description
RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20100715

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20100715

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120112

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121015

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121026

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121220

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130513

R150 Certificate of patent or registration of utility model

Ref document number: 5288331

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130526

LAPS Cancellation because of no payment of annual fees