JPH04365152A - Sharing controlling system for disk cache device - Google Patents

Sharing controlling system for disk cache device

Info

Publication number
JPH04365152A
JPH04365152A JP3141630A JP14163091A JPH04365152A JP H04365152 A JPH04365152 A JP H04365152A JP 3141630 A JP3141630 A JP 3141630A JP 14163091 A JP14163091 A JP 14163091A JP H04365152 A JPH04365152 A JP H04365152A
Authority
JP
Japan
Prior art keywords
disk cache
cache device
buffer
power
disk
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
JP3141630A
Other languages
Japanese (ja)
Inventor
Hidemi Kaise
貝瀬 英巳
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP3141630A priority Critical patent/JPH04365152A/en
Publication of JPH04365152A publication Critical patent/JPH04365152A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To ensure the rightness of data not written yet in a magnetic disk at the time of the restoration of power-off by making a system capable of operating at a write back mode only when the setting of the write back mode is finished before and the POWER ON READY signal levels of its own and an opposite systems are '1'. CONSTITUTION:In the case that a magnetic disk device 1K is shared, the system can operate at the write back mode only when the setting of the write back mode is finished before and in addition, the POWER ON READY signal levels of both its own and the opposite systems are '1'. In other conditions, the system operates at a write through mode. Thus, the data in a buffer (not shown in figure) and the state of this buffer can be held even in the case of the power-off of the disk cache device 1d of its own system, and the state of the disk cache device 1h of the opposite system can be always detected. Thus, in the case that the stoppage of power supply is restored after the disk cache device 1d of its own system falls into the power-off, the rightness of the data not written yet in the magnetic disk 1k can be ensured.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、ディスクキャッシュ装
置の共有制御方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a shared control system for disk cache devices.

【0002】0002

【従来の技術】ディスクキャッシュ装置は、磁気ディス
ク装置に対するアクセス時間を短縮するために、主記憶
装置に対するキャッシュメモリの原理を利用して構成さ
れたものである。図6は従来のディスクキャッシュ装置
の共有制御方式を示すブロック図で、0系と1系の情報
処理装置が磁気ディスク装置4iを共有制御する構成に
なっている。0系システムバス4aには、0系中央処理
装置(以下、中央処理装置をCPUと呼ぶ)4bと0系
主記憶装置4cと0系ディスクキャッシュ装置4dが接
続され、1系システムバス4eには、1系CPU4fと
1系主記憶装置4gと1系ディスクキャッシュ装置4h
が接続される。さらに、0系ディスクキャッシュ装置4
dと1系ディスクキャッシュ装置4hと磁気ディスク装
置4iは、ディスクインタフェース4jにより接続され
る。2台のディスクキャッシュ装置4d,4hは、それ
ぞれディスクキャッシュメモリ4k,4lを持ち、それ
らディスクキャッシュメモリ4k,4lには、磁気ディ
スク装置4iに格納されているデータの一部の写しが記
憶されている。
2. Description of the Related Art A disk cache device is constructed using the principle of a cache memory for a main storage device in order to shorten access time to a magnetic disk device. FIG. 6 is a block diagram showing a conventional shared control method for a disk cache device, in which information processing devices of the 0 system and 1 system share control of the magnetic disk device 4i. The 0-system central processing unit (hereinafter referred to as CPU) 4b, the 0-system main storage device 4c, and the 0-system disk cache device 4d are connected to the 0-system bus 4a, and the 1-system system bus 4e is connected to , 1st system CPU 4f, 1st system main storage device 4g, and 1st system disk cache device 4h
is connected. Furthermore, the 0-system disk cache device 4
d, the 1-system disk cache device 4h, and the magnetic disk device 4i are connected by a disk interface 4j. The two disk cache devices 4d and 4h have disk cache memories 4k and 4l, respectively, and a copy of part of the data stored in the magnetic disk device 4i is stored in these disk cache memories 4k and 4l. There is.

【0003】ディスクキャッシュ装置の動作は、磁気デ
ィスク装置への書戻し方法により、ライトスルー方式と
ライトバック方式に分類される。ライトスルー方式とは
、CPUが磁気ディスク装置にライトアクセスをした場
合、ディスクキャッシュ装置は、ディスクキャッシュメ
モリにライトすると共に、すぐに磁気ディスク装置にも
ライトする(書戻す)方法である。
[0003] The operation of the disk cache device is classified into a write-through method and a write-back method depending on the method of writing back to the magnetic disk device. The write-through method is a method in which when the CPU performs write access to the magnetic disk device, the disk cache device writes to the disk cache memory and immediately writes (writes back) to the magnetic disk device.

【0004】一方、ライトバック方式とは、CPUが磁
気ディスク装置にライトアクセスをした場合、ディスク
キャッシュ装置は、ディスクキャッシュメモリにライト
するものの、磁気ディスク装置にすぐにはライトせず、
ディスクキャッシュ装置内部のマイクロプログラムに書
かれているアルゴリズム(LRU、FIFO等)にした
がって、すぐに書戻したり、順次、少しずつ書戻したり
する方法である。
On the other hand, the write-back method means that when the CPU makes a write access to the magnetic disk device, the disk cache device writes to the disk cache memory, but does not immediately write to the magnetic disk device.
This is a method of writing back immediately or sequentially, little by little, according to an algorithm (LRU, FIFO, etc.) written in a microprogram inside the disk cache device.

【0005】したがって、ディスクキャッシュ装置がラ
イトバックモードで動作しているとき、片系のCPUか
らの磁気ディスクの所定のアドレスに対するライトアク
セスに対し、ライトデータをディスクキャッシュメモリ
にライトし、磁気ディスク装置にライトしない場合、片
系のディスクキャッシュメモリにのみライトしたのでは
、もう片系のCPUが磁気ディスクの前記アドレスに対
しリードすると、更新前のデータをリードしてしまうと
いう不都合が生ずる。そのため、磁気ディスク装置には
ライトせず、ディスクキャッシュメモリにのみライトす
る場合は、片系のディスクキャッシュ装置がもう片系の
ディスクキャッシュメモリにライトすることにより、両
系のディスクキャッシュメモリにライトして、磁気ディ
スク装置に未書込みのデータの正当性を保ちながら磁気
ディスク装置を共有制御している。
Therefore, when the disk cache device is operating in write-back mode, in response to a write access from one CPU to a predetermined address on the magnetic disk, write data is written to the disk cache memory, and the magnetic disk device If the data is written only to the disk cache memory of one system, when the CPU of the other system reads the address on the magnetic disk, there will be an inconvenience that the data before the update will be read. Therefore, when writing only to the disk cache memory without writing to the magnetic disk device, the disk cache device of one system writes to the disk cache memory of the other system, thereby writing to the disk cache memory of both systems. In this way, the magnetic disk devices are shared and controlled while maintaining the validity of data that has not been written to the magnetic disk devices.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記構
成の共有制御方式では、ディスクキャッシュ装置上に磁
気ディスク装置に未書込みのデータを残したまま片系、
又は両系が順次電源断となった後に復電すると、次のよ
うなことが起こる。例えば、図7〜図9の書込み動作説
明図及び状態説明図に示すように、(1)両系が運用中
、両系のディスクキャッシュメモリ内に磁気ディスク装
置に未書込みのデータaを残したまま(図7)、(2)
0系のディスクキャッシュ装置4dが電源断となり、残
った1系のみでライトバックモードで運用を続け、磁気
ディスク装置4iに未書込みのデータをbに更新した後
に(図8)、(3)0系のディスクキャッシュ装置4d
が復電した場合、両系の同一のアドレスのデータに矛盾
が生じるため(図9)、磁気ディスク装置に未書込みの
データの正当性を保証できないという問題点があった。
[Problems to be Solved by the Invention] However, in the shared control system with the above configuration, data that has not been written to the magnetic disk device remains on the disk cache device and is
Or, if the power is restored after both systems have been sequentially turned off, the following will occur. For example, as shown in the write operation explanatory diagrams and state diagrams in Figures 7 to 9, (1) While both systems are in operation, unwritten data a is left in the magnetic disk device in the disk cache memory of both systems. Mama (Figure 7), (2)
The 0-system disk cache device 4d is powered off, and only the remaining 1 system continues to operate in write-back mode, and after updating the unwritten data in the magnetic disk device 4i to b (Fig. 8), (3) 0 system disk cache device 4d
When the power is restored, data at the same address in both systems becomes inconsistent (FIG. 9), which poses a problem in that the validity of data that has not been written to the magnetic disk device cannot be guaranteed.

【0007】本発明は、前記問題点を解決し、ディスク
キャッシュ装置が電源断となった後に復電した場合に、
磁気ディスク装置に未書込みのデータの正当性を保証す
ることのできるディスクキャッシュ装置の共有制御方式
を提供することを目的とする。
[0007] The present invention solves the above problems, and when the power is restored after the disk cache device is powered off,
An object of the present invention is to provide a shared control method for a disk cache device that can guarantee the validity of unwritten data in a magnetic disk device.

【0008】[0008]

【課題を解決するための手段】前記問題点を解決するた
めに、本発明は、ディスクキャッシュ装置を有する複数
系統の情報処理装置により磁気ディスク装置を共有制御
するディスクキャッシュ装置の共有制御方式において、
両系のディスクキャッシュ装置は、磁気ディスク装置に
未書込みのデータを格納する領域であるバッファと、バ
ッファのバックアップ手段と、バッファ内のデータの有
無を示すバッファフラグを生成する手段と、POWER
  ON  READY信号レベルが‘1’から‘0’
に変化した時に、バッファフラグの内容を保存するリレ
ーを生成する手段と、自系及び対向系ディスクキャッシ
ュ装置のPOWER  ON  READY信号を検出
する手段と、対向系ディスクキャッシュ装置のバッファ
フラグを検出する手段と、対向系ディスクキャッシュ装
置のリレーを検出する手段と、両系ディスクキャッシュ
装置間の専用インタフェースとを備え、ライトバックモ
ードの設定がなされ、かつ、両系のディスクキャッシュ
装置のPOWER  ONREADY信号レベルが‘1
’の時のみライトバックモードで動作し、そうでない時
はライトスルーモードで動作するように構成した。
[Means for Solving the Problems] In order to solve the above-mentioned problems, the present invention provides a shared control method for a disk cache device in which a magnetic disk device is sharedly controlled by a plurality of information processing devices each having a disk cache device.
The disk cache devices of both systems include a buffer that is an area for storing unwritten data in the magnetic disk device, a buffer backup means, a means for generating a buffer flag indicating the presence or absence of data in the buffer, and a POWER
ON READY signal level from '1' to '0'
means for generating a relay that saves the contents of the buffer flag when the content of the buffer flag changes, means for detecting the POWER ON READY signal of the local disk cache device and the opposite disk cache device, and means for detecting the buffer flag of the opposite disk cache device. , a means for detecting the relay of the disk cache device of the opposite system, and a dedicated interface between the disk cache devices of both systems, the write-back mode is set, and the POWER ONREADY signal level of the disk cache devices of both systems is set. '1
It was configured so that it operates in write-back mode only when ', and in write-through mode otherwise.

【0009】[0009]

【作用】本発明によれば、以上のようにディスクキャッ
シュ装置の共有制御方式を構成したので、ライトバック
モードで動作している時、磁気ディスク装置に未書込み
のデータはバッファに格納され、バッファ内のデータの
有無はバッファフラグにより表示される。そして、PO
WER  ON  READY信号のレベルが‘1’か
ら‘0’に変化すると、バッファフラグの内容がリレー
に保存され、バッファ内のデータはバックアップ手段に
より保持される。また、自系及び対向系のPOWER 
 ON  READY信号のレベルを検出し、それが‘
1’であればライトバックモードで動作し、そうでない
時はライトスルーモードで動作する。
[Operation] According to the present invention, since the disk cache device sharing control method is configured as described above, when operating in write-back mode, data that has not been written to the magnetic disk device is stored in the buffer. The presence or absence of data within is indicated by the buffer flag. And P.O.
When the level of the WER ON READY signal changes from '1' to '0', the contents of the buffer flag are stored in the relay, and the data in the buffer is retained by the backup means. In addition, the POWER of the own system and opposite system
Detects the level of the ON READY signal and confirms that it is '
If it is 1', it operates in write-back mode, otherwise it operates in write-through mode.

【0010】0010

【実施例】以下、本発明の実施例について図面を参照し
ながら詳細に説明する。図1は本発明の実施例によるデ
ィスクキャッシュ装置の共有制御方式の基本構成を示す
ブロック図、図2は本発明の実施例におけるディスクキ
ャッシュ装置の共有制御方式を示すブロック図、図3〜
図5は本発明の実施例における電源断、復電時の処理の
フローチャートである。
Embodiments Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing the basic configuration of a disk cache device sharing control method according to an embodiment of the present invention, FIG. 2 is a block diagram showing a disk cache device sharing control method according to an embodiment of the present invention, and FIGS.
FIG. 5 is a flowchart of processing when power is cut off and restored in the embodiment of the present invention.

【0011】図1において、1aは0系CPU、1bは
0系主記憶装置、1cは0系システムバス、1dは0系
ディスクキャッシュ装置、1eは1系CPU、1fは1
系主記憶装置、1gは1系システムバス、1hは1系デ
ィスクキャッシュ装置、1iは両系ディスクキャッシュ
装置間の専用インタフェース、1jはディスクインタフ
ェース、1kは磁気ディスク装置である。
In FIG. 1, 1a is the 0 system CPU, 1b is the 0 system main storage device, 1c is the 0 system bus, 1d is the 0 system disk cache device, 1e is the 1 system CPU, and 1f is the 1 system bus.
1g is a 1-system system bus, 1h is a 1-system disk cache device, 1i is a dedicated interface between both disk cache devices, 1j is a disk interface, and 1k is a magnetic disk device.

【0012】図2において、2aは0系ディスクキャッ
シュ装置、2bは0系ディスクキャッシュ装置制御部、
2cは0系ディスクキャッシュメモリ部、2dは0系バ
ッファ、2eは0系バックアップ手段、2fは0系バッ
ファフラグ生成回路、2gは0系フラッシュフラグ生成
回路、2hは0系リレー、2iは0系POWER  O
N  READY検出手段、2jは0系バッファフラグ
検出手段、2kは0系フラッシュフラグ検出手段、2l
は0系リレー検出手段、2mは1系ディスクキャッシュ
装置、2nは1系ディスクキャッシュ装置制御部、2o
は1系ディスクキャッシュメモリ部、2pは1系バッフ
ァ、2qは1系バックアップ手段、2rは1系バッファ
フラグ生成回路、2sは1系フラッシュフラグ生成回路
、2tは1系リレー、2uは1系POWER  ON 
 READY検出手段、2vは1系バッファフラグ検出
手段、2wは1系フラッシュフラグ検出手段、2xは1
系リレー検出手段、2yは両系のディスクキャッシュ装
置間の専用インタフェースである。
In FIG. 2, 2a is a 0-system disk cache device, 2b is a 0-system disk cache device control unit,
2c is a 0-system disk cache memory section, 2d is a 0-system buffer, 2e is a 0-system backup means, 2f is a 0-system buffer flag generation circuit, 2g is a 0-system flash flag generation circuit, 2h is a 0-system relay, and 2i is a 0-system POWER O
N READY detection means, 2j is 0 system buffer flag detection means, 2k is 0 system flash flag detection means, 2l
0 system relay detection means, 2m 1 system disk cache device, 2n 1 system disk cache device control unit, 2o
is the 1-system disk cache memory section, 2p is the 1-system buffer, 2q is the 1-system backup means, 2r is the 1-system buffer flag generation circuit, 2s is the 1-system flash flag generation circuit, 2t is the 1-system relay, and 2u is the 1-system POWER. ON
READY detection means, 2v is 1 system buffer flag detection means, 2w is 1 system flash flag detection means, 2x is 1
The system relay detection means 2y is a dedicated interface between the disk cache devices of both systems.

【0013】本発明の実施例におけるディスクキャッシ
ュ装置は、磁気ディスク装置を共有制御する場合に、ラ
イトバックモードで動作するのは、ライトバックモード
の設定がなされ、かつ、両系のディスクキャッシュ装置
のPOWER  ON  READY信号レベルが‘1
’の時のみである。また、POWER  ON  RE
ADY信号は、信号レベルが‘1’の時はディスクキャ
ッシュ装置が動作可能であることを示すもので、ディス
クキャッシュ装置の電源がONした後、少しの時間をお
いて立ち上がり、POWER  ON  READY信
号が立ち上がった後、少しの時間をおいて電源がOFF
するようになっている。
The disk cache device according to the embodiment of the present invention operates in write-back mode when the magnetic disk devices are shared and controlled if the write-back mode is set and the disk cache devices of both systems operate in write-back mode. POWER ON READY signal level is '1'
' is the only time. Also, POWER ON RE
When the signal level of the ADY signal is '1', it indicates that the disk cache device is ready for operation.After the power of the disk cache device is turned on, it rises after a short time and the POWER ON READY signal is activated. After starting up, turn off the power after a while.
It is supposed to be done.

【0014】そして、バッファはバックアップ手段によ
りバックアップされているため、ディスクキャッシュ装
置の電源がOFFしても内部のデータは保持される。さ
らに、バッファフラグはPOWER  ON  REA
DY信号レベルが‘1’の時、バッファ内にデータがあ
れば‘1’を示し、なければ‘0’を示す。そして、P
OWER  ON  READY信号レベルが‘1’か
ら‘0’に変化すると、電源がOFFする直前に、バッ
ファフラグの内容が‘1’であればリレーはON状態に
、‘0’であればリレーはOFF状態にセットされる。 また、対向系のPOWER  ON  READY信号
レベルが‘1’から‘0’に変化すると、電源がOFF
する直前に、バッファフラグの内容が‘1’であればリ
レーはON状態に、‘0’であればリレーはOFF状態
にセットされ、それまでライトバックモードで動作して
いた場合は、ライトスルーモードに切り換わる。
[0014] Since the buffer is backed up by the backup means, the internal data is retained even if the power to the disk cache device is turned off. Furthermore, the buffer flag is POWER ON REA
When the DY signal level is '1', it indicates '1' if there is data in the buffer, otherwise it indicates '0'. And P
When the OWER ON READY signal level changes from '1' to '0', immediately before the power is turned off, if the content of the buffer flag is '1', the relay is turned on, and if it is '0', the relay is turned off. set to the state. Also, when the POWER ON READY signal level of the opposing system changes from '1' to '0', the power is turned off.
If the content of the buffer flag is '1', the relay is set to the ON state, and if it is '0', the relay is set to the OFF state. mode.

【0015】また、ディスクキャッシュ装置がフラッシ
ュ中には、フラッシュフラグが‘1’を示し、それ以外
の時は‘0’を示す。なお、ディスクキャッシュ装置は
、対向系ディスクキャッシュ装置のPOWER  ON
  READY信号レベル、バッファ内のデータの有無
、フラッシュ中を検出することができ、POWER  
ON  READY信号レベルの変化に際し、図3〜図
5に示すフローチャートの動作をする。
The flush flag indicates '1' when the disk cache device is flushing, and indicates '0' at other times. Note that the disk cache device is powered on by the POWER ON of the opposing disk cache device.
It can detect the READY signal level, the presence or absence of data in the buffer, and whether it is being flushed.
When the ON READY signal level changes, the operations shown in the flowcharts shown in FIGS. 3 to 5 are performed.

【0016】図3のフローチャートは、自系ディスクキ
ャッシュ装置のPOWER  ONREADY信号レベ
ルが‘1’から‘0’に変化した場合(ステップ11)
の動作を示すもので、この時は前述した通り、バッファ
フラグの内容をリレーに移した後、電源がOFFする(
ステップ12,13)。図4のフローチャートは、対向
系ディスクキャッシュ装置のPOWER  ONREA
DY信号レベルが‘1’から‘0’に変化した場合(ス
テップ21)の動作を示すもので、バッファフラグの内
容によって動作が異なる。すなわち、バッファフラグが
‘0’であれば、バッファ内には磁気ディスク装置に未
書込みのデータが存在しないので、ライトスルーモード
で動作し(ステップ22,24)、バッファフラグが‘
1’であれば、バッファ内に磁気ディスク装置に未書込
みデータがあるため、フラッシュを行った後、ライトス
ルーモードで動作する(ステップ22,23,24)。 この結果、バッファフラグは‘0’になる。
The flowchart in FIG. 3 shows the process when the POWER ONREADY signal level of the local disk cache device changes from '1' to '0' (step 11).
In this case, as mentioned above, the contents of the buffer flag are transferred to the relay, and then the power is turned off (
Steps 12, 13). The flowchart in FIG. 4 shows the POWER ONREA of the opposing disk cache device.
This shows the operation when the DY signal level changes from '1' to '0' (step 21), and the operation differs depending on the contents of the buffer flag. That is, if the buffer flag is '0', there is no unwritten data in the magnetic disk device in the buffer, so the operation is in write-through mode (steps 22 and 24), and the buffer flag is '0'.
If it is 1', since there is unwritten data in the magnetic disk device in the buffer, the data is flushed and then operates in write-through mode (steps 22, 23, and 24). As a result, the buffer flag becomes '0'.

【0017】図5のフローチャートは、自系ディスクキ
ャッシュ装置のPOWER  ONREADY信号レベ
ルが‘0’から‘1’に変化した場合(ステップ25)
の動作を示すもので、対向系ディスクキャッシュ装置の
POWER  ON  READY信号レベルによって
動作が異なる。すなわち、対向系ディスクキャッシュ装
置のPOWER  ON  READY信号レベルが‘
0’の場合、バッファフラグが‘0’であれば、ライト
スルーモードで動作する(ステップ27,31)。
The flowchart in FIG. 5 shows that when the POWER ONREADY signal level of the own disk cache device changes from '0' to '1' (step 25)
The operation differs depending on the POWER ON READY signal level of the opposing disk cache device. In other words, the POWER ON READY signal level of the opposing disk cache device is '
In the case of 0', if the buffer flag is 0', it operates in write-through mode (steps 27, 31).

【0018】一方、バッファフラグが‘1’の時は、対
向系ディスクキャッシュ装置のリレーの状態をセンスし
、リレーがON状態であれば、図3及び図4から明らか
なように、自系ディスクキャッシュ装置と対向系ディス
クキャッシュ装置とはほぼ同時に電源断となっているの
で、フラッシュした後、ライトスルーモードで動作し(
ステップ27,28,29,31)、リレーがOFF状
態であれば、対向系ディスクキャッシュ装置が後から電
源断となっており、したがって、図4に示したように、
対向系ディスクキャッシュ装置のバッファ内のデータが
フラッシュされているので、自系バッファ内のデータを
無効化した後、ライトスルーモードで動作する(ステッ
プ27,28,30,31)。
On the other hand, when the buffer flag is '1', the state of the relay of the opposite system disk cache device is sensed, and if the relay is in the ON state, as is clear from FIGS. 3 and 4, the self system disk Since the cache device and the opposing disk cache device are powered off at almost the same time, after flushing, they operate in write-through mode (
Steps 27, 28, 29, 31), if the relay is in the OFF state, the opposing disk cache device has been powered off since then, and therefore, as shown in FIG.
Since the data in the buffer of the opposing disk cache device has been flushed, the data in the local disk cache device is invalidated and then operates in write-through mode (steps 27, 28, 30, and 31).

【0019】また、対向系ディスクキャッシュ装置のP
OWER  ON  READY信号レベルが‘1’の
場合、バッファフラグが‘0’であればライトバックモ
ードで動作する(ステップ26,32,36)。一方、
バッファフラグが‘1’の時は、対向系ディスクキャッ
シュ装置のバッファフラグが‘0’の場合は、対向系デ
ィスクキャッシュ装置が後から電源断となっており、し
たがって、対向系ディスクキャッシュ装置のバッファ内
のデータがフラッシュされているので、自系バッファ内
のデータを無効化した後、ライトバックモードで動作す
る(ステップ32,33,35,36)。対向系ディス
クキャッシュ装置のフラッシュフラグが‘1’の場合は
、対向系ディスクキャッシュ装置がフラッシュ中なので
、同様に、バッファ内のデータを無効化した後、ライト
バックモードで動作する(ステップ33,34,35,
36)。そして、対向系バッファフラグが‘1’で、か
つ、対向系フラッシュフラグが‘1’の場合は、バッフ
ァに未書込みのデータがあるので、ライトバックモード
で動作する(ステップ33,34,36)。
[0019] Also, P of the opposing system disk cache device
When the OWER ON READY signal level is '1' and the buffer flag is '0', it operates in write back mode (steps 26, 32, 36). on the other hand,
When the buffer flag is '1', if the buffer flag of the opposing disk cache device is '0', it means that the opposing disk cache device has been powered off, and therefore the buffer of the opposing disk cache device is Since the data in the internal buffer has been flushed, the data in the local buffer is invalidated and then operates in write-back mode (steps 32, 33, 35, and 36). If the flush flag of the opposing disk cache device is '1', the opposing disk cache device is flushing, so it similarly operates in write-back mode after invalidating the data in the buffer (steps 33 and 34). ,35,
36). Then, if the opposing system buffer flag is '1' and the opposing system flush flag is '1', there is unwritten data in the buffer, so it operates in write-back mode (steps 33, 34, 36). .

【0020】以上の処理により、ライトバックモードで
動作するディスクキャッシュ装置において、磁気ディス
ク装置を共有制御する場合にバッファ内にデータを残し
たまま片系、又は両系が電源断になった後に復電しても
、バッファ内のデータの正当性を保証することが可能と
なる。なお、本発明は上記実施例に限定されるものでは
なく、本発明の趣旨に基づき種々の変形が可能であり、
それらを本発明の範囲から排除するものではない。
With the above processing, in a disk cache device operating in write-back mode, when a magnetic disk device is shared and controlled, one system or both systems can be restored after power is cut off while leaving data in the buffer. It is possible to guarantee the validity of the data in the buffer even if the data is Note that the present invention is not limited to the above embodiments, and various modifications can be made based on the spirit of the present invention.
They are not excluded from the scope of the present invention.

【0021】[0021]

【発明の効果】以上詳細に説明したように、本発明によ
れば、ライトバックモードで動作するディスクキャッシ
ュ装置により、磁気ディスク装置を共有制御する場合に
、ディスクキャッシュ装置の電源がOFFしても、バッ
ファ内データとバッファの状態が保持されており、かつ
、常に対向系ディスクキャッシュ装置の状態を検出でき
るので、データの正当性を保証することができる。
As described above in detail, according to the present invention, when a magnetic disk device is sharedly controlled by a disk cache device operating in write-back mode, even if the power of the disk cache device is turned off, Since the data in the buffer and the state of the buffer are maintained, and the state of the opposing disk cache device can always be detected, the validity of the data can be guaranteed.

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

【図1】本発明の実施例によるディスクキャッシュ装置
の共有制御方式の基本構成を示すブロック図である。
FIG. 1 is a block diagram showing the basic configuration of a shared control method for a disk cache device according to an embodiment of the present invention.

【図2】本発明の実施例におけるディスクキャッシュ装
置の共有制御方式を示すブロック図である。
FIG. 2 is a block diagram showing a sharing control method for a disk cache device in an embodiment of the present invention.

【図3】本発明の実施例における電源断時の第1の処理
を示すフローチャートである。
FIG. 3 is a flowchart showing a first process when the power is turned off in the embodiment of the present invention.

【図4】本発明の実施例における電源断時の第2の処理
を示すフローチャートである。
FIG. 4 is a flowchart showing a second process when the power is turned off in the embodiment of the present invention.

【図5】本発明の実施例における復電時の処理を示すフ
ローチャートである。
FIG. 5 is a flowchart showing processing at the time of power restoration in the embodiment of the present invention.

【図6】従来のディスクキャッシュ装置の共有制御方式
を示すブロック図である。
FIG. 6 is a block diagram showing a sharing control method of a conventional disk cache device.

【図7】従来のディスクキャッシュ装置の共有制御方式
における第1の書込み動作説明図である。
FIG. 7 is an explanatory diagram of a first write operation in a shared control method of a conventional disk cache device.

【図8】従来のディスクキャッシュ装置の共有制御方式
における第2の書込み動作説明図である。
FIG. 8 is a diagram illustrating a second write operation in a conventional disk cache device sharing control method.

【図9】従来のディスクキャッシュ装置の共有制御方式
における復電時の状態説明図である。
FIG. 9 is an explanatory diagram of a state at the time of power recovery in a conventional shared control method of a disk cache device.

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

1a,1e    CPU 1b,1f    主記憶装置 1c,1g    システムバス 1d,1h    ディスクキャッシュ装置1i   
       専用インタフェース1j       
   ディスクインタフェース1k         
 磁気ディスク装置2a,2m    ディスクキャッ
シュ装置2b,2n    ディスクキャッシュ装置制
御部2c,2o    ディスクキャッシュメモリ2d
,2p    バッファ 2e,2q    バックアップ手段 2f,2r    バッファフラグ生成回路2g,2s
    フラッシュフラグ生成回路2h,2t    
リレー 2i,2u    POWER  ON  READY
検出手段2j,2v    バッファフラグ検出手段2
k,2w    フラッシュフラグ検出手段2l,2x
    リレー検出手段
1a, 1e CPU 1b, 1f Main storage device 1c, 1g System bus 1d, 1h Disk cache device 1i
Dedicated interface 1j
disk interface 1k
Magnetic disk devices 2a, 2m Disk cache devices 2b, 2n Disk cache device control units 2c, 2o Disk cache memory 2d
, 2p Buffers 2e, 2q Backup means 2f, 2r Buffer flag generation circuits 2g, 2s
Flash flag generation circuit 2h, 2t
Relay 2i, 2u POWER ON READY
Detection means 2j, 2v Buffer flag detection means 2
k, 2w Flash flag detection means 2l, 2x
Relay detection means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  ディスクキャッシュ装置を有する2系
統の情報処理装置により、磁気ディスク装置を共有制御
するディスクキャッシュ装置の共有制御方式において、
前記両系のディスクキャッシュ装置は、(a)前記磁気
ディスク装置に未書込みのデータを格納する領域である
バッファと、(b)該バッファのバックアップ手段と、
(c)前記バッファ内のデータの有無を示すバッファフ
ラグを生成する手段と、(d)POWER  ON  
READY信号レベルが‘1’から‘0’に変化した時
に、前記バッファフラグの内容を保存するリレーを生成
する手段と、(e)前記自系及び対向系ディスクキャッ
シュ装置のPOWER  ON  READY信号を検
出する手段と、(f)前記対向系ディスクキャッシュ装
置のバッファフラグを検出する手段と、(g)前記対向
系ディスクキャッシュ装置のリレーを検出する手段と、
(h)両系ディスクキャッシュ装置間の専用インタフェ
ースとを備え、ライトバックモードの設定がなされ、か
つ、両系のディスクキャッシュ装置のPOWER  O
N  READY信号レベルが‘1’の時のみライトバ
ックモードで動作し、そうでない時はライトスルーモー
ドで動作することを特徴とするディスクキャッシュ装置
の共有制御方式。
1. A shared control method for a disk cache device in which a magnetic disk device is shared and controlled by two systems of information processing devices each having a disk cache device, comprising:
The disk cache devices of both systems include (a) a buffer that is an area for storing unwritten data in the magnetic disk device; (b) backup means for the buffer;
(c) means for generating a buffer flag indicating the presence or absence of data in the buffer; and (d) POWER ON.
means for generating a relay that stores the contents of the buffer flag when the READY signal level changes from '1' to '0'; and (e) detecting the POWER ON READY signals of the own system and opposite system disk cache devices. (f) means for detecting a buffer flag of the opposing disk cache device; (g) means for detecting a relay of the opposing disk cache device;
(h) A dedicated interface between the disk cache devices of both systems, a write-back mode is set, and the POWER O of the disk cache devices of both systems is provided.
A shared control method for a disk cache device, characterized in that it operates in a write-back mode only when the NREADY signal level is '1', and operates in a write-through mode otherwise.
【請求項2】  バッファ内のデータをすべて前記磁気
ディスク装置に退避中であることを示すフラッシュフラ
グを生成する手段と、対向系ディスクキャッシュ装置の
フラッシュフラグを検出する手段とを有することを特徴
とする請求項1記載のディスクキャッシュ装置の共有制
御方式。
2. The method is characterized by comprising means for generating a flush flag indicating that all data in the buffer is being saved to the magnetic disk device, and means for detecting the flush flag of the opposing disk cache device. 2. A shared control method for a disk cache device according to claim 1.
JP3141630A 1991-06-13 1991-06-13 Sharing controlling system for disk cache device Withdrawn JPH04365152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3141630A JPH04365152A (en) 1991-06-13 1991-06-13 Sharing controlling system for disk cache device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3141630A JPH04365152A (en) 1991-06-13 1991-06-13 Sharing controlling system for disk cache device

Publications (1)

Publication Number Publication Date
JPH04365152A true JPH04365152A (en) 1992-12-17

Family

ID=15296510

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3141630A Withdrawn JPH04365152A (en) 1991-06-13 1991-06-13 Sharing controlling system for disk cache device

Country Status (1)

Country Link
JP (1) JPH04365152A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6052789A (en) * 1994-03-02 2000-04-18 Packard Bell Nec, Inc. Power management architecture for a reconfigurable write-back cache
JP2007310495A (en) * 2006-05-16 2007-11-29 Hitachi Ltd Computer system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6052789A (en) * 1994-03-02 2000-04-18 Packard Bell Nec, Inc. Power management architecture for a reconfigurable write-back cache
JP2007310495A (en) * 2006-05-16 2007-11-29 Hitachi Ltd Computer system
US8195865B2 (en) 2006-05-16 2012-06-05 Hitachi, Ltd. Computer system having an expansion device for virtualizing a migration source logical unit
US8447924B2 (en) 2006-05-16 2013-05-21 Hitachi, Ltd. Computer system having an expansion device for virtualizing a migration source wherein the operation mode of the computer is set to a cache through or write after mode

Similar Documents

Publication Publication Date Title
US9852060B2 (en) Storage class memory (SCM) memory mode cache system
US7627713B2 (en) Method and apparatus to maintain data integrity in disk cache memory during and after periods of cache inaccessibility
US7130962B2 (en) Writing cache lines on a disk drive
JPH0668735B2 (en) Cache memory
CN101901189B (en) User data updating method and method for recovering user data
US7506099B2 (en) Semiconductor storage apparatus
JP2012128643A (en) Memory system
EP3142015A1 (en) Low-power memory-access method and associated apparatus
JP2004240820A (en) Storage device
JP3192664B2 (en) Cache memory system and cache memory controller
CN113342276B (en) Log saving method, system, device and medium
CN110928890B (en) Data storage method and device, electronic equipment and computer readable storage medium
JP2006099802A (en) Storage controller, and control method for cache memory
JPH04365152A (en) Sharing controlling system for disk cache device
JP3281211B2 (en) Information processing apparatus having synchronous memory and synchronous memory
US20070271311A1 (en) Disk array device and data management method for managing master data and replication data replicated from master data
JP2003122646A (en) Ic card and memory access control method for ic card
JP2001312891A (en) Semiconductor storage device
US20210374051A1 (en) Storage apparatus and method
US7996598B2 (en) Memory management module
JP2000181790A (en) Memory update history preservation device
JPH04296954A (en) Memory system
JP2005010995A (en) Multiprocessor system and process for dealing with trouble of write-back thereof
JP3310975B2 (en) Information processing apparatus and backup memory control method therefor
JP2000285019A (en) Cache control circuit

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980903