JPH08235078A - Magnetic disk device provided with backup function - Google Patents

Magnetic disk device provided with backup function

Info

Publication number
JPH08235078A
JPH08235078A JP7033605A JP3360595A JPH08235078A JP H08235078 A JPH08235078 A JP H08235078A JP 7033605 A JP7033605 A JP 7033605A JP 3360595 A JP3360595 A JP 3360595A JP H08235078 A JPH08235078 A JP H08235078A
Authority
JP
Japan
Prior art keywords
cache
data
magnetic disk
disk device
hdd
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
JP7033605A
Other languages
Japanese (ja)
Inventor
Yoshikazu Nakabayashi
善和 中林
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 Gunma Ltd
Original Assignee
NEC Gunma 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 Gunma Ltd filed Critical NEC Gunma Ltd
Priority to JP7033605A priority Critical patent/JPH08235078A/en
Publication of JPH08235078A publication Critical patent/JPH08235078A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To turn off the power source of a magnetic disk device having a write cache even at the time of executing the write cache. CONSTITUTION: This magnetic disk device with write cache (HDD) is provided with an operation monitoring part 3 controlling the data of a cache and monitoring the processing of a cache 5 and a magnetic disk medium 9 and a backup function part 6 holding the data of the cache 5 and the data of the operation monitoring part 3 when the power source of the HDD is turned off. The operation monitoring part 3 monitors the address of the data written in the cache 5. As a result, the power source of the HDD can be turned off at any time and data can normally be written in the HDD even at the time of a sudden power failure.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、バックアップ機能付き
磁気ディスク装置に関し、特にライト・キャッシュ(Wri
te Cache) を有する磁気ディスク装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a magnetic disk device with a backup function, and more particularly to a write cache (Wri
te Cache).

【0002】[0002]

【従来の技術】従来、ライト・キャッシュを有する磁気
ディスク装置では、バックアップ機能がないため、ライ
ト・キャッシュ動作時において、キャッシュデータが磁
気ディスク媒体にすべて書き込まれるまで、磁気ディス
ク装置の電源をOFFにできなかった。
2. Description of the Related Art Conventionally, a magnetic disk device having a write cache does not have a backup function. Therefore, during write cache operation, the power of the magnetic disk device is turned off until all cache data is written to the magnetic disk medium. could not.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の磁気デ
ィスク装置は、ライト・キャッシュ動作時において、本
体ではデータをキャッシュに送った時点で、磁気ディス
ク装置に書き込みを終了したと認識するが、本体からキ
ャッシュにデータが書き込まれる時間に対し、キャッシ
ュから磁気ディスク媒体にデータを書き込む時間が長い
ため、実際にはキャッシュのデータがすべて磁気ディス
ク媒体に転送されなければ、磁気ディスク装置に対する
書き込みは終了していない。
In the above-mentioned conventional magnetic disk device, the main body recognizes that the writing has been completed in the magnetic disk device when the data is sent to the cache during the write cache operation. Since the time to write data from the cache to the magnetic disk medium is longer than the time to write data from the cache to the cache, writing to the magnetic disk device will end if all the cache data is not actually transferred to the magnetic disk medium. Not not.

【0004】そのため、キャッシュのデータがすべて磁
気ディスク媒体に転送されないうちに磁気ディスク装置
の電源をOFFにしてしまうと、キャッシュの残りのデ
ータが消去され、本体ではデータの転送が終了している
と認識されても、磁気ディスク媒体に正しく転送されな
いことになる。
Therefore, if the power of the magnetic disk device is turned off before all the data in the cache is transferred to the magnetic disk medium, the remaining data in the cache is erased and the data transfer is completed in the main body. Even if it is recognized, it will not be correctly transferred to the magnetic disk medium.

【0005】[0005]

【課題を解決するための手段】本発明は、ライト・キャ
ッシュ付きの磁気ディスク装置において、インタフェイ
スを介して上位装置から送られるデータを監視するとと
もに、最後のデータが前記キャッシュに書き込まれてい
るアドレス情報を保持し、かつ前記キャッシュから磁気
ディスク媒体に書き込まれるデータを監視する動作監視
部と、磁気ディスク装置の電源がOFFになった場合に
前記キャッシュのデータと前記動作監視部のデータとを
保持するバックアップ電源とを備えることを特徴とす
る。
According to the present invention, in a magnetic disk device with a write cache, data sent from a higher-level device via an interface is monitored and the last data is written in the cache. An operation monitoring unit that holds address information and monitors data written in the magnetic disk medium from the cache, and a cache data and data of the operation monitoring unit when the magnetic disk device is powered off. And a backup power supply for holding the same.

【0006】[0006]

【実施例】次に、本発明について図面を参照して説明す
る。
Next, the present invention will be described with reference to the drawings.

【0007】図1は、本発明の一実施例を示すブロック
図であり、 本実施例は、図1に示すように、フェイス
2,キャッシュ5および磁気ディスク媒体9と、これら
をそれぞれ制御するインタフェイス制御部1,メモリ制
御部4およびヘッド・媒体制御部8と、インタフェイス
制御部1およびメモリ制御部4の動作を監視する動作監
視部3と、インタフェイス制御部1,動作監視部3,メ
モリ制御部4およびヘッド・媒体制御部8の動作を制御
するCPU7とを含んで構成された磁気ディスク装置
に、キャッシュ5の動作をバックアップするバックアッ
プ手段6aと、動作監視部3の動作をバックアップする
バックアップ手段6bとを付加したバックアップ機能付
き磁気ディスク装置(以下、HDDという)である。
FIG. 1 is a block diagram showing an embodiment of the present invention. In this embodiment, as shown in FIG. 1, a face 2, a cache 5 and a magnetic disk medium 9 and an interface for controlling them respectively. Face control unit 1, memory control unit 4 and head / medium control unit 8, operation monitoring unit 3 for monitoring the operations of interface control unit 1 and memory control unit 4, interface control unit 1, operation monitoring unit 3, The magnetic disk device configured to include the CPU 7 that controls the operations of the memory control unit 4 and the head / medium control unit 8 backs up the operation of the cache 5 and the backup unit 6a that backs up the operation of the operation monitoring unit 3. It is a magnetic disk device with a backup function (hereinafter referred to as HDD) to which a backup means 6b is added.

【0008】図1において、まず、本体側(以下、上位
装置という)から送られたデータは、インタフェイス制
御部1により制御されるインタフェイス2を介してキャ
ッシュ5に書き込まれる。そして、キャッシュ5に書き
込まれたデータは、CPU7により制御されるメモリ制
御部4とヘッド・媒体制御部8とによって磁気ディスク
媒体9に書き込まれる。
In FIG. 1, first, the data sent from the main body side (hereinafter referred to as a host device) is written in the cache 5 via the interface 2 controlled by the interface control unit 1. Then, the data written in the cache 5 is written in the magnetic disk medium 9 by the memory control unit 4 and the head / medium control unit 8 controlled by the CPU 7.

【0009】ライト・キャッシュ動作時では、キャッシ
ュ5にデータを書き込む時間に比べて、磁気ディスク媒
体9にデータが書き込まれる時間の方が長い。また、上
位装置では、キャッシュ5にデータを書き込んだ時点
で、データが転送されたと認識するため、上位装置では
転送終了と認識して、HDDの電源をOFFにしても、
HDDでは処理の途中であることも考えられる。さら
に、途中でHDDの電源をOFFにされた場合には、そ
れまでに書き込まれたデータとキャッシュ5の残りのデ
ータとが消去されてしまう。そのため、本実施例では、
キャッシュ5にバックアップ手段6aを追加し、たと
え、HDDの電源をOFFにされてもデータが消去され
ないようになっている。
In the write cache operation, the time for writing data to the magnetic disk medium 9 is longer than the time for writing data to the cache 5. Further, since the host device recognizes that the data has been transferred when the data is written in the cache 5, the host device recognizes that the transfer is completed and turns off the power of the HDD.
The HDD may be in the middle of processing. Further, when the power of the HDD is turned off in the middle of the process, the data written up to that point and the remaining data in the cache 5 are erased. Therefore, in this embodiment,
Backup means 6a is added to the cache 5 so that data will not be erased even if the power of the HDD is turned off.

【0010】しかしながら、ここでHDDの電源をOF
Fにした場合には、キャッシュ5以外のCPU7,メモ
リ制御部4の処理データが消えてしまい、キャッシュ5
にどの程度のデータが残っているか、また、キャッシュ
5にどこまで書き込まれたか、というデータ管理情報ま
でも消えてしまう。この問題を解決するには、キャッシ
ュ5の動作を監視する動作監視部3が必要となる。
However, the power source of the HDD is turned off here.
When set to F, the processing data of the CPU 7 and the memory control unit 4 other than the cache 5 is erased, and the cache 5
Even the data management information such as how much data remains in the cache 5 and how much data is written in the cache 5 is erased. To solve this problem, the operation monitoring unit 3 that monitors the operation of the cache 5 is required.

【0011】動作監視部3は、インタフェイス2を介し
て本体から送られるデータを監視するとともに、本体か
らキャッシュ5にデータ転送が終了したのを確認する
と、その最後のデータがキャッシュ5に書き込まれてい
るアドレス情報を保持する。さらに、キャッシュ5から
磁気ディスク媒体9に書き込まれるデータを常に監視す
る。そして、データが磁気ディスク媒体9に書き込まれ
たならば、そのデータを読み出すとともに、次のデータ
が書き込まれるまでアドレス情報を保持する。
The operation monitoring unit 3 monitors the data sent from the main body via the interface 2 and when it confirms that the data transfer from the main body to the cache 5 is completed, the last data is written in the cache 5. Holding address information. Further, the data written from the cache 5 to the magnetic disk medium 9 is constantly monitored. When the data is written on the magnetic disk medium 9, the data is read and the address information is held until the next data is written.

【0012】キャッシュ5は、通常、FIFO(先入れ
先出し)方式を採用しているので、最初に書き込まれた
データから順次出力するる。従って、最初に出力するデ
ータのアドレス情報と、最後のデータのアドレス情報と
を管理することにより、キャッシュ5のデータを管理す
ることができる。
Since the cache 5 normally employs a FIFO (first in, first out) system, the data written first is sequentially output. Therefore, the data in the cache 5 can be managed by managing the address information of the first output data and the address information of the last data.

【0013】従って、動作監視部3のデータを管理すれ
ば、たとえ電源がOFFになった場合でも、キャッシュ
5のデータの最初と最後とのデータのアドレス情報をも
とに、書き込みを中断された位置から残りのデータを書
き込むことができる。そこで、この動作監視部3にもバ
ックアップ手段6bを追加し、動作監視部3のデータを
保持するようになっている。
Therefore, if the data of the operation monitoring unit 3 is managed, even if the power is turned off, the writing is suspended based on the address information of the first and last data of the data in the cache 5. The rest of the data can be written from the location. Therefore, a backup means 6b is added to the operation monitoring unit 3 to hold the data of the operation monitoring unit 3.

【0014】これら2つのバックアップ手段6a,6b
は、それぞれ動作監視部3内のデータ、およびキャッシ
ュ5内のデータを保持するためのバックアップ電源であ
って、いずれも、充電可能な電池と、この電池を充電す
るための充電回路(いずれも図示せず)とを備えてい
る。
These two backup means 6a, 6b
Is a backup power supply for holding the data in the operation monitoring unit 3 and the data in the cache 5, respectively, both of which are rechargeable batteries and a charging circuit for charging the batteries (both are shown in FIG. (Not shown).

【0015】次に、電源OFF時におけるHDD内部の
処理について説明する。
Next, the processing inside the HDD when the power is turned off will be described.

【0016】図2は、電源OFF時におけるHDD内部
の処理の流れを示す流れ図である。図2を参照すると、
まず、HDDの電源をONにする(ステップ21)。そ
して、CPU7をセットする(ステップ22)。次に、
CPU7は、動作監視部3のデータを読み出す(ステッ
プ23)。続いて、CPU7は、メモリ制御部4を介し
てキャッシュ5内にアドレスデータが存在するか否かを
判断する(ステップ24)。そして、キャッシュ5にア
ドレスデータが存在しない場合には、CPU7は、HD
Dの立ち上げを開始し(ステップ27)、一連の処理を
終了する。
FIG. 2 is a flow chart showing the flow of processing inside the HDD when the power is turned off. Referring to FIG.
First, the power of the HDD is turned on (step 21). Then, the CPU 7 is set (step 22). next,
The CPU 7 reads out the data of the operation monitoring unit 3 (step 23). Subsequently, the CPU 7 determines whether the address data exists in the cache 5 via the memory control unit 4 (step 24). If the cache 5 has no address data, the CPU 7
The start-up of D is started (step 27), and a series of processing is ended.

【0017】また、ステップ24において、キャッシュ
5にアドレスデータが存在する場合には、CPU7は、
ヘッド・媒体制御部8を介してキャッシュ5の残りのデ
ータを磁気ディスク媒体9に書き込む(ステップ2
5)。そして、データの書き込みが終了すると(ステッ
プ26)と、CPU7は、HDDの立ち上げを開始し
(ステップ27)、一連の処理を終了する。
Further, in step 24, when address data exists in the cache 5, the CPU 7
The remaining data in the cache 5 is written to the magnetic disk medium 9 via the head / medium control unit 8 (step 2
5). When the writing of the data is completed (step 26), the CPU 7 starts the startup of the HDD (step 27), and the series of processes is completed.

【0018】[0018]

【発明の効果】以上説明したように、本発明のバックア
ップ付き磁気ディスク装置は、ライト・キャッシュ実行
時でも装置の電源をOFFにできる、すなわち、装置の
電源をいつでもOFFにできるため、不意の停電におい
てもデータを正常に磁気ディスク装置に書き込むことが
できるという効果がある。
As described above, in the magnetic disk device with backup according to the present invention, the power of the device can be turned off even when the write cache is executed, that is, the power of the device can be turned off at any time, so that an unexpected power failure occurs. Also in the above, there is an effect that the data can be normally written in the magnetic disk device.

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

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

【図2】電源OFF時におけるHDD内部の処理の流れ
を示す流れ図である。
FIG. 2 is a flowchart showing the flow of processing inside the HDD when the power is turned off.

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

1 インタフェイス制御部 2 インタフェイス 3 動作監視部 4 メモリ制御部 5 キャッシュ 6a,6b バックアップ手段 7 CPU 8 ヘッド・媒体制御部 9 磁気ディスク媒体 1 interface control unit 2 interface 3 operation monitoring unit 4 memory control unit 5 cache 6a, 6b backup means 7 CPU 8 head / medium control unit 9 magnetic disk medium

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ライト・キャッシュ付きの磁気ディスク
装置において、 インタフェイスを介して上位装置から送られるデータを
監視するとともに、キャッシュに書き込まれている最初
に出力するデータと最後のデータとのアドレス情報を保
持し、かつ前記キャッシュから磁気ディスク媒体に書き
込まれるデータを監視する動作監視部と、 磁気ディスク装置の電源がOFFになった場合に前記キ
ャッシュ内の情報と前記動作監視部内の情報とを保持す
るバックアップ電源と、を備えることを特徴とするバッ
クアップ機能付き磁気ディスク装置。
1. A magnetic disk device with a write cache, which monitors data sent from a higher-level device via an interface, and also addresses information of first output data and last data written in the cache. And an operation monitoring unit for monitoring data written in the magnetic disk medium from the cache, and information in the cache and information in the operation monitoring unit when the magnetic disk device is powered off. A magnetic disk device with a backup function, comprising:
JP7033605A 1995-02-22 1995-02-22 Magnetic disk device provided with backup function Pending JPH08235078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7033605A JPH08235078A (en) 1995-02-22 1995-02-22 Magnetic disk device provided with backup function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7033605A JPH08235078A (en) 1995-02-22 1995-02-22 Magnetic disk device provided with backup function

Publications (1)

Publication Number Publication Date
JPH08235078A true JPH08235078A (en) 1996-09-13

Family

ID=12391111

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7033605A Pending JPH08235078A (en) 1995-02-22 1995-02-22 Magnetic disk device provided with backup function

Country Status (1)

Country Link
JP (1) JPH08235078A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013092982A (en) * 2011-10-27 2013-05-16 Fujitsu Ltd Writing control program, writing control method, writing control device and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02156353A (en) * 1988-12-08 1990-06-15 Oki Electric Ind Co Ltd Control system for disk cache device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02156353A (en) * 1988-12-08 1990-06-15 Oki Electric Ind Co Ltd Control system for disk cache device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013092982A (en) * 2011-10-27 2013-05-16 Fujitsu Ltd Writing control program, writing control method, writing control device and system

Similar Documents

Publication Publication Date Title
US8700935B2 (en) Power supply unit configured to not control a power supply from reducing the power state to a mirroring unit and storage units during a rebuild operation even when such power reducing state is satisfied
TW201011524A (en) Method and controller for power management
WO2014008653A1 (en) Method for switching a device between hibernat mode and wake-up
WO2001037066A1 (en) Information processor and computer-readable medium
JP2002099390A (en) Disk controller
JP3541349B2 (en) Cache memory backup system
JPH08235078A (en) Magnetic disk device provided with backup function
JPH0950405A (en) Storage device with backup function and information processing system provided with the same
JP2001337789A (en) Disk subsystem
JPS63305445A (en) Data writing system at power break
JPH064228A (en) Semiconductor disk device
JPH06149483A (en) Computer system
JP2003140946A (en) Storage device
JP2944648B1 (en) Information processing device and CD-ROM device control method
JPH0793101A (en) Data backup device
JP4098400B2 (en) Semiconductor disk device
JP4681096B2 (en) Storage device
JPH10254780A (en) Disk cache control system
JP2007018417A (en) Ata disk array device, and operation control method and operation control program for ata disk array device
JP3080882B2 (en) Data backup and restoration system
KR20110034436A (en) Structure of hybrid memory and data storing method thereof
JPH10198523A (en) Magnetic disk device
JP3080005B2 (en) Data processing device
JP2002091632A (en) Computer system
JP2003308179A (en) Back-up system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19970909