JPH10198523A - Magnetic disk device - Google Patents

Magnetic disk device

Info

Publication number
JPH10198523A
JPH10198523A JP184397A JP184397A JPH10198523A JP H10198523 A JPH10198523 A JP H10198523A JP 184397 A JP184397 A JP 184397A JP 184397 A JP184397 A JP 184397A JP H10198523 A JPH10198523 A JP H10198523A
Authority
JP
Japan
Prior art keywords
writing
data
magnetic disk
write
volatile memory
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.)
Withdrawn
Application number
JP184397A
Other languages
Japanese (ja)
Inventor
Susumu Kimura
進 木村
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.)
NEC Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP184397A priority Critical patent/JPH10198523A/en
Publication of JPH10198523A publication Critical patent/JPH10198523A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a magnetic disk device in which a normal restoring processing can be attained even when power source failure is generated in any timing. SOLUTION: Whether or not power source failure is generated at the time of writing in the just previous past is judged based on a state signal (a step 102), and in the case of YES, the possibility of the generation of abnormality at the time of writing in the just previous past is judged, and writing data at the time of the generation of the power source failure and the block number of the destination of writing are held in a non-volatile memory, and an MPU (microprocessor unit) obtains the writing data and the block number of the destination of writing through an HDC(hard disk controller), and prepares for writing (a step 103). When the MPU issues a writing instruction to the HDC, the HDC obtains the writing data from the non-volatile memory, and operates writing in a magnetic storing medium (a step 104). When the writing is normally ended, the MPU makes the state signal of a power source failure monitoring circuit inactive by using a clear signal (a step 105).

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 drive, and more particularly to a write cache function of a magnetic disk drive and a write data recovery function when a power failure occurs.

【0002】[0002]

【従来の技術】従来の磁気ディスク装置では、上位装置
から送出された書き込みデータを、ライトキャッシュと
呼ばれる揮発性メモリー(電源断で記憶されたデータが
失われるタイプの例えば半導体メモリー)に一時的に格
納することにより、上位装置と磁気ディスク装置間で行
われる、書き込みコマンド処理の時間を高速化してい
る。これは、磁気ディスクへのデータの書き込み・読み
出しより、ライトキャッシュへの書き込み・読み出しの
方がはるかに高速にできるからである。
2. Description of the Related Art In a conventional magnetic disk drive, write data sent from a host device is temporarily stored in a volatile memory called a write cache (for example, a semiconductor memory of a type in which stored data is lost when power is turned off). By storing, the time of the write command processing performed between the host device and the magnetic disk device is accelerated. This is because writing / reading to / from the write cache can be performed much faster than writing / reading data to / from the magnetic disk.

【0003】この従来の磁気ディスク装置の場合、ライ
トキャッシュに一時的に格納された書き込みデータは、
磁気ディスク(記憶媒体)への書き込みが終了する前に
電源障害等があると、電源障害の発生時点以降のデータ
はライトキャッシュの電源が断となるため、すべて失わ
れる。
In the case of this conventional magnetic disk drive, write data temporarily stored in a write cache is
If a power failure or the like occurs before the writing to the magnetic disk (storage medium) is completed, all data after the occurrence of the power failure is lost because the power of the write cache is turned off.

【0004】この問題を解決するために、特開平4−2
73516号公報には図3に示すような、データキャッ
シュ部に不揮発(性)メモリー(電源断になっても記憶
されているデータが失われないタイプの例えば半導体メ
モリー)を備える方法が提案されている。
In order to solve this problem, Japanese Patent Laid-Open No.
No. 73516 proposes a method for providing a non-volatile (non-volatile) memory (for example, a semiconductor memory of a type in which stored data is not lost even when power is turned off) in a data cache unit as shown in FIG. I have.

【0005】図3において、計算機システムの主要部を
構成するプロセッサ21及び主記憶装置22はバス23
に接続されている。そして、このバス23に、磁気ディ
スク装置24が接続されている。
[0005] In FIG. 3, a processor 21 and a main storage device 22 constituting main parts of a computer system are connected to a bus
It is connected to the. The magnetic disk device 24 is connected to the bus 23.

【0006】磁気ディスク装置24はディスクコントロ
ーラ25と磁気ディスク本体26とにより構成されてい
る。そして、ディスクコントローラ25はディスクキャ
ッシュ27、データ制御部28及び不揮発性レジスタ群
29からなっている。
The magnetic disk drive 24 includes a disk controller 25 and a magnetic disk main body 26. The disk controller 25 includes a disk cache 27, a data control unit 28, and a nonvolatile register group 29.

【0007】ディスクキャッシュ27は揮発性メモリー
30と不揮発性のEEPROM(電気的消去可能プログ
ラマブルリードオンリーメモリー)31で構成され、揮
発性メモリー30に、磁気ディスク本体26から読み出
されるデータを格納し、EEPROM31に、磁気ディ
スク本体26に書き込むためのデータを格納するように
している。この場合、EEPROM31に格納される書
き込みデータは、磁気ディスク本体26に対する書き込
みデータの他に、データブロックの先頭番地、ブロック
数、書き込みに必要な情報からなっている。
The disk cache 27 is composed of a volatile memory 30 and a nonvolatile EEPROM (Electrically Erasable Programmable Read Only Memory) 31. The volatile memory 30 stores data read from the magnetic disk main body 26, and Then, data to be written to the magnetic disk main body 26 is stored. In this case, the write data stored in the EEPROM 31 includes the start address of the data block, the number of blocks, and information necessary for writing, in addition to the write data for the magnetic disk main body 26.

【0008】データ制御部28は不揮発性レジスタ群2
9の管理と、この不揮発性レジスタ群29の記憶内容に
基づいて障害復旧を行う。この場合、不揮発性レジスタ
群29は、EEPROM31に書き込まれるデータブロ
ックの先頭番地、ブロック数、書き込みに必要な情報な
どをテーブルに格納する。
The data control unit 28 includes a nonvolatile register group 2
9 and recovery from the failure based on the contents stored in the nonvolatile register group 29. In this case, the nonvolatile register group 29 stores, in a table, the start address of the data block to be written to the EEPROM 31, the number of blocks, information necessary for writing, and the like.

【0009】まず、磁気ディスク装置24よりデータを
読み出す場合、計算機システムのプロセサ21は磁気デ
ィスク本体26中の1ブロックのデータを読み出そうと
すると、ディスクコントローラ25に対して、読み出し
要求とデータの読み出しに必要な情報を送る。
First, when reading data from the magnetic disk device 24, the processor 21 of the computer system, when trying to read one block of data in the magnetic disk main body 26, sends a read request and a data request to the disk controller 25. Sends information required for reading.

【0010】ディスクコントローラ25では、プロセッ
サ21からの読み出し要求を受け取ると、このときの読
み出しに必要な情報に基づいて、まずディスクキャッシ
ュ27の揮発性メモリー30を管理している不揮発性レ
ジスタ群29のテーブル中に、読み出し要求のあったブ
ロックが存在するかどうかを調べる。
When the disk controller 25 receives a read request from the processor 21, the disk controller 25 first stores information in the nonvolatile register group 29 that manages the volatile memory 30 of the disk cache 27 based on information necessary for reading at this time. It is checked whether or not the table requested to be read exists in the table.

【0011】ここで、読み出し要求のあったブロックが
存在する場合は、そのブロックをバス23を介して主記
憶装置22に格納し、その後、読み出し要求が終了した
ことをプロセサ21に通知して処理を終了する。
If there is a block for which a read request has been made, the block is stored in the main storage device 22 via the bus 23, and then the completion of the read request is notified to the processor 21 for processing. To end.

【0012】一方、読み出し要求のあったブロックが存
在しない場合は、磁気ディスク本体26よりプロセッサ
21が要求したブロックの読み出しを行い、ディスクキ
ャッシュ27の揮発性メモリー30に格納するととも
に、ディスクキャッシュ27の揮発性メモリー30を管
理している不揮発性レジスタ群29のテーブルに管理情
報を作成する。
On the other hand, if there is no block requested to be read, the block requested by the processor 21 is read from the magnetic disk main body 26, and stored in the volatile memory 30 of the disk cache 27. Management information is created in a table of the nonvolatile register group 29 that manages the volatile memory 30.

【0013】そしてこの場合も、ディスクキャッシュ2
7の揮発性メモリー30に格納されたデータを、バス2
3を介して主記憶装置22に格納し、その後、読み出し
要求が終了したことをプロセッサ21に通知して処理を
終了する。
Also in this case, the disk cache 2
7, the data stored in the volatile memory 30 is transferred to the bus 2
Then, the data is stored in the main storage device 22 via the CPU 3, and then the processor 21 is notified that the read request has been completed, and the processing is terminated.

【0014】次に、磁気ディスク装置24に対してデー
タを書き込む場合、プロセッサ21が主記憶装置22の
中の2つのブロックのデータを磁気ディスク本体26に
書き込もうとすると、プロセッサ21はディスクコント
ローラ25に対して、書き込み要求とデータ書き込みに
必要な情報を送る。
Next, when writing data to the magnetic disk drive 24, if the processor 21 attempts to write two blocks of data in the main storage device 22 to the magnetic disk main body 26, the processor 21 sends the data to the disk controller 25. In response, a write request and information necessary for writing data are sent.

【0015】ディスクコントローラ25では、プロセッ
サ21からのデータ書き込み要求を受け取ると、バス2
3を介して主記憶装置22から送られてくるデータを、
ディスクキャッシュ27の揮発性メモリー30に書き込
み、これと同時に、不揮発性レジスタ群29で指示され
る番地に基づいて、EEPROM31にシーケンシャル
に書き込む。
When the disk controller 25 receives a data write request from the processor 21, the disk controller 25
3, the data sent from the main storage device 22 via
The data is written to the volatile memory 30 of the disk cache 27, and at the same time, the data is sequentially written to the EEPROM 31 based on the address indicated by the nonvolatile register group 29.

【0016】そして、これらの書き込みが終了すると、
データ制御部28は、EEPROM31に書き込まれた
データのブロック数と、磁気ディスク本体26に対して
データを書き込むのに必要な情報を、不揮発性レジスタ
群29に格納する。
When the writing is completed,
The data control unit 28 stores the number of blocks of data written in the EEPROM 31 and information necessary for writing data to the magnetic disk main body 26 in the nonvolatile register group 29.

【0017】次に、ディスクコントローラ25は、書き
込み要求が終了したことをプロセサ21に通知した後、
プロセサ21から送られてきた情報に基づいて、磁気デ
ィスク本体26に対してEEPROM31からの最初の
1ブロック分のデータを書き込む。
Next, the disk controller 25 notifies the processor 21 that the write request has been completed,
Based on the information sent from the processor 21, the data of the first one block from the EEPROM 31 is written to the magnetic disk main body 26.

【0018】そして、1ブロック分のデータ書き込みを
終了すると、データ制御部28は、不揮発性レジスタ群
29のブロックの先頭番地を、2ブロック目の先頭番地
に更新するとともに、ブロック数を1に更新する。そし
て、EEPROM31のすべてのブロックを、磁気ディ
スク本体26に書き込んだかどうかを判断する。
When the data writing for one block is completed, the data control unit 28 updates the start address of the block of the nonvolatile register group 29 to the start address of the second block and updates the number of blocks to one. I do. Then, it is determined whether or not all the blocks of the EEPROM 31 have been written to the magnetic disk main body 26.

【0019】ここでNOと判断すると、磁気ディスク本
体26に対して、EEPROM31の次の1ブロック分
のデータを書き込むようになる。そして、EEPROM
31のすべてのブロックの磁気ディスク本体26への書
き込みが終了すると、データ制御部28は、不揮発性レ
ジスタ群29のブロックの先頭番地を次のブロックの番
地に、ブロック数を0に設定し、次の書き込み要求に備
えて処理を終了する。
If the determination is NO, the next one block of data in the EEPROM 31 is written to the magnetic disk main body 26. And EEPROM
When the writing of all the blocks 31 to the magnetic disk main body 26 is completed, the data control unit 28 sets the start address of the block of the nonvolatile register group 29 to the address of the next block, sets the number of blocks to 0, and The processing is terminated in preparation for the write request.

【0020】ところで、このようにして磁気ディスク本
体26にデータを書き込んでいる際、あるいはデータを
書き込もうとしている際に、計算機システムに停電やシ
ステム異常などの障害が発生したとすると、EEPRO
M31及び不揮発性レジスタ群29には、それぞれこの
時点までのデータが復旧に必要な情報として格納されて
いる。
By the way, if a failure such as a power failure or a system abnormality occurs in the computer system while data is being written to or written to the magnetic disk main body 26 in this manner, EEPRO
The data up to this point is stored in the M31 and the nonvolatile register group 29 as information necessary for recovery.

【0021】[0021]

【発明が解決しようとする課題】上述の図3に示す特開
平4−273516号公報記載の提案の場合、記憶媒体
への書き込みが終了し、書き込みが保留されているブロ
ック数の更新を行う前、あるいは更新中に電源障害があ
った場合には、書き込みが保留されているブロック数の
値が異常となる可能性があり、正常な復旧処理ができな
くなる問題がある。
In the case of the proposal described in Japanese Patent Application Laid-Open No. Hei 4-273516 shown in FIG. 3, the writing to the storage medium is completed and before the number of blocks for which writing is suspended is updated. Alternatively, if there is a power failure during updating, the value of the number of blocks for which writing is suspended may become abnormal, and there is a problem that normal recovery processing cannot be performed.

【0022】本発明の目的は、いかなるタイミングで電
源障害が発生しても、正常な復旧処理のできる磁気ディ
スク装置を提供することである。
An object of the present invention is to provide a magnetic disk drive capable of performing a normal recovery process even if a power failure occurs at any timing.

【0023】[0023]

【課題を解決するための手段】本発明によれば、磁気記
憶媒体への書き込みデータを一時的に不揮発性メモリー
に格納する磁気ディスク装置であって、電源の状態を監
視する電源監視手段と、前記電源監視手段からの電源障
害情報を受けて前記書き込みデータの前記磁気記憶媒体
への書き込み中に前記電源障害が発生したかどうかを状
態信号として検知・保持する電源障害監視手段と、前記
電源障害の修復後電源を再起動する際に前記状態信号で
直前の電源障害発生時に前記書き込みデータが前記磁気
記憶媒体への書き込み中であった場合に前記不揮発性メ
モリーに格納されたデータから前記磁気記憶媒体上の前
記書き込みデータを復旧する手段とを含むことを特徴と
する磁気ディスク装置が得られる。
According to the present invention, there is provided a magnetic disk drive for temporarily storing data to be written to a magnetic storage medium in a nonvolatile memory, comprising: power supply monitoring means for monitoring a power supply state; A power failure monitoring unit that receives power failure information from the power monitoring unit, detects and holds as a status signal whether or not the power failure has occurred while the write data is being written to the magnetic storage medium; When the power supply is restarted after the repair, the status signal indicates that the write data was being written to the magnetic storage medium at the time of the immediately preceding power supply failure. Means for restoring the write data on a medium.

【0024】本発明の作用は次の通りである。本発明に
よる磁気ディスク装置は、磁気ディスク(記憶媒体)に
書き込むデータを一時的に格納する不揮発性メモリー
と、磁気ディスク(記憶媒体)に対するデータの書き込
み動作中に、電源障害を監視し、保持する手段を設け、
電源障害発生時に不揮発性メモリーに保持されているデ
ータ内容で、データの復旧を行う。
The operation of the present invention is as follows. A magnetic disk device according to the present invention monitors and holds a power supply failure during a data write operation on a magnetic disk (storage medium) and a non-volatile memory for temporarily storing data to be written on a magnetic disk (storage medium). Providing means,
Data recovery is performed using the data contents held in the non-volatile memory when a power failure occurs.

【0025】[0025]

【発明の実施の形態】以下に、本発明の実施例について
図面を参照して説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0026】図1は本発明による磁気ディスク装置の実
施例の構成を示すブロック図である。図1を参照する
と、磁気ディスク装置1内のHDC(ハードディスクコ
ントローラ)2はインタフェース信号11を介して図示
しない上位装置と接続されている。MPU(マイクロプ
ロセッサ)3はHDC2に対する制御の他、図示しない
ヘッドの位置決め制御回路、スピンドル制御回路の制御
等を行う。また、HDC2には、揮発性メモリー6と不
揮発性メモリ−7とが接続されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of a magnetic disk drive according to the present invention. Referring to FIG. 1, an HDC (hard disk controller) 2 in a magnetic disk device 1 is connected to a higher-level device (not shown) via an interface signal 11. An MPU (microprocessor) 3 controls the HDC 2 and controls a head positioning control circuit and a spindle control circuit (not shown). Further, a volatile memory 6 and a non-volatile memory-7 are connected to the HDC 2.

【0027】リード/ライト制御回路4は書き込みデー
タ信号12と書き込み制御信号13と、図示しない読み
出しデータ信号及び読み出し制御信号とでHDC2に接
続されている。リード/ライト制御回路4は書き込みデ
ータ信号12を変調し、書き込み制御信号13の制御に
よって磁気記録媒体5へ書き込みを行う。
The read / write control circuit 4 is connected to the HDC 2 by a write data signal 12, a write control signal 13, and a read data signal and a read control signal (not shown). The read / write control circuit 4 modulates the write data signal 12 and performs writing on the magnetic recording medium 5 under the control of the write control signal 13.

【0028】電源障害監視回路8は書き込み制御信号1
3と電源監視回路9から出力される装置リセット信号1
4とを入力している。書き込み制御信号13がアクティ
ブの時装置リセット信号14がアクティブすなわち電源
障害が発生すると、状態信号15はアクティブになる。
状態信号15はMPU3に接続されており、MPU3の
電源投入時の処理で参照される。状態信号15の状態は
MPU3から出力されているクリア信号16によりイナ
クティブにすることができる。
The power supply failure monitoring circuit 8 outputs the write control signal 1
3 and the device reset signal 1 output from the power supply monitoring circuit 9
4 has been entered. When the write control signal 13 is active, the device reset signal 14 is active, that is, when a power failure occurs, the status signal 15 becomes active.
The status signal 15 is connected to the MPU 3 and is referred to in the process when the power of the MPU 3 is turned on. The state of the state signal 15 can be made inactive by the clear signal 16 output from the MPU 3.

【0029】電源障害監視回路8が出力する状態信号1
5は、例えばフリップフロップで状態が保持されてお
り、またこの磁気ディスク装置1へ供給される電源とは
別に例えばバッテリ等を用いており、磁気ディスク装置
1への供給電源が絶たれても保持される。
The state signal 1 output from the power failure monitoring circuit 8
Reference numeral 5 denotes a state held by, for example, a flip-flop, and uses a battery, for example, separately from the power supplied to the magnetic disk device 1, and holds the state even when the power supply to the magnetic disk device 1 is cut off. Is done.

【0030】次にライトキャッシュ動作について説明す
る。HDC2が上位装置からデータの書き込み命令を受
け取ると、書き込みデータを揮発性メモリ−6へ格納し
インタフェース制御を一時中断する。HDC2はある1
つのブロック番地のデータを揮発性メモリ−6から得
て、書き込み先のブロック番地と共に不揮発性メモリ−
7に格納する。
Next, the write cache operation will be described. When the HDC 2 receives a data write command from the host device, it stores the write data in the volatile memory 6 and temporarily suspends interface control. HDC2 is 1
The data of the two block addresses is obtained from the volatile memory 6 and the nonvolatile memory together with the block address of the write destination is obtained.
7 is stored.

【0031】次に、HDC2はリード/ライト制御回路
4を介して磁気記録媒体5への書き込みを行う。予め揮
発性メモリ−6に格納したブロック数の書き込みが終了
すると、HDC2は上位装置に書き込みが終了した旨の
報告を行う。
Next, the HDC 2 performs writing to the magnetic recording medium 5 via the read / write control circuit 4. When the writing of the number of blocks stored in the volatile memory 6 in advance is completed, the HDC 2 reports to the host device that the writing has been completed.

【0032】次に、磁気ディスク装置1の電源投入時の
MPU3の処理、特にデータ復旧処理について、図2の
フローチャートを用いて説明する。
Next, the processing of the MPU 3 when the power of the magnetic disk device 1 is turned on, particularly the data recovery processing, will be described with reference to the flowchart of FIG.

【0033】MPU3は電源障害監視回路8の状態を状
態信号15から得る(ステップ101)。状態信号15
がイナクティブであった時は、過去の書き込みの際に電
源障害がないと判断でき、書き込みデータは正常である
ので、何もしないで終了する(ステップ102)。状態
信号15がアクティブであった時は、過去の書き込みの
際に電源障害があったと判断でき、書き込みデータは異
常の可能性があるのでデータ復旧処理を開始する(ステ
ップ102)。
The MPU 3 obtains the status of the power failure monitoring circuit 8 from the status signal 15 (Step 101). State signal 15
Is inactive, it can be determined that there is no power failure at the time of past writing, and the writing data is normal, so the process ends without doing anything (step 102). When the status signal 15 is active, it can be determined that a power failure has occurred during the past writing, and the write data may be abnormal, so the data recovery process is started (step 102).

【0034】不揮発性メモリ−7には、電源障害が発生
した時の書き込みデータと書き込み先のブロック番地と
が保持されているので、MPU3がHDC2を介して書
き込みデータと書き込み先のブロック番地とを得て、揮
発性メモリ−6に設定して書き込みに備える(ステップ
103)。
Since the non-volatile memory 7 holds the write data and the write destination block address when a power failure occurs, the MPU 3 stores the write data and the write destination block address via the HDC 2. Then, it is set in the volatile memory 6 to prepare for writing (step 103).

【0035】MPU3はHDC2に対して書き込み命令
を発行すると、HDC2は揮発性メモリー6から書き込
みデータを得てリード/ライト制御回路4を介して磁気
記憶媒体5へ書き込みを行う(ステップ104)。書き
込みが正常に終了すると、MPU3はクリア信号16を
用いて電源障害監視回路8の状態をイナクティブにする
(ステップ105)。
When the MPU 3 issues a write command to the HDC 2, the HDC 2 obtains write data from the volatile memory 6 and writes the data to the magnetic storage medium 5 via the read / write control circuit 4 (step 104). When the writing is completed normally, the MPU 3 makes the state of the power supply failure monitoring circuit 8 inactive using the clear signal 16 (step 105).

【0036】[0036]

【発明の効果】以上説明した様に本発明は、磁気ディス
ク(記憶媒体)に書き込むデータを一時的に格納する不
揮発性メモリーと、磁気ディスク(記憶媒体)へのデー
タの書き込み動作中に、電源障害が発生したかどうかを
監視し、保持する手段を設け、電源障害があった場合
に、不揮発性メモリーに保持されている内容を用いてデ
ータの修復を行うことによって、正確に磁気ディスク
(記憶媒体)への書き込み動作中に発生した電源障害を
検知し、磁気ディスク(記憶媒体)上のデータを復旧で
きる効果がある。
As described above, the present invention provides a nonvolatile memory for temporarily storing data to be written to a magnetic disk (storage medium), and a power supply during data writing to a magnetic disk (storage medium). A means is provided for monitoring and retaining whether or not a failure has occurred. In the event of a power failure, the data stored in the non-volatile memory is used to restore the data, thereby accurately detecting the magnetic disk (storage). This has the effect of detecting a power failure that has occurred during the write operation to the medium and recovering the data on the magnetic disk (storage medium).

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

【図1】本発明の実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】データ修復時のタイミングチャートである。FIG. 2 is a timing chart at the time of data restoration.

【図3】従来の磁気ディスク装置の一例のブロック図で
ある。
FIG. 3 is a block diagram of an example of a conventional magnetic disk drive.

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

1 磁気ディスク装置 2 HDC 3 MPU 4 リード/ライト制御回路 5 磁気記憶媒体 6 揮発性メモリー 7 不揮発性メモリー 8 電源障害監視回路 9 電源監視回路 DESCRIPTION OF SYMBOLS 1 Magnetic disk drive 2 HDC 3 MPU 4 Read / write control circuit 5 Magnetic storage medium 6 Volatile memory 7 Non-volatile memory 8 Power failure monitoring circuit 9 Power monitoring circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 磁気記憶媒体への書き込みデータを一時
的に不揮発性メモリーに格納する磁気ディスク装置であ
って、電源の状態を監視する電源監視手段と、前記電源
監視手段からの電源障害情報を受けて前記書き込みデー
タの前記磁気記憶媒体への書き込み中に前記電源障害が
発生したかどうかを状態信号として検知・保持する電源
障害監視手段と、前記電源障害の修復後電源を再起動す
る際に前記状態信号で直前の電源障害発生時に前記書き
込みデータが前記磁気記憶媒体への書き込み中であった
場合に前記不揮発性メモリーに格納されたデータから前
記磁気記憶媒体上の前記書き込みデータを復旧する手段
とを含むことを特徴とする磁気ディスク装置。
1. A magnetic disk device for temporarily storing write data to a magnetic storage medium in a nonvolatile memory, comprising: a power supply monitoring means for monitoring a power supply state; and power supply failure information from the power supply monitoring means. Power failure monitoring means for detecting and holding whether or not the power failure has occurred during the writing of the write data to the magnetic storage medium as a status signal; and Means for restoring the write data on the magnetic storage medium from the data stored in the non-volatile memory if the write data was being written to the magnetic storage medium at the time of the last power failure in the status signal And a magnetic disk drive comprising:
【請求項2】 前記不揮発性メモリーに、前記書き込み
データと同時に前記書き込みデータの書き込み先のブロ
ック番地を格納することを特徴とする請求項1記載の磁
気ディスク装置。
2. The magnetic disk drive according to claim 1, wherein a block address of a write destination of the write data is stored in the nonvolatile memory simultaneously with the write data.
JP184397A 1997-01-09 1997-01-09 Magnetic disk device Withdrawn JPH10198523A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP184397A JPH10198523A (en) 1997-01-09 1997-01-09 Magnetic disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP184397A JPH10198523A (en) 1997-01-09 1997-01-09 Magnetic disk device

Publications (1)

Publication Number Publication Date
JPH10198523A true JPH10198523A (en) 1998-07-31

Family

ID=11512840

Family Applications (1)

Application Number Title Priority Date Filing Date
JP184397A Withdrawn JPH10198523A (en) 1997-01-09 1997-01-09 Magnetic disk device

Country Status (1)

Country Link
JP (1) JPH10198523A (en)

Similar Documents

Publication Publication Date Title
JP2001166993A (en) Memory control unit and method for controlling cache memory
JPH11272427A (en) Method for saving data and outside storage device
JP2679715B2 (en) Data transfer method
US5524203A (en) Disk cache data maintenance system
JPH02297770A (en) Optical disk device
JP2002099390A (en) Disk controller
JPH1195933A (en) Disk array system
JPS5856165A (en) Record update system
JPH10198523A (en) Magnetic disk device
JPS63305445A (en) Data writing system at power break
JP3043662B2 (en) Data backup method
JP2003122644A (en) Computer and its storage device
JPH10133926A (en) Mirror disk restoring method and restoring system
JP2000137584A (en) Controller for external storage device, method for substituting defective block and storage medium storing defective block substitution control program
JPH06348600A (en) Disk cache device
JP4098400B2 (en) Semiconductor disk device
JPS58175065A (en) Processing system of multiplex volume
JPH10254780A (en) Disk cache control system
KR20110034436A (en) Structure of hybrid memory and data storing method thereof
JP2000267936A (en) Disk sub-system
JPH08235078A (en) Magnetic disk device provided with backup function
JPH0619767A (en) Magnetic disk device with file restoration function
JP2001175422A (en) Disk array device
JP2023183437A (en) Memory system and memory method
JPS61210453A (en) Data memory device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20040406