JPH10320127A - Storage device with written data protecting function - Google Patents

Storage device with written data protecting function

Info

Publication number
JPH10320127A
JPH10320127A JP9131537A JP13153797A JPH10320127A JP H10320127 A JPH10320127 A JP H10320127A JP 9131537 A JP9131537 A JP 9131537A JP 13153797 A JP13153797 A JP 13153797A JP H10320127 A JPH10320127 A JP H10320127A
Authority
JP
Japan
Prior art keywords
power supply
data
storage device
write
write cache
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
JP9131537A
Other languages
Japanese (ja)
Inventor
Takashi Hatori
隆 羽鳥
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 JP9131537A priority Critical patent/JPH10320127A/en
Publication of JPH10320127A publication Critical patent/JPH10320127A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a storage device capable of preventing data from being destructed even when a power supply is turned off during the period of data writing using a write cache function by using a back-up power supply having small capacity. SOLUTION: Since only a write cache buffer 4 and a power supply restart request control part 7 are switched to the backup power supply 8 even when a power supply circuit 6 is turned off in data writing, commands and data stored in the buffer 4 can be held. When commands and data are stored in the buffer 4, the control part 7 flashes a buzzy lamp 11 to display a power supply restart request. When the power supply is turned on thereafter, the control part 5 checks the storage of the commands and data in the buffer 4 and writes data in a recording medium 3 again.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ライトキャッシュ
機能を有する記憶装置に関し、特に、データ書き込み中
に起こった電源オフによるデータの破壊を防止する記憶
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a storage device having a write cache function, and more particularly to a storage device for preventing data destruction due to power-off during data writing.

【0002】[0002]

【従来の技術】従来の読み出し書き込みをおこなう記憶
装置の電源は、一般には、ホストの電源より供給されて
いることが多く、この様な場合にはホストの電源オン/
オフによつて記憶装置の電源の供給制御がおこなわれて
いた。そのため、オペレータが誤って記憶装置の書き込
み中にホストの電源をオフすると、データ破壊を起こす
という問題があった。
2. Description of the Related Art In general, a power supply of a storage device for performing a conventional read / write operation is generally supplied from a power supply of a host.
By turning off the power, the power supply of the storage device is controlled. Therefore, there is a problem in that if the operator erroneously turns off the power of the host while writing to the storage device, the data may be destroyed.

【0003】そこで、特開平8−77079号公報にお
いて、バックアップ電源を用いて少なくとも外部記憶装
置中のライトキャッシュバッファに記憶されているデー
タが記録媒体に書き込まれるまでは電源オフの指示を無
効化する手法が提案された。
In Japanese Patent Application Laid-Open No. 8-77079, a power-off instruction is invalidated at least until data stored in a write cache buffer in an external storage device is written to a recording medium using a backup power supply. An approach was proposed.

【0004】[0004]

【発明が解決しようとする課題】上述した従来例では、
ホストからの命令でデータの書き込みをする場合、ホス
トから送られてくるデータを一日ライトキャッシュバッ
ファに取り込んで、その後にこのライトキャッシュバッ
ファから記録媒体にデータを実際に書き込む動作がおこ
なわれる。この様なライトキャッシュ機能を有する記憶
装置では、ライトキャッシュバッファにデータが取り込
まれた時点でホストに対して書き込み終了を示すため、
ホストが書き込み完了と認識しても記憶装置はまだ記憶
媒体に書き込み前または書き込み中の危険性がある。こ
のデータ書き込み前または書き込み中に電源オフした場
合、データが破壊されるという問題があった。
In the above-mentioned conventional example,
When data is written by a command from the host, data sent from the host is fetched into the write cache buffer for one day, and thereafter, an operation of actually writing data from the write cache buffer to the recording medium is performed. In a storage device having such a write cache function, the end of writing is indicated to the host when data is taken into the write cache buffer.
Even if the host recognizes that the writing has been completed, the storage device still has a risk of writing before or during writing to the storage medium. If the power is turned off before or during data writing, there is a problem that data is destroyed.

【0005】そこで、特開平8−77079号公報にお
いて、データが記録媒体に書き込まれるまでは電源オフ
の指示を無効化する手法が提案されたが、電源オフの場
合にバックアップ電源を用いて外部記憶装置中のライト
キャッシュバッファに記憶されているデータを記録媒体
に書き込むためには、外部記憶装置が十分動作できるだ
けの大容量のバックアップ電源が必要であり、また容積
の大きいバックアップ電源になるため広いスぺ一スが必
要であるなどの問題があった。
Therefore, Japanese Patent Application Laid-Open No. Hei 8-77079 has proposed a method of invalidating a power-off instruction until data is written to a recording medium. In order to write the data stored in the write cache buffer in the device to the recording medium, a large-capacity backup power supply is required to allow the external storage device to operate sufficiently. There were problems such as the need for an opportunity.

【0006】そこで、本発明の目的は、上記問題を解消
すべく、容量の小さいバックアップ電源を用いて、ライ
トキャッシュ機能を用いたデータの書き込み中に電源オ
フされてもデータ破壊を生じない記憶装置を提供するこ
とにある。
Accordingly, an object of the present invention is to solve the above-mentioned problem by using a small-capacity backup power supply and a storage device which does not cause data destruction even if the power is turned off during data writing using the write cache function. Is to provide.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、本発明に書き込みデータ保護機能付き記憶装置は、
ライトキャッシュ機能を有する記憶装置において、記憶
媒体と、記憶媒体に対する書き込み命令に応答してコマ
ンド及びデータを一時記憶するライトキャッシュバッフ
ァと、記憶装置の読み出しと書き込みの制御を行うリー
ドライト制御部と、記憶装置に直流出力を供給する電源
回路と、電源回路の電源オフの場合にライトキャッシュ
バッファのみに直流出力を供給するバックアップ電源と
を備えたことを特徴とする。
In order to achieve the above object, a storage device with a write data protection function according to the present invention comprises:
In a storage device having a write cache function, a storage medium, a write cache buffer that temporarily stores commands and data in response to a write command to the storage medium, a read / write control unit that controls reading and writing of the storage device, A power supply circuit for supplying a DC output to the storage device, and a backup power supply for supplying a DC output only to the write cache buffer when the power supply circuit is turned off are provided.

【0008】また、電源回路が電源オンされた時に、ラ
イトキャッシュバッファにすでにコマンド及びデータが
存在した場合、ライトキャッシュバッファ中のコマンド
を実行するのが好ましい。
When a command and data already exist in the write cache buffer when the power supply circuit is turned on, it is preferable to execute the command in the write cache buffer.

【0009】さらに、電源回路が電源オンしている間
は、バックアップ電源を充電するのが好ましい。
Further, it is preferable to charge the backup power supply while the power supply circuit is on.

【0010】またさらに、電源回路が電源オフされた時
に、ライトキャッシュバッファにコマンド及びデータが
残っている場合、電源再投入の要求を表示するのが好ま
しい。
Further, when commands and data remain in the write cache buffer when the power supply circuit is turned off, it is preferable to display a power-on request.

【0011】本発明の書き込みデータ保護機能付き記憶
装置は、特に、ライトキャッシュ機能を有する記憶装置
において、記憶媒体と、この記憶媒体に対する書き込み
命令に応答してデータを一時記憶するライトキャッシュ
バッファと、記憶装置の読み出しと書き込みの制御を行
うリードライト制御部と、記憶装置に直流出力を供給す
る電源回路と、ライトキャッシュバッファに直流出力を
供給するバックアップ電源とを備える。
A storage device with a write data protection function according to the present invention is, in particular, a storage device having a write cache function, comprising: a storage medium; a write cache buffer for temporarily storing data in response to a write command to the storage medium; A read / write control unit that controls reading and writing of the storage device, a power supply circuit that supplies a DC output to the storage device, and a backup power supply that supplies a DC output to the write cache buffer are provided.

【0012】[0012]

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

【0013】図1は、本発明の書き込みデータ保護機能
付き記憶装置の実施例の構成を示すブロック図である。
この装置では、ホスト1は、記憶装置2と接続され、記
憶装置2にデータの読み出し書き込みを命令する。ま
た、交流出力aを記憶装置2に供給している。記憶装置
2は、記憶媒体3と、この記憶媒体3に対する書き込み
命令に応答してデータを一時記憶するライトキャッシュ
バッファ4と、ホスト1からの命令に従ってデータの読
み出し書き込みを制御するリードライト制御部5と、交
流出力aによって記憶装置2に直流出力を供給する電源
回路6と、電源回路6と、電源回路6がオフの場合にラ
イトキャッシュバッファ4及び電源再投入要求制御部7
だけに直流出力を供給するバックアップ電源8と、ライ
トキャッシュバッファ4及び電源再投入要求制御部7の
電源供給を制御する電源制御部9と、バックアップ電源
8を充電するための充電回路10と、ビジーランプ11
とを備えている。電源回路6がオンである時はバックア
ップ電源8は充電回路10と接続し充電を行っている。
FIG. 1 is a block diagram showing the configuration of an embodiment of a storage device with a write data protection function according to the present invention.
In this device, a host 1 is connected to a storage device 2 and instructs the storage device 2 to read and write data. Further, the AC output a is supplied to the storage device 2. The storage device 2 includes a storage medium 3, a write cache buffer 4 that temporarily stores data in response to a write command to the storage medium 3, and a read / write control unit 5 that controls reading and writing of data in accordance with a command from the host 1. A power supply circuit 6 for supplying a DC output to the storage device 2 by an AC output a; a power supply circuit 6; a write cache buffer 4 and a power-on / request control unit 7 when the power supply circuit 6 is off.
A backup power supply 8 for supplying a DC output only to the power supply, a power supply control unit 9 for controlling the power supply of the write cache buffer 4 and the power supply request control unit 7, a charging circuit 10 for charging the backup power supply 8, and a busy state. Lamp 11
And When the power supply circuit 6 is on, the backup power supply 8 is connected to the charging circuit 10 to perform charging.

【0014】次に、本発明の書き込みデータ保護機能付
き記憶装置の実施例の動作について説明する。記憶装置
2はホスト1によりデータの書き込みを命令されると、
ホスト1からのコマンド及びデータは、リードライト制
御部5によってライトキャッシュバッファ4に一時記憶
され、その後、記憶媒体3にデータの書き込みが行われ
る。ライトキャッシュバッファ4に記憶されたデータが
記憶媒体3に書き込まれる前に、電源回路6がオフとな
った場合、ライトキャッシュバッファ4及び電源投入要
求制御部7だけは、電源制御部9によりバックアップ電
源8に切り替わる。ライトキャッシュバッファ4は、バ
ックアップ電源8により記憶していたコマンド及びデー
タを保持する。また、電源再投入要求制御部7はライト
キャッシュバッファ4にコマンド及びデータが保持され
ている場合は電源再投入の要求を表示するためにビジー
ランプ11を点滅させる。その後、電源投入時にリード
ライト制御部5はライトキャッシュバッファ4にコマン
ド及びデータが保持されていることを確認し、再び記録
媒体3にデータの書き込みを行うことができる。
Next, the operation of the embodiment of the storage device with write data protection function of the present invention will be described. When the storage device 2 is instructed to write data by the host 1,
Commands and data from the host 1 are temporarily stored in the write cache buffer 4 by the read / write control unit 5, and thereafter, data is written to the storage medium 3. If the power supply circuit 6 is turned off before the data stored in the write cache buffer 4 is written to the storage medium 3, only the write cache buffer 4 and the power-on request control unit 7 use the backup power supply by the power control unit 9. Switch to 8. The write cache buffer 4 holds commands and data stored by the backup power supply 8. In addition, when the command and data are stored in the write cache buffer 4, the power-on / off request controller 7 blinks the busy lamp 11 to display a power-on / off request. After that, when the power is turned on, the read / write control unit 5 confirms that the command and data are held in the write cache buffer 4 and can write data to the recording medium 3 again.

【0015】[0015]

【発明の効果】以上詳細に説明したように、本発明の書
き込みデータ保護機能付き記憶装置を用いることによ
り、ライトキャッシュを用いたデータの書き込みの途中
で、電源オフされた場合でも容量の小さく小型なバック
アップ電源を用いてライトキャッシュバッファに記憶さ
れたコマンド及びデータを保持することができ、それに
よりデータの破壊を防止するという効果を奏する。
As described in detail above, by using the storage device with the write data protection function of the present invention, even if the power is turned off during the writing of data using the write cache, the capacity is small and the size is small. The command and the data stored in the write cache buffer can be held by using a suitable backup power supply, thereby providing an effect of preventing the data from being destroyed.

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

【図1】本発明の書き込みデータ保護機能付き記憶装置
の実施例の構成を示す図である。
FIG. 1 is a diagram showing a configuration of an embodiment of a storage device with a write data protection function of the present invention.

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

1 ホスト 2 記憶装置 3 記憶媒体 4 ライトキャッシュバッファ 5 リードライト制御部 6 電源回路 7 電源再投入要求制御部 8 バックアップ電源 9 電源制御部 10 充電回路 11 ビジーランプ REFERENCE SIGNS LIST 1 host 2 storage device 3 storage medium 4 write cache buffer 5 read / write control unit 6 power supply circuit 7 power supply restart request control unit 8 backup power supply 9 power supply control unit 10 charging circuit 11 busy lamp

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】ライトキャッシュ機能を有する記憶装置に
おいて、 記憶媒体と、 前記記憶媒体に対する書き込み命令に応答してコマンド
及びデータを一時記憶するライトキャッシュバッファ
と、 前記記憶装置の読み出しと書き込みの制御を行うリード
ライト制御部と、 前記記憶装置に直流出力を供給する電源回路と、 前記電源回路の電源オフの場合に前記ライトキャッシュ
バッファのみに直流出力を供給するバックアップ電源
と、 を備えたことを特徴とする書き込みデータ保護機能付き
記憶装置。
1. A storage device having a write cache function, comprising: a storage medium; a write cache buffer for temporarily storing commands and data in response to a write command to the storage medium; and a read / write control of the storage device. A power supply circuit for supplying a DC output to the storage device; and a backup power supply for supplying a DC output only to the write cache buffer when the power supply circuit is turned off. Storage device with a write data protection function.
【請求項2】前記電源回路が電源オンされた時に、前記
ライトキャッシュバッファにすでにコマンド及びデータ
が存在した場合、前記ライトキャッシュバッファ中のコ
マンドを実行することを特徴とする、請求項1に記載の
書き込みデータ保護機能付き記憶装置。
2. The command according to claim 1, wherein when the power supply circuit is turned on, if a command and data already exist in the write cache buffer, the command in the write cache buffer is executed. Storage device with write data protection function.
【請求項3】前記電源回路が電源オンしている間は、前
記バックアップ電源を充電することを特徴とする、請求
項1または2に記載の書き込みデータ保護機能付き記憶
装置。
3. The storage device with a write data protection function according to claim 1, wherein the backup power supply is charged while the power supply circuit is turned on.
【請求項4】前記電源回路が電源オフされた時に、前記
ライトキャッシュバッファにコマンド及びデータが残っ
ている場合、電源再投入の要求を表示することを特徴と
する、請求項1に記載の書き込みデータ保護機能付き記
憶装置。
4. The write according to claim 1, wherein when the power supply circuit is turned off, if a command and data remain in the write cache buffer, a request to turn on the power supply is displayed. Storage device with data protection function.
JP9131537A 1997-05-22 1997-05-22 Storage device with written data protecting function Pending JPH10320127A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9131537A JPH10320127A (en) 1997-05-22 1997-05-22 Storage device with written data protecting function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9131537A JPH10320127A (en) 1997-05-22 1997-05-22 Storage device with written data protecting function

Publications (1)

Publication Number Publication Date
JPH10320127A true JPH10320127A (en) 1998-12-04

Family

ID=15060402

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9131537A Pending JPH10320127A (en) 1997-05-22 1997-05-22 Storage device with written data protecting function

Country Status (1)

Country Link
JP (1) JPH10320127A (en)

Similar Documents

Publication Publication Date Title
TWI331274B (en)
JPH1097353A (en) Computer system and resume processing method applied to the same system
JPH09237128A (en) Computer system and its resume processing method
JPH0744437A (en) Information processing system
JPH0528039A (en) Storage device
JP2688164B2 (en) Information processing system
JP2002099390A (en) Disk controller
JP3541349B2 (en) Cache memory backup system
JPH10320127A (en) Storage device with written data protecting function
JP2006172355A (en) Magnetic disk device and control method
JPH064228A (en) Semiconductor disk device
JP2912349B1 (en) Disk array control method and disk array device
JPH11259162A (en) Suspending/resuming method
JPH11353064A (en) Portable information terminal equipment
JP3427010B2 (en) Computer system
JPH0744982A (en) Data recording/reproducing device and method for controlling data write
JP2000298621A (en) Magnetic disk drive
JPH10254780A (en) Disk cache control system
JPH10240633A (en) Memory system and memory card
JPS61210453A (en) Data memory device
JPH11149419A (en) Method and device for backing up data
JP2001184255A (en) Electronic equipment, and storage medium with memory control program recorded thereon
JPH0535357A (en) Semiconductor memory device
JPH04105110A (en) Power controller
JPH04328616A (en) Information processor