JP3457602B2 - Disk unit - Google Patents

Disk unit

Info

Publication number
JP3457602B2
JP3457602B2 JP37423999A JP37423999A JP3457602B2 JP 3457602 B2 JP3457602 B2 JP 3457602B2 JP 37423999 A JP37423999 A JP 37423999A JP 37423999 A JP37423999 A JP 37423999A JP 3457602 B2 JP3457602 B2 JP 3457602B2
Authority
JP
Japan
Prior art keywords
command
host
register
information
data
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.)
Expired - Fee Related
Application number
JP37423999A
Other languages
Japanese (ja)
Other versions
JP2001189060A (en
Inventor
郁子 飯田
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP37423999A priority Critical patent/JP3457602B2/en
Priority to SG200005080A priority patent/SG85729A1/en
Publication of JP2001189060A publication Critical patent/JP2001189060A/en
Application granted granted Critical
Publication of JP3457602B2 publication Critical patent/JP3457602B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Debugging And Monitoring (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、障害発生時におけ
る原因解析のために有益な情報を提供する機能を備えた
ディスク装置に関する。
The present invention has a function of providing useful information for cause analysis when a failure occurs .
Disc device

【0002】[0002]

【従来の技術】磁気ディスク装置はコンピュータの外部
記憶装置として広く普及している。磁気ディスク装置で
は、回転する円盤状の磁気ディスクに対し磁気ヘッドが
メディアの半径方向にシーク動作することによりデータ
記録(または読み出し)が行われる。このような磁気デ
ィスク装置は、機械的な動作部分を有しているため例え
ば半導体装置等に比べて故障率が高い。したがって、例
えばユーザが定期的にデータのバックアップを取るとい
った人為的な故障対策が必要であった。このような事態
をふまえて、装置自らが故障を診断する機能を備えた磁
気ディスク装置が製品化されてきている。磁気ディスク
装置における故障の自己診断機能によれば、RAWエラ
ーレート(生エラーレート)、CSS(Contact Start
Stop)回数、起動リトライ、シークパフォーマンス等、
装置の故障につながる要因を示すパラメータが定期的に
チェックされ、故障の発生が予測され得るような危険な
状態にあるか否かが診断される。そして危険な状態にあ
ると診断された際には、ホストシステムに対して事前に
警告を出すことが行われる。
2. Description of the Related Art Magnetic disk devices are widely used as external storage devices for computers. In a magnetic disk device, data recording (or reading) is performed by a magnetic disk seeking operation in a radial direction of a medium with respect to a rotating disk-shaped magnetic disk. Since such a magnetic disk device has a mechanical operation part, it has a higher failure rate than, for example, a semiconductor device. Therefore, for example, it is necessary for the user to take a countermeasure against artificial failure such that the user regularly backs up the data. In consideration of such a situation, a magnetic disk device having a function of diagnosing a failure by the device itself has been commercialized. According to the self-diagnosis function of failure in the magnetic disk device, RAW error rate (raw error rate), CSS (Contact Start)
Stop) times, start retry, seek performance, etc.
The parameters indicating the factors leading to the failure of the device are regularly checked, and it is diagnosed whether or not there is a dangerous state in which the occurrence of the failure can be predicted. When a dangerous state is diagnosed, a warning is issued to the host system in advance.

【0003】より進歩した自己診断機能として、SMA
RT(故障予測機構)が知られている。SMARTはA
TA(AT Attachment)規格においてサポートされてい
る。ATA規格とは、パーソナルコンピュータと磁気デ
ィスク装置を接続する実質標準であるIDEインタフェ
ースであって、米国規格協会(ANSI)により標準化
がなされた規格である。
As a more advanced self-diagnosis function, SMA
RT (Failure Prediction Mechanism) is known. SMART is A
Supported by TA (AT Attachment) standard. The ATA standard is an IDE interface that is a practical standard for connecting a personal computer and a magnetic disk device, and is a standard standardized by the American National Standards Institute (ANSI).

【0004】SMARTが備える機能の一つに、イベン
トログを取得する機能がある。この機能は磁気ディスク
装置において規定される様々なイベントのログ(履歴)
をメディアに記録するものであり、記録されたイベント
が故障診断等に用いられる。
One of the functions of SMART is a function of acquiring an event log. This function is a log (history) of various events specified in the magnetic disk device.
Is recorded on a medium, and the recorded event is used for failure diagnosis and the like.

【0005】より具体的な構成として、ログの記録領域
として255ブロックが割り当てられる。1ブロックは
最大で16セクタからなる。255ブロックのうち、A
TA規格が仕様を設定する領域として128ブロック、
ホストベンダのために32ブロック、そしてデバイスベ
ンダのために96ブロックが割り当てられている。
As a more specific structure, 255 blocks are allocated as a log recording area. One block consists of 16 sectors at the maximum. A out of 255 blocks
128 blocks as an area where the TA standard sets the specifications,
32 blocks are allocated for the host vendor and 96 blocks for the device vendor.

【0006】現状では、ATAが規定している2ブロッ
クが使用されており、この2ブロックを用いて、エラー
発生時から遡及して5つ前までのコマンド及びエラーと
なったコマンドステータスのログを記録するエラーログ
機能や、磁気ディスク装置が自身の処理機能を診断する
自己診断(セルフテスト)機能の実行結果ログを記録す
る機能等が実現されている。これらの機能により記録さ
れたログ情報は、SMART機構が実装するサブコマン
ドにより読み出すことができる。また、メディアのログ
記録領域には、ホストシステムが独自の情報を書き込ん
だり、読み出したりすることも可能である。
At present, two blocks defined by ATA are used, and by using these two blocks, a command status log up to five commands back from the time of error occurrence and the error status is recorded. An error log function for recording and a function for recording an execution result log of a self-diagnosis (self-test) function for diagnosing the processing function of the magnetic disk device are realized. The log information recorded by these functions can be read by a subcommand implemented by the SMART mechanism. The host system can also write and read unique information in the log recording area of the medium.

【0007】このような従来例には次のような問題点が
ある。すなわち、ホストシステム側において動作異常等
の障害が発生した場合、従来の磁気ディスク装置が提供
する自己診断機能のみでは、その原因解析のために必要
な情報が必ずしも十分に得られるわけではないという問
題点がある。例えば、ホストシステム側のドライバソフ
トウェア等の不具合に起因するような障害が発生したよ
うな場合である。
Such a conventional example has the following problems. That is, when a failure such as an operation abnormality occurs on the host system side, the self-diagnosis function provided by the conventional magnetic disk device is not always sufficient to obtain the information necessary for the cause analysis. There is a point. For example, this may be the case when a failure occurs due to a malfunction of the driver software on the host system side.

【0008】[0008]

【発明が解決しようとする課題】本発明の目的は、障害
発生時における原因解析のために有益な情報を得ること
のできるディスク装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a disk device which can obtain useful information for cause analysis when a failure occurs.

【0009】[0009]

【課題を解決するための手段】本発明の観点に従ったデ
ィスク装置は、ホストから発行されたコマンドに応じ
て、ディスクに対するデータの記録または再生を実行す
るディスク装置であって、前記ホストから受信したコマ
ンドを格納するコマンドレジスタ、及び当該コマンドの
実行状態を示すフラグをセットするステータスレジスタ
を含むレジスタ手段と、前記ホストから受信したコマン
ドを前記コマンドレジスタに格納したときに、前記ステ
ータスレジスタには当該コマンドより先行して受信した
コマンドが実行中であることを示すフラグがセットされ
ている場合には、コマンドオーバーライトが発生したこ
とを示すコマンドオーバーライト情報を作成する作成手
段と、前記コマンドオーバーライト情報を記憶する記憶
手段とを備えたものである。
A disk device according to the aspect of the present invention responds to a command issued from a host.
The disc to record or play data.
Disk device that receives a frame from the host
Command register that stores the command and the command
Status register that sets a flag that indicates the execution status
Register means including a command received from the host
Mode is stored in the command register,
Received in the status register prior to the command
The flag is set to indicate that the command is running
If it is, the command overwrite has occurred.
Creator to create command overwrite information indicating
And a memory for storing the command overwrite information.
And means .

【0010】[0010]

【0011】[0011]

【0012】[0012]

【0013】[0013]

【0014】[0014]

【0015】[0015]

【0016】[0016]

【0017】[0017]

【発明の実施の形態】以下、図面を参照しながら本発明
の実施形態を説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings.

【0018】(第1実施形態)図1は本発明の第1実施
形態に係る磁気ディスク装置の概略構成を示すブロック
図である。同図に示すように、本実施形態の磁気ディス
ク装置は不揮発性の記録再生媒体1(メディア)、読み
出し/書き込み回路2、ディスクデータコントローラ
3、バッファラム4、CPU5、ホストインターフェー
ス6、ROM及びRAM7、VCM(ボイスコイルモー
タ)及びスピンドルモータのドライバ8、ディスクヘッ
ド10を備える。
(First Embodiment) FIG. 1 is a block diagram showing the schematic arrangement of a magnetic disk apparatus according to the first embodiment of the present invention. As shown in the figure, the magnetic disk device of this embodiment has a nonvolatile recording / reproducing medium 1 (medium), a read / write circuit 2, a disk data controller 3, a buffer RAM 4, a CPU 5, a host interface 6, a ROM and a RAM 7. , A VCM (voice coil motor) and a spindle motor driver 8, and a disk head 10.

【0019】ディスクヘッド10は、キャリッジと称さ
れるヘッド移動機構に取り付けられている。またディス
クヘッド10は、キャリッジの動作によりメディア1の
半径方向に移動可能となっている。ディスクヘッド10
はサーボ処理システム(ヘッド位置決め制御機構)によ
り、指定された目標シリンダ(目標トラック)上に位置
決め制御される。通常はセクタ単位でデータのリード/
ライトが行なわれる。
The disk head 10 is attached to a head moving mechanism called a carriage. The disk head 10 can be moved in the radial direction of the medium 1 by the operation of the carriage. Disk head 10
Is controlled by a servo processing system (head positioning control mechanism) on a designated target cylinder (target track). Normally, read / write data in sector units
The light is written.

【0020】またキャリッジは、VCMにより駆動され
る。VCMはドライバ8により駆動される。またスピン
ドルモータもドライバ8により駆動される。ドライバ8
は、モータドライバおよびVCMドライバ(ダブルドラ
イバと称される)を構成するドライバIC(集積回路)
である。
The carriage is driven by the VCM. The VCM is driven by the driver 8. The spindle motor is also driven by the driver 8. Driver 8
Is a driver IC (integrated circuit) that constitutes a motor driver and a VCM driver (referred to as a double driver)
Is.

【0021】リード/ライト回路2はヘッドアンプによ
り増幅されたディスクヘッド10からのリード信号を入
力し、データ再生動作に必要な信号処理を行なう。ま
た、リード/ライト回路2は、データ記録動作に必要な
信号処理を行ない、ライトデータに応じたライト電流を
ヘッドアンプを介してディスクヘッド10に供給する。
The read / write circuit 2 receives the read signal from the disk head 10 amplified by the head amplifier and performs signal processing necessary for data reproducing operation. The read / write circuit 2 also performs signal processing necessary for data recording operation, and supplies a write current according to write data to the disk head 10 via a head amplifier.

【0022】またリード/ライト回路2は、通常のユー
ザデータの記録再生処理と共に、ヘッド位置決め制御の
サーボ処理に必要なサーボデータの再生処理を実行す
る。サーボデータには、ディスクヘッド10の現在位置
を示すシリンダアドレス及びシリンダ内の位置誤差を示
すためのバーストデータ(バースト信号)が含まれてい
る。図示しないサーボ回路は、リード/ライト回路2か
ら出力されたデータパルスからシリンダアドレスを抽出
して保持する。また、サーボ回路は、バースト信号を抽
出するためのサンプルタイミング信号を出力処理し、あ
るいはセクタパルスの抽出処理を行なう。
Further, the read / write circuit 2 executes a normal user data recording / reproducing process and a servo data reproducing process required for a servo process for head positioning control. The servo data includes a cylinder address indicating the current position of the disk head 10 and burst data (burst signal) indicating a position error within the cylinder. A servo circuit (not shown) extracts and holds the cylinder address from the data pulse output from the read / write circuit 2. Further, the servo circuit outputs the sample timing signal for extracting the burst signal or extracts the sector pulse.

【0023】CPU5は、サーボ回路と共にヘッド位置
決め制御を実行するサーボ処理システムを構成する。こ
のCPU5は、ヘッド位置決め制御以外に、リード/ラ
イトデータの転送制御を含む磁気ディスク装置の各種駆
動制御を実行する。このような場合CPU5は、ROM
7に格納された制御プログラムに基づいて各種駆動制御
を実行する。ROM7は、外部バスを介してCPU5に
接続されている。このROM5には、磁気ディスク装置
の故障診断のためのファームウェアが格納されている。
またROM7には、データの出力レベルの変動、繰返し
行われたリード処理の回数(リトライ回数)、ECC等
のエラー訂正機能によりデータが正確に読み出されたこ
と等の条件が記憶されている。またROM7のファーム
ウェアは本発明の特徴点に係るコマンド発行履歴情報の
収集機能を備えている。その詳細については後述する。
The CPU 5 constitutes a servo processing system for executing head positioning control together with the servo circuit. The CPU 5 executes various drive controls of the magnetic disk device including read / write data transfer control, in addition to head positioning control. In such a case, the CPU 5 has a ROM
Various drive controls are executed based on the control program stored in 7. The ROM 7 is connected to the CPU 5 via an external bus. The ROM 5 stores firmware for failure diagnosis of the magnetic disk device.
The ROM 7 also stores conditions such as fluctuations in the output level of data, the number of times read processing has been repeated (the number of retries), and the fact that data has been correctly read by an error correction function such as ECC. Further, the firmware of the ROM 7 has a function of collecting command issue history information according to the feature of the present invention. The details will be described later.

【0024】CPU5はワンチップのマイクロプロセッ
サからなり、入出力部としてA/DコンバータおよびD
/Aコンバータを内蔵する。更に、命令RAMと称する
内部リード/ライトメモリを有する。尚、同実施形態で
は、CPU5は、A/Dコンバータを用い、供給される
バースト信号をディジタルデータに変換する。又、CP
U5はD/Aコンバータを用い、サーボ処理に必要な制
御量(ヘッド位置決め制御等に必要な制御量)をアナロ
グ信号に変換してドライバ8に出力する。
The CPU 5 comprises a one-chip microprocessor, and has an A / D converter and a D as an input / output unit.
Built-in / A converter. Further, it has an internal read / write memory called an instruction RAM. In the embodiment, the CPU 5 uses an A / D converter to convert the supplied burst signal into digital data. Also, CP
U5 uses a D / A converter to convert the control amount required for servo processing (control amount required for head positioning control etc.) into an analog signal and output it to the driver 8.

【0025】ディスクデータコントローラ3は、磁気デ
ィスク装置とホストシステムとのインターフェースを構
成し、主としてリード/ライトデータの転送を行なうコ
ントローラである。このディスクデータコントローラ3
は、メディア1から読出されたセクタ単位のリードデー
タ及びメディア1に書き込むためのライトデータをバッ
ファーラム(RAM)4に一時的に格納する。ディスク
データコントローラ3及びCPU5はデータ転送制御を
行なうシステムを構成している。また、ディスクデータ
コントローラ3には、エラー検知回路が設けられてい
る。このエラー検知回路は、メディア1から読み出され
たデータに基づいてデータエラーを検知するほか、所定
の狭い領域であれば、エラーを回復する機能、すなわち
ECC(Error Correction Code)機能を有している。
The disk data controller 3 is a controller that constitutes an interface between the magnetic disk device and the host system and mainly transfers read / write data. This disk data controller 3
Stores the read data read from the medium 1 in sector units and the write data for writing in the medium 1 in the buffer RAM (RAM) 4 temporarily. The disk data controller 3 and the CPU 5 constitute a system that controls data transfer. The disk data controller 3 is also provided with an error detection circuit. This error detection circuit has a function of detecting a data error based on the data read from the medium 1 and a function of recovering an error in a predetermined narrow area, that is, an ECC (Error Correction Code) function. There is.

【0026】またディスクデータコントローラ3は、ホ
ストインターフェース6を介してホスト(図示しない)
から送られてきたコマンドを処理する際に利用されるレ
ジスタ群12を備える。このレジスタ群12はタスクフ
ァイルとも称され、図2に示すように、ステータスレジ
スタ121、コマンドレジスタ122、アドレスレジス
タ123を備える。レジスタ群12はこれら以外にもレ
ジスタを有するが、ここではその説明を省略する。また
ディスクデータコントローラ3は、コマンドシーケンス
情報の記憶部14を有する。この記憶部14は、上述し
たSMART(故障予知)機構のログ機能がサポートし
ている記憶部内の所定領域に特別に用意される。なお、
記憶部14がバッファラム4に設けられていても良い。
The disk data controller 3 also has a host (not shown) via the host interface 6.
It has a register group 12 used when processing a command sent from. The register group 12 is also called a task file, and includes a status register 121, a command register 122, and an address register 123, as shown in FIG. The register group 12 has registers other than these, but the description thereof is omitted here. The disk data controller 3 also has a command sequence information storage unit 14. The storage unit 14 is specially prepared in a predetermined area in the storage unit supported by the log function of the SMART (fault prediction) mechanism described above. In addition,
The storage unit 14 may be provided in the buffer RAM 4.

【0027】ステータスレジスタ121は、コマンドレ
ジスタ122に対しホストから書き込まれたコマンドの
実行状態を示すレジスタである。ディスクデータコント
ローラ3内(磁気ディスク装置側)において、当該コマ
ンドの実行中は当該レジスタ121はビジー(Busy)状態
にセットされ、その実行完了によってレディー(Ready)
状態がセットされる。これらは、ファームウェア内部で
はコマンド実行フラグのセット/リセットとして表現さ
れる。図示しないホストは、ステータスレジスタ121
を参照することでコマンドの実行状態を検知できるか
ら、正常動作時には適切なタイミングでコマンドを送出
するが、ホスト側に装備されるソフトウェアの不具合等
による何らかの障害が発生した場合、ステータスレジス
タ121がビジー状態であるにもかかわらず、ホストか
ら後続のコマンドが供給され、コマンドレジスタ122
に書き込まれることがある。これをコマンドオーバーラ
イトと称する。
The status register 121 is a register indicating the execution state of the command written from the host to the command register 122. In the disk data controller 3 (on the magnetic disk device side), the register 121 is set to a busy state while the command is being executed, and when the execution is completed, the register 121 is ready.
The state is set. These are expressed inside the firmware as set / reset of command execution flags. The host (not shown) is a status register 121.
The command execution status can be detected by referring to the command. Therefore, the command is sent at an appropriate timing during normal operation. However, if some trouble occurs due to a software defect on the host side, the status register 121 is busy. Despite the status, the subsequent command is supplied from the host, and the command register 122
May be written in. This is called command overwrite.

【0028】本実施形態の磁気ディスク装置は、ディス
クデータコントローラ3においてコマンドオーバーライ
トを検出し、その検出結果をコマンド発行履歴情報に含
めて記録する手段を備える。これは、上述したファーム
ウェアの追加機能として実現される。
The magnetic disk device of this embodiment comprises means for detecting command overwrite in the disk data controller 3 and recording the detection result in the command issue history information. This is realized as an additional function of the firmware described above.

【0029】以上のように構成された本実施形態の磁気
ディスク装置によるコマンド実行時の動作を図3のフロ
ーチャートを参照して説明する。まずステップS1にお
いて、ホストインターフェース6を介してディスクデー
タコントローラ3に対しコマンドが供給される。このコ
マンドはレジスタ群12のコマンドレジスタ122に書
き込まれる。このとき、当該コマンドに対応するタスク
ファイルの内容(各レジスタの値)と、ライフタイムス
タンプとが、コマンド情報としてバッファラム4に一時
的に記憶される。ここでは、ライフタイムスタンプは磁
気ディスク装置の電源投入時からの経過時間の値をい
う。
The operation at the time of command execution by the magnetic disk device of the present embodiment configured as described above will be described with reference to the flowchart of FIG. First, in step S1, a command is supplied to the disk data controller 3 via the host interface 6. This command is written in the command register 122 of the register group 12. At this time, the content of the task file (value of each register) corresponding to the command and the lifetime stamp are temporarily stored in the buffer RAM 4 as command information. Here, the lifetime stamp refers to the value of the elapsed time since the magnetic disk device was powered on.

【0030】コマンド情報は、SMART機構が備える
他のエラーログ機能にも利用される。コマンド情報の記
憶領域は有限長のリングバッファを構成しており、記憶
データ量が一杯になると、最新の情報が最古のデータに
上書きされる。
The command information is also used for other error log functions of the SMART mechanism. The command information storage area constitutes a ring buffer of finite length, and when the storage data amount becomes full, the latest information is overwritten with the oldest data.

【0031】ここで、コマンドオーバーライトが発生し
ているか否かをコマンド実行フラグに基づいて判定する
(ステップS2)。すなわち、当該コマンド実行フラグ
がセットされているにもかかわらず、当該ステップS2
が実行されることをもってコマンドオーバーライトの発
生を検出する。このとき、ホストから供給された後続の
コマンドはコマンドレジスタ122に書き込まれる。な
お、ここでの検出方法はあくまで一例であって、他の検
出方法により代替され得る。
Here, it is determined whether or not command overwrite has occurred based on the command execution flag (step S2). That is, even if the command execution flag is set, the step S2
The occurrence of command overwrite is detected when is executed. At this time, the subsequent command supplied from the host is written in the command register 122. Note that the detection method here is merely an example, and can be replaced by another detection method.

【0032】コマンドオーバーライトが検出された場
合、その検出結果はコマンドオーバーライト情報として
記憶部14に記憶される。記憶部14は、上記コマンド
情報と同様に有限長のリングバッファを構成しており、
複数件数のコマンドオーバーライト情報をログとして記
憶する。記憶データ量が一杯になると、最新の情報が最
古のデータに上書きされる。記憶部14の先頭領域は、
ログ・インデックスを有する。ログ・インデックスは、
何番目にログされたものが最新であるか等、コマンドオ
ーバーライト情報の登録順序を表す。ログ・インデック
スに続き、コマンドオーバーライト情報が記憶される。
When command overwrite is detected, the detection result is stored in the storage unit 14 as command overwrite information. The storage unit 14 constitutes a finite-length ring buffer like the command information,
The command overwrite information of multiple cases is stored as a log. When the amount of stored data becomes full, the latest information is overwritten with the oldest data. The top area of the storage unit 14 is
Has a log index. The log index is
It indicates the registration order of the command overwrite information, such as the number of the latest one logged. Following the log index, command overwrite information is stored.

【0033】コマンドオーバーライト情報は、1件につ
き例えば512バイトのデータサイズを有し、その内容
としては、先に発行され未だ実行が完了していないコマ
ンドのタスクファイルの値、ライフタイムスタンプの
値、今回送られてきたコマンドのタスクファイルの値、
ライフタイムスタンプの値、及びこれら2つのコマンド
の発行時間間隔(ms)の値である。コマンドオーバー
ライト情報のデータ構造(フォーマット)はこれのみに
限定されない。
The command overwrite information has a data size of, for example, 512 bytes per item, and the contents thereof include the value of the task file of the command issued earlier and the execution of which has not been completed, and the value of the lifetime stamp. , The value of the task file of the command sent this time,
It is the value of the lifetime stamp and the value of the issuance time interval (ms) of these two commands. The data structure (format) of the command overwrite information is not limited to this.

【0034】このようなコマンドオーバーライト情報が
1回の検出につき、ログデータとして記録されるわけで
あるが、次回新たに検出されたコマンドオーバーライト
に関しては、記憶部14内の続く領域に対応するコマン
ドオーバーライト情報が書き込まれる。記憶部14の記
憶容量が一杯となったら、最新のデータが最古のデータ
に対して上書きされる。
Such command overwrite information is recorded as log data for each detection, but the command overwrite newly detected next time corresponds to the subsequent area in the storage unit 14. Command overwrite information is written. When the storage capacity of the storage unit 14 is full, the latest data is overwritten on the oldest data.

【0035】一方、コマンドオーバーライトが発生しな
かった場合は、今回のコマンドに対応してコマンド実行
フラグがセットされる(ステップS4)。そして、当該
コマンドの実行が行われる(ステップS5)。その実行
が完了すると、コマンド実行フラグがリセットされる
(ステップS6)。
On the other hand, if the command overwrite has not occurred, the command execution flag is set corresponding to the command this time (step S4). Then, the command is executed (step S5). When the execution is completed, the command execution flag is reset (step S6).

【0036】以上のような本実施形態の磁気ディスク装
置によれば、コマンドオーバーライト情報を記憶部14
に記憶する。したがって、記憶されたコマンドオーバー
ライト情報を読み出すことで、ホストから発行され先行
するコマンドの実行完了前に、該ホストから後続のコマ
ンドが供給されたことを事後に知ることができるように
なる。したがって、障害発生時における原因解析のため
に有益な情報を得ることができる。
According to the magnetic disk device of this embodiment as described above, the command overwrite information is stored in the storage unit 14.
Remember. Therefore, by reading the stored command overwrite information, it becomes possible to know that the subsequent command is supplied from the host before the completion of execution of the preceding command issued from the host. Therefore, it is possible to obtain useful information for cause analysis when a failure occurs.

【0037】(第2実施形態)図4は、本発明の第2実
施形態に係る磁気ディスク装置の概略構成を示すブロッ
ク図である。この装置において、第1実施形態と同じ部
分には同一の参照符号が付してある。
(Second Embodiment) FIG. 4 is a block diagram showing a schematic configuration of a magnetic disk device according to a second embodiment of the present invention. In this device, the same parts as those in the first embodiment are designated by the same reference numerals.

【0038】第2実施形態に係る磁気ディスク装置は、
コマンドオーバーライト情報を含むコマンド情報(総称
してコマンド情報という)を不揮発性の記録媒体に記録
する点が第1実施形態とは異なる。特にここでは、記録
再生媒体(メディア)1に特別に設けられた媒体領域1
1にコマンド情報を記録する。また本実施形態は、所定
の要求(コマンド)に対し、メディア1の媒体領域11
に記録されたコマンド情報をホストインターフェース6
を介してホストに対し転送する構成である。
The magnetic disk drive according to the second embodiment is
This is different from the first embodiment in that command information including command overwrite information (collectively referred to as command information) is recorded in a nonvolatile recording medium. Particularly, here, a medium area 1 specially provided in the recording / reproducing medium (media) 1.
The command information is recorded in 1. Further, in this embodiment, the medium area 11 of the medium 1 is responded to in response to a predetermined request (command).
Command information recorded in the host interface 6
It is a configuration for transferring to the host via.

【0039】本実施形態では、コマンドオーバーライト
の発生如何に拘らず上述したコマンドオーバーライト情
報に相当する情報を記憶部14に記憶させるとともに、
該情報を適当なタイミングでメディア1の媒体領域11
に対し書き込む。つまり、リード/ライト回路2を介し
てデータをメディア1に書き込むための所要時間が磁気
ディスク装置全体の動作に影響を与えないように、コマ
ンドの受け取り時等を除外してログの書き込み動作が行
われる。なお、メディア1の媒体領域11についてもリ
ングバッファを構成し、領域の記録データが一杯になっ
たら、最古のデータに対し最新のデータを上書きする。
In the present embodiment, information corresponding to the above-mentioned command overwrite information is stored in the storage unit 14 regardless of the occurrence of command overwrite, and
The information is sent to the medium area 11 of the medium 1 at an appropriate timing.
Write to. That is, the log writing operation is performed excluding the time of receiving a command so that the time required for writing data to the medium 1 via the read / write circuit 2 does not affect the operation of the entire magnetic disk device. Be seen. A ring buffer is also configured for the medium area 11 of the medium 1, and when the recorded data in the area is full, the oldest data is overwritten with the latest data.

【0040】ホストにおいて、磁気ディスク装置のメデ
ィア1の媒体領域11に記録されているログ情報の転送
を受けた場合、コマンド情報とコマンドオーバーライト
情報の両者を表示する場合と、コマンド情報のみを表示
する(つまり、コマンドの発行履歴)のみを表示する場
合とがある。
When the host receives the transfer of the log information recorded in the medium area 11 of the medium 1 of the magnetic disk device, both the command information and the command overwrite information are displayed, and only the command information is displayed. In some cases, only (that is, the command issue history) is displayed.

【0041】そこで、ホストから磁気ディスク装置に対
しログ情報の転送を要求する場合、コマンドオーバーラ
イト情報の表示可否を指示するための手段を設ける。具
体的には、転送要求に係るFeatureレジスタ等に
特別なビットを用意する。
Therefore, when the host requests the magnetic disk device to transfer the log information, a means for instructing whether or not to display the command overwrite information is provided. Specifically, a special bit is prepared in the Feature register or the like related to the transfer request.

【0042】かかる場合、本実施形態の磁気ディスク装
置は、コマンドオーバーライト情報の表示が指示されて
いる場合は、コマンド情報とコマンドオーバーライト情
報の両者をホストインターフェース6を介してホストに
転送する。一方、コマンドオーバーライト情報の表示が
指示されていない場合は、コマンド情報のみをホストイ
ンターフェース6を介してホストに転送する。ホスト側
では、送られてきた情報をそのままのフォーマットで表
示できる。
In such a case, the magnetic disk device of this embodiment transfers both the command information and the command overwrite information to the host via the host interface 6 when the command overwrite information is instructed to be displayed. On the other hand, when the display of the command overwrite information is not instructed, only the command information is transferred to the host via the host interface 6. The host can display the sent information in its original format.

【0043】以上のような第2実施形態の磁気ディスク
装置によれば、第1実施形態と同等の作用効果が得られ
るとともに、コマンドオーバーライト情報を不揮発性の
記憶媒体(メディア1)に記録するようにしているの
で、該情報を恒久的に得ることができるようになる。ま
た、該記録情報のホストへの転送についても、コマンド
オーバーライト情報の表示可否を指定することができ、
柔軟なシステム構成を得ることができる。
According to the magnetic disk device of the second embodiment as described above, the same effect as that of the first embodiment can be obtained, and the command overwrite information is recorded in the nonvolatile storage medium (medium 1). As a result, the information can be obtained permanently. Also, regarding transfer of the record information to the host, it is possible to specify whether to display the command overwrite information,
A flexible system configuration can be obtained.

【0044】なお、本発明は上述した実施形態に限定さ
れず種々変形して実施可能である。例えば本発明は、磁
気ディスク装置のみならず他の情報記録装置にも適用可
能である。
The present invention is not limited to the above-described embodiment, but can be implemented with various modifications. For example, the present invention can be applied not only to the magnetic disk device but also to other information recording devices.

【0045】[0045]

【発明の効果】以上説明したように、本発明によれば、
障害発生時における原因解析のために有益な情報を得る
ことのできるディスク装置を提供できる。
As described above, according to the present invention,
A disk device that can obtain useful information for cause analysis when a failure occurs can be provided.

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

【図1】本発明の第1実施形態に係る磁気ディスク装置
の概略構成を示すブロック図
FIG. 1 is a block diagram showing a schematic configuration of a magnetic disk device according to a first embodiment of the present invention.

【図2】レジスタ群(タスクファイル)の詳細構成を示
す図
FIG. 2 is a diagram showing a detailed configuration of a register group (task file).

【図3】磁気ディスク装置におけるコマンド実行時の動
作を示すフローチャート
FIG. 3 is a flowchart showing an operation when a command is executed in the magnetic disk device.

【図4】本発明の第2実施形態に係る磁気ディスク装置
の概略構成を示すブロック図
FIG. 4 is a block diagram showing a schematic configuration of a magnetic disk device according to a second embodiment of the present invention.

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

1…記録再生媒体1(メディア) 2…読み出し/書き込み回路 3…ディスクデータコントローラ 4…バッファラム 5…CPU 6…ホストインターフェース 7…ROM及びRAM 8…VCM(ボイスコイルモータ)及びスピンドルモー
タのドライバ 10…ディスクヘッド 12…レジスタ群 14…コマンドシーケンス情報の記憶部
1 ... Recording / reproducing medium 1 (media) 2 ... Read / write circuit 3 ... Disk data controller 4 ... Buffer RAM 5 ... CPU 6 ... Host interface 7 ... ROM and RAM 8 ... VCM (voice coil motor) and spindle motor driver 10 ... disk head 12 ... register group 14 ... command sequence information storage unit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 3/06 - 3/08 G11B 20/10 G11B 20/18 ─────────────────────────────────────────────────── ─── Continuation of front page (58) Fields surveyed (Int.Cl. 7 , DB name) G06F 3/06-3/08 G11B 20/10 G11B 20/18

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ホストから発行されたコマンドに応じ
て、ディスクに対するデータの記録または再生を実行す
るディスク装置であって、 前記ホストから受信したコマンドを格納するコマンドレ
ジスタ、及び当該コマンドの実行状態を示すフラグをセ
ットするステータスレジスタを含むレジスタ手段と、 前記ホストから受信したコマンドを前記コマンドレジス
タに格納したときに、前記ステータスレジスタには当該
コマンドより先行して受信したコマンドが実行中である
ことを示すフラグがセットされている場合には、コマン
ドオーバーライトが発生したことを示すコマンドオーバ
ーライト情報を作成する作成手段と、 前記コマンドオーバーライト情報を記憶する記憶手段と
を具備することを特徴とするディスク装置。
1. A command issued by a host
The disc to record or play data.
A disk device that stores a command received from the host.
Register and a flag indicating the execution status of the command.
Register means including a status register for setting and a command received from the host to the command register.
Data in the status register
The command received prior to the command is being executed
If the flag indicating that is set,
Command over indicating that a overwrite has occurred
A disk device comprising: a creating unit that creates write information, and a storage unit that stores the command overwrite information .
【請求項2】 前記ホストとの間で前記コマンド及びデ
ータの転送を実行するコントローラを有し、 当該コントローラは、前記レジスタ手段及び前記記憶手
段を含み、前記記憶手段に記憶された前記コマンドオー
バーライト情報を前記ホストに転送することを特徴とす
る請求項1に記載のディスク装置。
2. The command and the data are exchanged with the host.
A controller for executing data transfer, the controller including the register means and the storage device.
A command step stored in the storage means, including a step.
Characterized in that the bar light information is transferred to the host.
The disk device according to claim 1, further comprising:
【請求項3】 ホストから発行されたコマンドに応じ
て、ディスクに対するデータの記録または再生を実行す
るディスク装置に適用するコマンド処理方法であって、 前記ホストから受信したコマンドをコマンドレジスタに
格納するステップと、 前記コマンドを前記コマンドレジスタに格納したとき
に、コマンドの実行状態を示すフラグがセットされるス
テータスレジスタを参照し、当該コマンドより先行して
受信したコマンドが実行中であることを示すフラグがセ
ットされている場合には、コマンドオーバーライトが発
生したことを示すコマンドオーバーライト情報を作成す
るステップと、 前記コマンドオーバーライト情報を記憶手段に記憶する
ステップとを有する手順を実行することを特徴とするコ
マンド処理方法。
3. According to the command issued from the host
The disc to record or play data.
A command processing method applied to a disk device in which a command received from the host is stored in a command register.
Storing step and when the command is stored in the command register
, A flag that indicates the execution status of the command is set
Refer to the status register and precede the command.
A flag indicating that the received command is being executed is set
Command overwrite is issued,
Command overwrite information indicating that
And a step of storing the command overwrite information in the storage means.
A procedure characterized by executing a procedure having steps and
Mand processing method.
JP37423999A 1999-12-28 1999-12-28 Disk unit Expired - Fee Related JP3457602B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP37423999A JP3457602B2 (en) 1999-12-28 1999-12-28 Disk unit
SG200005080A SG85729A1 (en) 1999-12-28 2000-09-05 Magnetic disk apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP37423999A JP3457602B2 (en) 1999-12-28 1999-12-28 Disk unit

Publications (2)

Publication Number Publication Date
JP2001189060A JP2001189060A (en) 2001-07-10
JP3457602B2 true JP3457602B2 (en) 2003-10-20

Family

ID=18503503

Family Applications (1)

Application Number Title Priority Date Filing Date
JP37423999A Expired - Fee Related JP3457602B2 (en) 1999-12-28 1999-12-28 Disk unit

Country Status (2)

Country Link
JP (1) JP3457602B2 (en)
SG (1) SG85729A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004030534A (en) 2002-06-28 2004-01-29 Toshiba Corp Disk storage device and event managing method
US7287133B2 (en) * 2004-08-24 2007-10-23 Symantec Operating Corporation Systems and methods for providing a modification history for a location within a data store
JP2010049613A (en) * 2008-08-25 2010-03-04 Nec Corp Storage device, and method and program for managing storage performance

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69132618T2 (en) * 1990-11-09 2001-09-13 Seagate Technology Llc CONTROL ARCHITECTURE FOR HARD DISK DRIVE WITH SEVERAL MICROCONTROLLERS
JPH07191808A (en) * 1993-12-27 1995-07-28 Nec Ibaraki Ltd Magnetic disk processor
JP2581003B2 (en) * 1994-05-26 1997-02-12 日本電気株式会社 Recording disk controller
US5941998A (en) * 1997-07-25 1999-08-24 Samsung Electronics Co., Ltd. Disk drive incorporating read-verify after write method

Also Published As

Publication number Publication date
SG85729A1 (en) 2002-01-15
JP2001189060A (en) 2001-07-10

Similar Documents

Publication Publication Date Title
JP2548480B2 (en) Disk device diagnostic method for array disk device
US8291190B2 (en) Disk drive including a host interface supporting different sizes of data sectors and method for writing data thereto
JP2009110287A (en) Access control device and access control method
JPH08297928A (en) Magnetic disk device with recording medium inspecting function
US6523142B1 (en) Apparatus and method of performing in a disk drive commands issued from a host system
JP3268547B2 (en) Method and apparatus for detecting an error in defined information recorded in a direct access storage device using an error correction code
JP2006252733A (en) Medium storage device and write path diagnosing method for the same
JP3457602B2 (en) Disk unit
CN108735235A (en) The control method of disk device, controller circuitry and disk device
JP2003263703A5 (en)
JP3431582B2 (en) Desk storage device and processing method when hang-up occurs applied to the device
JPS58182775A (en) Self-diagnosing system of magnetic disk
JP2003228925A (en) Write data guaranteeing method for magnetic disk device
JPH0766633B2 (en) Disk device control system
JPH06309118A (en) Information processor
JPH0782708B2 (en) Additional data writing method
JPH0793101A (en) Data backup device
JPH1011701A (en) Magnetic disk device and fault predicting method for the same device
JPH09212425A (en) Write cache backup system
JP3034826B2 (en) Hard disk drive device and method
JP2595316B2 (en) Alternate assignment processing method
JP3754199B2 (en) Disc recording / reproducing apparatus and error processing method applied to the same
JPS58223860A (en) Magnetic disk controller
JPH0883151A (en) Magnetic disk device
JP2000020249A (en) Data protecting method of disk device, disk device, and recording medium

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070801

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080801

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090801

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090801

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100801

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100801

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110801

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110801

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120801

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120801

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130801

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees