JPH0713704A - Magnetic disk controller - Google Patents

Magnetic disk controller

Info

Publication number
JPH0713704A
JPH0713704A JP5150136A JP15013693A JPH0713704A JP H0713704 A JPH0713704 A JP H0713704A JP 5150136 A JP5150136 A JP 5150136A JP 15013693 A JP15013693 A JP 15013693A JP H0713704 A JPH0713704 A JP H0713704A
Authority
JP
Japan
Prior art keywords
data
magnetic disk
written
circuit
input
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
JP5150136A
Other languages
Japanese (ja)
Inventor
Shinji Uchida
伸治 内田
Hiroo Fujisaki
博夫 藤崎
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.)
Hitachi Ltd
Hitachi Computer Engineering Co Ltd
Original Assignee
Hitachi Ltd
Hitachi Computer Engineering Co 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 Hitachi Ltd, Hitachi Computer Engineering Co Ltd filed Critical Hitachi Ltd
Priority to JP5150136A priority Critical patent/JPH0713704A/en
Publication of JPH0713704A publication Critical patent/JPH0713704A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To easily detect the destruction of data when the 1st and 2nd magnetic disks are possibly destroyed by the fault factors such as the thunderbolt, etc., by writing the data written in the 1st magnetic disk into the 2nd disk with logical inversion. CONSTITUTION:A magnetic disk controller 1 writes the data that are transferred to an input/output control circuit 2 from a host device 8 by a writing command into a magnetic disk 4 via an input/output circuit 3. Meanwhile the data which are logically inverted by an input/output inverting circuit 5 are written into a magnetic disk 6. When a reading command is given from the device 8, the data are read out of both disks 4 and 6. The data read out of the disk 4 are sent to the device 8, and at the same time the data of both disks 4 and 6 are compared with each other by a comparing/deciding circuit 7. Then the logically discordant data are stored in an error register included in the circuit 7.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は磁気ディスク装置に書き
込まれたデータが正しいかどうかチェックする磁気ディ
スク制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a magnetic disk controller for checking whether data written in a magnetic disk device is correct.

【0002】[0002]

【従来の技術】従来から、磁気ディスク等の情報記録手
段を二組持ち、情報の二重書きを行い、情報記録の信頼
性を向上させる技術が用いられている。この技術におい
てそれぞれの磁気ディスクに書き込まれたデータが正し
く記録されているかどうかをチェックする方法として、
2つの記憶装置に同一のデータを書き込み、第1の記憶
装置と第2の記憶装置に書き込まれた同一のデータを読
み出して、両方のデータを比較して誤りを検出するとい
う、いわゆる記憶装置の多重化によるチェックが行われ
ている。この種の技術は、例えば特開平4−20902
2号公報に記載されている。
2. Description of the Related Art Conventionally, a technique has been used in which two sets of information recording means such as magnetic disks are provided and information is double-written to improve the reliability of information recording. As a method to check whether the data written on each magnetic disk in this technology is correctly recorded,
The same data is written in two storage devices, the same data written in the first storage device and the second storage device is read, and both data are compared to detect an error. Checks are being made by multiplexing. This type of technique is disclosed in, for example, Japanese Patent Laid-Open No. 4-20902.
No. 2 publication.

【0003】[0003]

【発明が解決しようとする課題】しかし上記のように同
一データを2つの記憶装置に書き込んであったとして
も、落雷等の障害要因により第1及び第2の記憶装置の
同一アドレスのデータが同一内容に破壊され、破壊され
た後の2つの記憶装置のデータが一致している場合に
は、データが破壊されたことを検出できないという問題
点がある。すなわち、”1001”というデータを第
1、第2の磁気ディスクに書き込む際に障害要因によ
り、”1001”のデータが”1000”になり両方の
ディスクに同一の”1000”が書き込まれた場合に
は、データ破壊を検出できない。この問題の対策の一つ
として、さらに多くの記憶装置を設け、そのそれぞれの
記憶装置に同一のデータを格納し、書き込まれたデータ
を読み出してデータの多数決を取り、誤りを検出する方
法があるが、より多くの接続手段、記憶装置等が必要と
なるため、コストが大きくなるという問題点がある。本
発明はかかる問題点に鑑み、記憶装置に格納されている
データから破壊されたデータを容易に発見するととも
に、データの信頼性の向上をはかる装置を実現するもの
である。
However, even if the same data is written in the two storage devices as described above, the data at the same address in the first and second storage devices are the same due to a failure factor such as lightning strike. When the contents are destroyed and the data in the two storage devices after the destruction are the same, there is a problem in that the destruction of the data cannot be detected. That is, when the data “1001” is written to the first and second magnetic disks, the data “1001” becomes “1000” due to a failure factor, and the same “1000” is written to both disks. Cannot detect data corruption. As one of the measures against this problem, there is a method of providing more storage devices, storing the same data in each storage device, reading the written data, taking a majority decision of the data, and detecting an error. However, there is a problem that the cost increases because more connecting means, storage devices, etc. are required. In view of such a problem, the present invention realizes a device that easily finds corrupted data from data stored in a storage device and improves the reliability of the data.

【0004】[0004]

【課題を解決するための手段】[Means for Solving the Problems]

本発明は、上位装置と第1及び第2の磁気ディスクを相
互にデータの入出力を行うように接続する磁気ディスク
制御装置において、第1の磁気ディスクには上位装置か
ら送られたデータをそのまま書き込む手段と、第2の磁
気ディスクには上位装置から送られてきたデータを論理
反転して書き込む手段と、前記第1の磁気ディスクに書
き込まれたデータと前記第2の磁気ディスクに書き込ま
れた論理反転されたデータとをそれぞれ読み出す手段
と、それら両系のデータを比較し論理的に不一致となる
データを判定する比較判定手段と、を有することにより
達成される。
The present invention relates to a magnetic disk controller for connecting a host device and first and second magnetic disks so as to input and output data to and from each other. In the first magnetic disk, the data sent from the host device remains unchanged. Writing means, means for logically inverting and writing the data sent from the host device to the second magnetic disk, data written to the first magnetic disk and the data written to the second magnetic disk. This is achieved by including means for reading the logically-inverted data and comparison / determination means for comparing the data of both systems and determining the logically inconsistent data.

【0005】[0005]

【作用】第1の磁気ディスクには上位装置から送られて
きたデータをそのまま書き込み、また第2の磁気ディス
クには前記データを論理反転して書き込んでおき、2つ
の磁気ディスクのそれぞれのデータを同時に読み出し両
系のデータを比較することにより、論理的な不一致がみ
られるデータをチェックすることができる。
The data sent from the host device is written to the first magnetic disk as it is, and the data is logically inverted and written to the second magnetic disk to write the respective data of the two magnetic disks. At the same time, by comparing the data of both read systems, it is possible to check the data in which a logical mismatch is found.

【0006】[0006]

【実施例】以下本発明の実施例を図面を用いて詳細に説
明する。
Embodiments of the present invention will be described in detail below with reference to the drawings.

【0007】図1は本発明の実施例を示すブロック構成
図である。図1における磁気ディスク制御装置1は、上
位装置8からのコマンドやデータの入出力を制御する入
出力制御回路2、磁気ディスク4に入出力を行う入出力
回路3、磁気ディスク6に反転したデータの入出力を行
う入出力反転回路5、磁気ディスク4と磁気ディスク6
にそれぞれ書き込まれた両系のデータを比較し、エラー
をチェックする比較判定回路7から構成されている。
FIG. 1 is a block diagram showing an embodiment of the present invention. The magnetic disk control device 1 in FIG. 1 includes an input / output control circuit 2 for controlling the input / output of commands and data from a higher-level device 8, an input / output circuit 3 for inputting / outputting data to / from a magnetic disk 4, and data inverted to a magnetic disk 6. Input / output inversion circuit 5 for inputting / outputting the magnetic field, magnetic disk 4 and magnetic disk 6
It is composed of a comparison / determination circuit 7 for comparing the data of both systems written respectively in and to check for an error.

【0008】次にこの構成における磁気ディスク制御装
置1の働きについて説明する。上位装置8から磁気ディ
スク制御装置1にライトコマンドが指示され、データ
(例えば”1”という2値データ)が送られると、入出
力制御回路2は入出力回路3と入出力反転回路6にそれ
ぞれ同一のデータを送る。入出力回路3に送られたデー
タは、書き込みドライバ31により、磁気ディスク4に
そのまま(例えば”1”というように)書き込まれる。
また入出力反転回路6に送られたデータは反転書き込み
ドライバ51により、送られてきたデータを論理反
転(”1”を”0”に反転)して磁気ディスク6に書き
込む。
Next, the operation of the magnetic disk controller 1 in this configuration will be described. When a write command is issued from the higher-level device 8 to the magnetic disk control device 1 and data (for example, binary data of “1”) is sent, the input / output control circuit 2 sends to the input / output circuit 3 and the input / output inverting circuit 6, respectively. Send the same data. The data sent to the input / output circuit 3 is written to the magnetic disk 4 as it is (for example, “1”) by the write driver 31.
The data sent to the input / output inversion circuit 6 is logically inverted ("1" is inverted to "0") by the inversion write driver 51 and written to the magnetic disk 6.

【0009】上位装置8からリードコマンドが指示され
ると、読み出しドライバ32を用いて磁気ディスク4に
書き込まれたデータを読み出し、比較判定回路7と入出
力回路2に送る。入出力回路2ではそのデータを読み出
し結果として上位装置8に送る。一方読み出し反転ドラ
イバ52では、読み出しドライバ32での読み出しと同
時に、磁気ディスク6に書き込まれた論理反転データを
読み出して再び論理反転することにより、もとの論理反
転しないデータに戻し、比較判定回路7に送る。比較判
定回路7では、読み出しドライバ32及び読み出し反転
ドライバ52によって読み出された磁気ディスク4と磁
気ディスク6のそれぞれに格納されたデータを比較して
誤りを検出する。データの誤りが検出された場合は、上
位装置8にその誤ったデータのアドレス値が送信され
る。このようにして容易にデータの書き込みミスを検出
することが可能となる。
When a read command is issued from the host device 8, the read driver 32 is used to read the data written on the magnetic disk 4 and send it to the comparison / determination circuit 7 and the input / output circuit 2. The input / output circuit 2 sends the data as a read result to the higher-level device 8. On the other hand, in the read inversion driver 52, at the same time as the read by the read driver 32, the logic inversion data written in the magnetic disk 6 is read out and logically inverted again to restore the original data which is not logically inverted, and the comparison / determination circuit 7 Send to. The comparison / determination circuit 7 detects the error by comparing the data stored in the magnetic disk 4 and the data stored in the magnetic disk 6 read by the read driver 32 and the read / reverse driver 52, respectively. When a data error is detected, the address value of the erroneous data is transmitted to the host device 8. In this way, it becomes possible to easily detect a data write error.

【0010】仮に、図2に示すように第1の磁気ディス
クには、”1001”というデータを、第2の磁気ディ
スクにはそれを反転した”0110”という反転したデ
ータを書き込む際に、外部からの障害により、第1の磁
気ディスクに”1000”という誤ったデータが書き込
まれたとする。データの読み出しの際には第2の磁気デ
ィスクに格納された”0110”を再反転した”100
1”と、第1の磁気ディスクの”1000”というデー
タが比較される。こうして、容易にデータの書き込みミ
スを検出することができ、上位装置にそのミスが発生し
たアドレス値が送られることにより、データの損失箇所
が特定できるものである。
As shown in FIG. 2, when writing the data "1001" to the first magnetic disk and the inverted data "0110" to the second magnetic disk, the external data is written. It is assumed that erroneous data of "1000" is written in the first magnetic disk due to the failure from. When reading the data, "100" which is the reverse of "0110" stored in the second magnetic disk is re-inverted.
1 "is compared with the data" 1000 "of the first magnetic disk. In this way, a data write error can be easily detected, and the address value at which the error occurred is sent to the host device. , The location of data loss can be identified.

【0011】なお、本実施例では反転したデータが書き
込まれた磁気ディスク6からデータ読み出す際に、読み
出し反転ドライバ52、つまり磁気ディスクからデータ
を読み出し、再び論理反転することによりもとのデータ
に戻すドライバ、を用いているが、反転をおこなわない
読み出しドライバを用いる構成も可能である。その場
合、比較判定回路7では、論理反転したデータと論理反
転しないデータを比較する動作を行う。
In this embodiment, when the data is read from the magnetic disk 6 in which the inverted data is written, the data is read from the read inversion driver 52, that is, the magnetic disk, and logically inverted again to restore the original data. Although a driver is used, a configuration using a read driver that does not perform inversion is also possible. In that case, the comparison and determination circuit 7 performs an operation of comparing the logically inverted data with the data that is not logically inverted.

【0012】図3は本発明の制御回路における動作フロ
ーの一例である。
FIG. 3 is an example of an operation flow in the control circuit of the present invention.

【0013】上位装置8から磁気ディスク制御装置1に
対していくつかの処理コマンドが指示される(30
1)。それがライトコマンドであれば、上位装置8から
転送されたデータをそのまま磁気ディスク4に書き込
み、また磁気ディスク6には論理反転したデータを書き
込む(302)。
A number of processing commands are issued from the higher-level device 8 to the magnetic disk control device 1 (30
1). If it is a write command, the data transferred from the higher-level device 8 is written to the magnetic disk 4 as it is, and the logically inverted data is written to the magnetic disk 6 (302).

【0014】上位装置8からリードコマンドが指示され
た場合は、磁気ディスク4、6からデータを読み出す。
磁気ディスク4から読み出されたデータは、出力結果と
して入出力制御回路2を通して上位装置に転送されると
ともに、比較判定回路7にも送られる。磁気ディスク4
におけるデータの読み出しと同時に磁気ディスク6に書
き込まれている論理反転データも、入出力反転回路5に
より磁気ディスク6から読み出され、再び論理反転され
ることによりもとの論理反転しないデータに戻され比較
判定回路7に送られる(303)。
When a read command is issued from the host device 8, the data is read from the magnetic disks 4 and 6.
The data read from the magnetic disk 4 is transferred to the host device through the input / output control circuit 2 as an output result, and is also sent to the comparison / determination circuit 7. Magnetic disk 4
The logical inversion data written in the magnetic disk 6 at the same time as the data reading in the above is read from the magnetic disk 6 by the input / output inversion circuit 5 and is logically inverted again to be returned to the original data which is not logically inverted. It is sent to the comparison / determination circuit 7 (303).

【0015】比較判定回路7では、磁気ディスク4、6
から読み出されたデータが論理的に一致するかどうか比
較される(303)。データが一致する場合は誤りは無
いものと判断される(304)が、一致しない場合はそ
のデータには書き込みの際に何らかのエラーが発生した
と判断し、そのデータのアドレス値がエラーレジスタ
(比較判定回路7内部、図示せず。以下同様)に格納さ
れる(305)。
In the comparison / determination circuit 7, the magnetic disks 4, 6
The data read from are compared for logical matching (303). If the data match, it is judged that there is no error (304), but if the data does not match, it is judged that some error occurred in writing the data, and the address value of the data is stored in the error register (comparison). It is stored in the determination circuit 7 (not shown, the same applies hereinafter) (305).

【0016】上位装置8において、磁気ディスクに書き
込まれたデータに異常があるかないか確認をする必要が
生じたとき、エラーデータ処理コマンドを指示すること
により、入出力制御回路2では、比較判定回路7のエラ
ーレジスタに格納されているアドレス値を上位装置8に
転送し、エラーレジスタを初期化する(306)。
When it is necessary for the host device 8 to confirm whether or not the data written on the magnetic disk is abnormal, by issuing an error data processing command, the input / output control circuit 2 causes the comparison / determination circuit to judge. The address value stored in the error register 7 is transferred to the higher-level device 8 to initialize the error register (306).

【0017】上記構成では、比較判定回路7のエラーレ
ジスタに、書き込みミスのアドレス値を格納しておき、
上位装置8からエラーデータ処理コマンドが指示された
ときに、はじめてエラーとなったアドレス値を上位装置
8に送るため、前記エラーレジスタは複数のアドレス値
を格納するに十分な容量を有するものであるが、図4に
示す動作フローでは、一致判定404でエラーとなった
場合、そのつど上位装置8にそのエラーとなったデータ
のアドレス値を送り、エラー箇所の報告を行う構成にす
ることも可能である。
In the above configuration, the address value of the write error is stored in the error register of the comparison / determination circuit 7,
The error register has a sufficient capacity to store a plurality of address values so that when an error data processing command is instructed from the higher-level device 8, the address value that is in error for the first time is sent to the higher-level device 8. However, in the operation flow shown in FIG. 4, when an error occurs in the match determination 404, the address value of the errored data is sent to the higher-level device 8 each time, and the error location may be reported. Is.

【0018】[0018]

【発明の効果】従来の2つの磁気ディスクを用いて両系
のデータを比較することにより磁気ディスクに書き込ま
れたデータの正常性をチェックする方式では検出するこ
とが困難であったデータエラー、例えば落雷等の障害要
因により2つの磁気ディスクに書き込まれた同一部分の
データが一致するように破壊された場合でも、本発明を
用いることにより比較用の記憶装置を増やすことなく容
易にかつ効果的に磁気ディスクに書き込まれたデータの
破壊を検出することが可能となる。
EFFECTS OF THE INVENTION A data error which is difficult to detect by a conventional method of checking the normality of data written on a magnetic disk by comparing data of both systems using two magnetic disks, for example, Even when data of the same portion written in two magnetic disks are destroyed so as to match due to a failure factor such as lightning strike, by using the present invention, it is possible to easily and effectively without increasing the storage device for comparison. It is possible to detect the destruction of the data written on the magnetic disk.

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

【図1】 本発明の一実施例のブロック構成図FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】 本発明の一実施例のデータ格納状態を示す図FIG. 2 is a diagram showing a data storage state according to an embodiment of the present invention.

【図3】 本発明の一実施例の動作フローチャートFIG. 3 is an operation flowchart of an embodiment of the present invention.

【図4】 本発明の一実施例の別の動作フローチャートFIG. 4 is another operation flowchart of the embodiment of the present invention.

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

1 磁気ディスク制御回路 2 入出力制御回路 3 入出力回路 4 磁気ディスク 5 入出力反転回路 6 磁気ディスク 7 比較判定回路 8 上位装置 31 書き込み回路 32 読み出し回路 51 書き込み反転回路 52 読み出し反転回路 DESCRIPTION OF SYMBOLS 1 magnetic disk control circuit 2 input / output control circuit 3 input / output circuit 4 magnetic disk 5 input / output inversion circuit 6 magnetic disk 7 comparison determination circuit 8 host device 31 write circuit 32 read circuit 51 write inversion circuit 52 read inversion circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】上位装置と第1及び第2の磁気ディスクと
を接続し、データの入出力を制御する磁気ディスク制御
装置において、第1の磁気ディスクに上位装置から送ら
れたデータをそのまま書き込む手段と、第2の磁気ディ
スクに上位装置から送られてきたデータを論理反転して
書き込む手段と、前記第1の磁気ディスクに書き込まれ
たデータと前記第2の磁気ディスクに書き込まれたデー
タを読み出す手段と、両系のデータを比較し論理的に不
一致となるデータを判定する比較判定手段と、を有する
ことを特徴とする磁気ディスク制御装置。
1. A magnetic disk controller for connecting a host device to first and second magnetic disks to control data input / output, and directly writes data sent from the host device to the first magnetic disk. Means, means for logically inverting and writing the data sent from the host device to the second magnetic disk, data written to the first magnetic disk and data written to the second magnetic disk. A magnetic disk control device comprising: a reading unit; and a comparison / determination unit that compares data of both systems and determines data that is logically inconsistent.
JP5150136A 1993-06-22 1993-06-22 Magnetic disk controller Pending JPH0713704A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5150136A JPH0713704A (en) 1993-06-22 1993-06-22 Magnetic disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5150136A JPH0713704A (en) 1993-06-22 1993-06-22 Magnetic disk controller

Publications (1)

Publication Number Publication Date
JPH0713704A true JPH0713704A (en) 1995-01-17

Family

ID=15490279

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5150136A Pending JPH0713704A (en) 1993-06-22 1993-06-22 Magnetic disk controller

Country Status (1)

Country Link
JP (1) JPH0713704A (en)

Similar Documents

Publication Publication Date Title
JP2855019B2 (en) External storage device data guarantee method and external storage device
JPH0713704A (en) Magnetic disk controller
US6609219B1 (en) Data corruption testing technique for a hierarchical storage system
JP2868003B1 (en) Magnetic disk drive
JP2001167002A (en) Method and device for controlling write/read for electronic disk device
JP3358701B2 (en) Verify method and verify device
JPH05324950A (en) Logical card for information processor
JP2910803B2 (en) Highly reliable auxiliary storage device
JP3597550B2 (en) Disk array device
JPH02245954A (en) Semiconductor storage device
JPH03238663A (en) Magnetic disk control device
JP2810265B2 (en) Data storage device and information processing system
JP2609768B2 (en) Error detection method for control information read data
KR100205289B1 (en) Method of preventing loss of recording data
JPH02210672A (en) Data writing error detector
JPS6180564A (en) Alternate track write control circuit
JPH04285773A (en) External storage device
JPH04369711A (en) Electronic disk sub-system
JPH0222726A (en) Magnetic disk controller
JP2002207641A (en) Data transfer circuit and fault detecting method
JPS59148197A (en) Memory device
JPH11219323A (en) Data path fault detection method and information processor
JPS6297023A (en) Blocking system for double-written track on disk
JPH0667988A (en) Semiconductor memory with ras function
JPH1050004A (en) Magnetic disk control device