JPH06124171A - Redundant disk controller - Google Patents

Redundant disk controller

Info

Publication number
JPH06124171A
JPH06124171A JP4274351A JP27435192A JPH06124171A JP H06124171 A JPH06124171 A JP H06124171A JP 4274351 A JP4274351 A JP 4274351A JP 27435192 A JP27435192 A JP 27435192A JP H06124171 A JPH06124171 A JP H06124171A
Authority
JP
Japan
Prior art keywords
disk device
disk
data
primary
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4274351A
Other languages
Japanese (ja)
Inventor
Naoyuki Nishimura
尚幸 西村
Hiroshi Sakurai
博 桜井
Shigeru Hashimoto
繁 橋本
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP4274351A priority Critical patent/JPH06124171A/en
Publication of JPH06124171A publication Critical patent/JPH06124171A/en
Pending legal-status Critical Current

Links

Abstract

(57)【要約】 (修正有) 【目的】 二重化ディスク制御装置で副ディスクを正常
に維持するため、正ディスクの正常動作中や休止中に副
ディスクの正常性を確認、修復するものを提供。 【構成】 二重化ディスク制御装置は、正ディスク装置
4aと副ディスク装置4bとが接続され、書き込み指令
に応じて外部からのデータを正ディスク装置4aと副デ
ィスク装置4bの双方に書込み、読出し指令に応じて前
記正ディスク装置から読出したデータを外部に送出する
二重化ディスク装置において、読出し指令が与えられた
際に、正ディスク装置と副ディスク装置双方からデータ
を読出し、副ディスク装置から読出したデータの外部へ
の送出を抑止する制御手段1と、該手段1により読出し
た前記副ディスク装置4bからの正常性を検査する検査
手段2とにより構成される。処理装置(CPU)3がプ
ログラムに従って所定の処理を行う。
(57) [Summary] (Corrected) [Purpose] To maintain the secondary disk in the redundant disk control device normally, provide the one that confirms the normality of the secondary disk and restores it during normal operation or suspension of the primary disk. . The dual disk control device has a primary disk device 4a and a secondary disk device 4b connected to each other, and writes external data to both the primary disk device 4a and the secondary disk device 4b in response to a write command and issues a read command. In response to the read command given to the duplicated disk device that sends the data read from the primary disk device to the outside, the data is read from both the primary disk device and the secondary disk device and the data read from the secondary disk device is read. It is composed of a control means 1 for suppressing transmission to the outside and an inspection means 2 for inspecting the normality from the secondary disk device 4b read by the means 1. The processing device (CPU) 3 performs a predetermined process according to a program.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えば金融の端末機と
して使用される二重化ディスク制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a dual disk controller used as a financial terminal, for example.

【0002】近年、コンピュータシステムの高性能化、
高信頼性化が求められているが、蓄積された大量のデー
タを記憶する記憶装置の信頼性の向上に対する要望は特
に高い。
In recent years, high performance of computer systems,
Although high reliability is required, there is a particularly high demand for improvement in reliability of a storage device that stores a large amount of accumulated data.

【0003】かかる要求に応えるべく業務に使用する正
ディスク装置と予備装置としての副ディスク装置とを備
えた二重化ディスク制御装置を構成し、正ディスク装置
に障害が発生した場合に副ディスク装置に切り替えて業
務を継続することにより信頼性を向上させたシステムが
実用に供されている。
In order to meet such a demand, a duplicated disk control device comprising a primary disk device used for business and a secondary disk device as a spare device is constructed, and when a failure occurs in the primary disk device, it is switched to the secondary disk device. The system has been put to practical use with improved reliability by continuing the work.

【0004】しかし、正ディスク装置の稼働中における
副ディスク装置自体の信頼性のチェックに対する配慮は
乏しかった。
However, little consideration was given to checking the reliability of the secondary disk device itself during operation of the primary disk device.

【0005】そこで副ディスク装置自体の信頼性を向上
させ、システム全体として信頼性を高めることができる
ものが求められている。
Therefore, there is a demand for a device which can improve the reliability of the sub disk device itself and the reliability of the entire system.

【0006】[0006]

【従来の技術】従来の二重化ディスク制御装置は、ライ
ト時には同一のデータを正副2台のディスク装置に書き
込み、リードのときには1台の正ディスク装置からデー
タを読み出して処理に使用していた。従って、副ディス
ク装置にはデータの書き込みのみが行われており、正デ
ィスク装置の正常動作中は副ディスク装置のデータ読み
出して正常性をチェックすることはなかった。
2. Description of the Related Art In a conventional dual disk controller, the same data is written in two primary and secondary disk devices at the time of writing, and the data is read from one primary disk device at the time of reading and used for processing. Therefore, only data is written to the secondary disk device, and normality is not checked by reading data from the secondary disk device during normal operation of the primary disk device.

【0007】このため、正ディスク装置が正常に動作し
ている間は、副ディスク装置に異常が発生しても気付か
ずに運用を継続し、正ディスク装置に障害が発生し副デ
ィスク装置に切替えた時に初めて副ディスク装置の異常
が発見されるという状況であった。
For this reason, while the primary disk device is operating normally, operation continues without being noticed even if an abnormality occurs in the secondary disk device, and the primary disk device fails and switches to the secondary disk device. The situation was that the abnormality of the secondary disk device was discovered for the first time.

【0008】従って、副ディスク装置の異常の発見は不
意で、対処する方法が無く、異常発生時の業務処理への
影響や顧客の信頼性に対する影響は非常に大きかった。
Therefore, the abnormality of the secondary disk device is unexpectedly found, and there is no way to cope with it, and the influence on the business process and the reliability of the customer when the abnormality occurs are very large.

【0009】このための対策としては、日によって、又
は曜日によって正副のディスク装置を交換して使う等の
処置がなされているに過ぎず、対策としては不十分であ
った。
As a countermeasure for this, only the measures such as exchanging and using the primary and secondary disk units are used depending on the day or the day of the week, which is not sufficient.

【0010】また、従来の正ディスク装置の稼働中にお
ける副ディスク装置への書込みは、正ディスク装置と同
一アドレス・同一のレングスであるので、使用頻度の高
い部分の書込み更新しか行われておらず、ディスク装置
の各セクタ全般にわたるチェックが行われないという問
題点があった。
Further, since the writing to the secondary disk device during the operation of the conventional primary disk device has the same address and the same length as the primary disk device, only the writing and updating of the frequently used part is performed. However, there is a problem that the check is not performed for all sectors of the disk device.

【0011】[0011]

【発明が解決しようとする課題】上記のように従来技術
では正ディスク装置の稼働間における副ディスク装置の
正常性を確認する手段がない。または書込みは使用頻度
の多い部分に限定されるためディスク全般にわたる書込
み更新は行われない等の問題点があり改善が望まれてい
る。
As described above, the prior art has no means for confirming the normality of the secondary disk device during the operation of the primary disk device. Further, since writing is limited to a portion that is frequently used, there is a problem that writing and updating is not performed on the entire disk, and improvement is desired.

【0012】本発明はかかる問題点を解決するためにな
されたものである。
The present invention has been made to solve the above problems.

【0013】その目的は、副ディスク装置を常に正常な
状態に維持するため、正ディスク装置の正常動作中や正
ディスク装置の休止間に副ディスク装置の正常性を確
認、修復し、信頼性の高い二重化ディスク制御装置を提
供することにある。
The purpose thereof is to maintain the secondary disk device in a normal state at all times, so that the normality of the secondary disk device can be confirmed and restored during normal operation of the primary disk device or during suspension of the primary disk device to ensure reliability. It is to provide a high-duplex disk controller.

【0014】[0014]

【課題を解決するための手段】図1は本発明にかかる二
重化ディスク制御装置の原理説明図である。
FIG. 1 is a diagram for explaining the principle of a dual disk control device according to the present invention.

【0015】本発明の二重化ディスク制御装置は、上記
目的を達成するため、正ディスク装置4aと副ディスク
装置4bとが接続され、書き込み指令に応じて外部から
のデータを前記正ディスク装置4a及び副ディスク装置
4bの双方に書き込み、読み出し指令に応じて前記正デ
ィスク装置4aから読み出したデータを外部に送出する
二重化ディスク制御装置において、前記読み出し指令が
与えられた際に、前記正ディスク装置4aと前記副ディ
スク装置4bの双方からデータを読み出し、該副ディス
ク装置4bから読み出したデータの外部への送出を抑止
する制御手段1と、該制御手段1により読み出した前記
副ディスク装置4bからのデータの正常性を検査する検
査手段2とにより構成される。
In order to achieve the above-mentioned object, the dual disk control device of the present invention has a primary disk device 4a and a secondary disk device 4b connected to each other and sends data from the outside in accordance with a write command to the primary disk device 4a and the secondary disk device 4b. In a duplicated disk control device that writes data to both disk devices 4b and sends the data read from the primary disk device 4a to the outside in response to a read command, when the read command is given, the primary disk device 4a and the primary disk device 4a Control means 1 for reading data from both of the secondary disk devices 4b and suppressing the sending of the data read from the secondary disk device 4b to the outside, and normality of the data from the secondary disk device 4b read by the control means 1. The inspection means 2 for inspecting the sex.

【0016】また、同様の目的で、請求項2の発明は、
正ディスク装置4aと副ディスク装置4bとが接続さ
れ、書き込み指令に応じて外部からのデータを前記正デ
ィスク装置4a及び副ディスク装置4bの双方に書き込
み、読み出し指令に応じて前記正ディスク装置4aから
読み出したデータを外部に送出する二重化ディスク制御
装置において、当該制御装置へのアクセスが行われてい
ないときに、前記副ディスク装置4bからデータを読み
出し、該読み出したデータの外部への送出を抑止する制
御手段1と、該制御手段1により読み出した前記副ディ
スク装置4bからのデータの正常性を検査する検査手段
2とにより構成される。
Further, for the same purpose, the invention of claim 2 is
The primary disk device 4a and the secondary disk device 4b are connected to each other, external data is written to both the primary disk device 4a and the secondary disk device 4b in response to a write command, and the primary disk device 4a is written in response to a read command. In the duplicated disk control device for sending the read data to the outside, when the control device is not accessed, the data is read from the secondary disk device 4b and the sending of the read data to the outside is suppressed. The control means 1 and the inspection means 2 for inspecting the normality of the data read from the secondary disk device 4b by the control means 1 are included.

【0017】さらに、請求項3の発明は、上記請求項1
乃至2の発明において、前記検査手段2によって副ディ
スク装置4bの異常を検出した場合、制御手段1によっ
て正ディスク装置4aのデータを副ディスク装置4bへ
データ転送を行い、内容の修復を行うように構成され
る。
Further, the invention of claim 3 is the above-mentioned claim 1.
In the inventions 1 to 2, when the inspection means 2 detects an abnormality of the secondary disk device 4b, the control means 1 transfers the data of the primary disk device 4a to the secondary disk device 4b to restore the contents. Composed.

【0018】[0018]

【作用】本発明は、正ディスク装置4aと、正ディスク
装置4aに異常が発生した際に正ディスク装置4aに代
わって処理を継続する副ディスク装置4bを併設した二
重化ディスク制御装置おいて、書込み時には常に正副デ
ィスク装置4a,4bに同一のデータを書込み、読み出
し時には正ディスク装置4aの読み出しに併行して副デ
ィスク装置4bからも同一データの読出しを行い、制御
手段2により該副ディスク装置4bから読み出したデー
タの転送を抑止するとともに、検査手段2により読み出
したデータのチェックを行い、副ディスク装置4bの正
常性を確認するものである。
According to the present invention, the writing is performed in the duplicated disk control device provided with the primary disk device 4a and the secondary disk device 4b which continues processing in place of the primary disk device 4a when an abnormality occurs in the primary disk device 4a. Sometimes the same data is always written to the primary and secondary disk devices 4a and 4b, and when reading, the same data is also read from the secondary disk device 4b in parallel with the reading of the primary disk device 4a, and the control means 2 causes the secondary disk device 4b to read the same data. In addition to suppressing the transfer of the read data, the inspection unit 2 checks the read data to confirm the normality of the secondary disk device 4b.

【0019】これにより、待機中の副ディスク装置4b
も正ディスク装置4aと同一のデータのチェックが行わ
れ、正ディスク装置4aの稼働間、常に正ディスク装置
4aと同一の状態が確認できるので、異常の発生した際
は速やかに対処可能であり、信頼性の高い二重化ディス
ク制御装置が提供できる。
As a result, the secondary disk device 4b on standby
Also checks the same data as the primary disk device 4a and can always confirm the same state as the primary disk device 4a during the operation of the primary disk device 4a, so that when an abnormality occurs, it is possible to promptly deal with it. A highly reliable dual disk controller can be provided.

【0020】また、請求項2の発明は、制御手段1が、
正ディスク装置4a に対するリード/ライトを行ってい
ない間に、副ディスク装置4b に対する診断コマンドを
発し、読み出したデータの外部への送出を抑止するとと
もに、検査手段2によって読み出したデータのチェック
を行い、該ディスク装置4b の正常性を確認するもので
ある。
In the invention of claim 2, the control means 1 is
While the primary disk device 4a is not being read / written, a diagnostic command is issued to the secondary disk device 4b to prevent the read data from being sent to the outside, and the inspection means 2 checks the read data. The normality of the disk device 4b is confirmed.

【0021】これにより、正ディスク装置4a に対する
ディスクアクセスが行われていない間に副ディスク装置
4b のチェックが可能となる。しかもデータのチェック
範囲は正ディスク装置4aから読み出されるデータの範
囲に限定されることがないので、副ディスク装置4b の
信頼性は更に向上する。
As a result, the secondary disk device 4b can be checked while the primary disk device 4a is not being accessed. Moreover, since the data check range is not limited to the range of data read from the primary disk device 4a, the reliability of the secondary disk device 4b is further improved.

【0022】さらに、請求項3の発明は、上記請求項1
乃至2の発明において、前記検査手段2によって副ディ
スク装置4bの異常を検出した場合、制御手段1によっ
て正ディスク装置4aのデータを副ディスク装置4bへ
データ転送を行い、内容の修復を行うものである。
Further, the invention of claim 3 is based on the above-mentioned claim 1.
In the inventions 1 to 2, when the inspection means 2 detects an abnormality in the secondary disk device 4b, the control means 1 transfers the data of the primary disk device 4a to the secondary disk device 4b to restore the contents. is there.

【0023】これにより、副ディスク装置4bのデータ
に異常が発生した際の対処が可能となり、二重化ディス
ク制御装置の操用性が更に向上する。
As a result, it is possible to deal with the occurrence of an abnormality in the data of the secondary disk device 4b, and the operability of the redundant disk control device is further improved.

【0024】このほか、本発明によれば、各ディスク装
置を診断する機能を制御手段1に集約できるので、ディ
スク制御装置本体の制御機構を簡略化でき、制御手段1
と各ディスク装置4a、4bとのインタフェースが共通
化できるので、構造が簡単になり低価格のディスク制御
装置が提供できる。
In addition, according to the present invention, since the function of diagnosing each disk device can be integrated in the control means 1, the control mechanism of the disk control device main body can be simplified and the control means 1
Since the interfaces with the disk devices 4a and 4b can be made common, the structure can be simplified and a low-cost disk control device can be provided.

【0025】[0025]

【実施例】以下、図面を参照しながら本発明の実施例に
ついて説明する。なお、図1と同一または相当部分には
同一符号を付して説明する。
Embodiments of the present invention will be described below with reference to the drawings. It should be noted that the same or corresponding portions as those in FIG.

【0026】図2は、本発明の一実施例にかかるシステ
ム全体の概略構成を示すブロック図である。
FIG. 2 is a block diagram showing a schematic configuration of the entire system according to an embodiment of the present invention.

【0027】本システムは、プログラムに従って所定の
処理を行うCPU3、プログラムその他のデータを格納
するメモリ21、各種装置とのインタフェースを取るデ
ィスク制御チャネル1、データを記憶するディスク装置
4、ディスクの異常を表示し警報を発する警告表示器2
3、及びその他のチャネル22から構成され、各構成要
素はそれぞれシステム・バスに接続されている。
This system includes a CPU 3 for performing a predetermined process according to a program, a memory 21 for storing programs and other data, a disk control channel 1 for interfacing with various devices, a disk device 4 for storing data, and a disk error. Warning indicator 2 that displays and issues an alarm
3 and other channels 22, each of which is connected to the system bus.

【0028】CPU3は、例えば各プログラムに従って
システム全体を制御するものである。ディスク装置4に
対するアクセスや診断に関するディスク制御情報は該C
PU3で生成され、メモリ21に格納されている。ディ
スク制御情報が格納されているアドレスはCPU3によ
りシステム・バスを介してディスク制御チャネル部1へ
通知される。
The CPU 3 controls the entire system according to each program, for example. The disk control information related to access and diagnosis to the disk device 4 is the C
It is generated by the PU 3 and stored in the memory 21. The address at which the disk control information is stored is notified by the CPU 3 to the disk control channel unit 1 via the system bus.

【0029】ディスク制御チャネル部1は本発明の特徴
である制御手段1及び検査手段2の機能を果たす部分で
あり、CPU3からの起動により、ディスク装置4の制
御を司る。即ち、ディスク制御チャネル部1はディスク
制御情報に基づき、ディスク装置4に対するリード/ラ
イトや診断に関する指令を生成してディスク装置4に通
知し、診断を行う。また、ディスク装置4から送られた
ディスク装置4の状態に関するステータス情報を受け取
り、CPU3に報告する。
The disk control channel unit 1 is a part that fulfills the functions of the control unit 1 and the inspection unit 2, which are the features of the present invention, and controls the disk unit 4 when activated by the CPU 3. That is, the disk control channel unit 1 generates a command relating to read / write and diagnosis for the disk device 4 based on the disk control information, notifies the disk device 4 of the command, and performs diagnosis. Also, the status information regarding the state of the disk device 4 sent from the disk device 4 is received and reported to the CPU 3.

【0030】さらに、当該ディスク制御チャネル部1
は、ディスク装置4とメモリ21との間のデータ転送を
制御する。
Further, the disk control channel section 1
Controls data transfer between the disk device 4 and the memory 21.

【0031】21はメモリであり、例えばROM又はR
AMで構成されている。該メモリ21はプログラムデー
タやCPU3、ディスク装置4、その他の入出力装置等
から入力される情報、又はこれらに出力する情報を記憶
するために使用される。ディスク装置4を制御するため
のコマンドやディスク制御情報も当該メモリ21に記憶
される。
Reference numeral 21 is a memory, for example, ROM or R
It is composed of AM. The memory 21 is used to store program data, information input from the CPU 3, the disk device 4, other input / output devices, or the like, or information output to these. Commands for controlling the disk device 4 and disk control information are also stored in the memory 21.

【0032】ディスク装置4のディスク制御部4c 、4
d は正副ディスク装置4a 、4b のディスクにに対する
アクセスを制御する部分である。ディスク制御チャネル
1から発行されたコマンドに基づき、各ディスク装置4
a 、4b に対してリード・ライト等の各種制御を行う周
知のものである。
The disk control units 4c, 4c of the disk device 4
Reference numeral d is a part for controlling access to the disks of the primary and secondary disk devices 4a and 4b. Based on the command issued from the disk control channel 1, each disk device 4
It is a well-known device that performs various controls such as read / write on a and 4b.

【0033】該ディスク制御部4c 、4d からディスク
制御チャネル1に送られるステータス情報には、ディス
ク装置4の動作状態(処理中、処理終了)を示す情報の
ほか、ディスク装置の診断結果に関する情報が含まれ
る。
The status information sent from the disk control units 4c and 4d to the disk control channel 1 includes not only information indicating the operating state of the disk device 4 (processing in progress or processing end) but also information about the diagnostic result of the disk device. included.

【0034】これらの情報はディスク制御チャネル1を
介してメモリ21に送られて記憶される。
These pieces of information are sent to and stored in the memory 21 via the disk control channel 1.

【0035】正副ディスク装置4a 、4b は所要のデー
タを記憶する周知のものであり、ディスク制御部4c 、
4d の制御の下にディスクに記録される。
The primary and secondary disk devices 4a and 4b are well-known devices for storing required data, and the disk controller 4c and
It is recorded on the disc under the control of 4d.

【0036】23は警告表示器であり、異常が発生した
際に、その状況を表示するとともに、ランプ又はブザー
で警報を発する周知のものである。
Reference numeral 23 is a warning indicator, which is a well-known one which displays the situation when an abnormality occurs and gives an alarm by a lamp or a buzzer.

【0037】その他のチャネル22には、ディスプレ
イ、キーボード、プリンタ等周知の機器を制御するチャ
ネルが含まれる。
The other channels 22 include channels for controlling well-known devices such as a display, a keyboard and a printer.

【0038】次に、図3は本実施例のディスク制御チャ
ネル部1の要部の構成を示すブロック図である。以下、
図面を参照しながら本実施例のディスク制御チャネル部
1の構成について説明する。
Next, FIG. 3 is a block diagram showing the structure of the main part of the disk control channel unit 1 of this embodiment. Less than,
The configuration of the disk control channel unit 1 of this embodiment will be described with reference to the drawings.

【0039】ディスク制御チャネル部1は、DMA/P
ーMODE制御部32、コマンド解析部31、ディスク
アクセス部33、タイマ34、メモリ( バッファ) 3
5、エラー処理部36、診断フラグ37、診断アドレス
レジスタ38、及びRV/DV(レシーバ/トランシー
バ)39により構成され、それぞれは内部バスにより接
続されている。
The disk control channel unit 1 is a DMA / P
-MODE control unit 32, command analysis unit 31, disk access unit 33, timer 34, memory (buffer) 3
5, an error processing unit 36, a diagnostic flag 37, a diagnostic address register 38, and an RV / DV (receiver / transceiver) 39, which are connected by an internal bus.

【0040】コマンド解析部31は、例えばプロセッサ
を具備し、DMA/PーMODE制御部32を介してデ
ィスク装置4を制御するための情報をCPU3又はメモ
リ21から受け取り、これを解析して正副ディスク装置
4a 、4b のリード/ライトや診断を行うための指令を
生成する部分である。
The command analysis unit 31 has, for example, a processor, receives information for controlling the disk device 4 from the CPU 3 or the memory 21 via the DMA / P-MODE control unit 32, analyzes the information, and analyzes the information. This is a part for generating commands for reading / writing and diagnosing the devices 4a, 4b.

【0041】即ち、CPU3から発せられた正ディスク
装置4a をリードするための指令に基づいて、副ディス
ク装置4bのリードチェックコマンドを生成するのは該
コマンド解析部31である。
That is, it is the command analysis unit 31 that generates a read check command for the secondary disk device 4b based on a command issued from the CPU 3 for reading the primary disk device 4a.

【0042】該コマンド解析部31で解析・生成された
各ディスク装置4a 、4b の制御指令はディスクアクセ
ス部33に送られる。
The control commands of the disk devices 4a and 4b analyzed and generated by the command analysis unit 31 are sent to the disk access unit 33.

【0043】DMA/PーMODE制御部32は、CP
U3又はメモリ21とディスク制御チャネル部1との間
のデータ転送の制御を司る部分である。
The DMA / P-MODE control unit 32 uses the CP
It is a part that controls the data transfer between the U3 or the memory 21 and the disk control channel unit 1.

【0044】CPU3から発せられた起動命令に伴う情
報やメモリ21からのディスク制御情報は該DMA/P
ーMODE制御部32の制御の下に入力され、一旦、メ
モリ( バッファ) 35に蓄えられる。
Information relating to the start-up command issued from the CPU 3 and disk control information from the memory 21 are stored in the DMA / P.
It is input under the control of the MODE control unit 32, and is temporarily stored in the memory (buffer) 35.

【0045】また、ディスク制御部4c 、4d からのア
クセス終了通知、及び正副ディスク装置4a 、4b の状
態に関するステータス情報はDMA/PーMODE制御
部32の制御の下でメモリ21に転送される。
The access end notifications from the disk control units 4c and 4d and the status information regarding the states of the primary and secondary disk devices 4a and 4b are transferred to the memory 21 under the control of the DMA / P-MODE control unit 32.

【0046】該DMA/PーMODE制御部32の構成
要素であるDMA(ダイレクトメモリアクセス)部はデ
ィスク装置4とメモリ21との間、又は当該ディスク制
御チャネル1とメモリ21との間のデータの入出力を制
御し、PーMODE(プログラムモード)部はCPU3
からの命令に応じてデータの授受を制御する。
The DMA (Direct Memory Access) unit, which is a component of the DMA / P-MODE control unit 32, stores data between the disk device 4 and the memory 21 or between the disk control channel 1 and the memory 21. Input / output is controlled, and P-MODE (program mode) part is CPU3
Controls the exchange of data according to the command from.

【0047】ディスクアクセス部33はコマンド解析部
31で解析・生成したコマンドを受け、ディスク装置4
の状態に応じて、正副ディスク装置4a 、4b の動作を
制御する部分である。
The disk access unit 33 receives the command analyzed and generated by the command analysis unit 31, and receives the command from the disk device 4
This is a part for controlling the operations of the primary and secondary disk devices 4a and 4b according to the state of.

【0048】例えば、コマンド解析部31から伝えられ
るディスク装置4のアクセスに関する命令や診断のため
の指令に基づいて各ディスク装置4a 、4b の行うべき
処理の内容を決定し、処理のタイミングを生成し、各デ
ィスク制御部4c 、4d を制御する。
For example, the contents of the processing to be performed by the respective disk devices 4a and 4b are determined based on the command concerning the access of the disk device 4 and the command for the diagnosis transmitted from the command analysis section 31, and the processing timing is generated. , And controls each disk control unit 4c, 4d.

【0049】タイマ34は副ディスク装置4b の診断の
ための割り込みを発生するものである。ディスク制御部
4d の起動は該タイマ34により行う。
The timer 34 generates an interrupt for diagnosing the secondary disk device 4b. The disk controller 4d is activated by the timer 34.

【0050】メモリ( バッファ) 35は、例えばRAM
で構成されており、CPU3又はメモリ21からのディ
スクアクセスに関する命令又はディスク制御情報及びデ
ィスク装置4から入力されるディスク装置4の動作状態
等に関するステータス情報を一時的に記憶するために使
用される。
The memory (buffer) 35 is, for example, a RAM.
And is used for temporarily storing a command or disk control information related to disk access from the CPU 3 or the memory 21 and status information related to an operating state of the disk device 4 input from the disk device 4.

【0051】例えば、CPU3から送出されたディスク
アクセスのための命令は、DMA/PーMODE制御部
32の制御の下に、当該メモリ( バッファ) 35に一旦
記憶され、コマンド解析部31に送られる。
For example, the command for disk access sent from the CPU 3 is temporarily stored in the memory (buffer) 35 under the control of the DMA / P-MODE control unit 32 and sent to the command analysis unit 31. .

【0052】また、該メモリ( バッファ) 35に記憶さ
れているデータは、DMA/PーMODE制御部32が
所定の指令に対応する動作を終了し、次の動作の準備が
できた段階で呼び出される。
The data stored in the memory (buffer) 35 is called when the DMA / P-MODE control unit 32 finishes the operation corresponding to a predetermined command and is ready for the next operation. Be done.

【0053】エラー処理部36はディスクアクセス時に
検査手段2によって異常が検出された場合、再試行を繰
り返し一時的なノイズ等により読めなくなった場合の対
処を行う。そして、ある所定回数再試行を行っても、デ
ータが読めない場合は、不良セクターとして判断し、交
代セクターをを割り付け、正ディスク装置4aから内容
を複写して修復を図る。
The error processing unit 36 handles the case where an abnormality is detected by the inspection means 2 at the time of accessing the disk, the retry is repeated, and the reading becomes impossible due to a temporary noise or the like. Then, if the data cannot be read even after retrying for a predetermined number of times, it is determined as a defective sector, a replacement sector is allocated, and the contents are copied from the primary disk device 4a for restoration.

【0054】また、エラーが発生したときの内部の状態
を記録し、警告表示器23に通知する。該エラー処理部
36の構成は図4に示す。
Further, the internal state at the time of occurrence of the error is recorded, and the warning indicator 23 is notified. The structure of the error processing unit 36 is shown in FIG.

【0055】診断フラグ37は副ディスク装置4b に対
する診断の有無を指示するものであり、CPU3が副デ
ィスク装置4b の診断を指示すると、該診断フラグ37
はオンされる。
The diagnostic flag 37 is for instructing the presence / absence of diagnosis of the secondary disk device 4b. When the CPU 3 instructs the secondary disk device 4b for diagnostics, the diagnostic flag 37
Is turned on.

【0056】診断アドレスレジスタ38は副ディスク装
置4b の診断を開始するディスクアドレスを記憶するも
のであり、1回の診断動作が完了した都度更新される。
The diagnosis address register 38 stores a disk address for starting diagnosis of the secondary disk device 4b, and is updated every time one diagnosis operation is completed.

【0057】39はレシーバ/ドライバである。レシー
バ/ドライバ39はDMA/PーMODE制御部32の
制御のもとにシステムバスやディスクインタフェースへ
の導通/非導通をコントロールし、バス使用権の確立に
使用される。具体的には、メモリ21へのダイレクトメ
モリアクセスのための切換え等に使用される。
Reference numeral 39 is a receiver / driver. The receiver / driver 39 controls conduction / non-conduction to the system bus and the disk interface under the control of the DMA / P-MODE control unit 32, and is used to establish the bus use right. Specifically, it is used for switching for direct memory access to the memory 21 and the like.

【0058】次に、図2及び図3を参照しながら本発明
の二重化ディスク制御装置の機能の概要を説明する。な
お動作の細部については後述する。
Next, an outline of the functions of the duplicated disk control device of the present invention will be described with reference to FIGS. The details of the operation will be described later.

【0059】ディスク制御チャネル部1は副ディスク装
置4b の診断にあたり、診断に関する命令を発するとと
もに、ディスク装置4からは該ディスク装置4の状態に
関するディスク情報を受ける。
The disk control channel unit 1 issues a diagnosis command when diagnosing the secondary disk device 4b, and receives disk information concerning the state of the disk device 4 from the disk device 4.

【0060】これにもとづき、ディスク制御チャネル部
1は正ディスク装置4a へのライト時には、副ディスク
装置4b にも正ディスク装置4a と同一のアドレス及び
レングスのデータを書き込み、正ディスク装置4a にリ
ードコマンドが発行された際には、副ディスク装置4b
に対しても、データ転送を伴わないリードコマンドを発
行して、同一アドレス、同一レングスのリード動作を行
い、エラー処理部36により該データのチェックを行
い、異常が発生した際には警告表示器23に通知し、警
告表示器23はランプまたはブザーで警報を発する。
Based on this, at the time of writing to the primary disk device 4a, the disk control channel unit 1 writes the same address and length data as the primary disk device 4a to the secondary disk device 4b, and the read command to the primary disk device 4a. Is issued, the secondary disk device 4b
Also, a read command without data transfer is issued, a read operation of the same address and the same length is performed, the data is checked by the error processing unit 36, and a warning indicator is displayed when an abnormality occurs. 23, and the warning indicator 23 gives a warning by a lamp or a buzzer.

【0061】従って、副ディスク装置4b は、正ディス
ク装置4a の稼働中は常に正ディスク装置4a と同一の
状態を維持しているか否かの確認ができる。また、副デ
ィスク装置4b に異常が発生した場合も正ディスク装置
4aの正常動作間に発見できるのでその都度対処可能で
あり、正ディスク装置4a が破損に到った場合でも、副
ディスク装置4b を使用して直ちに継続した業務処理が
可能となる。
Therefore, it is possible to confirm whether or not the secondary disk device 4b always maintains the same state as the primary disk device 4a while the primary disk device 4a is operating. Further, even if an abnormality occurs in the secondary disk device 4b, it can be detected during the normal operation of the primary disk device 4a, so that it can be dealt with each time, and even if the primary disk device 4a is damaged, the secondary disk device 4b can be repaired. It is possible to immediately continue the business processing by using it.

【0062】また、正ディスク装置4a に対するリード
/ライトを行っていない間に、ディスク制御チャネル部
1は副ディスク装置4b に対する診断コマンドを発し、
同チャネル部1のエラー処理部36は副ディスク装置4
b から読み出したデータのチェックを行い、該ディスク
装置4b の正常性を確認する。
While the primary disk unit 4a is not reading / writing, the disk control channel unit 1 issues a diagnostic command to the secondary disk unit 4b,
The error processing unit 36 of the same channel unit 1 uses the secondary disk device 4
The data read from b is checked to confirm the normality of the disk device 4b.

【0063】これにより、正ディスク装置4a に対する
ディスクアクセスが行われていない間に副ディスク装置
4b のチェックが可能となる。しかも、かかる方法によ
れば副ディスク装置4b の全セクタにわたりムラ無く診
断することが可能であり、副ディスク装置4b の信頼性
は更に向上する。
As a result, the secondary disk device 4b can be checked while the primary disk device 4a is not being accessed. Moreover, according to such a method, it is possible to make a diagnosis evenly over all the sectors of the secondary disk device 4b, and the reliability of the secondary disk device 4b is further improved.

【0064】さらに、副ディスク装置4bに異常が発生
した場合、エラー処理部36は所定の回数リトライを行
い、データの異常を確認するとディスク制御チャネル部
1は正ディスク装置4aのデータを副ディスク装置4b
へデータ転送を行い、内容の修復を行うものである。
Further, when an abnormality occurs in the secondary disk device 4b, the error processing unit 36 retries a predetermined number of times, and when the abnormality of the data is confirmed, the disk control channel unit 1 transfers the data of the primary disk device 4a to the secondary disk device 4a. 4b
The data is transferred to and the contents are restored.

【0065】次に、本実施例の正ディスク装置4aの正
常作動間の副ディスク装置4bの診断、及び正ディスク
装置4aの休止間における副ディスク装置4bの診断動
作につき図5に示したフローチャートを参照しながら説
明する。
Next, the flowchart shown in FIG. 5 concerning the diagnosis operation of the secondary disk device 4b during the normal operation of the primary disk device 4a and the diagnostic operation of the secondary disk device 4b during the suspension of the primary disk device 4a of this embodiment will be described. It will be explained with reference to FIG.

【0066】正ディスク装置4aの正常動作間の診断に
あたっては、CPU3は診断を行うディスクの番号と診
断開始アドレスを診断アドレスレジスタ38にセットす
る(ステップS1)。続いて、CPU3は診断フラグ3
7をオンにする(ステップS2)。これにより、タイマ
34が作動開始する。
In the diagnosis during the normal operation of the primary disk device 4a, the CPU 3 sets the number of the disk to be diagnosed and the diagnosis start address in the diagnosis address register 38 (step S1). Subsequently, the CPU 3 sets the diagnostic flag 3
7 is turned on (step S2). As a result, the timer 34 starts operating.

【0067】次に、CPU3はディスク制御情報をメモ
リ21にセットし、起動命令を発することによりDMA
/PーMODE制御部32を起動する(ステップS
3)。この際、メモリ21上に配置されたディスク制御
情報の配置アドレスがディスク制御チャネル1に転送さ
れ、メモリ35に一時記憶される。また、タイマ34は
停止される。
Next, the CPU 3 sets the disk control information in the memory 21 and issues a start-up command to execute DMA.
Start the / P-MODE control unit 32 (step S
3). At this time, the arrangement address of the disk control information arranged on the memory 21 is transferred to the disk control channel 1 and temporarily stored in the memory 35. Also, the timer 34 is stopped.

【0068】起動されたDMA/PーMODE制御部3
2は、配置アドレスに基づきDMAによりメモリ21か
らディスク制御情報を読み込み、コマンド解析部31に
送る。コマンド解析部31は、ディスク制御情報に含ま
れるコマンドの解析を行う(ステップS4)。即ち、コ
マンド解析部31はデータ転送を伴うコマンドか否か、
または、副ディスク装置4bが正ディスク装置4aの停
止間に行う診断のためのコマンドか等の判断を行い、解
析結果をディスクアクセス部33に通知する。
The activated DMA / P-MODE control unit 3
2 reads the disk control information from the memory 21 by DMA based on the arrangement address and sends it to the command analysis unit 31. The command analysis unit 31 analyzes the command included in the disk control information (step S4). That is, whether the command analysis unit 31 is a command that involves data transfer,
Alternatively, it is determined whether the secondary disk device 4b is a command for diagnosis performed while the primary disk device 4a is stopped, and the disk access unit 33 is notified of the analysis result.

【0069】ディスクアクセス部33は送られた指令が
リードコマンドであることを認識するとディスク制御部
4c にリードを指令する(ステップS5)。即ち、ディ
スクアクセス部33は、コマンド解析部31からのアク
セスに関する指令に基づき、読み込みを行うディスク装
置4a の番号、リードを開始するディスクアドレス及び
データレングスを決定し、ディスク制御部4c にデータ
転送を行うべき旨を指令する。
When the disk access unit 33 recognizes that the command sent is a read command, it commands the disk control unit 4c to read (step S5). That is, the disk access unit 33 determines the number of the disk device 4a to be read, the disk address to start reading, and the data length based on the access command from the command analysis unit 31, and transfers the data to the disk control unit 4c. Instruct what to do.

【0070】これにもとづき、正ディスク装置4a のデ
ィスク制御部4c は、上記ディスクアドレスで指定され
た領域からデータを読出し、転送を開始する(ステップ
S6)。読み出されたデータはDMA/PーMODE制
御部32の制御によりメモリ21にダイレクトに転送さ
れる。
Based on this, the disk control unit 4c of the primary disk device 4a reads the data from the area designated by the disk address and starts the transfer (step S6). The read data is directly transferred to the memory 21 under the control of the DMA / P-MODE control unit 32.

【0071】正ディスク装置4a のリードが終了する
と、ディスク制御部4c は終了ステータスをメモリ35
に転送する。DMA/PーMODE制御部32は、メモ
リ35に格納された情報にエラー処理部36の結果を加
味し、メモリ21に返す(ステップS7)。
When the reading of the primary disk device 4a is completed, the disk control unit 4c displays the completion status in the memory 35.
Transfer to. The DMA / P-MODE control unit 32 adds the result of the error processing unit 36 to the information stored in the memory 35 and returns it to the memory 21 (step S7).

【0072】続いてディスクアクセス部33はディスク
制御部4d に副ディスク装置4b の診断を指令する(ス
テップS8)。即ち、ディスクアクセス部33は、コマ
ンド解析部31からのアクセスに関する指令に基づき、
診断を行うディスク装置4bの番号、リードを行うべき
データのレングス、診断要領等を決定し、ディスク制御
部4d にデータ転送を伴なわないリードを行うべき旨を
指令する。
Subsequently, the disk access unit 33 commands the disk control unit 4d to diagnose the secondary disk device 4b (step S8). That is, the disk access unit 33, based on the command related to the access from the command analysis unit 31,
The number of the disk device 4b to be diagnosed, the length of the data to be read, the diagnostic procedure, etc. are determined, and the disk controller 4d is instructed to perform the read without data transfer.

【0073】これにもとづき、副ディスク装置4b のデ
ィスク制御部4d は、アドレスレジスタ38により指定
された領域からデータの読出しを開始する(ステップS
9)。読み出されたデータはメモリ35に一時記憶さ
れ、エラー処理部36により、例えばECC処理等が行
われる。
Based on this, the disk controller 4d of the secondary disk device 4b starts reading data from the area designated by the address register 38 (step S).
9). The read data is temporarily stored in the memory 35, and the error processing unit 36 performs, for example, ECC processing.

【0074】この際、メモリ35に貯えられたデータの
メモリ21への転送は行われず、エラー処理に供された
後は捨てられる。
At this time, the data stored in the memory 35 is not transferred to the memory 21 and is discarded after being subjected to error processing.

【0075】副ディスク装置4b のアクセスが終了する
と、ディスク制御部4d は終了ステータスをメモリ35
に転送する。DMA/PーMODE制御部32は、メモ
リ35に格納された情報にエラー処理部36の結果を加
味し、メモリ21に返す(ステップS10)。この際、
診断アドレスレジスタの更新が行われる。
When the access of the secondary disk device 4b is completed, the disk control unit 4d displays the completion status in the memory 35.
Transfer to. The DMA / P-MODE control unit 32 adds the result of the error processing unit 36 to the information stored in the memory 35 and returns it to the memory 21 (step S10). On this occasion,
The diagnostic address register is updated.

【0076】DMA/PーMODE制御部32は、上記
処理が終了すると、一連のリード動作が終了した旨をC
PU3に通知する(ステップS11)。即ち、DMA/
PーMODE制御部32は、図示しない割り込み線を駆
動することによりチャネル割込みでCPU3に通知する
ことによりアクセスを終了する。
When the above process is completed, the DMA / P-MODE control unit 32 confirms that a series of read operations is completed by C
The PU3 is notified (step S11). That is, DMA /
The P-MODE control unit 32 drives the interrupt line (not shown) to notify the CPU 3 of the channel interrupt, thereby ending the access.

【0077】以上で正ディスク装置4aの正常動作間の
診断を終了する。続いて正ディスク装置4aの休止間に
おける副ディスク装置4bの診断について説明する。
This completes the diagnosis during the normal operation of the primary disk device 4a. Subsequently, the diagnosis of the secondary disk device 4b during the suspension of the primary disk device 4a will be described.

【0078】DMA/PーMODE制御部32はアクセ
スコマンド終了時からタイマ34を再作動させる(ステ
ップS12)。これは正ディスク装置4a の停止中に副
ディスク装置4b を診断するための準備である。
The DMA / P-MODE control unit 32 restarts the timer 34 when the access command ends (step S12). This is a preparation for diagnosing the secondary disk device 4b while the primary disk device 4a is stopped.

【0079】タイマ34は正ディスク装置4a へのアク
セスが無い状態で一定時間を経過するとDMA/PーM
ODE制御部32に所定時間が経過したことを通知する
(ステップS13)。
When the timer 34 has not accessed the primary disk device 4a and a certain period of time elapses, the DMA / PM
The ODE control unit 32 is notified that the predetermined time has passed (step S13).

【0080】これにより、DMA/PーMODE制御部
32は診断アドレスレジスタ38の内容をディスクアド
レスとしてディスクアクセス部33に対して起動をかけ
る(ステップS14)。
As a result, the DMA / P-MODE control unit 32 activates the disk access unit 33 by using the contents of the diagnostic address register 38 as the disk address (step S14).

【0081】即ち、ディスク制御チャネル部1は、診断
フラグ37と診断アドレスレジスタ38を各1個持って
おり、診断フラグ37がオンの状態で正ディスク装置4
a に対するアクセスが一定時間ないと、DMA/PーM
ODE制御部32は、ディスクアクセス部33を起動す
る。
That is, the disk control channel unit 1 has one diagnostic flag 37 and one diagnostic address register 38, and when the diagnostic flag 37 is on, the primary disk device 4
If there is no access to a for a certain period of time, DMA / PM
The ODE control unit 32 activates the disk access unit 33.

【0082】ディスクアクセス部33はDMA/PーM
ODE制御部32からの通知を受け、ディスク制御部4
d に対して副ディスク装置4b を診断するための指令を
発する(ステップS15)。
The disk access unit 33 is a DMA / PM
Upon receiving the notification from the ODE controller 32, the disk controller 4
A command for diagnosing the secondary disk device 4b is issued to d (step S15).

【0083】ディスク制御部4d は上述したと同様の動
作で診断アドレスレジスタ38のアドレスからデータリ
ードを開始する(ステップS16)。
The disk controller 4d starts data read from the address of the diagnostic address register 38 by the same operation as described above (step S16).

【0084】副ディスク装置4b の一定レングスのリー
ドが終わると上述したと同様にアクセスを終了し、ステ
ータスを返す(ステップS17)。
When the reading of the fixed length of the secondary disk device 4b is completed, the access is ended and the status is returned as described above (step S17).

【0085】以上の動作手順で正ディスク装置4a のア
クセスと並行した副ディスク装置4b の診断、及び正デ
ィスク装置4a の停止中における副ディスク装置4b の
診断が行われる。
By the above operation procedure, the diagnosis of the secondary disk device 4b in parallel with the access of the primary disk device 4a and the diagnosis of the secondary disk device 4b while the primary disk device 4a is stopped are performed.

【0086】なお、上記の実施例は、正ディスク装置4
a が休止している間に副ディスク装置4b を診断するた
めの方法の一例として、一定レングスのリードを行う場
合を示したが、この他の診断を行う方法としては、 (1) 正ディスク装置4a に対して、次のリードコマンド
が発行されるまで、継続して副ディスク装置4b の診断
を行う。
In the above embodiment, the primary disk device 4 is used.
As an example of the method for diagnosing the secondary disk device 4b while a is inactive, the case of reading a fixed length is shown, but other diagnostic methods are: (1) primary disk device The secondary disk device 4b is continuously diagnosed until the next read command is issued to 4a.

【0087】(2) 診断を開始してから一定時間のリード
が終了するまで副ディスク装置4b の診断を継続する。
(2) The diagnosis of the secondary disk device 4b is continued from the start of the diagnosis until the reading for a fixed time is completed.

【0088】(3) 診断を開始してから一定の周期で副デ
ィスク装置4b の診断を継続する (4) 診断を開始してから、正ディスク装置4a が故障す
るまで継続して副ディスク4b の診断を行う。 等の方法もあり、正ディスク装置4aの休止間における
副ディスク装置4b の検査方法は上記の実施例で開示し
たものに限定されるものでない。
(3) The diagnosis of the secondary disk device 4b is continued at a constant cycle after the diagnosis is started. (4) The secondary disk device 4b is continuously diagnosed after the diagnosis is started until the primary disk device 4a fails. Make a diagnosis. The method of inspecting the secondary disk device 4b during the suspension of the primary disk device 4a is not limited to the method disclosed in the above embodiment.

【0089】また、上記実施例では、副ディスク装置4
b のリードはデータ転送を伴わないように構成したが、
CPU3の制御の下、データ転送を伴うリードアクセス
を行うように構成してもよい。
In the above embodiment, the secondary disk device 4 is used.
The read of b is configured so that it does not involve data transfer,
Under the control of the CPU 3, a read access involving data transfer may be performed.

【0090】この場合、ディスクアクセス部33はディ
スク制御部4d に対しデータ転送を伴うアクセスを指令
し、データを転送することにより副ディスク装置4b の
バス制御の動作を確認できる。
In this case, the disk access unit 33 instructs the disk control unit 4d to access with data transfer, and by transferring the data, the bus control operation of the secondary disk device 4b can be confirmed.

【0091】これにより、副ディスク装置4b の本体の
みならずバスの正常性も確認できるので、さらに信頼性
が向上する。
As a result, not only the main body of the secondary disk device 4b but also the normality of the bus can be confirmed, so that the reliability is further improved.

【0092】なお、上記の説明では制御手段1や検査手
段2の機能をディスク制御チャネル部1とCPU3が分
担して行っているが、これらの制御手段1や検査手段2
の機能を当該チャネル部1が果たすように構成してもよ
い。
In the above description, the functions of the control means 1 and the inspection means 2 are shared by the disk control channel section 1 and the CPU 3, but these control means 1 and inspection means 2 are used.
The channel unit 1 may perform the function of.

【0093】次に、副ディスク装置4bの診断を行って
いる際に異常が検出され、正ディスク装置4aのデータ
を副ディスク装置4bに転送する場合の動作について図
6を参照しながら説明する。
Next, an operation when an abnormality is detected during the diagnosis of the secondary disk device 4b and the data of the primary disk device 4a is transferred to the secondary disk device 4b will be described with reference to FIG.

【0094】まず、ディスク制御チャネル部1は正ディ
スク装置4aに対して通常の読み込み請求を発生し、正
ディスク装置4aをアクセスする。その際、ディスクア
クセス部33によりデータ転送を伴わない副ディスク装
置4bへのアクセス要求を制御部4dに対してコマンド
要求として出し、副ディスク装置4bよりデータを読み
出す(ステップS31)。
First, the disk control channel unit 1 issues a normal read request to the primary disk device 4a and accesses the primary disk device 4a. At this time, the disk access unit 33 issues an access request to the secondary disk device 4b without data transfer to the control unit 4d as a command request, and the data is read from the secondary disk device 4b (step S31).

【0095】副ディスク装置4bのディスク制御部4d
により読み出したデータのデータチェックを行いエラー
処理部36へ終了通知するとともに終了結果を返す(ス
テップS32)。
Disk control unit 4d of the secondary disk device 4b
The data read out is checked and the error processing unit 36 is notified of the end and the end result is returned (step S32).

【0096】エラー処理部36はエラー判別部36aよ
り送られた終了結果の異常の有無を調べる(ステップS
33)。この結果正常終了であれば「終了」に分岐す
る。終了結果が異常であることが確認されると再試行部
36bにより再試行を実施し一時的なノイズによる読み
込みエラーか否かの切り分けを行う(ステップS3
4)。
The error processing unit 36 checks whether or not there is an abnormality in the end result sent from the error determination unit 36a (step S
33). If the result is normal end, the process branches to "end". When it is confirmed that the end result is abnormal, the retry unit 36b retries to determine whether the read error is due to temporary noise (step S3).
4).

【0097】続いて上記の再試行回数が所定の回数行わ
れたかが調べられる(ステップS35)。試行回数が所
定の回数に達していない場合はステップS33に分岐し
て再度副ディスク装置4bの正常性を確認すし、異常が
あれば再試行を繰り返す。
Subsequently, it is checked whether or not the number of retries has been performed a predetermined number of times (step S35). If the number of trials has not reached the predetermined number, the process branches to step S33 to check the normality of the secondary disk device 4b again, and if there is an abnormality, the retry is repeated.

【0098】ステップ35で所定回数の試行を行った結
果、副ディスク装置4bの異常が確認されると、交代領
域管理部36cは不良セクタを確認し、不良セクタを書
込み不能にするとともに、当該セクタの交代セクタを割
り付けるために空き領域を探す(ステップS36)。
As a result of performing the trial a predetermined number of times in step 35, if the abnormality of the secondary disk device 4b is confirmed, the alternate area management unit 36c confirms the defective sector, makes the defective sector unwritable, and A free area is searched for in order to allocate the replacement sector (step S36).

【0099】空きセクターが見つかると、不良セクタに
対し交代セクタを割り付ける(ステップS37)。
When a free sector is found, a replacement sector is assigned to the defective sector (step S37).

【0100】割りつけた交代セクタに対して、正ディス
ク装置4aより情報を複写する(ステップS38)。
Information is copied from the primary disk device 4a to the allocated alternate sector (step S38).

【0101】このようにして不良セクタの発生に対して
は自動的に新たなセクタを割りつけ正ディスク装置4a
のデータを転送し、正ディスク装置4aと同一の状態を
保持できる。
In this way, a new sector is automatically allocated to the occurrence of a defective sector and the primary disk device 4a
Data can be transferred and the same state as that of the primary disk device 4a can be maintained.

【0102】[0102]

【発明の効果】以上詳述したように、本発明の制御装置
によれば、正ディスク装置4a の正常動作間に副ディス
ク装置4b の異常が発見でき、しかも正ディスク装置4
aの休止間には副ディスク装置4b の全セクタの診断が
でき、不良セクタの発生に際しては自動的に新たなセク
タを割りつけ正ディスク装置4a よりデータの転送を行
うので、信頼性の高い二重化ディスク制御装置が提供で
きる。
As described above in detail, according to the control device of the present invention, an abnormality of the secondary disk device 4b can be found during the normal operation of the primary disk device 4a, and the primary disk device 4a can be detected.
All sectors of the secondary disk unit 4b can be diagnosed during the period of "a", and when a defective sector occurs, a new sector is automatically allocated and data is transferred from the primary disk unit 4a. A disk controller can be provided.

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

【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】本発明の実施例の全体構成図である。FIG. 2 is an overall configuration diagram of an embodiment of the present invention.

【図3】本発明の実施例のディスク制御チャネルの概略
構成図である。
FIG. 3 is a schematic configuration diagram of a disk control channel according to an embodiment of the present invention.

【図4】本実施例のエラー処理部の概略構成図である。FIG. 4 is a schematic configuration diagram of an error processing unit according to the present embodiment.

【図5】本実施例の動作を示すフローチャートである。FIG. 5 is a flowchart showing the operation of this embodiment.

【図6】本実施例の副ディスク診断時の動作フローチャ
ートである。
FIG. 6 is an operation flowchart when diagnosing a secondary disk according to the present embodiment.

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

1 制御手段(ディスク制御チャネル) 2 検査手段(ディスク制御チャネル) 3 処理装置(CPU) 4 ディスク装置 4a 正ディスク装置 4b 副ディスク装置 DESCRIPTION OF SYMBOLS 1 control means (disk control channel) 2 inspection means (disk control channel) 3 processing device (CPU) 4 disk device 4a primary disk device 4b secondary disk device

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 正ディスク装置(4a)と副ディスク装
置(4b)とが接続され、書き込み指令に応じて外部か
らのデータを前記正ディスク装置(4a)及び副ディス
ク装置(4b)の双方に書き込み、読み出し指令に応じ
て前記正ディスク装置(4a)から読み出したデータを
外部に送出する二重化ディスク制御装置において、 前記読み出し指令が与えられた際に、前記正ディスク装
置(4a)と前記副ディスク装置(4b)の双方から同
一のデータを読み出し、該副ディスク装置(4b)から
読み出したデータの外部への送出を抑止する制御手段
(1)と、 該制御手段(1)により読み出した前記副ディスク装置
(4b)からのデータの正常性を検査する検査手段
(2)とを具備したことを特徴とする二重化ディスク制
御装置。
1. A primary disk device (4a) and a secondary disk device (4b) are connected to each other, and data from the outside is sent to both the primary disk device (4a) and the secondary disk device (4b) in response to a write command. A duplicated disk control device for sending data read from the primary disk device (4a) to the outside in response to a write / read command, wherein the primary disk device (4a) and the secondary disk are provided when the read command is given. A control unit (1) for reading the same data from both of the devices (4b) and suppressing the sending of the data read from the secondary disk device (4b) to the outside, and the secondary unit read by the control unit (1). A duplicated disk control device comprising: an inspection means (2) for inspecting the normality of data from the disk device (4b).
【請求項2】 正ディスク装置(4a)と副ディスク装
置(4b)とが接続され、書き込み指令に応じて外部か
らのデータを前記正ディスク装置(4a)及び副ディス
ク装置(4b)の双方に書き込み、読み出し指令に応じ
て前記正ディスク装置(4a)から読み出したデータを
外部に送出する二重化ディスク制御装置において、 前記正ディスク装置(4a)へのアクセスが行われてい
ないときに、前記副ディスク装置(4b)からデータを
読み出し、該読み出したデータの外部への送出を抑止す
る制御手段(1)と、 該制御手段(1)により読み出された前記副ディスク装
置(4b)からのデータの正常性を検査する検査手段
(2)とを具備したことを特徴とする二重化ディスク制
御装置。
2. A primary disk device (4a) and a secondary disk device (4b) are connected, and data from the outside is sent to both the primary disk device (4a) and the secondary disk device (4b) in response to a write command. A duplicated disk control device for transmitting data read from the primary disk device (4a) to the outside in response to a write / read command, wherein the secondary disk is accessed when the primary disk device (4a) is not accessed. A control unit (1) for reading data from the device (4b) and suppressing the sending of the read data to the outside, and a data unit for reading data from the secondary disk device (4b) read by the control unit (1). A dual disk control device, comprising: an inspection means (2) for inspecting normality.
【請求項3】 上記請求項1乃至2において、前記検査
手段(2)によって副ディスク装置(4b)の異常を検
出した場合、制御手段(1)によって正ディスク装置
(4a)のデータを副ディスク装置(4b)へデータ転
送を行い、内容の修復を行うことを特徴とする二重化デ
ィスク制御装置。
3. The above-mentioned claim 1 or 2, wherein when the inspection means (2) detects an abnormality of the secondary disk device (4b), the control means (1) transfers the data of the primary disk device (4a) to the secondary disk device. A duplicated disk control device characterized by performing data transfer to a device (4b) and restoring the contents.
JP4274351A 1992-10-13 1992-10-13 Redundant disk controller Pending JPH06124171A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4274351A JPH06124171A (en) 1992-10-13 1992-10-13 Redundant disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4274351A JPH06124171A (en) 1992-10-13 1992-10-13 Redundant disk controller

Publications (1)

Publication Number Publication Date
JPH06124171A true JPH06124171A (en) 1994-05-06

Family

ID=17540450

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4274351A Pending JPH06124171A (en) 1992-10-13 1992-10-13 Redundant disk controller

Country Status (1)

Country Link
JP (1) JPH06124171A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0962461A (en) * 1995-08-29 1997-03-07 Shikoku Nippon Denki Software Kk Automatic data restoring method for disk array device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0962461A (en) * 1995-08-29 1997-03-07 Shikoku Nippon Denki Software Kk Automatic data restoring method for disk array device

Similar Documents

Publication Publication Date Title
JP2548480B2 (en) Disk device diagnostic method for array disk device
US6052795A (en) Recovery method and system for continued I/O processing upon a controller failure
US5548711A (en) Method and apparatus for fault tolerant fast writes through buffer dumping
JP2501752B2 (en) Storage device of computer system and method of storing data
JPH10320135A (en) Adaptive power fault recovery system
US6754853B1 (en) Testing components of a computerized storage network system having a storage unit with multiple controllers
JPH07104947A (en) Disk control device and control method thereof
JP5392594B2 (en) Virtual machine redundancy system, computer system, virtual machine redundancy method, and program
JPH08335144A (en) External storage device
JP4490745B2 (en) Hot standby system
US7117320B2 (en) Maintaining data access during failure of a controller
JPS5833575B2 (en) How to recover data automatically
JPH09269871A (en) Data re-redundancy method in disk array device
US9251016B2 (en) Storage system, storage control method, and storage control program
US20090125754A1 (en) Apparatus, system, and method for improving system reliability by managing switched drive networks
CN101147135A (en) Memory error address management with firmware
JPH1195933A (en) Disk array device
JPS6119061B2 (en)
JPH06124171A (en) Redundant disk controller
JP2000293391A (en) Large-scale memory system management method and apparatus
JPH10222315A (en) Method and device for error recovery of doubled hard disk drives
US6687852B1 (en) Ultra reliable disk memory for duplex processor platforms
JPH1027070A (en) Data backup system
US7962781B2 (en) Control method for information storage apparatus, information storage apparatus and computer readable information recording medium
JPS6326407B2 (en)

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20000711