JPH096677A - Write synchronous system - Google Patents
Write synchronous systemInfo
- Publication number
- JPH096677A JPH096677A JP7175506A JP17550695A JPH096677A JP H096677 A JPH096677 A JP H096677A JP 7175506 A JP7175506 A JP 7175506A JP 17550695 A JP17550695 A JP 17550695A JP H096677 A JPH096677 A JP H096677A
- Authority
- JP
- Japan
- Prior art keywords
- disk
- write
- write synchronization
- extent
- 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
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明はディスク処理装置にキャ
ッシュを備えキャッシュを介してディスクとの間の入出
力を行うディスクサブシステムにホストコンピュータが
接続されてなるディスクキャッシュシステムに関し、特
にライトキャッシュ(write cache)機能を
有するディスクサブシステムに対する書込み同期方式に
関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a disk cache system in which a host computer is connected to a disk subsystem that has a cache in a disk processing device and performs input / output with a disk via the cache. The present invention relates to a write synchronization method for a disk subsystem having a write cache function.
【0002】[0002]
【従来の技術】ライトキャッシュ機能を有するディスク
サブシステムでは、更新データがキャッシュに記録され
た時点で書込み終了報告がホストコンピュータに通知さ
れ、更新データのディスクへの書込みはディスク処理装
置により非同期に行われている。このため、キャッシュ
に障害があった場合に、どの時点までのデータがディス
クに正しく反映されているのかを判定することが困難で
あった。2. Description of the Related Art In a disk subsystem having a write cache function, a write completion report is notified to a host computer when update data is recorded in a cache, and update data is written to a disk asynchronously by a disk processor. It is being appreciated. Therefore, when there is a cache failure, it is difficult to determine up to which point the data is correctly reflected on the disk.
【0003】このため、例えば、特開昭59−1532
050号公報に開示された従来のディスクキャッシュシ
ステムでは、プログラムから要求されたディスクのエク
ステントに対してキャッシュ上に記録されたがディスク
上には反映されていない更新データ(以下、未反映デー
タという)がディスクに書き込まれたことを保証するた
めに、プログラムの論理的な完了単位で発せられる特定
コマンド(COMMITコマンド)に応じて未反映デー
タをディスクに反映し、プログラムの動作とディスクの
内容との同期がとれるようにしていた。Therefore, for example, Japanese Patent Laid-Open No. 59-1532
In the conventional disk cache system disclosed in Japanese Patent Publication No. 050, the update data recorded on the cache for the extent of the disk requested by the program but not reflected on the disk (hereinafter referred to as unreflected data). In order to guarantee that the data has been written to the disk, the unreflected data is reflected on the disk according to a specific command (COMMIT command) issued in a logical completion unit of the program, and the operation of the program and the contents of the disk are reflected. I was trying to stay in sync.
【0004】[0004]
【発明が解決しようとする課題】上述した従来の書込み
同期方式では、キャッシュ上の未反映データをディスク
に反映する特定コマンドの発行時期がプログラムの論理
的な完了単位の時期に限定されていたので、プログラム
とディスクの内容との同期をとれる時期に制限があると
いう問題点があった。In the conventional write synchronization system described above, the issuance timing of the specific command for reflecting the unreflected data in the cache to the disk is limited to the logical completion unit of the program. However, there is a problem that there is a limit to the time when the program and the contents of the disc can be synchronized.
【0005】また、書込み同期のとれるディスクのエク
ステントは、当該プログラムで更新されたエクステント
だけであるという問題点があった。Further, there is a problem that the extents of the disk which can be write-synchronized are only the extents updated by the program.
【0006】本発明の目的は、上述の点に鑑み、プログ
ラムから任意の時点でディスクの任意のエクステントに
対して書込み同期がとれるようにした書込み同期方式を
提供することにある。In view of the above points, an object of the present invention is to provide a write synchronization system which allows a program to perform write synchronization with an arbitrary extent of a disk at an arbitrary time.
【0007】[0007]
【課題を解決するための手段】本発明の書込み同期方式
は、ディスク処理装置にキャッシュを備え該キャッシュ
を介してディスクとの間の入出力を行うディスクサブシ
ステムにホストコンピュータが接続されてなるディスク
キャッシュシステムにおいて、前記ホストコンピュータ
上のプログラムに任意の時点でディスクの任意のエクス
テントに対して書込み同期をとることを要求する書込み
同期マクロを提供するととも、前記ホストコンピュータ
上のオペレーティングシステムに設けられ、プログラム
から前記書込み同期マクロで書込み同期が要求された時
点で前記ディスクサブシステムに対してエクステント指
定の書込み同期コマンドを発行し、前記キャッシュ上に
記録されたがディスク上に反映されていない未反映デー
タがディスクに書き込まれるのを待ち合わせる書込み同
期手段と、前記書込み同期コマンドを受けて指定された
エクステントにおけるキャッシュ上の未更新データをデ
ィスクに反映して書込み完了を前記ホストコンピュータ
に報告する前記ディスク処理装置とを有する。The write synchronization system of the present invention is a disk in which a host computer is connected to a disk subsystem that has a disk processing device and has a cache for inputting / outputting data from / to the disk via the cache. In the cache system, the program on the host computer is provided with a write synchronization macro that requests write synchronization to any extent of the disk at any time, and is provided in the operating system on the host computer. Unreflected data recorded in the cache but not reflected on the disk by issuing an extent-specified write synchronization command to the disk subsystem when write synchronization is requested from the program by the write synchronization macro. Written on disk And a disk processing unit that receives the write synchronization command and reflects the unupdated data on the cache in the designated extent to the disk to report the write completion to the host computer. .
【0008】[0008]
【作用】本発明の書込み同期方式では、ホストコンピュ
ータ上のオペレーティングシステムに設けられた書込み
同期手段がプログラムから書込み同期マクロで書込み同
期が要求された時点でディスクサブシステムに対してエ
クステント指定の書込み同期コマンドを発行し、キャッ
シュ上に記録されたがディスク上に反映されていない未
反映データがディスクに書き込まれるのを待ち合わせ、
ディスク処理装置が書込み同期コマンドを受けて指定さ
れたエクステントにおけるキャッシュ上の未更新データ
をディスクに反映して書込み完了をホストコンピュータ
に報告する。According to the write synchronization system of the present invention, the write synchronization means provided in the operating system on the host computer writes the extent to the disk subsystem at the time when the program requests the write synchronization by the write synchronization macro. Issue a command and wait for unreflected data recorded on the cache but not reflected on the disk to be written to the disk,
The disk processing device receives the write synchronization command, reflects the unupdated data on the cache in the designated extent on the disk, and reports the write completion to the host computer.
【0009】[0009]
【実施例】次に、本発明について図面を参照して詳細に
説明する。The present invention will be described in detail with reference to the drawings.
【0010】図1は、本発明の一実施例に係る書込み同
期方式が適用されたディスクキャッシュシステムの構成
を示すブロック図である。このディスクキャッシュシス
テムは、ホストコンピュータ1と、ディスクサブサブシ
ステム5とが接続されて、その主要部が構成されてい
る。FIG. 1 is a block diagram showing the configuration of a disk cache system to which a write synchronization system according to an embodiment of the present invention is applied. In this disk cache system, a host computer 1 and a disk subsystem 5 are connected to each other to form a main part.
【0011】ホストコンピュータ1は、アプリケーショ
ンプログラム2と、書込み同期手段4を含むオペレーテ
ィングシステム3とを搭載している。The host computer 1 is equipped with an application program 2 and an operating system 3 including a write synchronizing means 4.
【0012】ディスクサブシステム5は、キャッシュ7
を備えるディスク処理装置6と、複数のディスク8とを
含んで構成されている。The disk subsystem 5 has a cache 7
And a plurality of disks 8.
【0013】図2を参照すると、書込み同期手段4によ
ってディスクサブシステム5に対して発行される書込み
同期のためのチャネルコマンド(以下、書込み同期コマ
ンドという)は、ディスク8のボリュームを識別するた
めの装置識別番号と、1つ以上のエクステントの開始ア
ドレスおよび終了アドレスの組(以下、エクステントエ
ントリという)とからなる。Referring to FIG. 2, a channel command for write synchronization (hereinafter referred to as a write synchronization command) issued to the disk subsystem 5 by the write synchronization means 4 identifies a volume of the disk 8. It is composed of a device identification number and a set of start addresses and end addresses of one or more extents (hereinafter referred to as extent entry).
【0014】図3を参照すると、書込み同期手段4の処
理は、ファイル単位書込み同期判定ステップS101
と、ファイルエクステント開始・終了アドレス取得ステ
ップS102と、ボリューム単位書込み同期判定ステッ
プS103と、ボリュームエクステント開始・終了アド
レス取得ステップS104と、エクステント指定書込み
同期コマンド発行ステップS105と、書込み終了報告
有無判定ステップS106と、書込み同期完了通知ステ
ップS107とからなる。Referring to FIG. 3, the process of the write synchronization means 4 is a file unit write synchronization determination step S101.
A file extent start / end address acquisition step S102, a volume unit write synchronization determination step S103, a volume extent start / end address acquisition step S104, an extent designation write synchronization command issue step S105, and a write end report presence / absence determination step S106. And a write synchronization completion notification step S107.
【0015】図4を参照すると、ディスク処理装置6の
エクステント指定の書込み同期コマンド受信時の処理
は、先頭エクステントエントリポイントステップS20
1と、エクステントエントリ終了判定ステップS202
と、エクステント未反映データ有無判定ステップS20
3と、エクステント未反映データディスク反映ステップ
S204と、次エクステントエントリポイントステップ
S205と、書込み終了報告ステップS206とからな
る。Referring to FIG. 4, the processing when the disk processing apparatus 6 receives a write synchronization command specifying an extent is the first extent entry point step S20.
1 and extent entry end determination step S202
And extent non-reflected data presence / absence determination step S20
3, an extent unreflected data disk reflection step S204, a next extent entry point step S205, and a write end reporting step S206.
【0016】次に、このように構成された本実施例の書
込み同期方式の動作について説明する。Next, the operation of the write synchronization system of the present embodiment configured as described above will be described.
【0017】アプリケーションプログラム2は、ディス
ク8の任意の数の任意のエクステントに対して書込み同
期をとる必要が生じると、ファイル単位あるいはボリュ
ーム単位に書込み同期をとるための書込み同期マクロを
オペレーティングシステム3に対して発行して書込み同
期を要求し、処理を一時的に中断する。When it becomes necessary for the application program 2 to perform write synchronization with respect to an arbitrary number of arbitrary extents of the disk 8, the application system 2 provides the operating system 3 with a write synchronization macro for performing write synchronization in file units or volume units. It is issued to request write synchronization and suspends the processing temporarily.
【0018】オペレーティングシステム3では、アプリ
ケーションプログラム1から書込み同期マクロを受け取
ると、書込み同期手段4が、ファイル単位の書込み同期
であるかどうかを判定し(ステップS101)、ファイ
ル単位の書込み同期であればオペレーティングシステム
3が管理している当該ファイルのエクステントの開始ア
ドレスおよび終了アドレスを取得し(ステップS10
2)、エクステント指定の書込み同期コマンドをディス
クサブシステム5に対して発行する(ステップS10
5)。In the operating system 3, when the write synchronization macro is received from the application program 1, the write synchronization means 4 determines whether it is the file-unit write synchronization (step S101). The start address and end address of the extent of the file managed by the operating system 3 are acquired (step S10).
2) Issue a write synchronization command specifying the extent to the disk subsystem 5 (step S10).
5).
【0019】ステップS101でファイル単位の書込み
同期でなければ、書込み同期手段4は、ボリューム単位
の書込み同期であるかどうかを判定し(ステップS10
3)、ボリューム単位の書込み同期であれば、オペレー
ティングシステム3で管理している当該ボリュームのエ
クステントの開始アドレスおよび終了アドレスを取得し
(ステップS104)、エクステント指定の書込み同期
コマンドをディスクサブシステム5に対して発行する
(ステップS105)。なお、ステップS103でボリ
ューム単位の書込み同期でもなければ、書込み同期手段
4は、直ちに処理を終了する。If it is not the file-unit write synchronization in step S101, the write synchronization means 4 determines whether it is the volume-unit write synchronization (step S10).
3) In the case of volume-unit write synchronization, the start address and end address of the extent of the volume managed by the operating system 3 are acquired (step S104), and a write synchronization command specifying the extent is sent to the disk subsystem 5. It is issued (step S105). If it is not the volume-unit write synchronization in step S103, the write synchronization means 4 immediately ends the processing.
【0020】ディスクサブシステム5では、ホストコン
ピュータ1からエクステント指定の書込み同期コマンド
を受信すると、ディスク処理装置6が、先頭のエクステ
ントエントリをポイントし(ステップS201)、エク
ステントエントリが終了したかどうかを判定する(ステ
ップS202)。エクステントエントリが終了していな
ければ、ディスク処理装置6は、ディスク処理装置6自
身が管理しているキャッシュ7上の未反映データの情報
を参照して、ポイントされているエクステントエントリ
の開始アドレスおよび終了アドレスが示すエクステント
に未反映データがあるかどうかを判定する(ステップS
203)。未反映データがあれば、ディスク処理装置6
は、当該エクステントの未反映データをディスク8に反
映し(ステップS204)、未反映データがなければ、
ステップS204をスキップする。When the disk subsystem 5 receives a write synchronization command specifying an extent from the host computer 1, the disk processing device 6 points to the first extent entry (step S201) and determines whether the extent entry has ended. Yes (step S202). If the extent entry has not ended, the disk processing device 6 refers to the information of unreflected data in the cache 7 managed by the disk processing device 6 itself, and refers to the start address and end of the extent entry pointed to. It is determined whether there is unreflected data in the extent indicated by the address (step S
203). If there is unreflected data, the disk processing device 6
Reflects the unreflected data of the extent on the disk 8 (step S204). If there is no unreflected data,
Step S204 is skipped.
【0021】次に、ディスク処理装置6は、次のエクス
テントエントリをポイントしてから(ステップS20
5)、ステップS202に制御を戻し、ステップS20
2〜S205を繰り返す。そして、ステップS202で
エクステントエントリが終了すると、ディスク処理装置
6は、書込み終了をホストコンピュータ1に報告し(ス
テップS206)、処理を終了する。Next, the disk processing device 6 points to the next extent entry (step S20).
5), control is returned to step S202, and step S20
2 to S205 are repeated. Then, when the extent entry ends in step S202, the disk processing device 6 reports the end of writing to the host computer 1 (step S206) and ends the processing.
【0022】ホストコンピュータ1では、ディスクサブ
システム5からの書込み終了報告を受け取ると(ステッ
プS106で有)、書込み同期手段4が、アプリケーシ
ョンプログラム2に書込み同期が完了したことを通知し
(ステップS107)、処理を終了する。In the host computer 1, when the write completion report is received from the disk subsystem 5 (Yes in step S106), the write synchronization means 4 notifies the application program 2 that the write synchronization is completed (step S107). , The process ends.
【0023】オペレーティングシステム3から書込み同
期が完了したことを通知されると、アプリケーションプ
ログラム2は、一時的に中断していた動作を再開する。When the operating system 3 is notified that the write synchronization has been completed, the application program 2 restarts the operation that was temporarily interrupted.
【0024】[0024]
【発明の効果】以上説明したように本発明は、プログラ
ムにおいて任意の時点でディスクの任意のエクステント
に対して書込み同期を要求する書込み同期マクロを提供
することにより、プログラムが任意の時点でディスクの
任意のエクステントに対して書込み同期をとることがで
きるという効果がある。As described above, the present invention provides a write synchronization macro for requesting write synchronization to an arbitrary extent of a disk at an arbitrary time in a program, so that the program can write a disk at an arbitrary time. There is an effect that write synchronization can be taken for any extent.
【図1】本発明の一実施例に係る書込み同期方式が適用
されたディスクキャッシュシステムの構成を示すブロッ
ク図である。FIG. 1 is a block diagram showing a configuration of a disk cache system to which a write synchronization method according to an embodiment of the present invention is applied.
【図2】図1中の書込み同期手段により発行される書込
み同期コマンドのデータ構造を示す図である。FIG. 2 is a diagram showing a data structure of a write synchronization command issued by a write synchronization means in FIG.
【図3】図1中の書込み同期手段の処理を示す流れ図で
ある。FIG. 3 is a flow chart showing a process of a write synchronization means in FIG.
【図4】図1中のディスク処理装置の処理を示す流れ図
である。FIG. 4 is a flowchart showing a process of the disk processing device in FIG.
1 ホストコンピュータ 2 アプリケーションプログラム 3 オペレーティングシステム 4 書込み同期手段 5 ディスクサブシステム 6 ディスク処理装置 7 キャッシュ 8 ディスク 1 host computer 2 application program 3 operating system 4 write synchronization means 5 disk subsystem 6 disk processor 7 cache 8 disk
Claims (3)
キャッシュを介してディスクとの間の入出力を行うディ
スクサブシステムにホストコンピュータが接続されてな
るディスクキャッシュシステムにおいて、 前記ホストコンピュータ上のプログラムに任意の時点で
ディスクの任意のエクステントに対して書込み同期をと
ることを要求する書込み同期マクロを提供するととも、 前記ホストコンピュータ上のオペレーティングシステム
に設けられ、プログラムから前記書込み同期マクロで書
込み同期が要求された時点で前記ディスクサブシステム
に対してエクステント指定の書込み同期コマンドを発行
し、前記キャッシュ上に記録されたがディスク上に反映
されていない未反映データがディスクに書き込まれるの
を待ち合わせる書込み同期手段と、 前記書込み同期コマンドを受けて指定されたエクステン
トにおけるキャッシュ上の未更新データをディスクに反
映して書込み完了を前記ホストコンピュータに報告する
前記ディスク処理装置とを有することを特徴とする書込
み同期方式。1. A disk cache system in which a host computer is connected to a disk subsystem that has a cache in a disk processing device and performs input / output with a disk via the cache, wherein a program on the host computer is arbitrary. At the point of time, a write synchronization macro that requests write synchronization to any extent of the disk is provided, and the program is requested to perform write synchronization by the write synchronization macro provided in the operating system on the host computer. At this point, a write synchronization command for issuing an extent-specified write synchronization command to the disk subsystem, and waiting for the unreflected data recorded in the cache but not reflected on the disk to be written to the disk , Write synchronization method characterized by having a said disk processing apparatus unupdated data in the cache in the extent specified receiving said write sync command to reflect the disk reports write completion to the host computer.
ステントに対して書込み同期を同時に要求することがで
きる請求項1記載の書込み同期方式。2. The write synchronization method according to claim 1, wherein the write synchronization command can simultaneously request write synchronization for a plurality of extents.
位またはボリューム単位に書込み同期を要求することが
できる請求項1記載の書込み同期方式。3. The write synchronization method according to claim 1, wherein the write synchronization command can request write synchronization in file units or volume units.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7175506A JPH096677A (en) | 1995-06-19 | 1995-06-19 | Write synchronous system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7175506A JPH096677A (en) | 1995-06-19 | 1995-06-19 | Write synchronous system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH096677A true JPH096677A (en) | 1997-01-10 |
Family
ID=15997243
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7175506A Pending JPH096677A (en) | 1995-06-19 | 1995-06-19 | Write synchronous system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH096677A (en) |
-
1995
- 1995-06-19 JP JP7175506A patent/JPH096677A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4738413B2 (en) | Method and system for migrating source data to target data | |
| JP4581518B2 (en) | How to get a snapshot | |
| US6272571B1 (en) | System for improving the performance of a disk storage device by reconfiguring a logical volume of data in response to the type of operations being performed | |
| JP3268555B2 (en) | Data processor storage system with dynamic resynchronization of mirrored logical data volumes following storage system failure | |
| US7325112B2 (en) | High-speed snapshot method | |
| US20030212869A1 (en) | Method and apparatus for mirroring data stored in a mass storage system | |
| JPH0823841B2 (en) | Data processing system and method | |
| JP2003223287A (en) | Storage device, backup method and program for the storage device | |
| US5963960A (en) | Method and apparatus for queuing updates in a computer system | |
| JPH03160534A (en) | Access control system for shared file | |
| US20060069888A1 (en) | Method, system and program for managing asynchronous cache scans | |
| US20060168412A1 (en) | Method for controlling storage device controller, storage device controller, and program | |
| KR102262209B1 (en) | Method and apparatus for sending barrier command using dummy io request | |
| JPH096677A (en) | Write synchronous system | |
| JPH05233155A (en) | Disk array device | |
| JP2004199264A (en) | Database processing method, apparatus for executing the same, and processing program therefor | |
| JP2000163294A (en) | Method and device for managing database and machine- readable recording medium with program recorded thereon | |
| US6282672B1 (en) | System for simultaneously executing any one of plurality of applications that must be executed using static data not modified by another computer program | |
| JPH06195262A (en) | Cache flash system | |
| JPH0944317A (en) | Registering system for alternate sector | |
| JPH0830402A (en) | Parity storage method | |
| JPH08263389A (en) | Data backup method | |
| JPH10326155A (en) | Time slot generation apparatus and operation confirmation method thereof | |
| JPH03129515A (en) | Duplication control system for disk device | |
| JPH07244564A (en) | Disk array device |