JP2005331999A - Method for control of input/output from/to external storage device - Google Patents
Method for control of input/output from/to external storage device Download PDFInfo
- Publication number
- JP2005331999A JP2005331999A JP2004147123A JP2004147123A JP2005331999A JP 2005331999 A JP2005331999 A JP 2005331999A JP 2004147123 A JP2004147123 A JP 2004147123A JP 2004147123 A JP2004147123 A JP 2004147123A JP 2005331999 A JP2005331999 A JP 2005331999A
- Authority
- JP
- Japan
- Prior art keywords
- input
- output
- path
- storage device
- external storage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、外部記憶装置への入出力制御方法に関する。 The present invention relates to an input / output control method for an external storage device.
従来の外部記憶装置への入出力制御方法では、入出力を行うパスに障害が発生した場合
などに入出力要求の応答が永久に戻ってこないことがあるため、タイムアウト時間を設定
している。ある入出力要求の応答がタイムアウト時間を経過しても戻ってこない場合に、
その入出力要求に対してタイムアウトエラーとして応答を戻している。
In a conventional input / output control method for an external storage device, a timeout time is set because a response to an input / output request may not return indefinitely when a failure occurs in an input / output path. If the response of a certain I / O request does not return even after the timeout period has elapsed,
A response is returned as a timeout error for the I / O request.
また、高可用性が求められるシステムでは、外部記憶装置へのパスを複数準備し、ある
パスで入出力を行い、そのパスに障害が発生した場合には、別のパスを使用して入出力を
続行する。
Also, in a system that requires high availability, prepare multiple paths to an external storage device, perform input / output on one path, and if a failure occurs on that path, use another path for input / output. continue.
なお、特許文献1に記載された外部記憶装置への入出力制御方法では、複数の計算機と外部記憶装置が接続されているシステムにおいて、入出力要求が失敗した情報を蓄積し、その情報から障害を分析することにより、タイムアウト時間を短縮している。
Note that in the input / output control method for an external storage device described in
従来の入出力制御方法では、正常時の入出力の応答時間は1秒未満であるのに対し、タ
イムアウトエラーの場合は数十秒から数百秒である。特開2000−122313号公報
に記載された外部記憶装置への入出力制御方法によりタイムアウト時間の短縮を試みても
、外部記憶装置が要求する一般的には数十秒の値よりもタイムアウト時間を短縮すること
はできない。したがって、タイムアウトエラー発生時には数十秒間、システムが停止する
ことになる。
In the conventional input / output control method, the response time of input / output in a normal state is less than 1 second, whereas in the case of a timeout error, it is several tens to several hundreds seconds. Even if an attempt is made to shorten the timeout time by the input / output control method for the external storage device described in Japanese Patent Application Laid-Open No. 2000-122313, the timeout time is generally longer than the tens of seconds required by the external storage device. It cannot be shortened. Therefore, when a timeout error occurs, the system is stopped for several tens of seconds.
本発明の目的は、タイムアウトエラー発生時の入出力の応答時間を数秒に高速化する外
部記憶装置への入出力制御方法を提供することにある。
An object of the present invention is to provide an input / output control method for an external storage device that speeds up an input / output response time when a timeout error occurs to several seconds.
本発明は上記目的を達成するために、入出力発行元から発行された入出力を受けた計算
機があるパスを使って外部記憶装置に対してその入出力を要求し一定時間を経過しても応
答がない場合に、別のパスを使って外部記憶装置に対して同じ入出力を要求し、最初に応
答のあったパスの結果を入出力発行元に返し、他のパスで要求中の入出力を取り消すこと
で、入出力命令が成功するまでの時間を短縮する手段を提供する。
In order to achieve the above object, the present invention requires a computer that has received input / output issued by an input / output issuer to use a certain path to request the input / output to an external storage device, and after a certain period of time has elapsed. If there is no response, the same input / output is requested to the external storage device using another path, the result of the path that responded first is returned to the I / O issuer, and the input requested by the other path is requested. By canceling the output, a means for shortening the time until the input / output instruction succeeds is provided.
本発明によれば、タイムアウトエラー発生時の入出力の応答時間を高速化できるという
効果がある。
According to the present invention, there is an effect that the input / output response time when a timeout error occurs can be increased.
次に本発明について図面を参照して説明する。 Next, the present invention will be described with reference to the drawings.
図1は本発明の外部記憶装置への入出力制御方法の実施例を実行する構成例を示すブロ
ック図である。
FIG. 1 is a block diagram showing a configuration example for executing an embodiment of an input / output control method for an external storage device of the present invention.
図1において、本実施例は計算機1と、計算機1で使用される外部記憶装置2と、計算
機1と外部記憶装置2を接続するFC(Fibre Channel)ケーブル群3によ
って構成される。計算機1はFCアダプタ群4を有する。FCアダプタ群4は複数のFC
アダプタから構成される。FCケーブル群3は少なくとも1つのFCスイッチを有する。
これはFCケーブル群4の全FCアダプタが外部記憶装置の同一ポートへのパスを持つた
めに必要である。計算機1は、入出力命令を発行する入出力発行元7と、その入出力命令
を処理するインタフェース的役割を果たす入出力I/F(InterFace)部6と、
FCアダプタ群4のそれぞれのFCアダプタを使って入出力を行う入出力制御部群5とか
ら構成される。入出力制御部群5の各入出力制御部は、FCアダプタ群4の各FCアダプ
タに1対1で存在する。ここで、入出力制御部1はFCアダプタ1を、入出力制御部2は
FCアダプタ2を、入出力制御部nはFCアダプタnをそれぞれ使用して入出力を行う。
入出力制御部群5は外部記憶装置2に対して、入出力を要求する他に外部記憶装置が現在
要求されている入出力を全てキャンセルすることができる。また、入出力I/F部6はパ
ス管理表8と入出力管理表9を有する。
In FIG. 1, the present embodiment includes a
Consists of adapters. The FC
This is necessary because all the FC adapters in the
It comprises an input / output
In addition to requesting input / output to the
図2はパス管理表8の使用法について説明するものであり、図2(a)でそのテーブル
構造について説明する。パス管理表8は、パス欄21と入出力制御部欄22と優先度欄2
3を持つ。パス欄21には、パスIDが入る。パスIDとは入出力を行うパスを識別する
ための識別子である。入出力制御部欄22には、入出力制御部IDが入る。入出力制御部
IDは、入出力制御部群5の入出力制御部1、入出力制御部2、入出力制御部nの“1、
2、n”の部分である。パスIDと入出力制御部IDを照合することで、どのパスでどの
入出力制御部が入出力を行うかが判断できる。優先度欄23には、優先順位が入る。優先
順位は小さいほど優先度が高いと判断できる。優先順位が同じパスは存在しない。入出力
I/F部6はパス管理表8を利用し、優先度が高いパスを使って入出力を行う。パス欄2
1と入出力制御部欄22の値は固定であり、優先度欄23の値は、状況によって変化する
。図2(b)はその使用例である。この例ではパスID“1”のパスが最も優先度が高く
、パスID“n”のパスが最も優先度が低いことを表す。
FIG. 2 explains how to use the path management table 8, and FIG. 2A explains the table structure. The path management table 8 includes a
Have three. A path ID is entered in the
2 and n ″. By comparing the path ID and the input / output control unit ID, it is possible to determine which input / output control unit performs input / output in which path. It can be determined that the lower the priority is, the higher the priority is.There are no paths with the same priority. Output:
1 and the value in the input /
図3は入出力管理表9の使用法について説明するものであり、図3(a)でそのテーブ
ル構造について説明する。入出力管理表9は、入出力欄31とパス欄32と時間欄33を
持つ。入出力欄31には、入出力IDが入る。入出力IDとは入出力命令を識別するため
の識別子である。パス欄32には、パスIDが入る。このパスIDは、パス管理表8のパ
スIDと同じものである。入出力IDとパスIDを照合することで、どの入出力命令がど
のパスで入出力を行っているかが判断できる。またパス欄32には、パスIDを複数入れ
ることもできる。時間欄33には、入出力命令を受け取ってからの経過時間がミリ秒単位
で入る。または経過時間を計算しないことを表す“−”を入れることもできる。図3(b
)はその使用例である。入出力ID“1”の入出力は、パスID“1”と“2”のパスで
同時に行われていて、経過時間を計算していないことを表す。入出力ID“2”の入出力
は、パスID“1”のパスで行われていて、経過時間が15ミリ秒であることを表す。
FIG. 3 explains how to use the input / output management table 9. FIG. 3A explains the table structure. The input / output management table 9 has an input / output column 31, a
) Is an example of its use. The input / output with the input / output ID “1” is performed simultaneously on the paths with the path IDs “1” and “2”, indicating that the elapsed time is not calculated. The input / output with the input / output ID “2” is performed in the path with the path ID “1”, and the elapsed time is 15 milliseconds.
このような構成において、本実施例の外部記憶装置への入出力制御方法について図4、
図5、図6、図7を用いて説明する。
In such a configuration, the input / output control method for the external storage device of this embodiment is shown in FIG.
This will be described with reference to FIGS.
図4は入出力I/F部6が入出力発行元7から入出力命令を取得した時の処理の流れを
表す。入出力発行元7から入出力命令を取得すると(ステップ41)、その入出力命令に
入出力ID“A”を割り当て(ステップ42)、パス管理表8から優先度が1のパスID
“B”を取得し(ステップ43)、パスID“B”の入出力制御部に入出力を要求し(ス
テップ44)、入出力管理表9に入出力ID“A”、パスID“B”、経過時間0ミリ秒
のエントリを追加する(ステップ45)。
FIG. 4 shows the flow of processing when the input / output I /
“B” is acquired (step 43), input / output is requested to the input / output control unit of path ID “B” (step 44), input / output ID “A” and path ID “B” are input to the input / output management table 9. Then, an entry with an elapsed time of 0 milliseconds is added (step 45).
図5は入出力I/F部の通常処理の流れを表す。入出力I/F部6が外部からデータを
取得していなければ(ステップ51)、1ミリ秒経過するまで待機し(ステップ52)、
入出力管理表のエントリが空の間は何もせず、エントリが空でない場合は以下の処理を行
う(ステップ53)。入出力管理表9の全エントリ中で時間欄33の値が“−”でないエ
ントリについて1ミリ秒加算し(ステップ54)、その結果1000ミリ秒を越えなけれ
ば何もせず1000ミリ秒を越えればそのエントリ“A”についてさらに以下の処理を行
う(ステップ55)。パス管理表8からエントリ“A”のパスID以外で、優先度が最も
低いパスID“B”を取得し(ステップ56)、パスID“B”の入出力制御部にエント
リ“A”の入出力を要求し(ステップ57)、エントリ“A”のパス欄32にパスID“
B”を追加し時間欄33を“−”に変更する(ステップ58)。もしステップ51で外部
からデータを取得していれば以下の処理を行う。取得したデータが入出力発行元からの入
出力命令であるなら図4の処理を行い、取得したデータが入出力制御部からの入出力要求
の結果であるなら、その結果が成功かどうかを判断し(ステップ59)、成功なら図6の
処理を、失敗なら図7の処理を行う。
FIG. 5 shows the flow of normal processing of the input / output I / F unit. If the input / output I /
If the entry in the input / output management table is empty, nothing is done. If the entry is not empty, the following processing is performed (step 53). For all entries in the input / output management table 9, 1 millisecond is added to the entry whose value in the time column 33 is not “−” (step 54). As a result, if 1000 milliseconds are not exceeded, nothing is done and if 1000 milliseconds is exceeded. The following processing is further performed for the entry “A” (step 55). The path ID “B” having the lowest priority other than the path ID of the entry “A” is acquired from the path management table 8 (step 56), and the entry “A” is input to the input / output control unit of the path ID “B”. Output is requested (step 57), and the path ID “in” is entered in the
"B" is added and the time column 33 is changed to "-" (step 58) If the data has been acquired from the outside in step 51, the following processing is performed. If it is an output command, the processing of FIG. 4 is performed. If the acquired data is the result of an input / output request from the input / output control unit, it is determined whether or not the result is successful (step 59). If the process is unsuccessful, the process of FIG. 7 is performed.
図6は入出力I/F部が入出力要求の結果を取得しその結果が成功だった時の処理の流
れである。パスID“A”の入出力制御部から入出力ID“B”の結果を取得しその結果
が成功であった場合に以下の処理を行う(ステップ61)。入出力管理表9から入出力I
D“B”のエントリ“C”を取得し(ステップ62)、エントリ“C”のパス欄32にパ
スID“A”以外のパスIDが存在しなければ以下の処理を行う(ステップ63)。入出
力管理表9からエントリ“C”を削除し(ステップ64)、入出力発行元に入出力命令の
結果を返す(ステップ65)。もしステップ63でエントリ“C”のパス欄32にパスI
D“A”以外のパスID“D”が存在すれば以下の処理を行う。パス管理表8の全エント
リ中でパスID“D”より優先度欄23の値が大きいものを1減算した後パスID“D”
の優先順位を全エントリ中の最大値にし(ステップ66)、入出力管理表からエントリ“
C”を削除し(ステップ67)、パスID“A”の入出力制御部に、外部記憶装置が現在
要求されている入出力を全てキャンセルさせ(ステップ68)、入出力管理表9の全エン
トリの時間欄33を“0”に変更しパス欄32にパスID“D”があれば“D”を削除し
“A”を追加し(ステップ69)、入出力管理表9の全エントリの入出力IDについてパ
ス欄32のパスIDの入出力制御部に入出力を要求する(ステップ70)。
FIG. 6 shows a processing flow when the input / output I / F unit acquires the result of the input / output request and the result is successful. When the result of the input / output ID “B” is acquired from the input / output control unit of the path ID “A” and the result is successful, the following processing is performed (step 61). Input / output I from input / output management table 9
The entry “C” of D “B” is acquired (step 62), and if there is no path ID other than the path ID “A” in the
If a path ID “D” other than D “A” exists, the following processing is performed. After subtracting 1 from all entries in the path management table 8 that have a value in the
Is set to the maximum value of all entries (step 66), and the entry “
C ”is deleted (step 67), and the input / output control unit with the path ID“ A ”cancels all input / output currently requested by the external storage device (step 68), and all entries in the input / output management table 9 are canceled. Time column 33 is changed to “0”, and if there is a path ID “D” in the
図7は入出力I/F部が入出力要求の結果を取得しその結果が失敗だった時の処理の流
れである。パスID“A”の入出力制御部から入出力ID“B”の結果を取得しその結果
が失敗であった場合に以下の処理を行う(ステップ71)。パス管理表8の全エントリ中
でパスID“A”より優先順位が大きいものを1減算しパスID“A”の優先順位を全エ
ントリ中の最大値にし(ステップ72)、入出力管理表9から入出力ID“B”のエント
リ“C”を取得し(ステップ73)、エントリ“C”のパス欄32にパスID“A”以外
のパスが存在すれば以下の処理を行う(ステップ74)。エントリ“C”のパス欄32か
らパスID“A”を削除する(ステップ75)。もしステップ74でエントリ“C”のパ
ス欄32にパスID以外のパスID“D”が存在しなければ以下の処理を行う。入出力管
理表9からエントリ“C”を削除し(ステップ76)、入出力発行元に結果を返す(ステ
ップ77)。
FIG. 7 shows a processing flow when the input / output I / F unit acquires the result of the input / output request and the result is a failure. When the result of the input / output ID “B” is acquired from the input / output control unit of the path ID “A” and the result is unsuccessful, the following processing is performed (step 71). 1 is subtracted from all entries in the path management table 8 that have a higher priority than the path ID “A” to set the priority of the path ID “A” to the maximum value in all entries (step 72). The entry “C” of the input / output ID “B” is acquired from the path (step 73). If there is a path other than the path ID “A” in the
1…計算機、2…外部記憶装置、3…FCケーブル群、4…FCアダプタ群、5…入出
力制御部群、6…入出力I/F部、7…入出力発行元、8…パス管理表、9…入出力管理
表。
DESCRIPTION OF
Claims (1)
FCアダプタに接続されたFCケーブルが、1台以上のFCスイッチにより構成されるF
Cケーブル群を介して、外部記憶装置に接続されたシステムの入出力制御方法において、
あるFCアダプタ経由のパスで要求した入出力の応答が一定時間ない場合に、他のFC
アダプタ経由のパスで同様の入出力を要求することを特徴とする入出力制御方法。
A computer is equipped with multiple FC (Fibre Channel) adapters, and the FC cable connected to each FC adapter is composed of one or more FC switches.
In the input / output control method of the system connected to the external storage device via the C cable group,
When there is no response to the input / output requested by a path via an FC adapter for a certain period of time, another FC
An input / output control method that requests similar input / output in a path via an adapter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004147123A JP2005331999A (en) | 2004-05-18 | 2004-05-18 | Method for control of input/output from/to external storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004147123A JP2005331999A (en) | 2004-05-18 | 2004-05-18 | Method for control of input/output from/to external storage device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005331999A true JP2005331999A (en) | 2005-12-02 |
Family
ID=35486645
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004147123A Pending JP2005331999A (en) | 2004-05-18 | 2004-05-18 | Method for control of input/output from/to external storage device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005331999A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007249343A (en) * | 2006-03-14 | 2007-09-27 | Nec Corp | Fault monitoring apparatus, cluster system, and fault monitoring method |
US10649936B2 (en) | 2016-09-09 | 2020-05-12 | Fujitsu Limited | Access control apparatus and access control method |
-
2004
- 2004-05-18 JP JP2004147123A patent/JP2005331999A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007249343A (en) * | 2006-03-14 | 2007-09-27 | Nec Corp | Fault monitoring apparatus, cluster system, and fault monitoring method |
US10649936B2 (en) | 2016-09-09 | 2020-05-12 | Fujitsu Limited | Access control apparatus and access control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20070180288A1 (en) | Method, system and program for securing redundancy in parallel computing sytem | |
CN109542645A (en) | A kind of method, apparatus, electronic equipment and storage medium calling service | |
CN104516789A (en) | Method and system for failover detection and treatment in checkpoint systems | |
JP2006285810A (en) | Cluster configuration computer system and system reset method therefor | |
US10353786B2 (en) | Virtualization substrate management device, virtualization substrate management system, virtualization substrate management method, and recording medium for recording virtualization substrate management program | |
US20070050425A1 (en) | Log management program of a computer, log management method thereof, and computer system | |
JP5998577B2 (en) | Cluster monitoring apparatus, cluster monitoring method, and program | |
JP2005242404A (en) | Method for switching system of computer system | |
US10372701B2 (en) | Transaction processor | |
CN100530152C (en) | Method and device for starting i/o adapter of data processing system | |
US20090210574A1 (en) | Open host issued statesave to attached storage | |
US20120096303A1 (en) | Detecting and recovering from process failures | |
US20100235549A1 (en) | Computer and input/output control method | |
JP2005331999A (en) | Method for control of input/output from/to external storage device | |
US6487580B1 (en) | Method and system for managing concurrently executable computer processes | |
JP2005128781A (en) | System changeover method and information processing system | |
US20050044281A1 (en) | Method and apparatus for managing device reservation | |
US8671307B2 (en) | Task relay system, apparatus, and recording medium | |
JP4825120B2 (en) | Service management system, service management apparatus, and service management method | |
US9015717B2 (en) | Method for processing tasks in parallel and selecting a network for communication | |
JP2008009518A (en) | Dual operation system | |
JP2006244016A (en) | Computer system, and management method for access path | |
CN105162633B (en) | A kind of method and apparatus managing network in the multiple operating system based on container | |
JP2001350660A (en) | Program execution management device and computer- readable storage media with program recorded thereon | |
JP4241405B2 (en) | Computer system, I / O retry method and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20060424 |