JPH02162580A - Diagnostic system for file storage device - Google Patents

Diagnostic system for file storage device

Info

Publication number
JPH02162580A
JPH02162580A JP31714288A JP31714288A JPH02162580A JP H02162580 A JPH02162580 A JP H02162580A JP 31714288 A JP31714288 A JP 31714288A JP 31714288 A JP31714288 A JP 31714288A JP H02162580 A JPH02162580 A JP H02162580A
Authority
JP
Japan
Prior art keywords
error correction
correction code
data
error
file storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP31714288A
Other languages
Japanese (ja)
Inventor
Yukio Nakagawa
幸雄 中川
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP31714288A priority Critical patent/JPH02162580A/en
Publication of JPH02162580A publication Critical patent/JPH02162580A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To realize diagnosis for the function of an error detecting mechanism by changing the type of an error correction code, which is handled by the data error detecting mechanism, for the time of data writing and the time of data reading. CONSTITUTION:When the function of a first error correction code detecting circuit 4, for example, is diagnosed in correspondence to an instruction from an external part, an operation mode control circuit 8 writes data according to a second error correction code. For the data, the second error correction code is added by a second error correction code generating circuit 3 and the data written to a file storing medium 11. Next, the circuit instructs an operation mode is changed to the first error correction code mode. The data due to the second error correction code on the medium 11 are read by a control circuit 13 and analyzed and error detection and correction is executed by the first error correction code detecting circuit 4. Thus, when the second error correction code is handled as the first error correction code and the error detection is executed, the detection of the data error can be efficiently executed in the case that the respective function of the file storing medium and the first and second error correction code detecting circuits is normal.

Description

【発明の詳細な説明】 〔概要〕 ファイル記憶装置のデータエラー検出機構やファイル記
憶媒体を診断する方式に関するものであり、特にCRC
とECCのような異なる複数のエラー訂正符号の中から
1つを選択して動作できるハードディスク装置などのフ
ァイル記憶装置の機能の診断方式に関し。
[Detailed Description of the Invention] [Summary] This invention relates to a data error detection mechanism of a file storage device and a method for diagnosing a file storage medium, and in particular, CRC
This invention relates to a method for diagnosing the functions of a file storage device such as a hard disk drive, which can operate by selecting one from a plurality of different error correction codes such as ECC.

ファイル記憶装置におけるデータエラー検出機構の機能
診断を随時簡単に実行できる手段を提供することを目的
とし。
The object of the present invention is to provide a means for easily performing functional diagnosis of a data error detection mechanism in a file storage device at any time.

予め定められた複数種類のエラー訂正符号形式の中の任
意の1つを選択して実行できるデータエラー検出機構を
もつファイル記憶装置において。
In a file storage device having a data error detection mechanism that can select and execute any one of a plurality of predetermined error correction code formats.

上記複数種類のエラー訂正符号形式の中の1つを選択し
てデータの書き込みを行い2次にエラー訂正符号形式を
上記複数種類のエラー訂正符号形式の中の他の1つに変
更して上記書き込んだデータの読み出しを行い9その際
データエラーが検出されたか否かにより、ファイル記憶
装置の機能の正常、異常を判定するよう構成した。
Select one of the above plurality of error correction code formats and write data, and then change the error correction code format to another one of the above plurality of error correction code formats and write the data. The system is configured to read the written data and determine whether the function of the file storage device is normal or abnormal depending on whether or not a data error is detected at that time.

〔産業上の利用分野〕[Industrial application field]

本発明は、ファイル記憶装置のデータエラー検出機構や
ファイル記憶媒体を診断する方式に関するものであり、
特にCRCとECCのような異なる複数のエラー訂正符
号の中から1つを選択して動作できるハードディスク装
置などのファイル記憶装置の機能の診断方式に関する。
The present invention relates to a data error detection mechanism for a file storage device and a method for diagnosing a file storage medium.
In particular, the present invention relates to a method for diagnosing the functions of a file storage device such as a hard disk drive that can operate by selecting one of a plurality of different error correction codes such as CRC and ECC.

〔従来の技術〕[Conventional technology]

一般にファイル記憶装置では、記憶データの信頼性を高
めるため、エラー訂正符号を用いたデータエラー検出機
構を設けて、エラーの検出および訂正を行っている。た
とえばハードディスク装置のあるものでは、CRC(サ
イクリック・リダンダンシイ・チエツク)方式とECC
(エラー・コレクティング・コード)方式とを、動作モ
ードの切替えによって選択的に使用できるようにしたデ
ータエラー検出機構をそなえている。
In general, file storage devices are equipped with a data error detection mechanism using error correction codes to detect and correct errors in order to improve the reliability of stored data. For example, some hard disk drives use CRC (cyclic redundancy check) and ECC
(error correcting code) method can be selectively used by switching the operation mode.

このようなデータエラー検出機構をそなえたファイル記
憶装置では、ファイル記憶媒体にデータを書き込む際に
書き込みデータに基づいてエラー訂正符号を作成して書
き込み、データの読み出し時に読み出したエラー訂正符
号に基づきデータエラー・の検出と訂正を行っている。
In a file storage device equipped with such a data error detection mechanism, when writing data to a file storage medium, an error correction code is created and written based on the written data, and when data is read, an error correction code is created and written based on the read error correction code. Detects and corrects errors.

しかし、データエラー検出機構自体に障害が発生してデ
ータエラーの検出機能が損なわれる場合があるため、デ
ータエラー検出機構の機能を診断できることが望ましい
However, since a failure may occur in the data error detection mechanism itself and the data error detection function is impaired, it is desirable to be able to diagnose the function of the data error detection mechanism.

一方、ファイル記憶装置は、前述した様な機構になって
いることから、ファイル記憶媒体に外部から故意にエラ
ーデータを書き込ませるのは困難である。
On the other hand, since the file storage device has the above-mentioned mechanism, it is difficult to intentionally write error data into the file storage medium from the outside.

このため従来は、物理的に傷をつけたファイル記憶媒体
を用いるなどの特殊な方法をとる以外。
For this reason, conventionally, special methods such as using physically damaged file storage media have not been used.

エラーデータを用いて積極的にデータエラー検出機構の
機能を診断することはせず、動作中にエラー報告があっ
たとき、データエラー検出機構の機能が正常であると診
断する程度であった。
The function of the data error detection mechanism was not actively diagnosed using error data, and the function of the data error detection mechanism was only diagnosed as normal when an error was reported during operation.

したがって動作中にデータエラーが発生しなければ積極
的な診断は不可能であった。
Therefore, proactive diagnosis was not possible unless a data error occurred during operation.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

本発明は、ファイル記憶装置におけるデータエラー検出
機構の機能診断を随時簡単に実行できる手段を提供する
ことを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide means that can easily perform functional diagnosis of a data error detection mechanism in a file storage device at any time.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は、異なるエラー訂正符号を選択使用できるデー
タエラー検査機構をそなえたファイル記憶装置において
、データ書き込み時とデータ読み出し時とでデータエラ
ー検査機構が取り扱うエラー訂正符号の種類を変更する
ことにより、簡単にデータエラーとして認識される状況
をつくり、その結果に基づくエラー報告の内容から、デ
ータエラー検出機構の機能を診断するものである。
The present invention provides a file storage device equipped with a data error checking mechanism that can selectively use different error correction codes, by changing the type of error correction code handled by the data error checking mechanism between data writing and data reading. This method creates a situation that is easily recognized as a data error, and diagnoses the function of the data error detection mechanism from the contents of the error report based on the result.

第1図は本発明の原理説明図であり、第1と第2の2種
類のエラー訂正符号を用いる場合について例示的に示し
たものである。第1図において。
FIG. 1 is an explanatory diagram of the principle of the present invention, illustrating the case where two types of error correction codes, first and second, are used. In FIG.

1は、ファイル記憶制御装置である。1 is a file storage control device.

2は5第1のエラー訂正符号発生回路である。2 is a 5-first error correction code generation circuit.

3は、第2のエラー訂正符号発生回路である。3 is a second error correction code generation circuit.

4は、第1のエラー訂正符号検出回路である。4 is a first error correction code detection circuit.

5は、第2のエラー訂正符号検出回路である。5 is a second error correction code detection circuit.

6.7は、セレクタである。6.7 is a selector.

8は、動作モード制御回路である。8 is an operation mode control circuit.

9は、ステータスレジスタである。9 is a status register.

lOは、ファイル記憶媒体ドライブ装置である。IO is a file storage medium drive device.

11は、ファイル記憶媒体である。11 is a file storage medium.

12は、書き込み制御回路である。12 is a write control circuit.

13は、読み出し制御回路である。13 is a read control circuit.

動作モード制御回路8は、外部からの指示に応じて、動
作モードを第1のエラー訂正符号モードと第2のエラー
訂正符号モードのいずれかに設定し、セレクタ6.7を
対処的に制御する。それにより、第1のエラー訂正符号
モードにおいてセレクタ6.7はそれぞれa側を選択し
、第2のエラー訂正符号モードではb側を選択する。
The operation mode control circuit 8 sets the operation mode to either the first error correction code mode or the second error correction code mode in response to an external instruction, and selectively controls the selector 6.7. . As a result, the selectors 6, 7 each select the a side in the first error correction code mode, and select the b side in the second error correction code mode.

第1のエラー訂正符号モードの場合、第1のエラー訂正
符号発生回路2は入力された書き込みデータに基づいて
第1のエラー訂正符号を作成し。
In the first error correction code mode, the first error correction code generation circuit 2 creates a first error correction code based on the input write data.

書き込み制御回路12へ出力する。また第1のエラー訂
正符号検出回路4は、読み出し制御回路13から出力さ
れた読み出しデータの第1のエラー訂正符号を解析し、
エラー検出とエラー訂正とを行う。
Output to the write control circuit 12. Further, the first error correction code detection circuit 4 analyzes the first error correction code of the read data output from the read control circuit 13,
Performs error detection and error correction.

第2のエラー訂正符号モードの場合は、第2のエラー訂
正符号発生回路3と第2のエラー訂正符号検出回路5と
において第1のエラー訂正符号モードの場合と同様な動
作が第2のエラー訂正符号について行われる。
In the case of the second error correction code mode, the second error correction code generation circuit 3 and the second error correction code detection circuit 5 perform the same operation as in the first error correction code mode. This is done for correction codes.

第1のエラー訂正符号検出回路4あるいは第2のエラー
訂正符号検出回路5が動作中に訂正不可能なエラーを検
出したとき、ステータスレジスタ9にエラー状態情報を
設定し、cpuにエラーを報告する。
When the first error correction code detection circuit 4 or the second error correction code detection circuit 5 detects an uncorrectable error during operation, it sets error status information in the status register 9 and reports the error to the CPU. .

〔作用〕[Effect]

第1図において、第1のエラー訂正符号検出回路4の機
能を診断する場合、まず動作・モード制御回路8に指示
して、第2のエラー訂正符号モードを設定し、第2のエ
ラー訂正符号を用いてデータ書き込みを行う。
In FIG. 1, when diagnosing the function of the first error correction code detection circuit 4, first instruct the operation/mode control circuit 8 to set the second error correction code mode, and then set the second error correction code mode. Write data using .

入力された書き込みデータは、第2のエラー訂正符号モ
ードでを効化される第2のエラー訂正符号発生回路3に
より第2のエラー訂正符号を付加され・、書き込み制御
回路12を経てファイル記憶媒体11に書き込まれる。
The input write data is added with a second error correction code by the second error correction code generation circuit 3 which is enabled in the second error correction code mode, and then sent to the file storage medium via the write control circuit 12. 11.

次に動作モード制御回路8に指示して、動作モードを第
1のエラー訂正符号モードに変更する。
Next, the operation mode control circuit 8 is instructed to change the operation mode to the first error correction code mode.

ここでファイル記憶媒体11上の第2のエラー訂正符号
によるデータを読み出し制御回路13で読み出し、この
とき有効化されている第1のエラー訂正符号検出回路4
でエラー検出およびエラー訂正が行われる。
Here, data based on the second error correction code on the file storage medium 11 is read out by the readout control circuit 13, and the first error correction code detection circuit 4 which is enabled at this time
Error detection and error correction is performed.

たとえば第2のエラー訂正符号を第1のエラー訂正符号
として扱いエラー検出を行った場合、ファイル記憶媒体
11に障害がなく第2のエラー訂正符号発生回路3と第
1のエラー訂正符号検出回路4の各機能が正常であれば
、高い割合いで訂正不可能なデータエラーが検出される
筈である。
For example, if the second error correction code is treated as the first error correction code and error detection is performed, if the file storage medium 11 is not faulty and the second error correction code generation circuit 3 and the first error correction code detection circuit 4 If each function is normal, uncorrectable data errors should be detected at a high rate.

もしもこのとき訂正不可能なデータエラーとして報告さ
れる割合いが少なければ、ファイル記憶装置に何らかの
異常が存在するものと診断できる。
If the rate of uncorrectable data errors being reported at this time is low, it can be diagnosed that some kind of abnormality exists in the file storage device.

第2のエラー訂正符号検出回路5を診断する場合も、同
様に動作モードを書き込みと読み出しとで切り換え、そ
のときのエラー検出の状況から診断できる。
When diagnosing the second error correction code detection circuit 5, the operation mode can be similarly switched between writing and reading, and the diagnosis can be made from the error detection status at that time.

〔実施例〕〔Example〕

第2図に2本発明の1実施例の構成を示し、第3図に診
断処理のフローを示す。
FIG. 2 shows the configuration of an embodiment of the present invention, and FIG. 3 shows the flow of diagnostic processing.

第2図において、21はCPU、22は主記憶装置MS
、23はハードディスク制御装置HDC。
In FIG. 2, 21 is a CPU, 22 is a main memory MS
, 23 is a hard disk controller HDC.

24はCRC発生回路、25はECC発生回路。24 is a CRC generation circuit, and 25 is an ECC generation circuit.

26はCRC検出回路、27はECC検出回路。26 is a CRC detection circuit, and 27 is an ECC detection circuit.

28は動作モード制御回路、29はステータスレジスタ
、30はディスクドライブ、31はCRCモードのレコ
ードである。以下、第3図のフローにしたがって第2図
の実施例を説明する。
28 is an operation mode control circuit, 29 is a status register, 30 is a disk drive, and 31 is a CRC mode record. The embodiment shown in FIG. 2 will be described below in accordance with the flow shown in FIG.

CPU21は、HDC23にモード設定コマンドを送出
して、動作モード制御回路28にCRCモードあるいは
ECCモードの動作モードを設定させる。また、ライト
コマンドあるいはリードコマンドによりデータの書き込
み、読み出しを指示する。そのため以下の説明では便宜
上、ライトコマンド、リードコマンドに基づくデータの
書き込み、読み出しをライト、リードで表すものとする
The CPU 21 sends a mode setting command to the HDC 23 to cause the operation mode control circuit 28 to set an operation mode of CRC mode or ECC mode. Further, writing and reading of data is instructed by a write command or a read command. Therefore, in the following description, for convenience, writing and reading data based on write commands and read commands will be expressed as write and read.

HDC23は、ライトコマンドによるデータのライト時
に、MS22から読み出されたデータを。
The HDC 23 reads data read from the MS 22 when writing data using a write command.

そのとき設定されている動作モードにより有効化されて
いるCRC発生回路24またはECC発生回路に入力し
1発生したCRCまたはECCコードをデータに付加し
て、レコードを作成し、ディスクドライブ30へ送出す
る。ディスクドライブ30はテストすべきハードディス
クのセクタをシークし、レコードをハードディスクにラ
イトする。
The generated CRC or ECC code is input to the CRC generation circuit 24 or ECC generation circuit that is enabled depending on the operating mode set at that time, and is added to the data to create a record and send it to the disk drive 30. . The disk drive 30 seeks the sector of the hard disk to be tested and writes a record to the hard disk.

図示されているレコードの例は、CRCモードでデータ
のライトが行われた結果を示し、ID部。
The example record shown in the figure shows the result of writing data in CRC mode, and includes an ID section.

データ部とCRCとで構成されている。It consists of a data section and a CRC.

ECC検出回路27の診断を行う場合には2図示の例の
ようにCRCモードでライトしたデータをECCモード
でリードする。このためCPU21はモード設定コマン
ドにより、HDC23にECCモードの設定を指示し、
ECC検出回路27を有効化する。
When diagnosing the ECC detection circuit 27, data written in the CRC mode is read in the ECC mode as shown in the example shown in FIG. For this reason, the CPU 21 instructs the HDC 23 to set the ECC mode using a mode setting command,
ECC detection circuit 27 is enabled.

HDC23はモード設定後、CPU2Lからのリードコ
マンドにより、ディスクドライブ30に指示して、トラ
ックのシークを行わせ、レコードをリードさせる。
After setting the mode, the HDC 23 instructs the disk drive 30 to seek a track and read a record in response to a read command from the CPU 2L.

ECC検出回路27は、ディスクドライブ30がリード
したレコードのデータ部からFCCコードを発生し、こ
れをリードしたレコードのCRCコードと比較すること
によりエラー検出を行い。
The ECC detection circuit 27 generates an FCC code from the data portion of the record read by the disk drive 30, and performs error detection by comparing this code with the CRC code of the read record.

その結果正常なデータと判定されればMS22に書き込
み、また訂正可能なエラー(通常は1ビツトエラー)で
あれば訂正してMS22に書き込み。
If the data is determined to be normal, it is written to the MS22, and if it is a correctable error (usually a 1-bit error), it is corrected and written to the MS22.

訂正不可能なエラーを検出すればステータスレジスタ2
9にエラー状態情報を設定してCPU21にエラーを報
告し、エラー処理を行わせる。
If an uncorrectable error is detected, status register 2
Error status information is set in 9, the error is reported to the CPU 21, and the error processing is performed.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、ファイル記憶装置のデータエラー検出
機構を、不良のファイル記憶媒体を用いる必要なしに簡
単に診断することができ、また診断プログラムを用いて
自動化することにより、負担を増加させることなくファ
イル記憶装置の信頼性を著しく向上させることができる
According to the present invention, the data error detection mechanism of a file storage device can be easily diagnosed without the need to use a defective file storage medium, and can be automated using a diagnostic program, thereby eliminating the need to increase the burden. However, the reliability of the file storage device can be significantly improved.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の原理説明図、第2図は本発明の1実施
例の構成図、第3図は本発明実施例による診断処理のフ
ロー図である。 第1図中。 1:ファイル記憶制御装置 2:第1のエラー訂正符号発生回路 3:第2のエラー訂正符号発生回路 4:第1のエラー訂正符号検出回路 5:第2のエラー訂正符号検出回路 8:動作モード制御回路 9:ステータスレジスタ lO:ファイル記憶媒体ドライブ装置 11:ファイル記憶媒体 特許出願人 株式会社ビーエフニー 代 理 人 弁理士 長谷用 文廣(外2名、)木愈F
3AQ派理説明医 第1図
FIG. 1 is an explanatory diagram of the principle of the present invention, FIG. 2 is a block diagram of an embodiment of the present invention, and FIG. 3 is a flowchart of diagnostic processing according to the embodiment of the present invention. In Figure 1. 1: File storage control device 2: First error correction code generation circuit 3: Second error correction code generation circuit 4: First error correction code detection circuit 5: Second error correction code detection circuit 8: Operation mode Control circuit 9: Status register IO: File storage medium drive device 11: File storage medium patent applicant: BFNY Co., Ltd. Agent: Patent attorney: Fumihiro Hase (2 others), F. Mokuto
3AQ Theory Explanator Diagram 1

Claims (1)

【特許請求の範囲】[Claims] 予め定められた複数種類のエラー訂正符号形式の中の任
意の1つを指定して実行できるデータエラー検出機構を
もつファイル記憶装置において、上記複数種類のエラー
訂正符号形式の中の1つを選択してデータの書き込みを
行い、次にエラー訂正符号形式を上記複数種類のエラー
訂正符号形式の中の他の1つに変更して上記書き込んだ
データの読み出しを行い、その際データエラーが検出さ
れたか否かにより、ファイル記憶装置の機能の正常、異
常を判定することを特徴とするファイル記憶装置の診断
方式。
In a file storage device that has a data error detection mechanism that can specify and execute any one of a plurality of predetermined error correction code formats, one of the plurality of error correction code formats is selected. Then, the error correction code format is changed to another one of the plurality of error correction code formats and the written data is read. A method for diagnosing a file storage device, characterized in that whether the function of the file storage device is normal or abnormal is determined based on whether or not the function of the file storage device is normal or abnormal.
JP31714288A 1988-12-15 1988-12-15 Diagnostic system for file storage device Pending JPH02162580A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31714288A JPH02162580A (en) 1988-12-15 1988-12-15 Diagnostic system for file storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31714288A JPH02162580A (en) 1988-12-15 1988-12-15 Diagnostic system for file storage device

Publications (1)

Publication Number Publication Date
JPH02162580A true JPH02162580A (en) 1990-06-22

Family

ID=18084914

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31714288A Pending JPH02162580A (en) 1988-12-15 1988-12-15 Diagnostic system for file storage device

Country Status (1)

Country Link
JP (1) JPH02162580A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62216027A (en) * 1986-03-17 1987-09-22 Fujitsu Ltd Setting method for condition of simulation/normal test

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62216027A (en) * 1986-03-17 1987-09-22 Fujitsu Ltd Setting method for condition of simulation/normal test

Similar Documents

Publication Publication Date Title
JP2548480B2 (en) Disk device diagnostic method for array disk device
US20010042230A1 (en) Sector validation for use in ECC engine validation
JPH10171608A (en) Magnetic disk array device and method for checking data in magnetic disk array device
JPH02162580A (en) Diagnostic system for file storage device
JP2000105675A (en) Disk array device
JPH06282385A (en) Storage controller and information processing system provided with this controller
JPH03108163A (en) Optical disk processor
JP2868003B1 (en) Magnetic disk drive
JP2546075B2 (en) Disk controller retry method
JPH04311218A (en) External storage controller
JP2731678B2 (en) Double-write magnetic disk subsystem
JPH0664858B2 (en) Reading circuit diagnostic method
JP2910750B1 (en) Disk array system and recording medium storing program for controlling the system by computer
JPH08190460A (en) Disk array system
JPS6356751A (en) Memory patrol control system
JPH0934653A (en) Disk array device
JPH04285773A (en) External storage device
JPH04630A (en) Storage controller
JPS6142304B2 (en)
JPS6269342A (en) Semiconductor disk device
JPH07130195A (en) Storage device
JPS6224343A (en) Diagnosis system for alternate memory circuit
JPH08234930A (en) Magnetic disk array maintenance system
JPH0713704A (en) Magnetic disk controller
JP2006119878A (en) Disk array device, and failure detection method for disk array device