JPH09251352A - Computer system - Google Patents

Computer system

Info

Publication number
JPH09251352A
JPH09251352A JP8059861A JP5986196A JPH09251352A JP H09251352 A JPH09251352 A JP H09251352A JP 8059861 A JP8059861 A JP 8059861A JP 5986196 A JP5986196 A JP 5986196A JP H09251352 A JPH09251352 A JP H09251352A
Authority
JP
Japan
Prior art keywords
disk
dma
mirror
magnetic disk
ipl
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.)
Granted
Application number
JP8059861A
Other languages
Japanese (ja)
Other versions
JP3439906B2 (en
Inventor
Seigo Aonuma
清悟 青沼
Hitomi Sasaki
ひとみ 佐々木
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP05986196A priority Critical patent/JP3439906B2/en
Publication of JPH09251352A publication Critical patent/JPH09251352A/en
Application granted granted Critical
Publication of JP3439906B2 publication Critical patent/JP3439906B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To accelerate a data access speed to a mirror disk device, to minimize the time required for an IPL(initial program loading) operation and to efficiently provide information relating to an operation error when an access operation error is generated. SOLUTION: A host device 1 generates plural SCSI commands and transmits them to the mirror disk device 3 by the DMA transfer of one time. Also, the host device 1 and the mirror disk device 3 directly access the SCSI command inside a backup memory 2 without a DMA control part 5 and an operation result is written inside the backup memory 2. One magnetic disk device inside the mirror disk is independently operated for the TPL operation and error information generated during the IPL operation is stored inside the backup memory 2.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】この発明は、2台の磁気ディ
スク装置でミラーディスク装置を構成しIPLディスク
としても使用可能なミラーディスク装置を備えた計算機
システムに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer system equipped with a mirror disk device which is composed of two magnetic disk devices and which can also be used as an IPL disk.

【0002】[0002]

【従来の技術】図12は、ミラーディスク装置を備えた
従来の計算機システムを示すブロック図であり、図にお
いて、100は中央処理装置等からなる上位装置、30
0はミラーディスク装置、400は上位装置100およ
びミラーディスク装置300を接続する共通バス、50
0はDMAコマンドチェインのDMA転送の制御を行う
DMA制御部、600はミラーディスクハンドラ、70
0−1および700−2はシングルディスクハンドラ、
800−1および800−2は磁気ディスク装置であ
る。
2. Description of the Related Art FIG. 12 is a block diagram showing a conventional computer system equipped with a mirror disk device. In the figure, 100 is a host device including a central processing unit, and 30.
0 is a mirror disk device, 400 is a common bus that connects the higher-level device 100 and the mirror disk device 300, and 50
0 is a DMA control unit for controlling DMA transfer of the DMA command chain, 600 is a mirror disk handler, 70
0-1 and 700-2 are single disk handlers,
Reference numerals 800-1 and 800-2 are magnetic disk devices.

【0003】ミラーディスク装置300を備えた計算機
システムでは、一対の磁気ディスク装置800−1,8
00−2の双方が同じデータを格納することにより一方
の磁気ディスク装置が故障した場合に他方の磁気ディス
ク装置からデータを読み出すことにより信頼性を向上す
るものである。
In the computer system including the mirror disk device 300, a pair of magnetic disk devices 800-1, 8
When both of the storage devices 00-2 store the same data and one magnetic disk device fails, the reliability is improved by reading the data from the other magnetic disk device.

【0004】次に動作について説明する。図13は、図
12に示す従来のミラーディスク装置を備えた計算機シ
ステムで用いられるDMAコマンドを示す図である。磁
気ディスク装置800−1,800−2に対するデータ
読み書き動作において、まず上位装置100からミラー
ディスク装置300内のDMA転送の制御を行うDMA
制御部500へ、共通バス400を介して図13に示す
SCSIコマンドを含むDMAコマンドチェインがDM
A転送で送信される。
Next, the operation will be described. FIG. 13 is a diagram showing a DMA command used in a computer system including the conventional mirror disk device shown in FIG. In the data read / write operation with respect to the magnetic disk devices 800-1 and 800-2, first, the DMA for controlling the DMA transfer in the mirror disk device 300 from the upper level device 100
A DMA command chain including the SCSI command shown in FIG. 13 is sent to the control unit 500 via the common bus 400 as a DM.
Sent by A transfer.

【0005】次にDMA制御部500は、DMAコマン
ドチェインをミラーディスクハンドラ600、またはシ
ングルディスクハンドラ700−1,700−2へ転送
するとともに、共通バス400の使用権に関する排他制
御を行う。シングルディスクハンドラ700−1,70
0−2は、DMA制御部500またはミラーディスクハ
ンドラ600から送信されてきたDMAコマンドチェイ
ンであるデータをSCSIコマンドへ変換し、変換した
SCSIコマンドの実行を命令し磁気ディスク装置80
0−1,800−2におけるデータの読み書き動作を行
う。
Next, the DMA control unit 500 transfers the DMA command chain to the mirror disk handler 600 or the single disk handlers 700-1 and 700-2, and performs exclusive control regarding the right to use the common bus 400. Single disk handler 700-1, 70
Reference numeral 0-2 converts the DMA command chain data transmitted from the DMA control unit 500 or the mirror disk handler 600 into a SCSI command, and instructs the magnetic disk device 80 to execute the converted SCSI command.
The data read / write operation at 0-1, 800-2 is performed.

【0006】また、ミラーディスクハンドラ600で
は、DMA制御部500から送信されてきたデータをミ
ラー化されている磁気ディスク装置800−1,800
−2に対応したシングルディスクハンドラ700−1,
700−2へ送信して磁気ディスク装置800−1,8
00−2に対する読み書き動作を指示し、シングルディ
スクハンドラ700−1,700−2から読み書き動作
の実行結果を受け取る。
Further, in the mirror disk handler 600, the magnetic disk devices 800-1 and 800 in which the data transmitted from the DMA controller 500 are mirrored.
-2, single disk handler 700-1,
To the magnetic disk device 800-1, 8
The read / write operation for 00-2 is instructed and the execution result of the read / write operation is received from the single disk handlers 700-1 and 700-2.

【0007】そして、ミラーディスクハンドラ600あ
るいはシングルディスクハンドラ700−1,700−
2は、SCSIコマンドの実行結果をDMA転送により
上位装置100へ送信する。上位装置100は受け取っ
た実行結果に基づきエラー処理または次に実行予定のS
CSIコマンドの生成の動作、即ち発行動作を行う。
Then, the mirror disk handler 600 or the single disk handlers 700-1, 700-
2 transmits the execution result of the SCSI command to the upper device 100 by DMA transfer. The upper-level device 100 performs error processing or S to be executed next based on the received execution result.
The operation of generating a CSI command, that is, the issuing operation is performed.

【0008】従来のミラーディスク装置を備えた計算機
システムでは、上位装置100がSCSIコマンドをミ
ラーディスク装置300へ共通バス400を介して送信
する場合、図13に示したDMAコマンドチェインを上
位装置100で作成する。つぎに、1つのSCSIコマ
ンドを1つのDMAコマンドチェイン内に挿入し、この
DMAコマンドチェインを1回のDMA転送によりミラ
ーディスク装置300内のDMA制御部500へ送信す
る。ミラーディスクハンドラ600またはシングルディ
スクハンドラ700−1,700−2は、図13に示し
たDMAコマンドチェイン内のSCSIコマンドを磁気
ディスク装置800−1,800−2へ送信する。磁気
ディスク装置800−1,800−2はこのSCSIコ
マンドを実行する。
In a conventional computer system including a mirror disk device, when the host device 100 transmits a SCSI command to the mirror disk device 300 via the common bus 400, the DMA command chain shown in FIG. create. Next, one SCSI command is inserted into one DMA command chain, and this DMA command chain is transmitted to the DMA control unit 500 in the mirror disk device 300 by one DMA transfer. The mirror disk handler 600 or the single disk handlers 700-1 and 700-2 sends the SCSI command in the DMA command chain shown in FIG. 13 to the magnetic disk devices 800-1 and 800-2. The magnetic disk devices 800-1 and 800-2 execute this SCSI command.

【0009】シングルディスクハンドラ700−1,7
00−2は、磁気ディスク装置800−1,800−2
から受け取った読み書き動作のエラー情報または成功情
報をDMAコマンドチェインのセンスエントリ16内の
ポインタが示すセンスバッファ18の領域に書き込む。
DMA制御部500は、DMAコマンドチェインによる
データ転送の実行結果をレポートエントリ20内に記述
する。
Single disk handler 700-1, 7
00-2 is a magnetic disk device 800-1, 800-2
The error information or success information of the read / write operation received from is written in the area of the sense buffer 18 indicated by the pointer in the sense entry 16 of the DMA command chain.
The DMA control unit 500 describes the execution result of data transfer by the DMA command chain in the report entry 20.

【0010】次に、上位装置100は、このDMAコマ
ンドチェインを受け取りセンスバッファ18内に書かれ
たSCSIコマンドの実行結果を読み、それが動作エラ
ーを示すデータであればエラー処理を行い、成功を示す
データの場合は、次に実行される予定の新たなDMAコ
マンドチェインを作成してSCSIコマンドをミラーデ
ィスク装置300に送信する処理を行う。
Next, the high-level equipment 100 receives the DMA command chain, reads the execution result of the SCSI command written in the sense buffer 18, and if it is data indicating an operation error, performs error processing, and succeeds. In the case of the data shown, a process of creating a new DMA command chain to be executed next and transmitting the SCSI command to the mirror disk device 300 is performed.

【0011】上記したように、従来のミラーディスク装
置を備えた計算機システムにおいて、図13で示した上
位装置100がDMAコマンドチェインを発行する。発
行の際1つのSCSIコマンド及びデータは、DMAコ
マンドチェイン内のSCSIコマンドブロック17や入
出力データバッファ19等の各バッファエリア内に格納
される。その後、上位装置100は、DMAコマンドチ
ェインのDMA送信の動作を起動し共通バス400を介
しDMA制御部500へ送信する。
As described above, in the computer system including the conventional mirror disk device, the host device 100 shown in FIG. 13 issues the DMA command chain. At the time of issuing, one SCSI command and data is stored in each buffer area such as the SCSI command block 17 and the input / output data buffer 19 in the DMA command chain. After that, the higher-level device 100 activates the DMA transmission operation of the DMA command chain and transmits it to the DMA control unit 500 via the common bus 400.

【0012】以下、ミラーディスク装置300内のDM
A制御部500、ミラーディスクハンドラ600、シン
グルディスクハンドラ700−1,700−2、磁気デ
ィスク装置800−1,800−2の動作をさらに詳細
に述べる。DMA制御部500は、ミラーディスクハン
ドラ600またはシングルディスクハンドラ700−
1,700−2へ上位装置100から送信されてきたD
MAコマンドチェインを渡す。DMAコマンドチェイン
を受け取ったシングルディスクハンドラ700−1,7
00−2またはミラーディスクハンドラ600は、磁気
ディスク装置800−1,800−2に対しDMAコマ
ンドチェイン内にあるSCSIコマンドの実行を命令
し、磁気ディスク装置800−1,800−2でデータ
の読み書き動作が実行される。
The DM in the mirror disk device 300 will be described below.
The operations of the A control unit 500, the mirror disk handler 600, the single disk handlers 700-1 and 700-2, and the magnetic disk devices 800-1 and 800-2 will be described in more detail. The DMA controller 500 includes a mirror disk handler 600 or a single disk handler 700-
D transmitted from the higher-level device 100 to 1,700-2
Pass the MA command chain. Single disk handler 700-1, 7 that received the DMA command chain
00-2 or the mirror disk handler 600 instructs the magnetic disk devices 800-1 and 800-2 to execute the SCSI command in the DMA command chain, and the magnetic disk devices 800-1 and 800-2 read and write data. The action is executed.

【0013】DMA制御部500は、DMA転送の実行
結果をDMAコマンドチェインのレポートエントリ20
内に記述する。ミラーディスクハンドラ600またはシ
ングルディスクハンドラ700−1,700−2は、S
CSIコマンドの実行結果をセンスエントリ16のポイ
ントが示すセンスバッファ18内の領域に記述する。上
位装置100は、DMAコマンドチェインを受信してD
MA転送の結果を参照後、SCSIコマンドの実行結果
が格納されているセンスバッファ18の領域を参照す
る。
The DMA control unit 500 reports the execution result of the DMA transfer to the report entry 20 of the DMA command chain.
Described in The mirror disk handler 600 or the single disk handlers 700-1 and 700-2 are
The execution result of the CSI command is written in the area in the sense buffer 18 indicated by the point of the sense entry 16. The host device 100 receives the DMA command chain and
After referring to the result of the MA transfer, the area of the sense buffer 18 in which the execution result of the SCSI command is stored is referenced.

【0014】図14は、従来の計算機システムの他の構
成を示す図であり、図において、101はシステム立ち
上げ処理を行うブートローダ、102は磁気ディスク装
置800−1,800−2へのアクセスを制御するディ
スクドライバ、103は主記憶である。なお、図12に
示したものと同様のものについては同一符号を付し重複
説明を省略する。磁気ディスク装置800−1,800
−2内には、オペレーション・システム(以下、OSと
呼ぶ)のプログラムが格納されている。上位装置10
0、主記憶103及び磁気ディスク装置800−1,8
00−2は共通バス400に接続されている。この計算
機システムは、1台の磁気ディスク装置800−1また
は800−2からシステムをイニシャル・プログラム・
ロード(以下、IPLと呼ぶ)する。
FIG. 14 is a diagram showing another configuration of a conventional computer system. In the figure, 101 is a boot loader for performing system startup processing, and 102 is access to the magnetic disk devices 800-1 and 800-2. A disk driver to be controlled, and 103 is a main memory. The same components as those shown in FIG. 12 are designated by the same reference numerals, and the duplicate description will be omitted. Magnetic disk device 800-1,800
-2 stores a program of an operating system (hereinafter referred to as OS). Host device 10
0, main memory 103, and magnetic disk devices 800-1, 8
00-2 is connected to the common bus 400. In this computer system, the system is initialized from one magnetic disk unit 800-1 or 800-2 as an initial program.
Load (hereinafter referred to as IPL).

【0015】次に動作について説明する。システム立ち
上げ時、上位装置100上で起動されたブートローダ1
01は、ディスクドライバ102を用いて、例えば磁気
ディスク装置800−1内に格納されているOS本体の
プログラムを主記憶103へロードし、その後、上位装
置100が主記憶103内のOSを起動する。
Next, the operation will be described. Boot loader 1 started on the higher-level device 100 at system startup
01 uses the disk driver 102 to load, for example, the program of the OS main body stored in the magnetic disk device 800-1 into the main memory 103, and then the upper level device 100 starts the OS in the main memory 103. .

【0016】[0016]

【発明が解決しようとする課題】従来のミラーディスク
装置を備えた計算機システムは以上のように構成されて
いるので、各SCSI装置に対するアクセス毎にDMA
コマンドチェインを作成し、ミラーディスク装置300
へDMA転送する必要があり、アクセス対象のSCSI
装置の数が多くなる場合やアクセス数が増加するとその
度にDMAコマンドチェインをミラーディスク装置30
0へ送信せねばならずアクセス動作が遅くなるという課
題があった。
Since the computer system provided with the conventional mirror disk device is configured as described above, the DMA is performed for each access to each SCSI device.
Create a command chain and use the mirror disk device 300
To the target SCSI
Whenever the number of devices increases or the number of accesses increases, the DMA command chain is set to the mirror disk device 30 each time.
There is a problem in that the access operation must be transmitted to 0, which slows down the access operation.

【0017】また、ミラーディスク装置300内のミラ
ーディスクハンドラ600及びシングルディスクハンド
ラ700−1,700−2が検出したディスク固有のエ
ラー情報は、図13に示すDMAコマンドチェインのセ
ンスバッファ18内の領域に格納される。上位装置10
0は、センスバッファ18内の領域に格納されたエラー
情報を読み出し、それが動作のエラーを示していればエ
ラー処理を行う。このように、ミラーディスクハンドラ
600またはシングルディスクハンドラ700−1,7
00−2は、動作エラーの情報の記録を行わない。従っ
て、例えば、計算機システムが何らかの原因でダウンし
リブートした場合、動作エラー情報は消滅するので、動
作エラーの原因の解析に支障があるという課題があっ
た。
Disk-specific error information detected by the mirror disk handler 600 and the single disk handlers 700-1, 700-2 in the mirror disk device 300 is stored in an area in the sense buffer 18 of the DMA command chain shown in FIG. Is stored. Host device 10
0 reads the error information stored in the area in the sense buffer 18, and if it indicates an operation error, performs error processing. In this way, the mirror disk handler 600 or the single disk handler 700-1, 7
00-2 does not record operation error information. Therefore, for example, if the computer system goes down and reboots for some reason, the operation error information disappears, and there is a problem that the analysis of the cause of the operation error is hindered.

【0018】また、ミラーディスク装置300をIPL
用の磁気ディスクとして用いた場合、磁気ディスク装置
800−1,800−2をアクセスする場合、DMA制
御部500を介してアクセスするのでファイルアクセス
速度が遅くIPL動作に必要とされる時間が長いという
課題があった。
Further, the mirror disk device 300 is IPLed.
When it is used as a magnetic disk for a computer, the magnetic disk devices 800-1 and 800-2 are accessed via the DMA control unit 500, so the file access speed is slow and the time required for the IPL operation is long. There were challenges.

【0019】さらに、何らかの原因で計算機システムが
異常終了しミラーディスク装置300を構成する磁気デ
ィスク装置800−1,800−2のうち一方の磁気デ
ィスク装置のファイルシステムが破壊された状態でIP
Lの動作を開始した場合、ミラーディスク装置300内
の磁気ディスク装置800−1,800−2はミラーデ
ィスクとしての整合性がとれないため、磁気ディスク装
置内800−1,800−2に格納されたOS本体のプ
ログラムが認識されずIPLエラーが発生し、計算機シ
ステムが停止するという課題があった。
Further, when the computer system abnormally terminates for some reason and the file system of one of the magnetic disk devices 800-1 and 800-2 forming the mirror disk device 300 is destroyed, IP
When the operation of L is started, since the magnetic disk devices 800-1 and 800-2 in the mirror disk device 300 cannot be matched as a mirror disk, they are stored in the magnetic disk devices 800-1 and 800-2. Moreover, there is a problem that the computer system is stopped because the program of the OS main body is not recognized and an IPL error occurs.

【0020】さらに、ミラーディスク装置300内の磁
気ディスク装置800−1,800−2でIPLの動作
を実行し、IPL動作エラーが発生した場合、IPLの
動作中に発生した動作エラーの情報が保存されないので
原因調査が困難であるという課題があった。
Further, when the IPL operation is executed by the magnetic disk devices 800-1 and 800-2 in the mirror disk device 300 and an IPL operation error occurs, information on the operation error occurred during the IPL operation is saved. There is a problem that the cause investigation is difficult because it is not done.

【0021】さらに、ユーザがIPL用の磁気ディスク
としてミラーディスク装置内の磁気ディスク装置を設定
し、バックアップメモリ上のミラーディスク管理情報に
この設定された磁気ディスク装置の認識番号(以下、I
Dと呼ぶ)が定義されていない場合、この状態でIPL
の動作を開始するとIPLエラーが発生するという課題
があった。
Further, the user sets the magnetic disk device in the mirror disk device as a magnetic disk for IPL, and the identification number of the magnetic disk device set in the mirror disk management information on the backup memory (hereinafter, I
Call D) is not defined, the IPL
There is a problem that an IPL error occurs when the operation of 1 is started.

【0022】この発明は、上記のような課題を解決する
ためになされたもので、ミラーディスク装置を備えた計
算機システムにおいて、ミラーディスク装置に対するデ
ータアクセス速度を向上させ、またIPLの動作に必要
とされる時間を最小限に抑え、かつアクセス動作エラー
の発生時に動作エラーに関する情報を効率的に提供する
高信頼性の計算機システムを得ることを目的とする。
The present invention has been made to solve the above problems, and in a computer system having a mirror disk device, it is necessary to improve the data access speed to the mirror disk device and to perform the IPL operation. It is an object of the present invention to obtain a highly reliable computer system which minimizes the time spent for access and efficiently provides information regarding an operation error when an access operation error occurs.

【0023】[0023]

【課題を解決するための手段】請求項1記載の発明に係
る計算機システムは、DMAコマンドチェイン内にアク
セス対象の複数のSCSI機器に対応した複数のセンス
エントリを設け、上位装置手段がこれら複数のSCSI
コマンドを1つのDMAコマンドチェイン内に含めてD
MA転送する。これにより、最小回数のDMA転送動作
で上位装置と磁気ディスク装置間で高速のDMA転送を
実現でき、DMAコマンドチェインの作成およびDMA
転送に必要とされる時間を最小にするものである。
According to a first aspect of the present invention, there is provided a computer system in which a plurality of sense entries corresponding to a plurality of SCSI devices to be accessed are provided in a DMA command chain, and a host device means is provided with the plurality of sense entries. SCSI
Include the command in one DMA command chain
MA transfer. As a result, a high-speed DMA transfer can be realized between the host device and the magnetic disk device with the minimum number of DMA transfer operations, and the DMA command chain can be created and the DMA command chain can be created.
It minimizes the time required for the transfer.

【0024】請求項2記載の発明に係る計算機システム
は、DMAコマンドチェイン内にアクセス対象の複数の
SCSI機器に対応した複数のセンスエントリを設け、
上位装置手段がこれら複数のSCSIコマンドを1つの
DMAコマンドチェイン内に含めて送信する。また、ミ
ラーディスク手段では、各SCSIコマンドの実行結果
をDMAコマンドチェイン内に格納する。これにより、
最小回数のDMA転送動作で上位装置とミラーディスク
装置間は高速にDMA転送を実行でき、DMAコマンド
チェインの作成およびDMA転送に必要とされる時間を
最小にするものである。
A computer system according to a second aspect of the present invention provides a plurality of sense entries corresponding to a plurality of SCSI devices to be accessed in the DMA command chain,
The host device means transmits these SCSI commands by including them in one DMA command chain. Further, the mirror disk means stores the execution result of each SCSI command in the DMA command chain. This allows
With a minimum number of DMA transfer operations, high-speed DMA transfer can be performed between the host device and the mirror disk device, and the time required for creating a DMA command chain and for DMA transfer is minimized.

【0025】請求項3記載の発明に係る計算機システム
は、上位装置手段とミラーディスク手段との間のSCS
Iコマンドの転送に、DMAコマンドチェインによるD
MA転送を用いることなく、上位装置手段及びミラーデ
ィスクハンドラ及びシングルディスクハンドラから直接
アクセス可能な共通バスに接続されたバックアップメモ
リを用いることで、上位装置手段とミラーディスクハン
ドラまたはシングルディスクハンドラ間で直接にSCS
Iコマンドを受け渡してアクセス時間を高速化するもの
である。
A computer system according to a third aspect of the present invention is an SCS between a host device means and a mirror disk means.
For transfer of I command, D by DMA command chain
By using the backup memory connected to the common bus which can be directly accessed from the host device means, the mirror disk handler and the single disk handler without using the MA transfer, the SCS can be directly carried out between the host device means and the mirror disk handler or the single disk handler.
The I command is transferred to shorten the access time.

【0026】請求項4記載の発明に係る計算機システム
は、DMAコマンドチェイン内にセンスエントリコマン
ドを設け、SCSIコマンドの実行結果が動作エラーと
なった場合、シングルディスクハンドラまたはミラーデ
ィスクハンドラがセンスバッファ領域内にエラー情報を
格納する。これにより上位装置手段がエラー情報を参照
することができない状態、例えば、共通バスを制御する
DMA制御部の故障でDMA転送により動作エラーの情
報を上位装置手段に通知できない場合、また計算機シス
テムが何らかの原因でダウンしリブートした場合、シン
グルディスクハンドラまたはミラーディスクハンドラは
バックアップメモリ内のディスクエラー情報領域にも動
作エラーに関する情報を送信して記憶させるので、この
情報を上位装置手段が読み出し動作エラーの解明に使用
できるようにしたものである。
In a computer system according to a fourth aspect of the present invention, a sense entry command is provided in the DMA command chain, and if the execution result of the SCSI command results in an operation error, the single disk handler or mirror disk handler is in the sense buffer area. Store the error information in. As a result, the host device means cannot refer to the error information, for example, when the operation error information cannot be notified to the host device means by DMA transfer due to a failure of the DMA control unit that controls the common bus, or when the computer system has some error. If it goes down and reboots due to a cause, the single disk handler or mirror disk handler sends and stores the information related to the operation error also in the disk error information area in the backup memory. It is intended for use.

【0027】請求項5記載の発明に係る計算機システム
は、ミラーディスク内の磁気ディスク装置からIPLの
動作を実行する時、該ミラーディスクを2台のシングル
ディスクとして認識する。ミラーディスク装置内のシン
グルディスクハンドラを起動し、IPL動作中に発生し
た動作エラーの情報をバックアップメモリ内に保存す
る。ミラーディスク装置のシングルディスクハンドラを
起動する機能を設けることにより、IPL動作に要する
時間を短縮する。また、何らかの原因でシステムが異常
終了し、ミラーディスクを構成する磁気ディスク装置の
うち1台のファイルシステムが破壊された状態でIPL
を行った場合でも、ミラーディスクとしての整合性がと
れないことで発生するIPL動作エラーを無くし、また
IPL中に発生した動作エラーの情報をバックアップメ
モリ内に保存して上位装置によるIPLエラーの原因解
析を容易にするものである。
In the computer system according to the fifth aspect of the present invention, when the magnetic disk device in the mirror disk executes the IPL operation, the mirror disk is recognized as two single disks. The single disk handler in the mirror disk device is activated, and the information on the operation error that occurred during the IPL operation is saved in the backup memory. By providing the function of activating the single disk handler of the mirror disk device, the time required for the IPL operation is shortened. In addition, the system is abnormally terminated for some reason, and one of the magnetic disk devices that composes the mirror disk is destroyed and IPL is performed.
Even if the operation is performed, the IPL operation error that occurs due to inconsistency as a mirror disk is eliminated, and the information of the operation error that occurred during IPL is saved in the backup memory and the cause of the IPL error by the host device. It facilitates analysis.

【0028】請求項6記載の発明に係る計算機システム
は、上位装置とミラーディスク装置間で転送されるDM
Aコマンドチェイン内に、上位装置の状態がIPLの動
作中かOSの運用動作中かを判断できるフラグを設け
て、上位装置がIPLの動作中であれば、DMAコマン
ドチェイン内のOS用にのみ使用する部分を除いたDM
Aコマンドチェインを作成しDMA転送を行いDMA転
送時間を短縮するものである。
According to a sixth aspect of the present invention, there is provided a computer system in which DM is transferred between a host device and a mirror disk device.
A flag is provided in the A command chain to determine whether the host device is in the IPL operation mode or the OS operation mode. If the host device is in the IPL operation mode, only a flag for the OS in the DMA command chain is provided. DM excluding the part to be used
A command chain is created and DMA transfer is performed to shorten the DMA transfer time.

【0029】請求項7記載の発明に係る計算機システム
は、ユーザによりIPLディスク装置として指定された
ミラーディスク装置が、バックアップメモリ内のミラー
ディスク管理情報ではミラーディスク装置として定義さ
れていない場合、該ミラーディスク装置と同一のSCS
IのIDを持つ磁気ディスク装置からIPLの動作を行
い、かつIPLの磁気ディスク装置に関する情報をバッ
クアップメモリ内に格納してユーザ設定ミスによるIP
Lの動作エラーの発生回数を削減するものである。
In a computer system according to a seventh aspect of the present invention, if a mirror disk device designated by the user as an IPL disk device is not defined as a mirror disk device in the mirror disk management information in the backup memory, the mirror disk device SCS same as disk device
The IPL operation is performed from the magnetic disk device having the ID of I, and the information related to the magnetic disk device of the IPL is stored in the backup memory and the IP due to the user setting error is set.
The number of occurrences of L operation error is reduced.

【0030】[0030]

【発明の実施の形態】以下、この発明の実施の一形態を
説明する。 実施の形態1.図1は、この発明の実施の形態1による
ミラーディスク装置を備えた計算機システムを示すブロ
ック図であり、図において、1は上位装置(上位装置手
段)、2はバックアップメモリ(メモリ手段)、3はミ
ラーディスク装置、4は上位装置1とミラーディスク装
置3を接続する共通バスである。ミラーディスク装置3
は、DMA制御部5(DMA転送制御手段)、ミラーデ
ィスクハンドラ6(ミラーディスク制御手段)、シング
ルディスクハンドラ7−1,7−2(シングルディスク
制御手段)、磁気ディスク装置8−1,8−2を有して
いる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below. Embodiment 1. FIG. 1 is a block diagram showing a computer system including a mirror disk device according to a first embodiment of the present invention. In the figure, 1 is a host device (host device means), 2 is a backup memory (memory means), 3 Is a mirror disk device, and 4 is a common bus that connects the higher-level device 1 and the mirror disk device 3. Mirror disk device 3
Includes a DMA controller 5 (DMA transfer control means), a mirror disk handler 6 (mirror disk control means), single disk handlers 7-1 and 7-2 (single disk control means), and magnetic disk devices 8-1 and 8-2. Have

【0031】この実施の形態1の計算機システムでは、
複数個のSCSI装置へのアクセス動作を規定するSC
SIコマンドを含んだDMAコマンドチェインを上位装
置1が作成し、ミラーディスク装置3内のDMA制御部
5へこのDMAコマンドチェインを1回のDMA転送に
て送信し、磁気ディスク装置8−1,8−2等のSCS
I装置のアクセス動作を行うものである。
In the computer system according to the first embodiment,
An SC that specifies access operations to multiple SCSI devices
The higher-level device 1 creates a DMA command chain including the SI command, transmits this DMA command chain to the DMA control unit 5 in the mirror disk device 3 by one DMA transfer, and the magnetic disk devices 8-1, 8 -SC such as -2
The I-device access operation is performed.

【0032】次に動作について説明する。図2は、ミラ
ーディスク装置を備えた計算機システムで用いられるD
MAコマンドチェインのテンプレートを示す図である。
上位装置1から共通バス4を介してSCSIコマンドを
ミラーディスク装置3へ送信する場合、図2に示すよう
なDMAコマンドチェインを上位装置1で作成し、DM
Aコマンドチェイン内に複数のSCSIコマンドを書き
込み、1回のDMA転送でミラーディスク装置3内のD
MA制御部5へこのDMAコマンドチェインを送信す
る。
Next, the operation will be described. FIG. 2 shows D used in a computer system having a mirror disk device.
It is a figure which shows the template of MA command chain.
When a SCSI command is transmitted from the host device 1 to the mirror disk device 3 via the common bus 4, a DMA command chain as shown in FIG.
A plurality of SCSI commands are written in the A command chain, and D in the mirror disk device 3 is executed by one DMA transfer.
This DMA command chain is transmitted to the MA control unit 5.

【0033】DMAコマンドチェイン中の各SCSIコ
マンドに対応したセンスエントリ16−1,...16
−3がポイントするセンスバッファ18−1,...,
18−3内の領域に、磁気ディスク装置8−1,8−2
から受け取ったアクセスエラー情報またはアクセス成功
情報をミラーディスクハンドラ6またはシングルディス
クハンドラ7−1,7−2が書き込む。DMA制御部5
は、レポートエントリ20内にDMAコマンドチェイン
によるデータ転送の実行結果を記述する。
Sense entries 16-1, .., corresponding to each SCSI command in the DMA command chain. . . 16
-3 point to the sense buffers 18-1 ,. . . ,
In the area of 18-3, the magnetic disk devices 8-1, 8-2
The mirror disk handler 6 or the single disk handlers 7-1 and 7-2 writes the access error information or the access success information received from DMA controller 5
Describes the execution result of data transfer by the DMA command chain in the report entry 20.

【0034】上位装置1はDMA制御部5を介してDM
Aコマンドチェインを受信し、DMA転送が完了したこ
とを知る。DMAコマンドチェインのレポートエントリ
20よりDMA転送の結果を判断し、SCSIコマンド
実行の正否については、各センスバッファ18−
1,...,18−3よりSCSIコマンドの実行結果
情報を得る。
The host device 1 uses the DMA control unit 5 to perform DM
Upon receiving the A command chain, it knows that the DMA transfer is completed. The result of the DMA transfer is judged from the report entry 20 of the DMA command chain, and whether the execution of the SCSI command is correct or not is judged by each sense buffer 18-.
1,. . . , 18-3 to obtain the execution result information of the SCSI command.

【0035】ミラーディスクハンドラ6及びシングルデ
ィスクハンドラ7−1,7−2は、DMAコマンドチェ
イン内に含まれる全てのSCSIコマンドを基にこのS
CSIコマンドに対応する磁気ディスク装置8−1,8
−2に対してアクセス動作の実行を命令し、磁気ディス
ク装置8−1,8−2から実行結果を受信するまでDM
A制御部5に対してDMA転送完了の通知を行わない。
The mirror disk handler 6 and the single disk handlers 7-1 and 7-2 use the S command based on all the SCSI commands included in the DMA command chain.
Magnetic disk devices 8-1, 8 corresponding to CSI command
-2 until the execution result is received from the magnetic disk devices 8-1 and 8-2.
The A control unit 5 is not notified of the completion of the DMA transfer.

【0036】以上のように、この実施の形態1の計算機
システムによれば、DMAコマンドチェインをミラーデ
ィスク装置3へDMA転送により送信する際、上位装置
1が1つのDMAコマンドチェイン内にアクセス対象の
複数のSCSI装置に対する複数のSCSIコマンドを
挿入し、共通バス4を介してミラーディスク装置3へD
MAコマンドチェインを送信し、DMA制御部5、ミラ
ーディスクハンドラ6、およびシングルディスクハンド
ラ7−1,7−2はこのDMAコマンドチェインを受信
して各SCSI装置をアクセスするので、1回のDMA
転送で複数のSCSI装置をアクセスでき、高速のアク
セス動作を実現できる。
As described above, according to the computer system of the first embodiment, when the DMA command chain is transmitted to the mirror disk device 3 by the DMA transfer, the host device 1 is the access target in one DMA command chain. Insert a plurality of SCSI commands for a plurality of SCSI devices, and D to the mirror disk device 3 via the common bus 4.
The MA command chain is transmitted, and the DMA control unit 5, the mirror disk handler 6, and the single disk handlers 7-1 and 7-2 receive this DMA command chain and access each SCSI device.
A plurality of SCSI devices can be accessed by transfer, and a high-speed access operation can be realized.

【0037】実施の形態2.図3はこの発明の実施の形
態2によるミラーディスク装置を備えた計算機システム
を示すブロック図であり、図において、21はバックア
ップメモリ2内のSCSIコマンドエリア、27はバッ
クアップメモリ2内のアクセス制御フラグである。な
お、図1に示したものと同様のものについては同一符号
を付し重複説明を省略する。バックアップメモリ2は、
共通バス4を介して上位装置1、ミラーディスクハンド
ラ6、及びシングルディスクハンドラ7−1,7−2か
ら両方向でアクセス可能なメモリ領域である。
Embodiment 2 3 is a block diagram showing a computer system including a mirror disk device according to a second embodiment of the present invention. In the figure, 21 is a SCSI command area in the backup memory 2, 27 is an access control flag in the backup memory 2. Is. The same components as those shown in FIG. 1 are designated by the same reference numerals, and the duplicate description will be omitted. The backup memory 2 is
It is a memory area that can be accessed in both directions from the higher-level device 1, the mirror disk handler 6, and the single disk handlers 7-1 and 7-2 via the common bus 4.

【0038】この実施の形態2の計算機システムでは、
DMA制御部5を介したDMAコマンドチェインのDM
A転送を実行せずに、上位装置1とミラーディスク装置
3内のミラーディスクハンドラ6およびシングルディス
クハンドラ7−1,7−2との間でSCSIコマンドや
SCSIコマンドの実行結果の送受信をバックアップメ
モリ2を介して高速に行うものである。
In the computer system according to the second embodiment,
DM of the DMA command chain via the DMA control unit 5
The backup memory 2 transmits / receives the SCSI command and the execution result of the SCSI command between the host device 1 and the mirror disk handler 6 and the single disk handlers 7-1 and 7-2 in the mirror disk device 3 without executing the A transfer. It is done at high speed through.

【0039】次に動作について説明する。この実施の形
態2の計算機システムでは、上位装置1が、SCSIコ
マンドをバックアップメモリ2上のSCSIコマンド処
理用に確保されたSCSIコマンドエリア21に書き込
む。書き込み完了後、上位装置1はバックアップメモリ
2内部のSCSIコマンドエリア21を排他制御するた
めアクセス制御フラグ27を上位装置1からのアクセス
不可状態、ミラーディスク装置3からアクセス可能状態
に設定する。
Next, the operation will be described. In the computer system according to the second embodiment, the host system 1 writes the SCSI command in the SCSI command area 21 reserved for the SCSI command processing on the backup memory 2. After the writing is completed, the higher-level device 1 sets the access control flag 27 to the inaccessible state from the higher-level device 1 and the accessible state from the mirror disk device 3 in order to exclusively control the SCSI command area 21 in the backup memory 2.

【0040】ミラーディスクハンドラ6またはシングル
ディスクハンドラ7−1,7−2は、アクセス制御フラ
グ27がミラーディスク装置3からのアクセス可能状態
を示している時、SCSIコマンドエリア21内のSC
SIコマンドを入力して実行し、実行結果をバックアッ
プメモリ2内の所定の領域へ書き込む。さらにアクセス
制御フラグ27を、上位装置1からアクセス可能状態、
ミラーディスク装置3からアクセス不可状態に設定す
る。
The mirror disk handler 6 or the single disk handlers 7-1 and 7-2, when the access control flag 27 indicates an accessible state from the mirror disk device 3, sends the SC in the SCSI command area 21.
The SI command is input and executed, and the execution result is written to a predetermined area in the backup memory 2. Furthermore, the access control flag 27 is set to the accessible state from the higher-level device 1,
The mirror disk device 3 sets the access inaccessible state.

【0041】上位装置1はアクセス制御フラグ27を参
照して、アクセス制御フラグ27が上位装置1からアク
セス可能状態であれば、SCSIコマンドの実行結果を
バックアップメモリ2内の所定の領域から読み出し、次
のSCSIコマンドをバックアップメモリ2に書き込
み、アクセス制御フラグ27を上位装置1からアクセス
不可状態、ミラーディスク装置3からアクセス可能状態
に設定する。
The host computer 1 refers to the access control flag 27, and if the access control flag 27 is accessible from the host computer 1, the execution result of the SCSI command is read from a predetermined area in the backup memory 2 and The SCSI command of No. 2 is written in the backup memory 2, and the access control flag 27 is set to the inaccessible state from the higher-level device 1 and the accessible state from the mirror disk device 3.

【0042】上位装置1、ミラーディスクハンドラ6、
およびシングルディスクハンドラ7−1,7−2は、ア
クセス制御フラグ27を常時監視し、上記した一連の動
作を全てのSCSIコマンドに対して繰り返し行う機能
を持つ。
Host device 1, mirror disk handler 6,
The single disk handlers 7-1 and 7-2 have a function of constantly monitoring the access control flag 27 and repeatedly performing the series of operations described above for all SCSI commands.

【0043】以上のように、この実施の形態2によれ
ば、DMAコマンドチェインを用いたDMA転送を行う
ことなく、バックアップメモリ2を介して上位装置1と
ミラーディスクハンドラ6およびシングルディスクハン
ドラ7−1,7−2間で直接にSCSIコマンドの転送
を行うので、計算機システムのアクセス速度を高速化で
きる。
As described above, according to the second embodiment, the higher-level device 1, the mirror disk handler 6, and the single disk handler 7-1 are executed via the backup memory 2 without performing the DMA transfer using the DMA command chain. , 7-2 are directly transferred between the SCSI commands, the access speed of the computer system can be increased.

【0044】実施の形態3.図4はこの発明の実施の形
態3によるミラーディスク装置を備えた計算機システム
を示すブロック図であり、図において、9は磁気ディス
ク装置8−1,8−2の動作を制御するSCSIコント
ローラ、25は磁気ディスク装置8−1,8−2固有の
エラーを格納するディスクエラー情報領域である。な
お、図1に示したものと同様のものについては同一符号
を付し重複説明を省略する。
Embodiment 3. FIG. 4 is a block diagram showing a computer system including a mirror disk device according to a third embodiment of the present invention. In the figure, 9 is a SCSI controller for controlling the operations of the magnetic disk devices 8-1, 8-2, and 25. Is a disk error information area for storing errors unique to the magnetic disk devices 8-1 and 8-2. The same components as those shown in FIG. 1 are designated by the same reference numerals, and the duplicate description will be omitted.

【0045】この実施の形態3の計算機システムでは、
ミラーディスクハンドラ6およびシングルディスクハン
ドラ7−1,7−2が、磁気ディスク装置8−1,8−
2の動作エラーの発生を検出すると、図2に示すDMA
コマンドチェインのレポートエントリ20内に磁気ディ
スク装置8−1,8−2の動作エラーの発生を示す情報
を格納し、さらにバックアップメモリ2のディスクエラ
ー情報領域25内に磁気ディスク装置8−1,8−2の
動作エラー発生の情報を書き込むことにより動作エラー
情報が消去されることを防ぐ。
In the computer system according to the third embodiment,
The mirror disk handler 6 and the single disk handlers 7-1 and 7-2 are magnetic disk devices 8-1 and 8-
2 is detected, the DMA shown in FIG.
Information indicating the occurrence of an operation error of the magnetic disk devices 8-1, 8-2 is stored in the report entry 20 of the command chain, and the magnetic disk devices 8-1, 8 are stored in the disk error information area 25 of the backup memory 2. By writing the information indicating that the operation error has occurred, the operation error information is prevented from being erased.

【0046】具体的には、上位装置1がエラー情報を参
照することができない状態、例えば、共通バス4を制御
するDMA制御部5の故障でDMA転送により動作エラ
ーの情報を上位装置1へ通知できない場合、また計算機
システムがダウンしリブートした場合、上位装置1は、
バックアップメモリ2内のディスクエラー情報領域25
内に格納された磁気ディスク装置8−1,8−2の動作
エラーの発生を示す情報を見ることにより動作エラーの
解析を実行できる。
Specifically, in a state where the host device 1 cannot refer to the error information, for example, when the DMA controller 5 controlling the common bus 4 fails, the host device 1 is notified of the operation error information by DMA transfer. If not possible, or if the computer system goes down and reboots, the host system 1
Disk error information area 25 in backup memory 2
The operation error can be analyzed by looking at the information stored in the disk which indicates the occurrence of the operation error of the magnetic disk devices 8-1, 8-2.

【0047】次に動作について説明する。上位装置1か
らDMA転送されたDMAコマンドチェイン内のSCS
Iコマンドをミラーディスクハンドラ6、シングルディ
スクハンドラ7−1,7−2が受信する。ミラーディス
クハンドラ6およびシングルディスクハンドラ7−1,
7−2は、SCSIコントローラ9に対し受信したSC
SIコマンドの実行を命令する。磁気ディスク装置8−
1,8−2の動作エラーを、SCSIコントローラ9ま
たは磁気ディスク装置8−1,8−2自身が検出する。
Next, the operation will be described. SCS in the DMA command chain DMA-transferred from the higher-level device 1
The I command is received by the mirror disk handler 6 and the single disk handlers 7-1 and 7-2. Mirror disk handler 6 and single disk handler 7-1,
7-2 is the SC received by the SCSI controller 9
Instruct execution of SI command. Magnetic disk device 8-
The SCSI controller 9 or the magnetic disk devices 8-1, 8-2 themselves detect the operation errors of 1, 8-2.

【0048】SCSIコントローラ9より動作エラーの
通知があった場合、ミラーディスクハンドラ6またはシ
ングルディスクハンドラ7−1,7−2は、DMAコマ
ンドチェイン内のセンスバッファ18−1,...,1
8−3の領域内に動作エラーの情報を書き込み、レポー
トエントリ20内にデバイスエラーが発生したことを示
すフラグを立て、DMA制御部5を介して、上位装置1
に動作エラーの発生を通知する。
When an operation error is notified from the SCSI controller 9, the mirror disk handler 6 or the single disk handlers 7-1 and 7-2 are operated by the sense buffers 18-1 ,. . . , 1
The operation error information is written in the area 8-3, a flag indicating that a device error has occurred is set in the report entry 20, and the host device 1 is set via the DMA controller 5.
Notify that an operation error has occurred.

【0049】上位装置1は、DMAコマンドチェインの
レポートエントリ20内に動作エラーの発生を示すデバ
イスエラーのフラグが立っていたら、センスバッファ1
8−1,...,18−3を参照し、アプリケーション
プログラム(図示せず)に動作エラーが発生したことを
通知する等のエラー処理を実行する。
If the device error flag indicating the occurrence of the operation error is set in the report entry 20 of the DMA command chain, the host device 1 detects the sense buffer 1
8-1 ,. . . , 18-3, and executes error processing such as notifying an application program (not shown) that an operation error has occurred.

【0050】また、ミラーディスクハンドラ6またはび
シングルディスクハンドラ7−1,7−2は、動作エラ
ーの発生時のSCSIコントローラ9内のレジスタ情
報、あるいは磁気ディスク装置8−1,8−2からの動
作エラーの情報をバックアップメモリ2内のディスクエ
ラー情報領域25内に書き込む。
Further, the mirror disk handler 6 or the single disk handlers 7-1 and 7-2, register information in the SCSI controller 9 when an operation error occurs, or operation from the magnetic disk devices 8-1 and 8-2. The error information is written in the disk error information area 25 in the backup memory 2.

【0051】図5は、DMAコマンドチェインのセンス
バッファ18−1,...,18−3領域内のリトライ
回数分の動作エラー情報を示す図である。ミラーディス
クハンドラ6またはシングルディスクハンドラ7−1,
7−2は動作エラーの発生を通知した際、まずSCSI
コントローラ9を初期化し、規定回数分のリトライを実
行する。規定回数分のリトライにおいても動作エラーが
発生する場合、DMAコマンドチェインのセンスバッフ
ァ18−1,...,18−3の領域内に、図5に示す
ようにリトライ回数分の動作エラー情報を書き込み、ま
たレポートエントリ20領域内にDMA制御部5を介し
エラーフラグを立て、併せてバックアップメモリ2内の
ディスクエラー情報領域25内にセンスバッファ18−
1,...,18−3に書き込んだ情報に加えてタイム
スタンプ26、SCSI装置のIDをさらに付加して書
き込む。
FIG. 5 shows the sense buffers 18-1 ,. . . , 18-3 is a diagram showing operation error information for the number of retries in the area. Mirror disk handler 6 or single disk handler 7-1,
When 7-2 notifies the occurrence of an operation error, first SCSI
The controller 9 is initialized and a specified number of retries are executed. If the operation error occurs even after the specified number of retries, the sense buffers 18-1 ,. . . , 18-3, the operation error information for the number of retries is written in the area of FIG. 5, and an error flag is set in the area of the report entry 20 via the DMA control unit 5, and also in the backup memory 2. In the disk error information area 25, the sense buffer 18-
1,. . . , 18-3, the time stamp 26 and the ID of the SCSI device are further added and written.

【0052】図6は、ディスクエラー情報領域25への
データの書き込み動作を示すフローチャートである。バ
ックアップメモリ2内のディスクエラー情報領域25
は、サイクリック型の記憶領域である。まず、規定回数
分のリトライ動作で得られた動作エラー情報を1組と
し、N組(N≧1の整数)のエラー情報が既に格納され
ているかをチェックする(ステップST1)。もし、N
組の情報が格納されていない場合は、タイムスタンプ2
6を用いて最新エラー情報の次の領域を選択し、最新エ
ラー情報の次の領域にデータを格納する(ステップST
2)。逆に、N組の情報が既に格納されている場合は、
タイムスタンプ26を用いて最も古いエラー情報の領域
を削除し得られた領域にデータを格納する(ステップS
T3)。
FIG. 6 is a flowchart showing the operation of writing data to the disc error information area 25. Disk error information area 25 in backup memory 2
Is a cyclic storage area. First, the operation error information obtained by the retry operation for the specified number of times is set as one set, and it is checked whether or not N sets (N ≧ 1 integer) of error information are already stored (step ST1). If N
Timestamp 2 if the set information is not stored
6 is used to select the area next to the latest error information, and the data is stored in the area next to the latest error information (step ST
2). Conversely, if N sets of information have already been stored,
The oldest error information area is deleted using the time stamp 26 and data is stored in the obtained area (step S
T3).

【0053】ディスクエラー情報領域25内に書き込む
1回分のリトライの動作エラー情報のサイズは固定であ
り、また図5に示すようにN組の磁気ディスクの動作エ
ラー情報をそれぞれn回分格納できる機能を持つ。
The size of the operation error information of one retry written in the disk error information area 25 is fixed, and as shown in FIG. 5, the operation error information of N sets of magnetic disks can be stored n times each. To have.

【0054】以上のように、この実施の形態3によれ
ば、ミラーディスクハンドラ6およびシングルディスク
ハンドラ7−1,7−2は、磁気ディスク装置8−1,
8−2の動作エラーの発生を検出すると、DMAコマン
ドチェインのレポートエントリ20内に磁気ディスク装
置8−1,8−2の動作エラーの発生を示す情報を格納
すると共にバックアップメモリ2内のディスクエラー情
報領域25内に磁気ディスク装置8−1,8−2の動作
エラー発生の履歴情報を書き込む。上位装置1がDMA
コマンドチェイン内のレポートエントリ20を参照でき
ない事態下になった場合においても、ディスクエラー情
報領域25内の情報を参照でき動作エラーの履歴情報が
消去されることなく動作エラーの解析を効率良く実行で
きる。
As described above, according to the third embodiment, the mirror disk handler 6 and the single disk handlers 7-1 and 7-2 are the magnetic disk device 8-1,
When the occurrence of the operation error of 8-2 is detected, the information indicating the occurrence of the operation error of the magnetic disk devices 8-1, 8-2 is stored in the report entry 20 of the DMA command chain and the disk error in the backup memory 2 is stored. In the information area 25, the history information of the operation error occurrence of the magnetic disk devices 8-1, 8-2 is written. Host device 1 is DMA
Even when the report entry 20 in the command chain cannot be referred to, the information in the disk error information area 25 can be referred to and the operation error analysis can be efficiently performed without erasing the operation error history information. .

【0055】実施の形態4.図7は、この発明の実施の
形態4によるミラーディスク装置を備えた計算機システ
ムを示すブロック図であり、図において、10は主記
憶、11はブートローダ(ブートローダ手段)、13は
ミラーディスクドライバである。なお、図1に示したも
のと同様のものについては同一符号を付し重複説明を省
略する。
Embodiment 4 FIG. 7 is a block diagram showing a computer system provided with a mirror disk device according to Embodiment 4 of the present invention. In the figure, 10 is a main memory, 11 is a boot loader (boot loader means), and 13 is a mirror disk driver. . The same components as those shown in FIG. 1 are designated by the same reference numerals, and the duplicate description will be omitted.

【0056】この実施の形態4の計算機システムは、ブ
ートローダ11がミラーディスクドライバ13に指示を
出しミラーディスク装置3内の磁気ディスク装置8−
1,8−2をIPL用の磁気ディスク装置として使用
し、IPL動作中に動作エラーが発生した場合、動作エ
ラー情報をバックアップメモリ2内の所定領域に格納
し、IPLエラーの解明を容易にするものである。
In the computer system according to the fourth embodiment, the boot loader 11 issues an instruction to the mirror disk driver 13 and the magnetic disk device 8-in the mirror disk device 3.
When 1 and 8-2 are used as a magnetic disk device for IPL and an operation error occurs during the IPL operation, the operation error information is stored in a predetermined area in the backup memory 2 to facilitate the clarification of the IPL error. It is a thing.

【0057】上位装置1は、ミラーディスクドライバ1
3を用いて磁気ディスク装置8−1,8−2内に格納さ
れたOS本体のプログラムを主記憶10にロードするブ
ートローダ11を有する。上位装置1、バックアップメ
モリ2、主記憶10及びミラーディスク装置3はそれぞ
れ共通バス4に接続されている。ミラーディスク装置3
には、共通バス4を制御するDMA制御部5と、磁気デ
ィスク装置8−1,8−2の動作を制御するシングルデ
ィスクハンドラ7−1,7−2、及びシングルディスク
ハンドラ7−1,7−2の動作を制御するミラーディス
クハンドラ6を有している。磁気ディスク装置8−1,
8−2は、ミラーディスクハンドラ6によりミラー化さ
れており、各々の磁気ディスク装置8−1,8−2内に
はOS本体のプログラムが格納されている。
The host device 1 is a mirror disk driver 1
3 has a boot loader 11 for loading the OS main body programs stored in the magnetic disk devices 8-1, 8-2 into the main memory 10. The host device 1, the backup memory 2, the main memory 10 and the mirror disk device 3 are connected to a common bus 4, respectively. Mirror disk device 3
Includes a DMA controller 5 for controlling the common bus 4, single disk handlers 7-1 and 7-2 for controlling the operations of the magnetic disk devices 8-1 and 8-2, and single disk handlers 7-1 and 7-2. It has a mirror disk handler 6 for controlling the above operation. Magnetic disk device 8-1,
8-2 is mirrored by the mirror disk handler 6, and a program of the OS main body is stored in each of the magnetic disk devices 8-1 and 8-2.

【0058】ブートローダ11は、システム立ち上げの
手続き動作およびミラーディスクドライバ13の動作を
制御する機能を有する。バックアップメモリ2は上位装
置1及びミラーディスク装置3双方から読み書き可能な
メモリであり、バックアップメモリ2内にはミラーディ
スク管理情報が配置されている。ミラーディスク装置3
はこのミラーディスク管理情報に基づいて磁気ディスク
装置8−1,8−2のミラー化を行う。
The boot loader 11 has a function of controlling the procedure of system startup and the operation of the mirror disk driver 13. The backup memory 2 is a memory that can be read and written by both the higher-level device 1 and the mirror disk device 3, and mirror disk management information is arranged in the backup memory 2. Mirror disk device 3
Mirrors the magnetic disk devices 8-1, 8-2 based on this mirror disk management information.

【0059】次に動作について説明する。図8は、計算
機システム内ブートローダ11のIPL動作を示すフロ
ーチャートである。システム立ち上げ時、上位装置1が
ブートローダ11を起動し、ブートローダ11はミラー
ディスクドライバ13に指示を出す。ミラーディスクド
ライバ13はDMA制御部5を介してミラーディスクハ
ンドラ6に指示を出し磁気ディスク装置8−1,8−2
内に格納されているOS本体のプログラムの読み出し動
作を指示する。読み出されたプログラムは主記憶10内
にロードされる。
Next, the operation will be described. FIG. 8 is a flowchart showing the IPL operation of the boot loader 11 in the computer system. When the system is started up, the higher-level device 1 activates the boot loader 11, and the boot loader 11 issues an instruction to the mirror disk driver 13. The mirror disk driver 13 issues an instruction to the mirror disk handler 6 via the DMA controller 5 and the magnetic disk devices 8-1, 8-2.
Instructing the read operation of the program of the OS main body stored in the OS. The read program is loaded into the main memory 10.

【0060】次に、ブートローダ11により起動される
ミラーディスクドライバ13の動作を図8に基づいて説
明する。ブートローダ11より読み出し要求を受けたミ
ラーディスクドライバ13は、バックアップメモリ2上
に定義されたミラーディスク情報を参照して、ミラーデ
ィスクを構成するシングルディスクが磁気ディスク装置
8−1,8−2であることを認識する(ステップST
4)。次にミラーディスクドライバ13は、磁気ディス
ク装置8−1の動作を制御するシングルディスクハンド
ラ7−1に対して読み出し要求を出す(ステップST
5)。シングルディスクハンドラ7−1は、DMA制御
部5を経由してこの要求を受け取り、磁気ディスク装置
8−1に対して読み出し処理を実行する。この実行結果
は、シングルディスクハンドラ7−1からDMA制御部
5を経由してミラーディスクドライバ13へ送信され
る。
Next, the operation of the mirror disk driver 13 activated by the boot loader 11 will be described with reference to FIG. The mirror disk driver 13, which has received the read request from the boot loader 11, refers to the mirror disk information defined in the backup memory 2, and the single disks constituting the mirror disk are the magnetic disk devices 8-1 and 8-2. Is recognized (step ST
4). Next, the mirror disk driver 13 issues a read request to the single disk handler 7-1 which controls the operation of the magnetic disk device 8-1 (step ST
5). The single disk handler 7-1 receives this request via the DMA control unit 5 and executes a read process for the magnetic disk device 8-1. The execution result is transmitted from the single disk handler 7-1 to the mirror disk driver 13 via the DMA controller 5.

【0061】ミラーディスクドライバ13は、実行結果
がエラーかどうか判断し(ステップST6)、実行結果
が正常であればブートローダ11に正常終了通知をし
(ステップST11)、実行結果がエラーであれば磁気
ディスク装置8−2の制御を行うシングルディスクハン
ドラ7−2に対して読み出し要求を出す(ステップST
7)。シングルディスクハンドラ7−2は、DMA制御
部5を経由してこの要求を受け取り、磁気ディスク装置
8−2に対して再度読み出し処理を実行する。この実行
結果は、シングルディスクハンドラ7−2からDMA制
御部5経由でミラーディスクドライバ13へ送信され
る。ミラーディスクドライバ13は実行結果がエラーか
どうか判断し(ステップST8)、実行結果が正常であ
ればブートローダ11に正常終了の通知を行い(ステッ
プST11)、実行結果がエラーであればバックアップ
メモリ2内にIPLエラー情報を設定し(ステップST
9)、ブートローダ11へ異常終了の通知を行う(ステ
ップST10)。
The mirror disk driver 13 determines whether or not the execution result is an error (step ST6), and if the execution result is normal, notifies the boot loader 11 of normal end (step ST11). A read request is issued to the single disk handler 7-2 that controls the disk device 8-2 (step ST
7). The single disk handler 7-2 receives this request via the DMA control unit 5, and executes the read processing again for the magnetic disk device 8-2. The execution result is transmitted from the single disk handler 7-2 to the mirror disk driver 13 via the DMA controller 5. The mirror disk driver 13 determines whether the execution result is an error (step ST8), and if the execution result is normal, notifies the boot loader 11 of normal termination (step ST11). If the execution result is an error, the backup memory 2 is stored. Set the IPL error information to (step ST
9) The boot loader 11 is notified of the abnormal end (step ST10).

【0062】以上のように、この実施の形態4によれ
ば、ブートローダ11がミラーディスクドライバ13に
指示を出しミラーディスク装置3内の磁気ディスク装置
8−1,8−2をIPL用の磁気ディスク装置として使
用するのでIPL動作を高速化できる。また、ミラーデ
ィスクとしての磁気ディスク装置の一方が動作エラーを
起こした場合でも他方の磁気ディスク装置からIPLの
動作を実行するので、IPL動作エラーの発生を低減で
きる。さらに、IPL動作中に動作エラーが発生した場
合、動作エラー情報をバックアップメモリ2内の所定領
域に格納し、上位装置1はこの動作エラー情報を見てI
PLエラーの原因を容易に解析できる。
As described above, according to the fourth embodiment, the boot loader 11 issues an instruction to the mirror disk driver 13 to set the magnetic disk devices 8-1 and 8-2 in the mirror disk device 3 to the magnetic disk for IPL. Since it is used as a device, the IPL operation can be speeded up. Further, even if one of the magnetic disk devices as the mirror disk causes an operation error, the other magnetic disk device executes the IPL operation, so that the occurrence of the IPL operation error can be reduced. Further, when an operation error occurs during the IPL operation, the operation error information is stored in a predetermined area in the backup memory 2, and the host device 1 sees this operation error information and I
The cause of the PL error can be easily analyzed.

【0063】実施の形態5.図9は、ミラーディスクド
ライバ13とシングルディスクハンドラ7−1,7−2
間で転送されるDMAコマンドチェインを示す図であ
る。なお、図7に示したものと同様のものについては同
一符号を付し重複説明を省略する。
Embodiment 5 FIG. FIG. 9 shows the mirror disk driver 13 and the single disk handlers 7-1 and 7-2.
It is a figure which shows the DMA command chain transferred between. The same components as those shown in FIG. 7 are designated by the same reference numerals, and duplicate description will be omitted.

【0064】実施の形態5の計算機システムでは、上位
装置1とミラーディスク装置3との間でDMA転送され
るDMAコマンドチェインを構成するコマンドエントリ
15内に上位装置1の状態がIPL動作中かOSの動作
中かを示すシステム状態フラグ28をもうけ、IPL動
作中にOSの動作にのみ使用されるDMAコマンドを省
いたDMAコマンドを作成しDMA転送を実行しIPL
の動作時間を短縮するものである。
In the computer system according to the fifth embodiment, whether the status of the higher-level device 1 is the IPL operation state or the OS in the command entry 15 which constitutes the DMA command chain for DMA transfer between the higher-level device 1 and the mirror disk device 3. The system status flag 28 indicating whether the operation is being performed is created, a DMA command is created by omitting the DMA command used only for the operation of the OS during the IPL operation, and the DMA transfer is executed to perform the IPL.
The operating time of is shortened.

【0065】DMAコマンドチェインは、IPL動作に
おいてまたIPL動作が終了しOSが起動された後に、
OSとミラーディスクハンドラ6及びシングルディスク
ハンドラ7−1,7−2間のDMA転送の際にも使用さ
れる。図9において、14はDMA制御用のセットアッ
プエントリ、15はディスクハンドラ制御用のコマンド
エントリ、17はミラーディスクまたはシングルディス
ク制御用のSCSIコマンドブロック、19は入出力デ
ータバッファ、18はセンスバッファ、20はDMAコ
マンドの終了を示すレポートエントリ、センスエントリ
16はセンスバッファ18専用のコマンドエントリであ
る。
The DMA command chain is used in the IPL operation after the IPL operation is finished and the OS is started.
It is also used during DMA transfer between the OS and the mirror disk handler 6 and the single disk handlers 7-1 and 7-2. In FIG. 9, 14 is a setup entry for DMA control, 15 is a command entry for disk handler control, 17 is a SCSI command block for mirror disk or single disk control, 19 is an input / output data buffer, 18 is a sense buffer, and 20 is The report entry indicating the end of the DMA command and the sense entry 16 are command entries dedicated to the sense buffer 18.

【0066】コマンドエントリ15内には、ミラーディ
スクドライバ13またはOSがSCSIコマンドの実行
を要求した時に、ミラーディスクハンドラ6またはシン
グルディスクハンドラ7−1,7−2の動作を制御する
情報を格納する。センスエントリ16内には、ミラーデ
ィスクハンドラ6またはシングルディスクハンドラ7−
1,7−2が設定するSCSIコマンド実行結果を格納
する。28はシステム状態フラグで、セットアップエン
トリ14の直後のコマンドエントリ15にのみ設けられ
る。SCSIコマンドの実行結果がエラーになった場
合、シングルディスクハンドラ7−1,7−2はセンス
バッファ18内に、磁気ディスク装置8−1,8−2の
センスデータを格納する。このセンスデータはOSによ
ってのみ利用される。即ち、センスエントリ16および
センスバッファ18はOSによってのみ使用されるDM
Aコマンドである。
The command entry 15 stores information for controlling the operation of the mirror disk handler 6 or the single disk handlers 7-1 and 7-2 when the mirror disk driver 13 or the OS requests the execution of the SCSI command. In the sense entry 16, the mirror disk handler 6 or the single disk handler 7-
It stores the SCSI command execution result set by 1 and 7-2. 28 is a system status flag, which is provided only in the command entry 15 immediately after the setup entry 14. When the execution result of the SCSI command results in an error, the single disk handlers 7-1 and 7-2 store the sense data of the magnetic disk devices 8-1 and 8-2 in the sense buffer 18. This sense data is used only by the OS. That is, the sense entry 16 and the sense buffer 18 are DMs used only by the OS.
It is an A command.

【0067】次に動作について説明する。図10は、シ
ングルディスクハンドラ7−1,7−2の動作を示すフ
ローチャートである。システムの立ち上げ時、ブートロ
ーダ11によって起動されるミラーディスクドライバ1
3は、磁気ディスク装置8−1,8−2に対するSCS
Iコマンドの実行の要求のため、シングルディスクハン
ドラ7−1,7−2に対して図9に示したDMAコマン
ドチェインを送信する。この時、ミラーディスクドライ
バ13は、DMAコマンドチェイン内のコマンドエント
リ15のシステム状態フラグ28をたて(例えば、ハイ
レベルに設定する。)、システムがIPL中であること
を明示する。
Next, the operation will be described. FIG. 10 is a flowchart showing the operation of the single disk handlers 7-1 and 7-2. Mirror disk driver 1 started by boot loader 11 at system startup
3 is an SCS for the magnetic disk devices 8-1, 8-2
In order to request the execution of the I command, the DMA command chain shown in FIG. 9 is transmitted to the single disk handlers 7-1 and 7-2. At this time, the mirror disk driver 13 sets the system status flag 28 of the command entry 15 in the DMA command chain (for example, sets it to a high level) to clearly indicate that the system is in IPL.

【0068】シングルディスクハンドラ7−1,7−2
は、DMA制御部5経由で受信したDMAコマンドチェ
インを解析し(ステップST12)、各々シングルディ
スクハンドラ7−1,7−2が制御対象の磁気ディスク
装置8−1,8−2に対してSCSIコマンドブロック
17内のSCSIコマンドを実行する(ステップST1
3)。SCSIコマンドがエラー終了した時(ステップ
ST14)、シングルディスクハンドラ7−1,7−2
は、コマンドエントリ15内のシステム状態フラグ28
を参照する(ステップST15)。参照の結果IPL中
でなければ、磁気ディスク装置8−1,8−2から抽出
したセンスデータをセンスバッファ18内に格納する
(ステップST16)。もし、リトライする場合は(ス
テップST17)、同じSCSIコマンドを再度実行す
る(ステップST13)。
Single disk handlers 7-1 and 7-2
Analyzes the DMA command chain received via the DMA control unit 5 (step ST12), and the single disk handlers 7-1 and 7-2 respectively send SCSI commands to the magnetic disk devices 8-1 and 8-2 to be controlled. Execute the SCSI command in block 17 (step ST1
3). When the SCSI command ends in error (step ST14), the single disk handlers 7-1 and 7-2
Is the system status flag 28 in the command entry 15.
Is referred to (step ST15). If it is not during the IPL as a result of the reference, the sense data extracted from the magnetic disk devices 8-1, 8-2 is stored in the sense buffer 18 (step ST16). If retrying (step ST17), the same SCSI command is executed again (step ST13).

【0069】上位装置1がIPL動作中でかつリトライ
する場合は(ステップST17)、同SCSIコマンド
を再度実行する(ステップST13)。リトライしない
場合は、SCSIコマンド実行結果をDMAコマンドチ
ェイン内のセンスエントリ16内に設定して、当該DM
Aコマンドチェインをミラーディスクドライバ13また
はOSに送信する(ステップST18)。IPL動作中
は、DMAコマンドチェイン内のセンスエントリ16お
よびセンスバッファ18のDMAコマンドは使用されな
いので、このDMAコマンドを省いたDMAコマンドチ
ェインをブートローダ11は生成し、DMA転送を行い
磁気ディスク装置8−1,8−2内に格納されているO
Sのプログラムをブートする。
When the host device 1 is in the IPL operation and retries (step ST17), the SCSI command is executed again (step ST13). When not retrying, the SCSI command execution result is set in the sense entry 16 in the DMA command chain, and the DM
The A command chain is transmitted to the mirror disk driver 13 or the OS (step ST18). During the IPL operation, since the DMA commands of the sense entry 16 and the sense buffer 18 in the DMA command chain are not used, the boot loader 11 generates a DMA command chain omitting this DMA command, performs DMA transfer, and performs the magnetic disk drive 8-. O stored in 1, 8-2
Boot the S program.

【0070】以上のように、この実施の形態5によれ
ば、上位装置1とミラーディスク装置3間で転送される
DMAコマンドチェインに、上位装置1の状態がIPL
中かOS運用中かを判断できるシステム状態フラグ28
を設け、上位装置1内のブートローダ11がIPL動作
中であれば、DMAコマンドチェイン内のOS用に使用
する部分を除いたDMAコマンドチェインのDMA転送
を高速に実行しIPLの動作時間を短縮できる。
As described above, according to the fifth embodiment, the state of the higher-level device 1 is IPLed in the DMA command chain transferred between the higher-level device 1 and the mirror disk device 3.
System status flag 28 that can be used to determine whether the OS is operating or operating
If the boot loader 11 in the higher-level device 1 is in the IPL operation, the DMA transfer of the DMA command chain excluding the part used for the OS in the DMA command chain can be executed at high speed to shorten the IPL operation time. .

【0071】実施の形態6.図11は、この発明の実施
の形態6によるミラーディスク装置を備えた計算機シス
テムの動作を示すフローチャートである。なお、図7に
示したものと同様のものについては同一符号を付し重複
説明を省略する。
Embodiment 6 FIG. FIG. 11 is a flow chart showing the operation of the computer system including the mirror disk device according to the sixth embodiment of the present invention. The same components as those shown in FIG. 7 are designated by the same reference numerals, and duplicate description will be omitted.

【0072】この実施の形態6の計算機システムでは、
ユーザがIPLディスク装置として指定したミラーディ
スク内の磁気ディスク装置8−1,8−2が、バックア
ップメモリ2内に定義されているミラーディスク管理情
報と一致しなかった場合、ユーザが指定したIDと同一
のIDを持つ磁気ディスク装置をIPLディスク装置と
見なしてIPL動作エラーの発生を回避しIPL動作エ
ラーの発生回数を低減するものであり、またIPLディ
スクの情報をバックアップメモリ2内に保存してIPL
ディスク装置の設定ミスによるIPLエラーの発生の原
因を解析し易くするものである。
In the computer system according to the sixth embodiment,
When the magnetic disk devices 8-1 and 8-2 in the mirror disk designated by the user as the IPL disk device do not match the mirror disk management information defined in the backup memory 2, the ID designated by the user is used. The magnetic disk device having the same ID is regarded as an IPL disk device to avoid the occurrence of an IPL operation error and reduce the number of occurrences of the IPL operation error, and the information of the IPL disk is stored in the backup memory 2. IPL
It is easy to analyze the cause of the occurrence of the IPL error due to the setting error of the disk device.

【0073】次に動作について説明する。ブートローダ
11からの読み出し要求を受信したミラーディスクドラ
イバ13は、要求を受けたミラーディスクである磁気デ
ィスク装置8−1または8−2がバックアップメモリ2
内に定義されたミラーディスク情報内にミラーディスク
として定義されているかどうか判断する(ステップST
19およびステップST20)。定義されていれば図8
に示したステップST7以降の処理を実行する。
Next, the operation will be described. In the mirror disk driver 13 that has received the read request from the boot loader 11, the magnetic disk device 8-1 or 8-2 that is the mirror disk that has received the request is the backup memory 2
It is determined whether or not it is defined as a mirror disk in the mirror disk information defined in (step ST
19 and step ST20). Figure 8 if defined
The processing after step ST7 shown in is executed.

【0074】定義されていないことが判明したら、ブー
トローダ11から読み出し要求を受けた磁気ディスク装
置8−1または8−2と同一SCSIの認識番号(I
D)を持つ磁気ディスク装置をシングルディスクとして
認識する(ステップST21)。ここでは便宜上、該シ
ングルディスクを磁気ディスク装置8−1とする。
If it is found that the ID is not defined, the same SCSI identification number (I as the magnetic disk unit 8-1 or 8-2 that received the read request from the boot loader 11).
The magnetic disk device having D) is recognized as a single disk (step ST21). Here, for convenience, the single disk is referred to as a magnetic disk device 8-1.

【0075】次にミラーディスクドライバ13は磁気デ
ィスク装置8−1を制御するシングルディスクハンドラ
7−1に対して読み出し要求を出す(ステップST2
2)。シングルディスクハンドラ7−1は、DMA制御
部5を経由してこの要求を受け取り、磁気ディスク装置
8−1に対して読み出し動作を実行する。実行結果はシ
ングルディスクハンドラ7−1からDMA制御部5経由
でミラーディスクドライバ13へ送信される。
Next, the mirror disk driver 13 issues a read request to the single disk handler 7-1 which controls the magnetic disk device 8-1 (step ST2).
2). The single disk handler 7-1 receives this request via the DMA controller 5 and executes a read operation to the magnetic disk device 8-1. The execution result is transmitted from the single disk handler 7-1 to the mirror disk driver 13 via the DMA controller 5.

【0076】ミラーディスクドライバ13は、磁気ディ
スク装置8−1からデータを読み出したことをIPLデ
ィスク情報として設定し(ステップST23)、次に実
行結果がエラーかどうか判断する(ステップST2
4)。実行結果が正常であればブートローダ11へ正常
終了の通知を行い(ステップST25)、実行結果がエ
ラーであればバックアップメモリ2内にIPLエラー情
報を設定し(ステップST26)、ブートローダ11に
対し異常終了の通知を行う(ステップST27)。
The mirror disk driver 13 sets data read from the magnetic disk device 8-1 as IPL disk information (step ST23), and then determines whether the execution result is an error (step ST2).
4). If the execution result is normal, the boot loader 11 is notified of the normal end (step ST25). If the execution result is an error, IPL error information is set in the backup memory 2 (step ST26), and the boot loader 11 ends abnormally. Is notified (step ST27).

【0077】以上のように、この実施の形態6によれ
ば、ユーザがIPLディスク装置として指定したミラー
ディスク内の磁気ディスク装置が、バックアップメモリ
2内に定義されているミラーディスク管理情報と一致し
なかった場合、ユーザが指定したIDと同一のIDを持
つ磁気ディスク装置をIPLディスク装置と見なしてI
PLの動作を行うので、IPL動作エラーの発生を回避
できる。また、IPLディスクの情報をバックアップメ
モリ2内に保存するので、IPL動作エラーの原因を容
易に解析でき、ユーザはIPLディスク装置の設定ミス
によるIPLエラーの発生を防ぐことができる。
As described above, according to the sixth embodiment, the magnetic disk device in the mirror disk designated by the user as the IPL disk device matches the mirror disk management information defined in the backup memory 2. If not, the magnetic disk device having the same ID as the ID specified by the user is regarded as an IPL disk device and I
Since the PL operation is performed, the occurrence of an IPL operation error can be avoided. Moreover, since the information of the IPL disk is stored in the backup memory 2, the cause of the IPL operation error can be easily analyzed, and the user can prevent the occurrence of the IPL error due to the setting error of the IPL disk device.

【0078】[0078]

【発明の効果】以上のように、請求項1記載の発明によ
れば、複数のSCSIコマンドを1回のDMA転送で送
信でき、かつ複数のSCSIコマンドの実行結果を1つ
のDMAコマンドチェイン内に格納するように構成した
ので、上位装置と磁気ディスク装置間のDMA転送に要
する時間を短縮化でき計算機システムでのディスクアク
セス時間を高速化できる効果がある。
As described above, according to the first aspect of the present invention, a plurality of SCSI commands can be transmitted by one DMA transfer, and the execution results of a plurality of SCSI commands can be stored in one DMA command chain. Since it is configured to store the data, there is an effect that the time required for the DMA transfer between the host device and the magnetic disk device can be shortened and the disk access time in the computer system can be speeded up.

【0079】請求項2記載の発明によれば、複数のSC
SIコマンドを1回のDMA転送で送信でき、かつ複数
のSCSIコマンドの実行結果を1つのDMAコマンド
チェイン内に格納するように構成したので、上位装置と
ミラーディスク装置間のDMA転送に要する時間を短縮
化でき計算機システムでのディスクアクセス時間を高速
化できる効果がある。
According to the invention described in claim 2, a plurality of SCs are provided.
Since the SI command can be transmitted by one DMA transfer and the execution results of a plurality of SCSI commands are stored in one DMA command chain, the time required for the DMA transfer between the host device and the mirror disk device can be reduced. This is effective in shortening the disk access time in the computer system.

【0080】請求項3記載の発明によれば、上位装置と
ミラーディスク装置間のSCSIコマンドの転送をDM
A制御部を介することなくバックアップメモリを介して
実行できるように構成したので、計算機システムのディ
スクアクセス動作を高速化できる効果がある。
According to the third aspect of the present invention, the transfer of SCSI commands between the host device and the mirror disk device is performed by DM.
Since it can be executed via the backup memory without using the A control unit, there is an effect that the disk access operation of the computer system can be speeded up.

【0081】請求項4記載の発明によれば、バックアッ
プメモリにSCSIコマンドの実行エラーの情報を記憶
させるように構成したので、計算機システムがリブート
した場合でありDMAコマンドチェイン内に格納された
動作エラー情報を上位装置が参照できない場合でも、上
位装置はバックアップメモリを参照することで動作エラ
ーの情報を入手でき、動作エラーの解析を効率よく実行
できる効果がある。
According to the fourth aspect of the present invention, since the information of the SCSI command execution error is stored in the backup memory, the operation error stored in the DMA command chain when the computer system is rebooted is stored. Even if the higher-level device cannot refer to the information, the higher-level device can obtain the information on the operation error by referring to the backup memory, and the operation error can be efficiently analyzed.

【0082】請求項5記載の発明によれば、ミラーディ
スクからIPLの動作を実行する時ミラーディスクを2
台のシングルディスクとして認識し、ミラーディスク装
置のシングルディスクハンドラを起動するように構成し
たので、IPLの動作時間を短縮できる効果がある。ま
た、何らかの原因でシステムが異常終了し、ミラーディ
スクを構成する磁気ディスク装置のうち1台のファイル
システムが破壊された状態でIPL動作を実行した場合
でも、ミラーディスクとしての整合性がないことに基づ
くIPL動作エラーの発生を防ぐことができ、またIP
L動作中に発生した動作エラーの情報をバックアップメ
モリ内に保存するようにしたのでIPLの動作エラーの
発生原因を容易に解析できる効果がある。
According to the invention described in claim 5, when the IPL operation is executed from the mirror disk, the mirror disk is set to 2
Since the single disk handler of the mirror disk device is recognized as one single disk, the operation time of the IPL can be shortened. In addition, even if the system is abnormally terminated for some reason and one file system of the magnetic disk devices constituting the mirror disk is destroyed and the IPL operation is executed, the consistency as the mirror disk is not obtained. It is possible to prevent the occurrence of IPL operation error based on
Since the information of the operation error generated during the L operation is stored in the backup memory, there is an effect that the cause of the IPL operation error can be easily analyzed.

【0083】請求項6記載の発明によれば、上位装置と
ミラーディスク装置間でDMA転送されるDMAコマン
ドチェイン内に、上位装置の状態がIPL中かOS運用
中かを判断できるシステム状態フラグを設け、上位装置
がIPLの動作中であれば、DMAコマンドチェイン内
のOS専用に用いるDMAコマンドの部分を除いてDM
A転送を行うように構成したので、IPLの動作時間を
短縮できる効果がある。
According to the sixth aspect of the present invention, in the DMA command chain that is DMA-transferred between the host device and the mirror disk device, a system status flag for determining whether the host device status is IPL or OS operating is set. If the host device is in IPL operation, the DM command is used except for the DMA command part used exclusively for the OS in the DMA command chain.
Since the A transfer is performed, the operation time of the IPL can be shortened.

【0084】請求項7記載の発明によれば、ユーザによ
りIPL動作の磁気ディスク装置として指定されたミラ
ーディスクが、バックアップメモリ内にあるミラーディ
スク管理情報でミラーディスクとして定義されていない
場合、該ミラーディスクと同一SCSI機器のIDを持
つシングルディスク装置からIPLの動作を実行し、且
つIPL動作の磁気ディスク装置の情報をバックアップ
メモリ内に保存するように構成したので、ユーザのID
設定ミスによるIPLの動作エラーの発生を防ぐことが
できる効果がある。また、シングルの磁気ディスク装置
からIPL操作を実行したことをIPLディスク情報と
してバックアップメモリ内に保存し、かつIPL動作の
完了後、ミラーディスクに依存したアプリケーションが
該情報を参照することで、アプリケーションプログラム
が存在しないミラーディスクにアクセスすることで発生
する動作エラーを未然に防ぐことができる効果がある。
According to the invention described in claim 7, when the mirror disk designated by the user as the magnetic disk device for the IPL operation is not defined as the mirror disk in the mirror disk management information in the backup memory, the mirror disk The IPL operation is performed from the single disk device having the same SCSI device ID as the disk, and the information of the magnetic disk device in the IPL operation is stored in the backup memory.
It is possible to prevent the occurrence of an IPL operation error due to a setting error. In addition, the execution of the IPL operation from the single magnetic disk device is stored in the backup memory as IPL disk information, and after the IPL operation is completed, the application dependent on the mirror disk refers to the information, so that the application program There is an effect that it is possible to prevent an operation error caused by accessing a mirror disk that does not exist.

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

【図1】 この発明の実施の形態1によるミラーディス
ク装置を備えた計算機システムを示すブロック図であ
る。
FIG. 1 is a block diagram showing a computer system including a mirror disk device according to a first embodiment of the present invention.

【図2】 ミラーディスク装置を備えた計算機システム
で用いられるDMAコマンドチェインのテンプレートを
示す図である。
FIG. 2 is a diagram showing a template of a DMA command chain used in a computer system including a mirror disk device.

【図3】 この発明の実施の形態2によるミラーディス
ク装置を備えた計算機システムを示すブロック図であ
る。
FIG. 3 is a block diagram showing a computer system including a mirror disk device according to a second embodiment of the present invention.

【図4】 この発明の実施の形態3によるミラーディス
ク装置を備えた計算機システムを示すブロック図であ
る。
FIG. 4 is a block diagram showing a computer system including a mirror disk device according to a third embodiment of the present invention.

【図5】 DMAコマンドチェインのセンスバッファ領
域内のリトライ回数分の動作エラー情報を示す図であ
る。
FIG. 5 is a diagram showing operation error information for the number of retries in the sense buffer area of the DMA command chain.

【図6】 ディスクエラー情報領域へのデータの書き込
み動作を示すフローチャートである。
FIG. 6 is a flowchart showing a data write operation to a disc error information area.

【図7】 この発明の実施の形態4によるミラーディス
ク装置を備えた計算機システムを示すブロック図であ
る。
FIG. 7 is a block diagram showing a computer system including a mirror disk device according to a fourth embodiment of the present invention.

【図8】 計算機システム内のブートローダのIPL動
作を示すフローチャートである。
FIG. 8 is a flowchart showing an IPL operation of a boot loader in the computer system.

【図9】 ミラーディスクドライバとシングルディスク
ハンドラ間で転送されるDMAコマンドチェインを示す
図である。
FIG. 9 is a diagram showing a DMA command chain transferred between a mirror disk driver and a single disk handler.

【図10】 シングルディスクハンドラの動作を示すフ
ローチャートである。
FIG. 10 is a flowchart showing the operation of a single disk handler.

【図11】 この発明の実施の形態6によるミラーディ
スク装置を備えた計算機システムの動作を示すフローチ
ャートである。
FIG. 11 is a flowchart showing the operation of a computer system including a mirror disk device according to the sixth embodiment of the present invention.

【図12】 ミラーディスク装置を備えた従来の計算機
システムを示すブロック図である。
FIG. 12 is a block diagram showing a conventional computer system including a mirror disk device.

【図13】 ミラーディスク装置を備えた従来の計算機
システムで用いられるDMAコマンドを示す図である。
FIG. 13 is a diagram showing a DMA command used in a conventional computer system including a mirror disk device.

【図14】 ミラーディスク装置を備えた従来の他の計
算機システムを示すブロック図である。
FIG. 14 is a block diagram showing another conventional computer system including a mirror disk device.

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

1 上位装置(上位装置手段)、2 バックアップメモ
リ(メモリ手段)、5DMA制御部(DMA転送制御手
段)、6 ミラーディスクハンドラ(ミラーディスク制
御手段)、7−1,7−2 シングルディスクハンドラ
(シングルディスク制御手段)、8−1,8−2 磁気
ディスク装置、11 ブートローダ(ブートローダ手
段)。
1 upper device (upper device means), 2 backup memory (memory means), 5 DMA control section (DMA transfer control means), 6 mirror disk handler (mirror disk control means), 7-1, 7-2 single disk handler (single disk control) Means), 8-1, 8-2 magnetic disk device, 11 boot loader (boot loader means).

フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06F 13/12 340 G06F 13/12 340D Continuation of front page (51) Int.Cl. 6 Identification number Office reference number FI Technical display location G06F 13/12 340 G06F 13/12 340D

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 複数の磁気ディスク装置と、前記複数の
磁気ディスク装置に対するアクセス命令である複数のS
CSIコマンドを含むDMAコマンドチェインを生成す
る上位装置手段と、前記複数の磁気ディスク装置の動作
を制御する複数のシングルディスク制御手段と、前記上
位装置手段との間でDMAコマンドチェインのDMA転
送動作を制御し、前記DMAコマンドチェイン内のデー
タに従って前記シングルディスク制御手段の動作を制御
するDMA転送制御手段とを備えた計算機システム。
1. A plurality of magnetic disk devices and a plurality of S which are access commands to the plurality of magnetic disk devices.
A host device means for generating a DMA command chain including a CSI command, a plurality of single disk control means for controlling the operations of the plurality of magnetic disk devices, and a DMA transfer operation of the DMA command chain between the host device means. And a DMA transfer control means for controlling the operation of the single disk control means according to the data in the DMA command chain.
【請求項2】 複数の磁気ディスク装置と、前記複数の
磁気ディスク装置に対するアクセス命令である複数のS
CSIコマンドを含むDMAコマンドチェインを生成す
る上位装置手段と、前記複数の磁気ディスク装置のうち
2つの磁気ディスク装置をミラーディスク装置と設定し
ミラー制御を行うミラーディスク制御手段と、前記複数
の磁気ディスク装置の動作を制御する複数のシングルデ
ィスク制御手段と、前記上位装置手段との間で前記DM
AコマンドチェインのDMA転送動作を制御し、前記D
MAコマンドチェインに従って前記ミラーディスク制御
手段および前記シングルディスク制御手段の動作を制御
するDMA転送制御手段とを備え、1回のDMAコマン
ドチェインのDMA転送動作で前記複数のSCSIコマ
ンドを転送する計算機システム。
2. A plurality of magnetic disk devices and a plurality of S which are access commands to the plurality of magnetic disk devices.
Higher-order device means for generating a DMA command chain including a CSI command, mirror disk control means for setting two magnetic disk devices of the plurality of magnetic disk devices as mirror disk devices and performing mirror control, and the plurality of magnetic disks. The DM is provided between a plurality of single disk control means for controlling the operation of the device and the host device means.
The DMA transfer operation of the A command chain is controlled to
A computer system comprising DMA transfer control means for controlling the operations of the mirror disk control means and the single disk control means according to an MA command chain, and transferring the plurality of SCSI commands in one DMA transfer operation of the DMA command chain.
【請求項3】 上位装置手段、ミラーディスク制御手
段、およびシングルディスク制御手段から直接アクセス
可能であり、前記上位装置手段、前記ミラーディスク制
御手段、および前記シングルディスク制御手段間のアク
セスの排他制御を行うフラグを持ち、DMA転送制御手
段を介さずにSCSIコマンドを送受信するためのメモ
リ手段を備えた請求項2記載の計算機システム。
3. A flag which is directly accessible from the host device means, the mirror disk control means, and the single disk control means, and a flag for performing exclusive control of access among the host device means, the mirror disk control means, and the single disk control means. 3. The computer system according to claim 2, further comprising a memory unit for transmitting and receiving a SCSI command without going through the DMA transfer control unit.
【請求項4】 ミラーディスク制御手段およびシングル
ディスク制御手段が複数の磁気ディスク装置におけるS
CSIコマンド実行時の動作エラーを検出した際、前記
ミラーディスク制御手段および前記シングルディスク制
御手段が生成する動作エラー情報をDMA転送制御手段
を介さず受信し記憶し、上位装置手段からアクセス可能
なメモリ手段を備えた請求項2記載の計算機システム。
4. The mirror disk control means and the single disk control means are S in a plurality of magnetic disk devices.
When an operation error at the time of executing a CSI command is detected, the operation error information generated by the mirror disk control means and the single disk control means is received and stored without going through the DMA transfer control means, and is accessible by the host device means. The computer system according to claim 2, further comprising:
【請求項5】 上位装置手段からアクセス可能なメモリ
手段と、ミラーディスク装置のうち一方の磁気ディスク
装置をイニシヤル・プログラム・ロード(IPL)動作
を実行する磁気ディスク装置として設定しその動作を制
御し、IPL動作を実行する前記磁気ディスク装置内で
動作エラーが発生した場合、前記ミラーディスク装置の
うち他方の磁気ディスク装置をIPL動作を実行する磁
気ディスク装置と設定する切替制御を行うブートローダ
手段を有し、シングルディスク制御手段はIPL動作を
実行する前記磁気ディスク装置内で動作エラーが発生し
た場合、エラー情報を前記メモリ手段内に書き込むこと
を特徴とする請求項2記載の計算機システム。
5. A memory means accessible from a host device means, and one magnetic disk device of the mirror disk devices is set as a magnetic disk device for executing an initial program load (IPL) operation, and the operation is controlled. A boot loader means for performing switching control for setting the other magnetic disk device of the mirror disk devices as the magnetic disk device performing the IPL operation when an operation error occurs in the magnetic disk device performing the IPL operation. 3. The computer system according to claim 2, wherein the single disk control means writes error information in the memory means when an operation error occurs in the magnetic disk device that executes the IPL operation.
【請求項6】 上位装置手段は、計算機システムがIP
L動作中かを判断しIPL動作中であれば、DMAコマ
ンドチェイン内の所定の領域にIPL動作中であること
を示すデータをフラグに書き込み、さらに前記DMAコ
マンドチェイン内のIPL動作に必要とされるコマンド
のみからなるDMAコマンドチェインを発行しDMA転
送制御手段との間で前記DMAコマンドチェインのDM
A転送を実行し、ミラーディスク制御手段およびシング
ルディスク制御手段は前記フラグを参照しIPL動作を
行うことを特徴とする請求項5記載の計算機システム。
6. The host system means is a computer system IP
If it is during the LL operation and if the IPL operation is in progress, data indicating that the IPL operation is in progress is written in a flag in a predetermined area in the DMA command chain, and further, it is necessary for the IPL operation in the DMA command chain. A DMA command chain consisting of only the commands to be issued, and DM of the DMA command chain with the DMA transfer control means.
6. The computer system according to claim 5, wherein A transfer is executed, and the mirror disk control means and the single disk control means perform an IPL operation by referring to the flag.
【請求項7】 上位装置手段は、ブートローダ手段がI
PLの動作を開始する際、IPL動作の対象である磁気
ディスク装置がミラーディスク装置として定義されてい
るかをチエックし、もし定義されていない場合、前記ブ
ートローダ手段に対してIPL動作の対象である前記磁
気ディスク装置を前記ミラーディスク装置として定義す
ることを特徴とする請求項5記載の計算機システム。
7. The higher-level device means is boot loader means I
When the PL operation is started, a check is made as to whether the magnetic disk device that is the target of the IPL operation is defined as a mirror disk device, and if it is not defined, the boot loader means that is the target of the IPL operation is 6. The computer system according to claim 5, wherein a magnetic disk device is defined as the mirror disk device.
JP05986196A 1996-03-15 1996-03-15 Computer system Expired - Fee Related JP3439906B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05986196A JP3439906B2 (en) 1996-03-15 1996-03-15 Computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05986196A JP3439906B2 (en) 1996-03-15 1996-03-15 Computer system

Publications (2)

Publication Number Publication Date
JPH09251352A true JPH09251352A (en) 1997-09-22
JP3439906B2 JP3439906B2 (en) 2003-08-25

Family

ID=13125392

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05986196A Expired - Fee Related JP3439906B2 (en) 1996-03-15 1996-03-15 Computer system

Country Status (1)

Country Link
JP (1) JP3439906B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6904481B1 (en) * 2001-04-12 2005-06-07 Lsi Logic Corporation Bus sequence operation with automatic linking from current I/O information to subsequent I/O information

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6904481B1 (en) * 2001-04-12 2005-06-07 Lsi Logic Corporation Bus sequence operation with automatic linking from current I/O information to subsequent I/O information

Also Published As

Publication number Publication date
JP3439906B2 (en) 2003-08-25

Similar Documents

Publication Publication Date Title
US6343335B1 (en) System for repositioning an I/O device to a predetermined position to retry a program without knowledge of which part of the program caused the retry
US6016402A (en) Method for integrating removable media disk drive into operating system recognized as fixed disk type and modifying operating system to recognize as floppy disk type
EP0811905B1 (en) Storage control and computer system using the same
JP4518672B2 (en) System backup and restoration
US5359713A (en) Method and apparatus for enhancing synchronous I/O in a computer system with a non-volatile memory and using an acceleration device driver in a computer operating system
US5694600A (en) Methods and apparatus for booting a computer having a removable media disk drive
US6052795A (en) Recovery method and system for continued I/O processing upon a controller failure
US5062042A (en) System for managing data which is accessible by file address or disk address via a disk track map
JP2525122B2 (en) Computer system backup recording method, restoration method and system
EP1274009A2 (en) System and method to enable a legacy BIOS system to boot from a disk that includes EFI GPT partitions
EP1669849A2 (en) Copy controller and method thereof
TW200414041A (en) Method and system for maintaining firmware versions in a data processing system
US6971046B1 (en) System and method for performing input/output diagnostics
JP3260999B2 (en) Control method of disk controller
TW434491B (en) Increasing I/O performance through storage of packetized operational information in local memory
US6336194B1 (en) Program products for repositioning an input/output device without knowledge of current positioning of the device
JP3439906B2 (en) Computer system
US5958066A (en) On-line scanning and maintenance of a disk drive array
US7818627B2 (en) Systems and methods for gathering debug information
JP3951808B2 (en) Hard disk drive subsystem
JPH11143646A (en) Control method for external storage sub-system and external storage sub-system
US7934067B2 (en) Data update history storage apparatus and data update history storage method
US6339799B1 (en) Method of repositioning an I/O device to a predetermined position to retry a program without knowledge of which part of the program caused the retry
JPS628831B2 (en)
JPS5924351A (en) Processing system of fault information

Legal Events

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