JP3251182B2 - Mirror disk control method and mirror disk control method - Google Patents
Mirror disk control method and mirror disk control methodInfo
- Publication number
- JP3251182B2 JP3251182B2 JP27433396A JP27433396A JP3251182B2 JP 3251182 B2 JP3251182 B2 JP 3251182B2 JP 27433396 A JP27433396 A JP 27433396A JP 27433396 A JP27433396 A JP 27433396A JP 3251182 B2 JP3251182 B2 JP 3251182B2
- Authority
- JP
- Japan
- Prior art keywords
- disk
- history information
- data
- access history
- access
- 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.)
- Expired - Fee Related
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Description
【0001】[0001]
【発明の属する技術分野】本発明はミラーディスク制御
方式、特にシステムダウン時において各ディスクの内容
を一致させるための処理に関する。[0001] 1. Field of the Invention [0002] The present invention relates to a mirror disk control system, and more particularly to a process for matching the contents of disks when a system goes down.
【0002】[0002]
【従来の技術】従来から障害発生時におけるデータの信
頼性を高めるために、あるいはデータ検索処理の高速性
の追求のためにディスク装置を二重化若しくは多重化す
る技術がある。この方法は、複数の物理的なディスクを
仮想的に1台として取り扱うため、各ディスクの内容を
全て一致させなければならない。そのために、一般的に
各ディスクとCPUとの間にディスク制御装置を設置
し、各ディスクの内容を全て一致させるいわゆるミラー
ディスク機能を発揮させている。2. Description of the Related Art Conventionally, there is a technique of duplicating or multiplexing a disk device in order to improve the reliability of data at the time of occurrence of a failure or to pursue high-speed data search processing. In this method, since a plurality of physical disks are virtually treated as one, all the contents of each disk must be matched. For this purpose, generally, a disk control device is installed between each disk and the CPU, and a so-called mirror disk function for making all the contents of each disk identical is exhibited.
【0003】ディスク制御装置は、システム動作時には
各ディスク装置に同一データを書き込むことによって各
ディスクの内容を一致させている。但し、問題は、同一
データを各ディスク装置に書き込んでいる途中に障害発
生などによる予期しない強制的なシステムダウンが発生
したときである。従来では、この不具合を次に示すよう
な方法で復旧している。The disk control unit matches the contents of each disk by writing the same data to each disk device during system operation. However, the problem occurs when an unexpected forced system down occurs due to a failure or the like while the same data is being written to each disk device. Conventionally, this problem has been recovered by the following method.
【0004】図11は、特開平7ー319637号公報
に記載された従来のミラーディスク制御装置の構成図で
ある。CPU101を有する上位のコンピュータに接続
された2台のディスク制御装置120には、それぞれデ
ィスク装置103が接続されている。各ディスク制御装
置120は、それぞれにディスク装置103への入出力
を行うディスク入出力装置104、不揮発性のバックア
ップメモリ105及び他のディスク制御装置120との
間で通信を行うための通信手段107を有している。更
に、バックアップメモリ105には、ディスク書込み中
ブロック情報群106がそれぞれ含まれているが、ここ
には、所定の条件を満たすディスク装置103をブロッ
クに分割して管理する領域(論理ブロック)の情報が書
き込まれる。FIG. 11 is a configuration diagram of a conventional mirror disk control device described in Japanese Patent Application Laid-Open No. 7-319637. A disk device 103 is connected to each of two disk control devices 120 connected to a host computer having a CPU 101. Each disk control device 120 includes a disk input / output device 104 for inputting / outputting data to / from the disk device 103, a non-volatile backup memory 105, and a communication unit 107 for performing communication with another disk control device 120. Have. Further, the backup memory 105 includes a disk information block information group 106, which includes information on an area (logical block) which is managed by dividing the disk device 103 satisfying a predetermined condition into blocks. Is written.
【0005】この第一の従来例の構成においてディスク
装置103への書込み要求があった場合の動作について
説明する。The operation of the first conventional configuration when a write request is made to the disk device 103 will be described.
【0006】通常の動作時においてCPU101からデ
ィスク装置103への書込み要求があった場合、CPU
101は、書き込むべきデータの格納先となる論理ブロ
ックアドレスをディスク書込み中ブロック情報群106
a,106bに順次書き込む。各ディスク制御装置12
0a,120bは、ディスク書込み中ブロック情報群1
06a,106bの内容に基づいて当該データをそれぞ
れ所定の論理ブロックに書き込む。各論理ブロックの書
込み処理の終了を通信手段107により相互に確認した
後、ディスク書込み中ブロック情報群106a,106
bに書き込まれた当該論理ブロックアドレスを消去す
る。この処理を常時繰り返すことにより各ディスク装置
103a,103bの内容は、常に一致することにな
る。In a normal operation, when there is a write request from the CPU 101 to the disk device 103, the CPU 101
Reference numeral 101 denotes a logical block address to which data to be written is stored, and a block information group 106 during disk writing.
a and 106b are sequentially written. Each disk controller 12
0a and 120b are disk information block information group 1
The data is written in a predetermined logical block based on the contents of 06a and 106b. After mutually confirming the end of the writing process of each logical block by the communication means 107, the block information groups 106a, 106
The logical block address written in b is erased. By repeating this process constantly, the contents of the disk devices 103a and 103b always match.
【0007】この書込み処理中に予期しないシステムダ
ウンが発生した場合、ダウン直後の各ディスク装置10
3a,103bの内容は、常に一致するとは限らない。
例えば、双方のディスク装置103a,103bに同じ
論理ブロックのデータの書込み処理が行われていたとし
てもディスク装置103aにおける書込み処理はダウン
直前に終了し、ディスク装置103bにおける書込み処
理は、まだ終了していないこともあり得る。すなわち、
同一データの同一論理ブロックへの書込み処理が必ずし
も同時に終了するとは限らないため、各ディスク装置1
03a,103bの内容が常に一致するという保証はな
い。If an unexpected system down occurs during this write processing, each disk drive 10
The contents of 3a and 103b do not always match.
For example, even if data writing of the same logical block is performed on both disk devices 103a and 103b, the writing process on the disk device 103a ends immediately before down, and the writing process on the disk device 103b has not been completed yet. There may not be. That is,
Since the writing process of the same data to the same logical block does not always end at the same time, each disk device 1
There is no guarantee that the contents of 03a and 103b always match.
【0008】そこで、この第一の従来例においては、シ
ステムダウン後の再起動時にディスク書込み中ブロック
情報群106の内容を確認し、まだ論理ブロックアドレ
スが残っていれば、該当する論理ブロックのデータを一
方から他方のディスク装置にコピーする。この処理によ
ってディスク装置103a,103bの内容を一致させ
ている。なお、ディスク書込み中ブロック情報群106
は、不揮発性のバックアップメモリ105に保持されて
いるので、システムがダウンしてもその内容は消失しな
い。In this first conventional example, the contents of the disk writing block information group 106 are checked at the time of restart after a system failure, and if a logical block address still remains, the data of the relevant logical block is read. From one to the other disk drive. By this processing, the contents of the disk devices 103a and 103b are matched. It should be noted that the disk writing block information group 106
Is stored in the non-volatile backup memory 105, so that its contents are not lost even when the system goes down.
【0009】図12は、特開平4ー369710号公報
に記載された従来の二重化ボリュームの等価性判別方式
の構成図である。この図12には、利用者プログラム2
01からの入出力要求に基づき二重化ボリューム205
に対する入出力制御を行うために設けられた二重化ボリ
ューム更新判定手段202、二重化入出力開始手段20
3、二重化入出力終了手段204及び等価性判別フラグ
209が設定される二重化ボリューム管理テーブル20
8が示されている。二重化ボリューム205では、正ボ
リューム206及び副ボリューム207が二重化されて
いる。また、二重化ボリューム205の内容の等価性を
保証できないことをシステムコンソール211に表示す
ることによりオペレータに通知する二重化ボリューム非
等価性通知手段210が示されている。FIG. 12 is a configuration diagram of a conventional duplicate volume equivalence discrimination method described in Japanese Patent Application Laid-Open No. 4-369710. FIG. 12 shows a user program 2
Duplex volume 205 based on an I / O request from
Volume update determination means 202 provided for performing input / output control on the
3. Duplicated volume management table 20 in which duplicated input / output ending means 204 and equivalence determination flag 209 are set
8 is shown. In the duplicate volume 205, the primary volume 206 and the secondary volume 207 are duplicated. Further, there is shown a duplicate volume non-equivalence notifying unit 210 that notifies the operator by displaying on the system console 211 that the equivalence of the contents of the duplicate volume 205 cannot be guaranteed.
【0010】この第二の従来例の構成において二重化ボ
リューム205への書込み要求があった場合の動作につ
いて説明する。The operation when a write request to the duplex volume 205 is made in the configuration of the second conventional example will be described.
【0011】通常の動作時において二重化ボリューム2
05への書込み要求があると、書込み処理を開始する前
に二重化ボリューム205に対応した等価性判別フラグ
209を“無効”にする。そして、二重化ボリューム2
05に含まれている正ボリューム206及び副ボリュー
ム207双方とも書込みが終了した時点で当該等価性判
別フラグ209を“有効”にする。During normal operation, the dual volume 2
When a write request is made to the duplicate volume 05, the equivalence determination flag 209 corresponding to the duplicated volume 205 is set to "invalid" before starting the write processing. And duplicated volume 2
When the writing of both the primary volume 206 and the secondary volume 207 included in the disk drive 05 has been completed, the equivalence determination flag 209 is set to “valid”.
【0012】この書込み処理中に予期しないシステムダ
ウンが発生した場合、ダウン直後の正ボリューム206
及び副ボリューム207の内容は、常に一致するとは限
らないことは、前述したとおりである。If an unexpected system down occurs during this write processing, the primary volume 206 immediately after the down
And the contents of the secondary volume 207 do not always match, as described above.
【0013】そこで、この第二の従来例においては、シ
ステムダウン後の再起動時に当該等価性判別フラグ20
9の内容を参照し、その内容が“無効”であれば、正ボ
リューム206及び副ボリューム207の内容は、非等
価であると判定し、そのボリューム名をシステムコンソ
ール211に表示して復旧を促すようにしている。Therefore, in the second conventional example, when the system is shut down and restarted, the equivalence determination flag 20
9, if the contents are “invalid”, it is determined that the contents of the primary volume 206 and the secondary volume 207 are unequal, and the volume names are displayed on the system console 211 to urge the recovery. Like that.
【0014】[0014]
【発明が解決しようとする課題】しかしながら、上記従
来例においては、ディスク装置への書込み要求の度に情
報設定すなわちディスク書込み中ブロック情報群への書
込み又は等価性判別フラグへの有効/無効の設定を行わ
なくてはならないため、ディスク装置への書込み処理に
対するオーバーヘッドが非常に大きくなってしまうとい
う問題があった。特に、同一領域に対する書込みが連続
して起こるような場合でもその都度同じ内容の情報設定
を行わなくてはならなかった。However, in the above conventional example, information is set every time a write request is made to the disk device, that is, writing to the block information group being written to the disk or setting of validity / invalidity to the equivalence determination flag. Therefore, there is a problem that the overhead for the writing process to the disk device becomes very large. In particular, even when writing to the same area occurs consecutively, the same information must be set each time.
【0015】また、上記第一の従来例においては、特別
なハードウェアすなわち不揮発性のバックアップメモリ
を使用する必要があるため、装置コストがかかってしま
うという問題があった。In the first conventional example, special hardware, that is, a non-volatile backup memory needs to be used, so that there is a problem that the apparatus cost is increased.
【0016】本発明は以上のような問題を解決するため
になされたものであり、その目的は、ミラーディスク制
御におけるオーバーヘッドの軽減を図るミラーディスク
制御方式及びその方法を提供することにある。SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and an object of the present invention is to provide a mirror disk control method and method for reducing overhead in mirror disk control.
【0017】[0017]
【課題を解決するための手段】以上のような目的を達成
するために、第1の発明におけるミラーディスク制御方
法は、メモリと、ミラーディスクを構成する複数のディ
スク装置と、前記各ディスク装置に同一データを同時に
書き込むことによって前記ディスク装置全ての内容を常
時一致させるミラーディスク制御機能を有するミラーデ
ィスク制御手段とを有するミラーディスク制御方式にお
いて、前記ディスク装置への一連のデータの書込み処理
を所定の条件に基づいて複数の書込み処理群に分割し、
システム正常動作時、書込み処理の要求がされた場合、
当該書込み処理によるデータを前記各ディスク装置に書
き込むと共に、当該データの格納位置情報が前記メモリ
にまだ書き込まれていないときのみ当該データの格納位
置情報を前記メモリ及び前記各ディスク装置の双方に書
き込みかつ少なくとも当該書込み処理群の処理の間保持
しておき、また、書込み処理群に含まれる書込み処理が
全て終了したときには、前記メモリ及び前記各ディスク
装置に保持しておいた格納位置情報を初期化し、システ
ムダウンの復旧時には、前記各ディスク装置に保持され
ている格納位置情報に対応するデータのみを、一の前記
ディスク装置から他の前記ディスク装置へコピーするこ
とによって前記各ディスク装置の内容を一致させるもの
である。In order to achieve the above object, a mirror disk control method according to a first aspect of the present invention provides a memory, a plurality of disk devices constituting a mirror disk, and a disk device. in mirror disk control method and a mirror disk controller for chromatic mirror disk control function to match constantly all the content the disk device by writing the same data at the same time, a predetermined process of writing a series of data to the disk device Is divided into a plurality of write processing groups based on the conditions of
During normal system operation, if a write request is issued,
Write the data resulting from the write processing to each of the disk devices, and write the storage position information of the data to both the memory and each of the disk devices only when the storage position information of the data has not yet been written to the memory; At least during the processing of the write processing group is held, and when all of the write processing included in the write processing group is completed, the storage position information held in the memory and the disk devices is initialized, At the time of system recovery, only the data corresponding to the storage position information held in each of the disk devices is copied from one of the disk devices to another of the disk devices so that the contents of the respective disk devices are matched. Things.
【0018】また、第2の発明に係るミラーディスク制
御方式は、メモリと、ミラーディスクを構成し、1乃至
複数のデータブロック単位にデータ書込みが行われる複
数のディスク装置と、前記各ディスク装置に同一データ
を同時に書き込むことによって前記ディスク装置全ての
内容を常時一致させるミラーディスク制御機能を有する
ミラーディスク制御手段と、前記メモリ及び前記各ディ
スク装置それぞれに同一内容で構成され、前記ディスク
装置に含まれるデータブロックへのデータ書込みの有無
を表すアクセス履歴情報を含むアクセス履歴情報テーブ
ルと、データ書込み対象となったデータブロックに対応
した前記メモリにおけるアクセス履歴情報にその旨が設
定されていないときのみ、当該データブロックに対応し
た前記メモリ及び前記各ディスク装置のアクセス履歴情
報にその旨の設定を行う書込み有無判別手段と、前記デ
ィスク装置への一連のデータの書込み処理を所定の条件
に基づいて複数の書込み処理群に分割する書込み処理群
形成手段と、各書込み処理群を構成する全書込み処理が
終了した時点で前記メモリ並びに前記ディスク装置上の
前記アクセス履歴情報テーブルの内容を同時に初期化す
るテーブル初期化手段とを有し、前記書込み処理群単位
で前記ディスク装置の等価性を保証するものである。The mirror disk control method according to the second aspect of the present invention includes a memory, a mirror disk, a plurality of disk devices for writing data in one or a plurality of data blocks, and a plurality of disk devices. and <br/> mirror disk controller for chromatic mirror disk control function to match constantly all the content the disk device by writing the same data at the same time, is composed of the same contents to each of the memory and the disk devices, the That is set in the access history information table including access history information indicating whether data is written to the data block included in the disk device and the access history information in the memory corresponding to the data block to be written. Only when there is no memory corresponding to the data block A write presence / absence determining means for setting the access history information of each disk device to that effect, and a write process for dividing a series of data write processes to the disk device into a plurality of write process groups based on predetermined conditions Group forming means, and table initializing means for simultaneously initializing the contents of the memory and the access history information table on the disk device at the time of completion of all write processing constituting each write processing group, This guarantees the equivalence of the disk devices for each write processing group.
【0019】第3の発明は、第2の発明において、前記
ミラーディスク制御手段は、システムダウンの復旧時に
前記ディスク装置の前記アクセス履歴情報テーブルのア
クセス履歴情報を参照し、データ書込み対象となった旨
の設定がされている場合には当該アクセス履歴情報に対
応したデータブロックのみを、当該ディスク装置から他
方の前記ディスク装置へコピーすることによって前記各
ディスク装置の内容を一致させるものである。 [0019] The third invention is the second invention, the
Mirror disk control means, at the time of the system down recovery
A of said access history information table before the SL disk device
Referring to access history information, when the setting indicating that a data write target is only the data block corresponding to the access history information, the other from the disc device
It is intended to match the contents of the respective disk devices by copying square to the disk device.
【0020】第4の発明は、第2の発明に係るミラーデ
ィスク制御方式において、前記書込み処理群形成手段
は、前記アクセス履歴情報テーブルへの最大アクセス履
歴情報設定数を予め設定するアクセスカウント定義領域
と、前記アクセス履歴情報テーブルが初期化されてから
データの書込みが行われていないデータブロックに対す
る書込み処理が発行された回数をカウントするアクセス
カウンタとを有し、前記アクセス履歴情報テーブルが初
期化されてから前記アクセスカウンタのカウント数が最
大アクセス履歴情報設定数に達するという条件を満たす
までに実行された書込み処理で一つの書込み処理群を形
成し、前記テーブル初期化手段は、前記アクセスカウン
タのカウント数が最大アクセス履歴情報設定数に達した
ときに前記アクセス履歴情報テーブルの内容を初期化す
るものである。 According to a fourth aspect of the present invention, in the mirror disk control method according to the second aspect, the write processing group forming means includes an access count definition area for presetting a maximum access history information setting number for the access history information table. And an access counter that counts the number of times a write process has been performed on a data block to which data has not been written since the access history information table was initialized, and the access history information table was initialized. After that, one write processing group is formed by the write processing executed until the count number of the access counter reaches the maximum access history information set number, and the table initialization unit performs the counting of the access counter. Access when the number reaches the maximum access history information set number The contents of the gravel information table is intended to be initialized.
【0021】第5の発明は、第2の発明において、前記
書込み処理群形成手段は、タイマ割込みを発生させるタ
イマ割込み発生部を有し、前記ディスク装置への一連の
データの書込み処理をタイマ割込みによる時間の区切り
によって複数の書込み処理群に分割し、前記テーブル初
期化手段は、タイマ割込み発生の度に前記アクセス履歴
情報テーブルの内容を初期化するものである。 In a fifth aspect based on the second aspect, the write processing group forming means has a timer interrupt generation section for generating a timer interrupt , and
Data write processing is divided by timer interrupt
And the table initialization means initializes the contents of the access history information table each time a timer interrupt occurs .
【0022】第6の発明に係るミラーディスク制御方式
は、メモリと、ミラーディスクを構成し、1乃至複数の
データブロック単位にデータ書込みが行われる複数のデ
ィスク装置と、前記各ディスク装置に同一データを同時
に書き込むことによって前記ディスク装置全ての内容を
常時一致させるミラーディスク制御機能を有するミラー
ディスク制御手段と、前記メモリ及び前記各ディスク装
置それぞれに同一内容で構成され、前記ディスク装置に
含まれるデータブロックへのデータ書込み時点を表すア
クセス履歴情報を含むアクセス履歴情報テーブルと、前
記各ディスク装置への一連のデータの書込み処理を所定
の条件に基づいて複数の書込み処理群に分割するととも
に書込み処理中の書込み処理群の識別情報を保持する書
込み処理群形成手段と、データ書込み対象となったデー
タブロックに対応したアクセス履歴情報に前記書込み処
理群の識別情報の設定を行う書込み時識別手段とを有
し、前記書込み処理群単位で前記ディスク装置の等価性
を保証するものである。In a mirror disk control method according to a sixth aspect of the present invention, a memory and a mirror disk are configured, a plurality of disk devices for writing data in one or a plurality of data blocks, and the same data are stored in each of the disk devices. a mirror disk control unit that have a mirror disk control function to match constantly all the content the disk device by writing simultaneously made of the same contents to each of the memory and the disk devices, the data contained in the disk device An access history information table including access history information indicating a point in time at which data is written to a block; and a process of writing a series of data to each of the disk devices is divided into a plurality of write process groups based on a predetermined condition, and a write process is performed. Processing group forming means for holding the identification information of the writing processing group And write identification means for setting the identification information of the write processing group in the access history information corresponding to the data block to which data is to be written. Guarantee.
【0023】第7の発明は、第6の発明に係るミラーデ
ィスク制御方式において、前記ミラーディスク制御手段
は、システムダウンの復旧時に前記全ディスク装置の前
記アクセス履歴情報テーブルの中から最新の前記書込み
処理群の識別情報を検索し、その検索した最新の前記書
込み処理群の識別情報が設定されているアクセス履歴情
報に対応したデータブロックのみを、当該ディスク装置
から他方の前記ディスク装置へコピーすることによって
前記各ディスク装置の内容を一致させるものである。 According to a seventh invention, in the mirror disk control system according to the sixth invention, the mirror disk control means is provided.
, The latest of the writing from the access history information table before the Symbol all disk device at the time of the system down recovery
Find the identity of treatment groups, the data block only corresponding to the access history information identification information of the latest of the writing process group that has been the search is set to copy from the disk device to another side of said disk device In this way, the contents of the respective disk devices are matched .
【0024】第8の発明は、第2若しくは第6の発明に
おいて、前記メモリ及び前記各ディスク装置それぞれに
同一内容で構成され、書込み対象となる連続データブロ
ックを一つのブロックとした場合にその各ブロックの格
納位置識別情報とサイズとを定義するマッピングテーブ
ルを有し、前記メモリ並びに前記ディスク装置上の前記
アクセス履歴情報テーブルに、前記各ブロックに対応さ
せてアクセス履歴情報を設定することで、データブロッ
クとアクセス履歴情報とを、n対1(nは自然数)に対
応させるものである。 According to an eighth aspect of the present invention, in the second or sixth aspect, when the memory and each of the disk devices have the same contents and the continuous data block to be written is one block, A mapping table that defines storage location identification information and a size of the block, and sets access history information in the access history information table on the memory and the disk device so as to correspond to each of the blocks; The block and the access history information correspond to n: 1 (n is a natural number) .
【0025】第9の発明は、第8の発明において、前記
ブロックの区切りを、ファイルシステムが理解する論理
的な区切りに基づいて設定するものである。 In a ninth aspect based on the eighth aspect, the block division is set based on a logical division understood by a file system .
【0026】第10の発明は、第8の発明において、前
記ブロックの区切りを、前記ディスク装置の物理的な区
切りに基づいて設定するものである。 In a tenth aspect based on the eighth aspect, the block division is set based on a physical division of the disk device .
【0027】第11の発明は、第8の発明において、前
記ブロックの区切りを、ファイルシステム特有の論理的
なアクセス単位に基づいて設定するものである。 In an eleventh aspect based on the eighth aspect, the block division is set based on a logical access unit unique to a file system .
【0028】第12の発明は、第8の発明において、取
り扱うデータの種類が予め認識可能な場合、前記ブロッ
クの区切りを当該データの種類に基づいて設定するもの
である。 [0028] The twelfth aspect of the present invention, in the eighth, collected
If Ri types of data handled is beforehand recognizable, the delimiter of the block shall be set based on the type of the data
It is.
【0029】第13の発明は、第8の発明において、前
記ディスク装置への書込み処理状況に応じて前記マッピ
ングテーブルの内容の自動設定を行うマッピングテーブ
ル自動設定手段を有するものである。 According to a thirteenth aspect, in the eighth aspect, there is provided a mapping table automatic setting means for automatically setting the contents of the mapping table in accordance with the status of the writing process to the disk device .
【0030】第14の発明は、第13の発明において、
前記マッピングテーブル自動設定手段は、前記ディスク
装置への各書込み処理におけるデータの格納位置情報と
サイズとを履歴情報として保持するアクセス履歴保持部
と、前記アクセス履歴保持手段に保持された履歴情報に
基づいて前記マッピングテーブルを作成するテーブル作
成部とを有するものである。 According to a fourteenth aspect, in the thirteenth aspect,
The mapping table automatic setting unit includes: an access history holding unit that holds, as history information, a storage position information and a size of data in each writing process to the disk device; And a table creation unit for creating the mapping table .
【0031】更に、第15の発明は、第13の発明にお
いて、前記マッピングテーブル自動設定手段は、前記ア
クセス履歴情報テーブルが初期化されるタイミングで動
作するものである。 Furthermore, the invention of the first 5, in the thirteenth invention, the mapping table automatic setting means, said access history information table is to operate at a timing that is initialized.
【0032】[0032]
【発明の実施の形態】以下、図面に基づいて、本発明の
好適な実施の形態について説明する。なお、従来例と同
様の要素には、同じ符号を付け説明を省略する。Preferred embodiments of the present invention will be described below with reference to the drawings. The same elements as those in the conventional example are denoted by the same reference numerals, and description thereof will be omitted.
【0033】実施の形態1. 図1は、本発明に係るミラーディスク制御方式の第1の
実施の形態を示した構成図である。図1には、ミラーデ
ィスクを構成するディスク装置2a,2bと、ミラーデ
ィスク機能を有しディスク装置2の制御管理を行うミラ
ーディスク制御装置4と、ディスクアクセスをするユー
ザプロセスが動作する上位のコンピュータ6と、アクセ
ス履歴情報テーブル等を保持するメモリ8とが示されて
いる。 Embodiment 1 FIG. 1 is a configuration diagram showing a first embodiment of a mirror disk control system according to the present invention. FIG. 1 shows disk devices 2a and 2b constituting a mirror disk, a mirror disk control device 4 having a mirror disk function and controlling and managing the disk device 2, and a higher-level computer on which a user process for accessing a disk operates. 6 and a memory 8 for holding an access history information table and the like.
【0034】メモリ8及び各ディスク装置2a,2bそ
れぞれに設定されたアクセス履歴情報テーブル81,2
1a,21bは、全て同一内容の情報から構成されてお
り、それぞれに1個ずつ設定される。アクセス履歴情報
テーブル81,21には、ディスク装置2の各データブ
ロックに対応させてデータ書込みの有無を表すフラグ情
報としてアクセス履歴情報が含まれている。アクセス履
歴情報として、所定の間対応するデータブロックにアク
セスしたことがある場合に“1”(セット)が、アクセ
スしていない場合に“0”(クリア)が、それぞれミラ
ーディスク制御装置4によって設定される。従って、本
実施の形態においてアクセス履歴情報は、それぞれ1ビ
ットで構成することができる。メモリ8上のアクセスカ
ウンタ83は、アクセス履歴情報テーブル81が初期化
されてからデータの書込みが行われていないデータブロ
ックに対する書込み処理が発行された回数をカウントす
るカウンタである。また、メモリ8及び各ディスク装置
2a,2bそれぞれに設定されたアクセスカウント定義
領域82,22a,22bは、全て同じ情報から構成さ
れており、それぞれに1個ずつ設定される。このアクセ
スカウント定義領域82,22a,22bには、アクセ
ス履歴情報テーブル81,21a,21bの内容を初期
化するすなわち全てのアクセス履歴情報を“0”にする
ための条件値が予め定義される。この値は、システム設
計者により任意に設定できるものとする。本実施の形態
では、所定の条件すなわちアクセスカウンタ83のカウ
ント値がアクセスカウント定義領域82,22の値に達
したときに初期化を行うようにしているので、アクセス
カウント定義領域82,22にその初期化を行うタイミ
ングとなるアクセス回数(最大アクセス履歴情報設定
数)を設定することになる。なお、アクセス履歴情報テ
ーブル81等は、ミラーディスク制御装置4あるいはコ
ンピュータ6のどちらのメモリ8に保持されてもよく、
その保持手段は、一般的な主記憶装置で構成することが
できる。また、本実施の形態では、メモリ8にディスク
装置2と同じ内容のアクセス履歴情報テーブル81及び
アクセスカウント定義領域82を持たせた。これによ
り、アクセス履歴情報テーブル81等のアクセスに伴う
処理速度の低下を防止することができる。一方、ディス
ク装置2にメモリ8と同じ内容のアクセス履歴情報テー
ブル21及びアクセスカウント定義領域22を設けたの
で、予期しないシステムダウンが発生してもデータの消
失を防止することができる。Access history information tables 81 and 2 set in the memory 8 and the disk devices 2a and 2b, respectively.
1a and 21b are all composed of information having the same contents, and one is set for each. The access history information tables 81 and 21 include access history information as flag information indicating the presence or absence of data writing corresponding to each data block of the disk device 2. As the access history information, “1” (set) is set by the mirror disk controller 4 when the corresponding data block has been accessed for a predetermined time, and “0” (clear) when the corresponding data block has not been accessed. Is done. Therefore, in the present embodiment, each piece of access history information can be composed of one bit. The access counter 83 on the memory 8 is a counter that counts the number of times a write process has been issued to a data block to which data has not been written since the access history information table 81 was initialized. The access count definition areas 82, 22a, and 22b set in the memory 8 and the disk devices 2a and 2b are all composed of the same information, and are set one for each. In the access count definition areas 82, 22a, 22b, condition values for initializing the contents of the access history information tables 81, 21a, 21b, that is, for setting all the access history information to "0" are defined in advance. This value can be arbitrarily set by the system designer. In the present embodiment, the initialization is performed when a predetermined condition, that is, the count value of the access counter 83 reaches the value of the access count definition areas 82 and 22. The number of times of access (maximum number of access history information settings) at which the initialization is performed is set. The access history information table 81 and the like may be stored in the memory 8 of either the mirror disk control device 4 or the computer 6,
The holding means can be constituted by a general main storage device. In the present embodiment, the memory 8 has the access history information table 81 and the access count definition area 82 having the same contents as those of the disk device 2. As a result, it is possible to prevent a reduction in processing speed due to access to the access history information table 81 and the like. On the other hand, since the disk device 2 is provided with the access history information table 21 and the access count definition area 22 having the same contents as the memory 8, even if an unexpected system failure occurs, data loss can be prevented.
【0035】ミラーディスク制御装置4は、全てのディ
スク装置2に対するアクセス制御、従来からのミラーデ
ィスク制御機能を有する従来から有るディスクアクセス
制御部41と、上記アクセス履歴情報テーブル81,2
1、アクセスカウント定義領域82,22及びアクセス
カウンタ83など本実施の形態において特徴的な構成の
制御管理を行うことで本実施の形態特有のミラーディス
ク制御機能を行う二重化制御部42とを有する。The mirror disk control device 4 includes a conventional disk access control unit 41 having a function of controlling access to all the disk devices 2 and a conventional mirror disk control function, and the access history information tables 81 and 81.
1, a dual control unit 42 that performs a mirror disk control function peculiar to the present embodiment by controlling and managing a characteristic configuration such as the access count definition areas 82 and 22 and the access counter 83 in the present embodiment.
【0036】本実施の形態は、従来例と同様にディスク
装置に対するアクセスの有無をフラグ情報を用いて管理
するが、本実施の形態において特徴的なことは、書込み
要求を受け付けてフラグ情報をいったんセットした後、
所定のデータブロックにデータを書き込み全てのディス
ク装置2の内容が等価になったとしても当該フラグ情報
をその時点でクリアしないことである。そして、その
後、所定の条件を満たしたとき、具体的にはディスク装
置2への書込み要求に基づくアクセスカウンタ83の値
がアクセスカウント定義領域82,22の設定値に達し
たときにそのフラグ情報をまとめて初期化することであ
る。すなわち、書込み処理の有無を表すアクセス履歴情
報のセット/クリアの回数を最小限に抑えることで、ミ
ラーディスクへのデータ書込み処理におけるオーバーヘ
ッドを抑えることができる。In the present embodiment, the presence / absence of access to the disk device is managed using flag information, as in the conventional example. A characteristic of this embodiment is that a write request is accepted and the flag information is temporarily stored. After setting,
Even if data is written in a predetermined data block and the contents of all the disk devices 2 become equivalent, the flag information is not cleared at that time. Then, when a predetermined condition is satisfied, specifically, when the value of the access counter 83 based on the write request to the disk device 2 reaches the set value of the access count definition areas 82 and 22, the flag information is deleted. It is to initialize all at once. That is, by minimizing the number of times of setting / clearing the access history information indicating the presence / absence of the write process, it is possible to suppress the overhead in the process of writing data to the mirror disk.
【0037】次に、本実施の形態におけるミラーディス
ク制御装置4の動作について図2に示したフローチャー
トを用いて説明する。なお、システム起動時及びシステ
ム正常終了時におけるアクセス履歴情報テーブル81,
21a,21bの設定等に関しては後述し、ここでは、
正常にシステムが動作しているときの動作について説明
する。また、アクセスカウント定義領域82,22に
は、予めアクセス回数tが設定されているものとする。Next, the operation of the mirror disk control device 4 in this embodiment will be described with reference to the flowchart shown in FIG. The access history information table 81 at the time of system startup and normal termination of the system,
The setting of 21a and 21b will be described later.
The operation when the system is operating normally will be described. It is assumed that the access count t is set in the access count definition areas 82 and 22 in advance.
【0038】ミラーディスク制御装置4は、まず、ユー
ザプロセスからのアクセス要求を受け付けると、それが
書込み要求か読出し要求かを調べる(ステップ10
1)。読出し要求であれば、ディスクアクセス制御部4
1により該当するデータをディスク装置2から読み出し
てユーザプロセスへ渡す(ステップ111)。書込み要
求であれば、二重化制御部42によりその書込み先とな
るデータブロックに関する情報、例えばディスク装置2
の論理アドレスを得る。そして、そのデータブロックに
対応したアクセス履歴情報の内容を、メモリ8における
アクセス履歴情報テーブル81を参照することによって
得る(ステップ102)。When the mirror disk controller 4 first receives an access request from a user process, it checks whether it is a write request or a read request (step 10).
1). If it is a read request, the disk access control unit 4
1, the corresponding data is read from the disk device 2 and passed to the user process (step 111). In the case of a write request, information relating to the data block to be written to by the duplication control unit 42, for example, the disk device 2
Get the logical address of Then, the content of the access history information corresponding to the data block is obtained by referring to the access history information table 81 in the memory 8 (step 102).
【0039】当該アクセス履歴情報が“0”すなわちセ
ットされていなければ(ステップ103)、アクセス履
歴情報テーブル81の初期化後今回の書込み要求の前に
当該データブロックに対して書込みが実施されていない
と判断することができる。そのとき、アクセスカウンタ
83を参照し、アクセスカウント定義領域82に設定さ
れているアクセス回数tと比較し(ステップ104)、
その結果、アクセスカウンタ83の値がアクセス回数t
に達していなければ、アクセスカウンタ83の値を1加
算する(ステップ107)。そして、メモリ8並びに各
ディスク装置2a,2bのアクセス履歴情報テーブル8
1,21a,21bの当該データブロックに該当するア
クセス履歴情報にそれぞれ“1”をセットした後(ステ
ップ108,109)、書込みデータをディスク装置2
へ書き込む(ステップ110)。If the access history information is "0", that is, if the access history information is not set (step 103), the writing has not been performed on the data block before the current write request after the initialization of the access history information table 81. Can be determined. At this time, the access counter 83 is referred to and compared with the access count t set in the access count definition area 82 (step 104).
As a result, the value of the access counter 83 becomes the access number t
If not, the value of the access counter 83 is incremented by 1 (step 107). Then, the memory 8 and the access history information table 8 of each disk device 2a, 2b
After setting “1” to the access history information corresponding to the data blocks of the data blocks 1, 21a and 21b (steps 108 and 109), the write data is stored in the disk device 2
(Step 110).
【0040】一方、ステップ104においてアクセスカ
ウンタ83の値がアクセス回数tに達していたならば、
メモリ8並びに各ディスク装置2a,2bのアクセス履
歴情報テーブル81,21a,21bを初期化すなわち
全てのアクセス履歴情報を“0”にする(ステップ10
5)。そして、更にアクセスカウンタ83をリセットす
る(ステップ106)。なお、1データブロックずつ書
込みが行われるような書込み要求のみであれば、アクセ
スカウンタ83の値がアクセス回数tに達したとき、各
アクセス履歴情報テーブル81,21a,21bの中に
は、t個の“1”が存在していたことになる。その後
は、前述したように、書込みがされていないデータブロ
ックに対する書込み要求に基づき、アクセスカウンタ8
3を加算し、メモリ8並びに各ディスク装置2a,2b
のアクセス履歴情報テーブル81,21a,21bの所
定のアクセス履歴情報に“1”をセットし、書込みデー
タをディスク装置2へ書き込む(ステップ107〜11
0)。On the other hand, if the value of the access counter 83 has reached the access count t in step 104,
The memory 8 and the access history information tables 81, 21a, 21b of the disk devices 2a, 2b are initialized, that is, all the access history information is set to "0" (step 10).
5). Then, the access counter 83 is reset (step 106). If there is only a write request such that writing is performed one data block at a time, when the value of the access counter 83 reaches the access count t, t access history information tables 81, 21a, and 21b include t This means that “1” has existed. Thereafter, as described above, based on a write request for a data block to which data has not been written, the access counter 8
3 and the memory 8 and each of the disk devices 2a, 2b
Is set to predetermined access history information in the access history information tables 81, 21a, and 21b, and write data is written to the disk device 2 (steps 107 to 11).
0).
【0041】また、書込み要求を受け付けたことにより
ステップ102において得たアクセス履歴情報が上述し
た処理(ステップ108)においてセットされていれば
(ステップ103)、該当するデータブロックにはすで
に書込み要求に基づくアクセスがあったと判断すること
ができるので、書込みデータをディスク装置2へ書き込
むだけの処理を行う(ステップ110)。If the access history information obtained in step 102 by receiving the write request is set in the above-described processing (step 108) (step 103), the corresponding data block is already based on the write request. Since it can be determined that an access has been made, processing for only writing the write data to the disk device 2 is performed (step 110).
【0042】このようにして、本実施の形態によれば、
ディスク装置2の所定のデータブロックにデータを書き
込む際、当該データブロックに対応したアクセス履歴情
報にすでに“1”がセットされている、すなわち当該デ
ータブロックがすでに書込みの対象となっていれば、当
該アクセス履歴情報に“1”を再度セットしに行かない
ようにしたので、その分書込み処理にかかるオーバーヘ
ッドの軽減を図ることができる。そして、該当するアク
セス履歴情報をデータの書込み処理の度にクリアせず所
定の条件を満たしたときすなわちアクセスカウンタ83
の値がアクセス回数tに達したときにまとめてクリアす
るようにしたので、書込み処理時におけるミラーディス
ク機能のためのオーバーヘッドを軽減することができ
る。As described above, according to the present embodiment,
When writing data to a predetermined data block of the disk device 2, if “1” has already been set in the access history information corresponding to the data block, that is, if the data block has already been written, Since the access history information is not set to "1" again, it is possible to reduce the overhead required for the writing process. Then, when a predetermined condition is satisfied without clearing the corresponding access history information every time data is written, that is, when the access counter 83
Is collectively cleared when the number of accesses reaches the number of accesses t, it is possible to reduce the overhead for the mirror disk function at the time of write processing.
【0043】システムの終了時は、ディスク装置2に記
憶されているアクセス履歴情報テーブル21の内容を全
てクリアして終了すればよい。正常に動作している間、
データは、アクセス履歴情報の値に関係なくディスク装
置2に正常に書き込まれているからである。なお、メモ
リ8上のアクセス履歴情報テーブル81、アクセスカウ
ント定義領域82及びアクセスカウンタ83は、システ
ムのダウンとともに消失してもかまわない。アクセス履
歴情報テーブル81及びアクセスカウント定義領域82
は、ディスク装置2に保持されており、アクセスカウン
タ83は、アクセス履歴情報テーブル21の内容がクリ
アされるから次回の使用時には必ず“0”だからであ
る。このように、システムの正常終了時は、アクセス履
歴情報テーブル21の内容を初期化だけすればよいだけ
なので、ミラーディスク機能を発揮させるためのシステ
ム終了時におけるオーバーヘッドも軽減することができ
る。At the end of the system, all the contents of the access history information table 21 stored in the disk device 2 may be cleared and the operation may be ended. During normal operation,
This is because the data is normally written to the disk device 2 regardless of the value of the access history information. Note that the access history information table 81, the access count definition area 82, and the access counter 83 on the memory 8 may be lost when the system goes down. Access history information table 81 and access count definition area 82
Is stored in the disk device 2, and the access counter 83 is always "0" at the next use since the contents of the access history information table 21 are cleared. As described above, when the system is normally terminated, it is only necessary to initialize the contents of the access history information table 21, so that the overhead at the time of system termination for exerting the mirror disk function can be reduced.
【0044】次に、システム起動時の動作について図3
に示したフローチャートを用いて説明する。Next, FIG.
This will be described with reference to the flowchart shown in FIG.
【0045】まず、システムが起動すると、新規に形成
されたメモリ8のアクセス履歴情報テーブル81、アク
セスカウント定義領域82及びアクセスカウンタ83の
内容を初期化し(ステップ121)、ディスク装置2に
記憶されているアクセス履歴情報テーブル21及びアク
セスカウント定義領域22の内容をメモリ8上の対応す
るテーブル81、領域82に読み込む(ステップ12
2)。このとき、仮に予期しないシステムダウンなどに
よりアクセス履歴情報テーブル21a,21bの内容が
異なっているようであれば、そのアクセス履歴情報を
“1”として読み込む。読込み終了後、アクセス履歴情
報テーブル81に“1”(セット)であるアクセス履歴
情報が有るかどうかをチェックする(ステップ12
3)。前述したように、正常にシステムが終了したので
あれば、アクセス履歴情報テーブル21の内容は、全て
クリアされているはずであるが、予期しないシステムダ
ウンが発生するなどして“1”が残っているようであれ
ば、それに対応するデータブロックの内容は、ディスク
装置2により等価でないおそれがある。このため、正と
する方例えばディスク装置2aから副とするディスク装
置2bにそのデータブロックをコピーする(ステップ1
24)。これにより、一致が保証されていなかったデー
タブロックの内容は一致する。その後、メモリ8並びに
ディスク装置2のアクセス履歴情報テーブル81,21
の内容を初期化し(ステップ125)、図2に示した通
常時の処理に移行することになる。First, when the system is started, the contents of the access history information table 81, the access count definition area 82, and the access counter 83 of the newly formed memory 8 are initialized (step 121) and stored in the disk device 2. The contents of the access history information table 21 and the access count definition area 22 are read into the corresponding tables 81 and 82 on the memory 8 (step 12).
2). At this time, if the contents of the access history information tables 21a and 21b seem to be different due to an unexpected system down or the like, the access history information is read as "1". After the reading is completed, it is checked whether the access history information table 81 has access history information of "1" (set) (step 12).
3). As described above, if the system has been normally terminated, all the contents of the access history information table 21 should have been cleared, but "1" remains due to an unexpected system down. If so, the contents of the corresponding data block may not be equivalent to the disk device 2. For this reason, the data block is copied from the positive disk, for example, the disk device 2a to the secondary disk device 2b (step 1).
24). As a result, the contents of the data blocks whose match was not guaranteed match. Thereafter, the access history information tables 81 and 21 of the memory 8 and the disk device 2 are stored.
Are initialized (step 125), and the routine shifts to the normal processing shown in FIG.
【0046】このように、本実施の形態によれば、シス
テム起動時にディスク装置2の内容全体をコピーするの
ではなく、内容の一致が保証されていないデータブロッ
クのみをコピーするようにしたので、ミラーディスク機
能を発揮させるためのシステム起動時におけるオーバー
ヘッドも軽減することができる。As described above, according to the present embodiment, instead of copying the entire contents of the disk device 2 at the time of starting the system, only the data blocks whose contents are not guaranteed to match are copied. It is also possible to reduce the overhead at the time of starting the system for exerting the mirror disk function.
【0047】以上のように、本実施の形態によれば、ミ
ラーディスク機能を発揮させるために設けたアクセス履
歴情報を書込み処理の度にセットしなくてよく、また、
まとめてクリア(初期化)するようにしたので、データ
書込み処理におけるオーバーヘッドを軽減することがで
きる。As described above, according to the present embodiment, the access history information provided for exhibiting the mirror disk function does not have to be set every time a write process is performed.
Since clearing (initialization) is performed at once, overhead in data write processing can be reduced.
【0048】なお、まとめて初期化するということは、
初期化してからアクセス回数のカウント開始当初にアク
セス履歴情報がセットされたデータブロックは、他のデ
ィスク装置とその内容が一致しているのにもかかわらず
次に初期化されるまでの間一致していないという情報が
保持されたままでいるということである。この状態にお
いて、予期しないシステムダウンが発生したとき、全て
のディスク装置2の内容を一致させるためには、アクセ
ス履歴情報がセットされているデータブロックを一方の
ディスク装置2aから他方のディスク装置2bにコピー
をしなくてはならず、このコピー処理(図3におけるス
テップ124)は、ディスクアクセスの度にアクセス履
歴情報(フラグ情報)の更新を行う第一の従来例と比較
して多くの処理時間を要する可能性が高いが、ディスク
単位にコピーをする第二の従来例より短い処理時間です
む。Note that the initialization is performed collectively,
The data block in which the access history information is set at the beginning of the counting of the number of accesses after the initialization is identical until the next initialization, even though the contents are identical with other disk units. Information is not retained. In this state, when an unexpected system failure occurs, in order to make the contents of all the disk devices 2 coincide, the data block in which the access history information is set is transferred from one disk device 2a to the other disk device 2b. This copy process (step 124 in FIG. 3) requires more processing time than the first conventional example in which access history information (flag information) is updated every time a disk is accessed. However, the processing time is shorter than that of the second conventional example in which copying is performed in disk units.
【0049】しかしながら、コンピュータ8が正常に動
作している間は、まとめて初期化するという処理を行う
ようにしていても何ら問題は生じないはずであり、予期
しないシステムダウンの発生頻度を考慮すると、本実施
の形態のようにフラグ情報のセット/クリアの回数を削
減できることによりミラーディスク機能処理に要するオ
ーバーヘッドを大幅に軽減できるということは、非常に
効果的であると考えられる。However, while the computer 8 is operating normally, there should be no problem even if the initialization process is performed collectively. Considering the frequency of unexpected system downtime, The fact that the number of times of setting / clearing the flag information can be reduced as in the present embodiment and the overhead required for the mirror disk function processing can be greatly reduced is considered to be very effective.
【0050】また、初期化されてからアクセスカウンタ
83の値がアクセス回数tに達する間の書込み処理の対
象となったデータの等価性は保証されていないとみなす
ということは、そのt回の書込み処理を一つの書込み処
理群として考えた場合、各群毎にデータの等価性を保証
するというようにも考えられる。すなわち、一連の書込
み処理をt個ずつに分割し、処理中の書込み処理群がt
個揃ってアクセス履歴情報テーブル81,21の内容が
初期化された時点でその群の処理対象となったデータの
等価性は保証されることになる。そして、次の書込み処
理群における処理が開始し、そのときシステムダウンが
発生すれば、そのシステムダウンが発生した時点に処理
対象であった書込み処理群のデータが実際の書込み処理
完了にかかわらず保証されないとしてその書込み処理群
を構成する全書込み処理において処理対象となったデー
タブロックのみをディスク装置2aからディスク装置2
bにコピーをするということである。これにより、本実
施の形態によれば、ミラーディスク機能処理に要するオ
ーバーヘッドを大幅に軽減することができるようにな
る。In addition, the fact that the equivalence of the data subjected to the writing process during the time when the value of the access counter 83 has reached the number of accesses t after the initialization is not considered to have been guaranteed does not mean that the writing has been performed t times. When the processing is considered as one write processing group, it is conceivable that data equivalence is guaranteed for each group. That is, a series of write processing is divided into t pieces, and the write processing group being processed is t
When the contents of the access history information tables 81 and 21 are initialized, the equivalence of the data processed by the group is guaranteed. Then, when the processing in the next write processing group starts and the system goes down at that time, the data of the write processing group to be processed at the time when the system down occurs is guaranteed regardless of the actual completion of the write processing. Only the data blocks to be processed in all the write processes constituting the write process group are determined from the disk device 2a to the disk device 2
b. As a result, according to the present embodiment, the overhead required for the mirror disk function processing can be significantly reduced.
【0051】上記実施の形態では、アクセスカウンタ8
3を設けて新規なデータブロックに対する書込み要求に
基づくアクセス回数が所定のアクセス回数tを超えたと
きを、アクセス履歴情報テーブル81,21a,21b
を初期化するための所定の条件としたが、例えば、アク
セスカウント定義領域22及びアクセスカウンタ83の
代わりにタイマ割込みを発生させるタイマ割込み発生部
を設けて、タイマ割込み発生の間に実行された書込み処
理で一つの書込み処理群を形成し、二重化制御部42
は、タイマ割込み発生の度にアクセス履歴情報テーブル
81,21の内容を初期化するようにしても前述と同様
の効果を奏することができる。ただ、この場合のアクセ
ス回数tは固定数でなく変数となる。In the above embodiment, the access counter 8
3, the access history information tables 81, 21a, and 21b are used when the number of accesses based on a write request for a new data block exceeds a predetermined number of accesses t.
Is a predetermined condition for initializing the timer. For example, a timer interrupt generating unit for generating a timer interrupt is provided in place of the access count definition area 22 and the access counter 83, and the write executed during the timer interrupt is generated. One write processing group is formed by the processing, and the duplication control unit 42
The same effect as described above can be achieved by initializing the contents of the access history information tables 81 and 21 each time a timer interrupt occurs. However, the number of accesses t in this case is not a fixed number but a variable.
【0052】また、これ以外にもアクセス履歴情報の内
容に関係なく単なる書込み要求発生回数に基づいて初期
化を行うようにしたり、重要なユーザプロセスからの書
込み要求受付時若しくは管理プロセスからの指示受付時
等他の所定条件を設けるようにしてもよく、これも本発
明に範囲内である。In addition to the above, initialization is performed based on a mere number of write requests regardless of the contents of the access history information, or when a write request is received from an important user process or an instruction is received from a management process. Other predetermined conditions such as time may be provided, and this is also within the scope of the present invention.
【0053】実施の形態2. 実施の形態1では、各データブロックに対応させてアク
セス履歴情報をそれぞれ設けたが、本実施の形態では、
データブロックを自由な単位でまとめてブロック群と
し、そのブロック群毎にアクセス履歴情報を設けるよう
にしたことを特徴としている。このデータブロック群を
設定するため、図4に示したように、メモリ8及び各デ
ィスク装置2a,2bに同一内容構成のマッピングテー
ブル84,24a,24bを設定した。マッピングテー
ブル84,24には、ブロック群を形成するデータブロ
ックの先頭論理アドレス及びブロックサイズ(データブ
ロック数)がそれぞれ設定される。すなわち、実施の形
態1がデータブロックとアクセス履歴情報が1対1に対
応させているのに対し、本実施の形態は、それがn対1
(nは2以上の正整数)に対応させた点が異なってい
る。これにより、アクセス履歴情報テーブル81,21
のサイズを小さくすることができる。すなわち、マッピ
ングテーブル84,24のレコード数がアクセス履歴情
報テーブル81,21に設定されるアクセス履歴情報数
となる。なお、マッピングテーブル84,24に設けた
シーケンシャルな番号「No.」は、アクセス履歴情報
テーブル81,21にあるアクセス履歴情報の並び順に
相当するが、このデータはなくても動作可能である。 Embodiment 2 In the first embodiment, the access history information is provided corresponding to each data block. However, in the present embodiment,
It is characterized in that data blocks are grouped in arbitrary units to form a block group, and access history information is provided for each block group. In order to set this data block group, mapping tables 84, 24a, and 24b having the same contents are set in the memory 8 and each of the disk devices 2a and 2b, as shown in FIG. In the mapping tables 84 and 24, the leading logical address and the block size (the number of data blocks) of the data blocks forming the block group are set, respectively. That is, in the first embodiment, the data block and the access history information are in one-to-one correspondence, whereas in the present embodiment, it is n-to-one.
(N is a positive integer of 2 or more). Thereby, the access history information tables 81, 21
Can be reduced in size. That is, the number of records in the mapping tables 84 and 24 is the number of access history information set in the access history information tables 81 and 21. The sequential numbers “No.” provided in the mapping tables 84 and 24 correspond to the arrangement order of the access history information in the access history information tables 81 and 21. However, the operation is possible without this data.
【0054】本実施の形態における動作は、上記実施の
形態1とほぼ同じであるが、書込み先となるデータブロ
ックに対応したアクセス履歴情報を得る際、本実施の形
態では、メモリ8上のマッピングテーブル84を常に参
照しにいく必要が生じるが、マッピングテーブル84よ
り大容量のアクセス履歴情報テーブル81に対するアク
セス回数が減少するためオーバーヘッドをより軽減する
ことができる。例えば、論理アドレス0から連続した3
ブロックへの書込み要求があった場合、アクセス履歴情
報テーブル81へのアクセス回数(図2におけるステッ
プ102の実行回数)は、実施の形態1の場合3回必要
になるのに対し、本実施の形態ではマッピングテーブル
84を参照することによって1回ですむ。また、論理ア
ドレス0から連続した3ブロックに対するアクセス履歴
情報をセットする回数(図2におけるステップ108,
109の実行回数)も3分の1に減少することになるた
め、オーバーヘッドをより軽減することができる。The operation of this embodiment is almost the same as that of the first embodiment. However, when the access history information corresponding to the data block to be written is obtained, in this embodiment, the mapping on the memory 8 is performed. Although it is necessary to always refer to the table 84, the number of accesses to the access history information table 81 having a larger capacity than the mapping table 84 is reduced, so that the overhead can be further reduced. For example, 3 consecutive from logical address 0
In the case where there is a write request to a block, the number of accesses to the access history information table 81 (the number of times of execution of step 102 in FIG. 2) is required three times in the first embodiment, whereas in the first embodiment Then, it is only necessary to refer to the mapping table 84 once. Also, the number of times of setting access history information for three consecutive blocks starting from logical address 0 (step 108 in FIG. 2,
109), the overhead can be further reduced.
【0055】また、システムの起動時には、アクセスカ
ウント定義領域22が読み込まれるのと同じように、デ
ィスク装置2のマッピングテーブル24がメモリ8に読
み込まれることになる。そして、マッピングテーブル8
4に基づいてアクセス履歴情報テーブル81が作成さ
れ、そのアクセス履歴情報テーブル81は、アクセス履
歴情報テーブル21にコピーされる。前回のシステム動
作時と異なる内容のマッピングテーブル24が設定され
ることもあり得るので、換言すれば、前述したn対1の
nの値が変更されている場合もあるので、システムの起
動の度にアクセス履歴情報テーブル81,21を設定す
る必要があるからである。When the system is started, the mapping table 24 of the disk device 2 is read into the memory 8 in the same manner as the access count definition area 22 is read. And the mapping table 8
4, the access history information table 81 is created, and the access history information table 81 is copied to the access history information table 21. Since the mapping table 24 having contents different from those at the time of the previous system operation may be set, in other words, the above-mentioned value of n to n may be changed. This is because it is necessary to set the access history information tables 81 and 21 in the.
【0056】なお、マッピングテーブル84,24は、
システム設計者により任意に設定できるものとする。例
えば、ファイルシステムの理解する論理的な区切り(例
えばパーティション、ボリューム)に基づいて設定して
もよいし、物理的な区切り(例えばマルチボリュームの
場合におけるディスク毎)によって設定してもよい。ま
た、例えばUnixのファイルシステムの場合、ブロッ
クサイズをsfsならば256ブロックに、vxfsな
らばそれを4096ブロックにするなど、ファイルシス
テムの種類によって設定してもよい。更に、テキストフ
ァイルなど比較的小さいファイルを取り扱う場合はブロ
ックサイズを16ブロックに、ビットマップデータなど
比較的大きいファイルを取り扱う場合はそれを4096
ブロックにするなど、取り扱うデータの種類によって設
定してもよい。これにより、システム特性に応じたアク
セス履歴情報テーブルを設定することができるため、よ
り効率的なミラーディスク制御が行え、オーバーヘッド
の軽減を図ることができる。もちろん、システム設計者
が自由に設定してもよい。The mapping tables 84 and 24 are
It can be set arbitrarily by the system designer. For example, the setting may be based on a logical partition (for example, partition or volume) understood by the file system, or may be set based on a physical partition (for example, for each disk in a multi-volume case). Further, in the case of a Unix file system, for example, the block size may be set to 256 blocks if sfs, or to 4096 blocks if vxfs, depending on the type of file system. Further, when dealing with a relatively small file such as a text file, the block size is set to 16 blocks, and when dealing with a relatively large file such as bitmap data, the block size is set to 4096.
It may be set according to the type of data to be handled, such as a block. As a result, an access history information table can be set according to system characteristics, so that more efficient mirror disk control can be performed and overhead can be reduced. Of course, the system designer may set it freely.
【0057】実施の形態3. 上記実施の形態2では、マッピングテーブル84,24
の内容を予め設定するようにしたが、本実施の形態にお
いては、学習機能によりマッピングテーブル84,24
の内容を自動設定することを特徴としている。本実施の
形態においては、図5に示したように、ミラーディスク
制御装置4にアクセスデータサイズ履歴テーブル43を
設け、ディスク装置2への書込み処理が行われる度に、
データの格納位置情報としてその書込み処理がなされた
ブロック群の先頭論理アドレスと、そのブロックサイズ
(データブロック数)とを履歴情報として保持するよう
にした。この処理並びにアクセスデータサイズ履歴テー
ブル43に保持された履歴情報に基づいてマッピングテ
ーブル84を作成する処理は、二重化制御部42に行わ
せる。 Embodiment 3 In the second embodiment, the mapping tables 84 and 24
Are set in advance, but in the present embodiment, the mapping tables 84 and 24 are set by the learning function.
Is automatically set. In the present embodiment, as shown in FIG. 5, an access data size history table 43 is provided in the mirror disk control device 4, and every time a write process to the disk device 2 is performed,
As the data storage position information, the head logical address of the block group subjected to the writing process and the block size (the number of data blocks) are held as history information. This process and the process of creating the mapping table 84 based on the history information held in the access data size history table 43 are performed by the duplexing control unit 42.
【0058】次に、システムが正常に動作しているとき
の本実施の形態におけるミラーディスク制御装置4の動
作について図6に示したフローチャートを用いて説明す
る。なお、本実施の形態における処理は、図2に示した
処理にステップ301を追加した内容となるので、図6
並びに以降の説明においてその詳細は省略する。Next, the operation of the mirror disk control device 4 in this embodiment when the system is operating normally will be described with reference to the flowchart shown in FIG. Note that the processing in the present embodiment is the same as the processing shown in FIG. 2 except that step 301 is added.
Details will be omitted in the following description.
【0059】ステップ301の前までの処理では、書込
み要求に対して所定のデータブロックに対応したアクセ
ス履歴情報に“1”をセットする。但し、本実施の形態
では、データブロックとアクセス履歴情報とは、n対1
の関係にあるので、セットする回数は、実施の形態1よ
り少なくなる。そして、ステップ110において実際に
データをディスク装置2に書き込むわけであるが、本実
施の形態においては、その前にデータがディスク装置2
へ書き込まれる領域の先頭論理アドレス並びにそのブロ
ックサイズをアクセスデータサイズ履歴テーブル43に
記録する(ステップ301)。図5に示したアクセスデ
ータサイズ履歴テーブル43の最初の行の例は、開始ア
ドレス“0”番地から“3”ブロック長の書込み処理が
実行されたことを意味している。このように、書込み処
理が実施される度にそのアクセス履歴をアクセスデータ
サイズ履歴テーブル43に記録するようにする。In the processing up to step 301, "1" is set in the access history information corresponding to a predetermined data block in response to a write request. However, in the present embodiment, the data block and the access history information are n-to-one.
Therefore, the number of times of setting is smaller than that in the first embodiment. Then, in step 110, the data is actually written to the disk device 2, but in the present embodiment, the data is
The head logical address and the block size of the area to be written into the access data size history table 43 are recorded in the access data size history table 43 (step 301). The example of the first row of the access data size history table 43 shown in FIG. 5 means that the write processing of the block length “3” from the start address “0” has been executed. In this way, every time the writing process is performed, the access history is recorded in the access data size history table 43.
【0060】なお、本実施の形態では、アクセスデータ
サイズ履歴テーブル43に一定のレコード数の記録を可
能とし、履歴数がいっぱいになると、古いレコードから
上書きしていくようにしている。もちろん、これは、ア
クセスデータサイズ履歴テーブル43を記憶するミラー
ディスク制御装置4のディスク容量などによって適当に
設定をすることは可能である。In the present embodiment, a fixed number of records can be recorded in the access data size history table 43, and when the number of histories becomes full, old records are overwritten. Of course, this can be set appropriately according to the disk capacity of the mirror disk control device 4 that stores the access data size history table 43.
【0061】システムの終了時は、上記各実施の形態と
同様にディスク装置2に記憶されているアクセス履歴情
報テーブル21の内容を全てクリアして終了すればよ
く、本実施の形態のために特別な処理は必要としない。
従って、メモリ8上のマッピングテーブル84の内容は
消失する。At the end of the system, all the contents of the access history information table 21 stored in the disk device 2 need to be cleared as in the above-described embodiments, and the system ends. No special processing is required.
Therefore, the contents of the mapping table 84 on the memory 8 are lost.
【0062】また、システム起動時は、図3に示した処
理と同じ処理(ステップ121〜125)を行うが、そ
の最後にマッピングテーブル84を作成する処理が追加
されるだけである。従って、システム起動時における処
理については特に図示しない。図7は、このマッピング
テーブル84を作成する処理を示したフローチャートで
あり、次に、この処理について説明をする。When the system is started, the same processing (steps 121 to 125) as the processing shown in FIG. 3 is performed, but only a processing for creating the mapping table 84 is added at the end. Therefore, the processing at the time of starting the system is not particularly illustrated. FIG. 7 is a flowchart showing a process for creating the mapping table 84. Next, this process will be described.
【0063】まず、アクセスデータサイズ履歴テーブル
43の内容を読み込む(ステップ311)。次に、処理
の初期値として開始アドレスに“0”番地と、ブロック
サイズが大きい場合の分割サイズ(S)を設定する(ス
テップ312)。分割サイズは、実施の形態2において
説明したマッピングテーブルのブロックサイズの決め方
に準じて、論理的又は物理的な区切り、データの種類等
により設定したり、あるいは、直前のデータサイズやア
クセスデータサイズ履歴テーブル43に記録されたブロ
ックサイズの平均値、などにより任意に設定することが
できる。First, the contents of the access data size history table 43 are read (step 311). Next, “0” is set as a start address and a division size (S) when the block size is large is set as an initial value of the process (step 312). The division size is set according to the logical or physical delimiter, the type of data, or the like according to the method of determining the block size of the mapping table described in the second embodiment, or the data size or access data size history immediately before. It can be set arbitrarily based on the average value of the block sizes recorded in the table 43 and the like.
【0064】次に、設定された開始アドレス(最初は、
0)の情報がアクセスデータサイズ履歴テーブル43に
記録されているかを検索する(ステップ313)。記録
されていれば、その開始アドレス及び対応するブロック
サイズでマッピングテーブル84にセットする(ステッ
プ314,315)。当該開始アドレスの情報が複数記
録されていれば、最大となるブロックサイズでセットす
る。なお、最大ではなく最新としてもよい。Next, the set start address (at first,
It is searched whether the information of 0) is recorded in the access data size history table 43 (step 313). If it has been recorded, it is set in the mapping table 84 with its start address and the corresponding block size (steps 314, 315). If a plurality of pieces of information of the start address are recorded, the information is set with the largest block size. In addition, it may be the latest instead of the maximum.
【0065】一方、当該開始アドレスの情報がアクセス
データサイズ履歴テーブル43に記録されていなければ
(ステップ313)、アクセスデータサイズ履歴テーブ
ル43の中から最小となる開始アドレスの情報を検索す
る(ステップ316)。そして、検索した開始アドレス
に分割サイズ(S)を加算した比較基準値と次に小さい
開始アドレス値とを比較し(ステップ317)、比較基
準値が次に小さい開始アドレス値以上となれば、最小と
なる開始アドレスを開始アドレスとし、次に小さい開始
アドレスと最小となる開始アドレスとの差分をブロック
サイズとしてマッピングテーブル84にセットする(ス
テップ318,315)。一方、比較基準値が次に小さ
い開始アドレス値より小さければ、最小となる開始アド
レスを開始アドレスとし、分割サイズ(S)をブロック
サイズとしてマッピングテーブル84にセットする(ス
テップ319,315)。On the other hand, if the information of the start address is not recorded in the access data size history table 43 (step 313), the minimum start address information is searched from the access data size history table 43 (step 316). ). Then, a comparison reference value obtained by adding the division size (S) to the searched start address is compared with the next smallest start address value (step 317). Is set as the start address, and the difference between the next smallest start address and the smallest start address is set as a block size in the mapping table 84 (steps 318 and 315). On the other hand, if the comparison reference value is smaller than the next smallest start address value, the smallest start address is set as the start address, and the division size (S) is set as the block size in the mapping table 84 (steps 319 and 315).
【0066】次に、セットした開始アドレスに、セット
したブロックサイズを加算して次に読み込むべき情報の
開始アドレスを算出する(ステップ320)。算出した
開始アドレスがディスク装置2の容量より小さいとき
は、ステップ313に戻り前述した処理を繰り返し行う
(ステップ321)。算出した開始アドレスがディスク
装置2の容量以上になれば、ディスク装置2に対するマ
ッピングテーブル84の設定は終了したことになる。以
上の処理により作成されたマッピングテーブル84の内
容は、開始アドレスの小さい順に並べられたものにな
る。Next, the set block size is added to the set start address to calculate a start address of information to be read next (step 320). If the calculated start address is smaller than the capacity of the disk device 2, the process returns to step 313 and the above-described processing is repeated (step 321). When the calculated start address becomes equal to or larger than the capacity of the disk device 2, the setting of the mapping table 84 for the disk device 2 has been completed. The contents of the mapping table 84 created by the above processing are arranged in ascending order of the start address.
【0067】マッピングテーブル84が作成されると、
これに基づいてアクセス履歴情報テーブル81を作成
し、更に、アクセス履歴情報テーブル81は、アクセス
履歴情報テーブル21にコピーされる(ステップ32
2)。また、マッピングテーブル84は、ディスク装置
2のマッピングテーブル24にコピーされる(ステップ
323)。When the mapping table 84 is created,
Based on this, the access history information table 81 is created, and the access history information table 81 is copied to the access history information table 21 (step 32).
2). Further, the mapping table 84 is copied to the mapping table 24 of the disk device 2 (Step 323).
【0068】このようなシステム起動時の処理が終了す
ると、前述した図6の処理が繰り返し行われることにな
る。When the processing at the time of starting the system is completed, the above-described processing of FIG. 6 is repeatedly performed.
【0069】本実施の形態によれば、実際に行われた書
込み処理のアクセス履歴をアクセスデータサイズ履歴テ
ーブル43に記録し、そのアクセス履歴に基づいてマッ
ピングテーブル24,84を生成するようにした。すな
わち、次のシステム動作時には、実際に行われた以前の
ディスクアクセスパターンに即したデータブロック群が
構成されるので、オーバーヘッドの少ないより効率的な
ミラーディスクに対する書込み処理を行うことができ
る。According to the present embodiment, the access history of the actually executed write processing is recorded in the access data size history table 43, and the mapping tables 24 and 84 are generated based on the access history. That is, at the time of the next system operation, a data block group is formed according to the previous disk access pattern actually performed, so that more efficient write processing to the mirror disk with less overhead can be performed.
【0070】なお、図7に示したマッピングテーブル8
4を作成する処理を予期しないシステムダウンを考慮し
て、システム起動時に行うようにしたが、システムの正
常終了時にこの処理を行うようにしてもよい。この場
合、作成したマッピングテーブル84の内容は、ディス
ク装置2のマッピングテーブル24にコピーされ保存さ
れる。この場合は、実施の形態2と同じ処理になり、シ
ステムの起動時にマッピングテーブル24からメモリ8
に読み込まれることになる。The mapping table 8 shown in FIG.
Although the process of creating 4 is performed at the time of system startup in consideration of unexpected system down, this process may be performed at normal termination of the system. In this case, the contents of the created mapping table 84 are copied and stored in the mapping table 24 of the disk device 2. In this case, the processing is the same as that of the second embodiment.
Will be read.
【0071】実施の形態4. 上記実施の形態3では、マッピングテーブル84を作成
する処理をシステム起動時又はシステムの正常終了時に
行うようにしたが、本実施の形態では、システムの通常
動作時におけるアクセスカウンタ83のリセットのタイ
ミングで行うようにしたことを特徴としている。すなわ
ち、システムの通常動作時において、図2におけるステ
ップ106の直前若しくは直後に図7に示した処理を実
行するようにした。このように、アクセス履歴情報テー
ブル81,21を初期化してから次に初期するまでの間
の直前の書込み処理に基づいてマッピングテーブル8
4,24を作成するようにしたので、アクセス時間やユ
ーザプロセスなどにより局所的なアクセスがあった場
合、オーバーヘッドの少ないより効率的なミラーディス
クに対する書込み処理を行うことができる。また、連続
稼働するシステムにおいては、使用しているうちに効率
を良くすることができる。 Embodiment 4 In the third embodiment, the process of creating the mapping table 84 is performed at the time of system startup or normal termination of the system. However, in the third embodiment, the process of resetting the access counter 83 during normal operation of the system is performed. It is characterized in that it is performed. That is, during the normal operation of the system, the processing shown in FIG. 7 is executed immediately before or immediately after step 106 in FIG. As described above, the mapping table 8 based on the immediately preceding write process between the time when the access history information tables 81 and 21 are initialized and the time when the next
4, 24 are created, so that when there is a local access due to an access time, a user process, or the like, a more efficient write process to the mirror disk with less overhead can be performed. In a system that operates continuously, efficiency can be improved during use.
【0072】実施の形態5. 上記各実施の形態におけるアクセス履歴情報テーブル8
1,21に設定されるアクセス履歴情報は、前述したよ
うに書込み要求に基づくアクセスの有無を表すフラグ情
報であった。そして、アクセスカウンタ83等を設け
て、ディスク装置2全体に対するアクセス回数が所定数
に達した時点でセットされたアクセス履歴情報をまとめ
てクリアするようにしていた。本実施の形態において
は、アクセス履歴情報をフラグ情報(ビット情報)では
なく連続値を取りうる更新時情報として設けたことを特
徴としている。図8に本発明に係るミラーディスク制御
方式の第5の実施の形態を示した構成図を示すが、アク
セス履歴情報テーブル81,21に示したように、アク
セス履歴情報には、それぞれ整数値が書込み可能なデー
タ格納領域が用いられる。また、本実施の形態では、メ
モリ8にループカウンタ85を更に追加している。アク
セスカウンタ83は、その値がアクセスカウント定義領
域82に設定されたアクセス回数tに達したときにクリ
アされるが、このループカウンタ85は、アクセスカウ
ンタ83がクリアされるタイミングで1加算される。 Embodiment 5 Access history information table 8 in each of the above embodiments
The access history information set to 1, 21 is the flag information indicating the presence or absence of the access based on the write request as described above. An access counter 83 and the like are provided so that the access history information set when the number of accesses to the entire disk device 2 reaches a predetermined number is collectively cleared. The present embodiment is characterized in that access history information is provided not as flag information (bit information) but as update information that can take a continuous value. FIG. 8 is a configuration diagram showing a fifth embodiment of the mirror disk control system according to the present invention. As shown in the access history information tables 81 and 21, the access history information includes integer values, respectively. A writable data storage area is used. In this embodiment, a loop counter 85 is further added to the memory 8. The access counter 83 is cleared when its value reaches the number of accesses t set in the access count definition area 82. However, the loop counter 85 is incremented by one at the timing when the access counter 83 is cleared.
【0073】次に、システムが正常に動作しているとき
の本実施の形態におけるミラーディスク制御装置4の動
作について図9に示したフローチャートを用いて説明す
る。Next, the operation of the mirror disk control device 4 in this embodiment when the system is operating normally will be described with reference to the flowchart shown in FIG.
【0074】ミラーディスク制御装置4は、まず、ユー
ザプロセスからのアクセス要求を受け付けると、それが
書込み要求か読出し要求かを調べる(ステップ50
1)。読出し要求であれば、ディスクアクセス制御部4
1により該当するデータをディスク装置2から読み出し
てユーザプロセスへ渡す(ステップ508)。書込み要
求であれば、二重化制御部42は、ループカウンタ85
の値を読み込み、その値でメモリ8並びに各ディスク装
置2a,2bのアクセス履歴情報テーブル81,21
a,21bの書込み先となるデータブロックに対応する
アクセス履歴情報をセットする(ステップ502)。こ
れは、現在の当該アクセス履歴情報の各値が何であろう
とループカウンタ85の値を書き込むことになる。すな
わち、ループカウンタ85の値は、各書込み処理群に割
り当てられる識別情報ということもできる。When the mirror disk controller 4 receives an access request from a user process, it checks whether it is a write request or a read request (step 50).
1). If it is a read request, the disk access control unit 4
1, the corresponding data is read from the disk device 2 and passed to the user process (step 508). If it is a write request, the duplexing control unit 42
Of the memory 8 and the access history information tables 81 and 21 of the disk devices 2a and 2b.
The access history information corresponding to the data block to which a and 21b are to be written is set (step 502). This means that the value of the loop counter 85 is written whatever the current value of the access history information is. That is, the value of the loop counter 85 can be regarded as identification information assigned to each write processing group.
【0075】ここで、アクセスカウンタ83の値がアク
セスカウント定義領域82に設定されているアクセス回
数tに達したのならば(ステップ503)、ループカウ
ンタ85の値に1を加算し(ステップ504)、そし
て、アクセスカウンタ83をリセットした後(ステップ
505)、アクセスカウンタ83の値に1を加算する
(ステップ506)。一方、アクセスカウンタ83の値
がアクセス回数tに達していなければ、アクセスカウン
タ83の加算のみを行う(ステップ503,506)。
そして、書込みデータをディスク装置2へ書き込む(ス
テップ507)。If the value of the access counter 83 has reached the number of accesses t set in the access count definition area 82 (step 503), 1 is added to the value of the loop counter 85 (step 504). Then, after resetting the access counter 83 (step 505), 1 is added to the value of the access counter 83 (step 506). On the other hand, if the value of the access counter 83 has not reached the access count t, only the addition of the access counter 83 is performed (steps 503 and 506).
Then, the write data is written to the disk device 2 (step 507).
【0076】以上のように、本実施の形態は動作する
が、これは実施の形態1と次のような点が異なる。As described above, the present embodiment operates, but differs from the first embodiment in the following points.
【0077】実施の形態1では、初めて書込み要求の対
象になったデータブロックに対して、そのデータブロッ
クに対応するアクセス履歴情報を“1”にセットしてい
る。実際には、ステップ110において各ディスク装置
2a,2bの当該データブロックにはデータが書き込ま
れているが、オーバーヘッドの軽減のためにアクセスカ
ウンタ83が所定のアクセス回数tに達しアクセス履歴
情報テーブル81,21が初期化されるまでは、予期し
ないシステムダウンの発生を考慮して書き込まれていな
いおそれがあるという情報を保持している。そして、シ
ステムダウン後は、“1”がセットされているアクセス
履歴情報に対応したデータブロックのみを正から副とな
るディスク装置2へコピーを行うようにしている。In the first embodiment, the access history information corresponding to a data block for which a write request has been made for the first time is set to “1”. Actually, in step 110, data is written in the data block of each of the disk devices 2a and 2b. However, in order to reduce the overhead, the access counter 83 reaches the predetermined number of accesses t and the access history information table 81, Until the initialization is performed, information that the data may not be written in consideration of an unexpected system down is held. Then, after the system down, only the data block corresponding to the access history information in which "1" is set is copied from the primary to the secondary disk device 2.
【0078】本実施の形態では、同じ効果を得るため
に、アクセス履歴情報をフラグ情報ではなく更新時情報
を用いている。例えば、アクセス回数tを“100”と
すると、図8において“71”というアクセス履歴情報
は、7001回目から7100回目の間に書込み処理が
あったことを意味している。仮にループカウンタ85の
値が“71”であれば、最新の書込み処理(アクセスカ
ウンタ83の値が“1”から“100”の間)において
書き込まれたことになる。また、“60”というアクセ
ス履歴情報は、5901回目から6000回目の間に書
込み処理があったことを意味している。仮にループカウ
ンタ85の値が“71”であれば、当該データブロック
に対しては、単純に計算して約1000回の間、書込み
処理の対象にならなかったということになる。すなわち
アクセス履歴情報に設定される値は、どの書込み処理群
に属するかの識別情報であるということもできる。In the present embodiment, in order to obtain the same effect, the access history information uses the update information instead of the flag information. For example, assuming that the number of accesses t is “100”, the access history information “71” in FIG. 8 indicates that the writing process has been performed between the 7001th and 7100th times. If the value of the loop counter 85 is “71”, it means that the data was written in the latest write processing (the value of the access counter 83 is between “1” and “100”). Also, the access history information “60” means that the writing process has been performed between the 5901th and 6000th times. If the value of the loop counter 85 is “71”, it means that the data block has not been subjected to the write processing for about 1000 times simply calculated. That is, it can be said that the value set in the access history information is identification information indicating which write processing group belongs.
【0079】そして、ループカウンタ85の値が“7
1”のとき70以下の値を持つアクセス履歴情報に対応
するデータブロックについては、正常に全てのディスク
装置2に書き込まれ等価性が保証されていることにな
る。従って、本実施の形態によれば、予期しないシステ
ムダウンが発生した後は、ループカウンタ85の値と同
じアクセス履歴情報のみを正から副となるディスク装置
2へコピーを行えばよいことになる。但し、図8から明
らかなように、ディスク装置2には、ループカウンタ8
5の値を記憶していない。もちろん、その値を記憶する
ようにしてもよいが、本実施の形態では、その値を記憶
する代わりに双方のアクセス履歴情報テーブル21a,
21bにある値の中から最大値となるものを検索し、そ
の最大値が設定されたアクセス履歴情報に対応したデー
タブロックのみを正から副となるディスク装置2へコピ
ーすることで、全ディスク装置2の内容を一致させてい
る。Then, the value of the loop counter 85 becomes "7".
The data block corresponding to the access history information having a value of 70 or less when the value is 1 "is normally written to all the disk devices 2 and the equivalence is guaranteed. Therefore, according to the present embodiment. For example, after an unexpected system failure, only the access history information having the same value as the value of the loop counter 85 needs to be copied from the primary disk to the secondary disk device 2. However, as is clear from FIG. The disk device 2 has a loop counter 8
The value of 5 is not stored. Of course, the value may be stored, but in the present embodiment, instead of storing the value, both access history information tables 21a, 21a,
21b is searched for the maximum value, and only the data block corresponding to the access history information for which the maximum value has been set is copied from the primary disk to the secondary disk unit 2, thereby obtaining all disk units. 2 are matched.
【0080】以上のことからも明らかであるが、本実施
の形態においてシステムを終了させる時には、実施の形
態1と同様にディスク装置2に記憶されているアクセス
履歴情報テーブル21の内容を全てクリアして終了すれ
ばよい。As is clear from the above, when the system is terminated in this embodiment, all the contents of the access history information table 21 stored in the disk device 2 are cleared as in the first embodiment. And end.
【0081】また、システム起動時の動作は、図10に
示すとおり、基本的には実施の形態1と同じである。す
なわち、メモリ8のアクセス履歴情報テーブル81、ア
クセスカウント定義領域82、アクセスカウンタ83更
にループカウンタ85の内容を初期化し(ステップ52
1)、ディスク装置2に記憶されているアクセス履歴情
報テーブル21及びアクセスカウント定義領域22の内
容をメモリ8上の対応するテーブル81、領域82に読
み込む(ステップ522)。但し、ループカウンタ85
には初期値として“1”を設定する。そして、アクセス
履歴情報テーブル81に含まれるアクセス履歴情報の中
から最大値を検索し(ステップ523)、その最大値と
なったアクセス履歴情報に対応したデータブロックのみ
を正から副となるディスク装置2へコピーする(ステッ
プ524)。そして、メモリ8並びにディスク装置2の
アクセス履歴情報テーブル81,21の内容を初期化し
(ステップ525)、図9に示した通常時の処理に移行
することになる。The operation at system startup is basically the same as in the first embodiment, as shown in FIG. That is, the contents of the access history information table 81, the access count definition area 82, the access counter 83, and the loop counter 85 of the memory 8 are initialized (step 52).
1) The contents of the access history information table 21 and the access count definition area 22 stored in the disk device 2 are read into the corresponding tables 81 and area 82 on the memory 8 (step 522). However, the loop counter 85
Is set to "1" as an initial value. Then, the maximum value is searched from the access history information included in the access history information table 81 (step 523), and only the data block corresponding to the access history information having the maximum value is changed from the primary to the secondary disk device 2. (Step 524). Then, the contents of the memory 8 and the access history information tables 81 and 21 of the disk device 2 are initialized (step 525), and the processing shifts to the normal processing shown in FIG.
【0082】なお、このシステム起動時における処理で
は、常にディスク装置2へのコピー処理が実行される
が、ループカウンタ85の値をディスク装置2にも記憶
するようにして、この値を比較するようにすれば、必要
時にのみコピー処理を行うようにすることも可能であ
る。In the process at the time of starting the system, the copying process to the disk device 2 is always executed. However, the value of the loop counter 85 is also stored in the disk device 2 and the value is compared. In this case, it is possible to perform the copy process only when necessary.
【0083】以上のように、本実施の形態によれば、ア
クセス履歴情報としてフラグ情報の代わりに整数値が書
込み可能な更新時情報を用いるようにしても上記実施の
形態1と同様の効果を奏することができるとともに、正
常動作時においてアクセスカウンタ83が所定のアクセ
ス回数tに達したときにループカウンタ85の加算処理
のみ行いアクセス履歴情報テーブル81,21の内容を
初期化する必要がなくなるので、更にミラーディスク制
御におけるオーバーヘッドの軽減を図ることができる。As described above, according to the present embodiment, the same effect as in the first embodiment can be obtained even when the update information in which an integer value can be written is used instead of the flag information as the access history information. In addition, when the access counter 83 reaches a predetermined number of accesses t during normal operation, it is not necessary to perform only the addition processing of the loop counter 85 and initialize the contents of the access history information tables 81 and 21. Further, overhead in mirror disk control can be reduced.
【0084】なお、本実施の形態では、アクセス履歴情
報にフラグ情報を用いていないので、更新時情報やルー
プカウンタ85がオーバーフローを起こす可能性が生じ
てくるが、これは、オーバーフローの発生前にクリアす
るなどアクセス履歴情報テーブル81,21の設計や運
用等により防止することができる。In this embodiment, since the flag information is not used for the access history information, there is a possibility that the update information and the loop counter 85 may overflow. It can be prevented by the design and operation of the access history information tables 81 and 21 such as clearing.
【0085】また、本実施の形態では、実施の形態1と
比較して説明をしたが、実施の形態2のようにデータブ
ロックとアクセス履歴情報がn対1になる関係の場合で
も適用可能である。Although the present embodiment has been described in comparison with the first embodiment, the present embodiment can be applied to the case where the data block and the access history information have an n-to-1 relationship as in the second embodiment. is there.
【0086】[0086]
【発明の効果】本発明によれば、ディスク装置への一連
のデータ書込み処理を複数の群に分割し、各書込み処理
群毎にディスク装置の等価性を保証するようにした。す
なわち、システムダウンが発生したときには処理中であ
った書込み処理を含む書込み処理群を構成する全書込み
処理において処理対象となったデータのみを、一のディ
スク装置から他のディスク装置へコピーすることによっ
て各ディスク装置の内容を一致させることができるの
で、そのシステムダウン時のリカバリに要する時間を大
幅に削減でき、ミラーディスク制御を行う際のオーバー
ヘッドの軽減を図ることができる。また、データ書込み
の有無を表す情報を最新の書込み処理群についてのみ保
持しておけばよいので、通常動作時におけるミラーディ
スク制御を行う際のオーバーヘッドの軽減を図ることが
できる。According to the present invention, a series of data write processing to a disk device is divided into a plurality of groups, and the equivalence of the disk device is guaranteed for each write processing group. That is, by copying only the data to be processed in all the write processes constituting the write process group including the write process that was being processed when the system failure occurred from one disk device to another disk device. Since the contents of each disk device can be matched, the time required for recovery when the system goes down can be greatly reduced, and the overhead when mirror disk control is performed can be reduced. In addition, since information indicating whether or not data has been written need only be held for the latest write processing group, it is possible to reduce overhead when mirror disk control is performed during normal operation.
【0087】また、書込み要求を受け付けて該当するデ
ータブロックに対応するアクセス履歴情報にその旨をい
ったん設定した後は、当該データブロックにデータを書
き込み全てのディスク装置の内容が等価になったとして
も当該アクセス履歴情報をその時点ではその設定を解除
せずに、所定の条件を満たしたときにそのアクセス履歴
情報をまとめて初期化するようにした。すなわち、デー
タ書込みの有無を表すアクセス履歴情報を所定の条件を
満たす間は保持しておくことによりその後に同一データ
ブロックに対する書込み処理時には当該アクセス履歴情
報の設定を行う必要はないため、その設定処理の分オー
バーヘッドの軽減を図ることができる。また、所定の条
件を満たしたときにそのアクセス履歴情報をまとめて初
期化するようにしたので、アクセス履歴情報の設定解除
にかかる処理の分オーバーヘッドの軽減を図ることがで
きる。そして、システムダウン等が発生した場合は、設
定されているアクセス履歴情報に対応したデータブロッ
クのみを一のディスク装置から他のディスク装置へコピ
ーすればよいので、システムダウンが発生したとしても
そのデータの等価性を保証できるのみならず、迅速にそ
のリカバリを行うことが可能になる。After the write request is received and the access history information corresponding to the data block is set to that effect, the data is written to the data block and even if the contents of all the disk devices become equivalent. At this point, the setting of the access history information is not canceled, and the access history information is collectively initialized when a predetermined condition is satisfied. That is, the access history information indicating the presence / absence of data writing is retained as long as a predetermined condition is satisfied, so that it is not necessary to set the access history information at the time of writing processing to the same data block thereafter. Therefore, overhead can be reduced. In addition, since the access history information is collectively initialized when a predetermined condition is satisfied, it is possible to reduce the overhead for the process of canceling the setting of the access history information. When a system failure occurs, only data blocks corresponding to the set access history information need be copied from one disk device to another disk device. Not only can be assured of equality, but also it can be recovered quickly.
【0088】また、アクセス履歴情報を、書込み要求に
基づくアクセスの有無を表すフラグ情報ではなく、連続
値を取りうる更新時情報として設けても上記と同様の効
果を奏することができる。特に、この発明によれば、フ
ラグ情報を保持するアクセス履歴情報テーブルを使用し
たときと比較すると、正常動作時において所定の条件を
満たしたときに行われるアクセス履歴情報テーブルの初
期化処理を行う必要がなくなるので、更にミラーディス
ク制御におけるオーバーヘッドの軽減を図ることができ
る。The same effect as described above can be obtained even if the access history information is provided not as flag information indicating presence / absence of access based on a write request but as update information that can take a continuous value. In particular, according to the present invention, it is necessary to perform an initialization process of the access history information table performed when a predetermined condition is satisfied during normal operation, as compared with the case where an access history information table holding flag information is used. Therefore, overhead in mirror disk control can be further reduced.
【0089】また、マッピングテーブルを設けてデータ
ブロックとアクセス履歴情報とを、n対1(nは2以上
の正整数)に対応させるようにすれば、アクセス履歴情
報テーブルのサイズを小さくすることができる。マッピ
ングテーブルには、書込み対象となる各ブロックの格納
位置識別情報とサイズとが定義されるが、各ブロックの
区切りを、ファイルシステムが理解する論理的な区切
り、ディスク装置の物理的な区切り、ファイルシステム
特有の論理的なアクセス単位あるいは取り扱うデータの
種類に基づいて設定することでより効果的なアクセス履
歴情報テーブルが作成でき、その結果、ミラーディスク
制御におけるオーバーヘッドの軽減を図ることができ
る。Further, if a mapping table is provided so that data blocks and access history information correspond to n: 1 (n is a positive integer of 2 or more), the size of the access history information table can be reduced. it can. The mapping table defines the storage location identification information and the size of each block to be written, and separates each block with a logical partition understood by the file system, a physical partition of the disk device, and a file. By setting based on the logical access unit unique to the system or the type of data to be handled, a more effective access history information table can be created, and as a result, overhead in mirror disk control can be reduced.
【0090】また、実際に行われた以前のディスクアク
セスパターンに即した格納位置情報並びにサイズを得る
ことができるので、マッピングテーブルをより効果的に
作成することができる。Further, since it is possible to obtain the storage position information and the size in accordance with the previous disk access pattern actually performed, the mapping table can be created more effectively.
【図1】 本発明に係るミラーディスク制御方式の第1
の実施の形態を示した構成図である。FIG. 1 shows a first embodiment of a mirror disk control method according to the present invention.
FIG. 2 is a configuration diagram showing an embodiment.
【図2】 第1の実施の形態においてシステムの正常動
作時におけるミラーディスク制御装置の動作を示したフ
ローチャートである。FIG. 2 is a flowchart showing an operation of the mirror disk control device during a normal operation of the system in the first embodiment.
【図3】 第1の実施の形態においてシステムの起動時
におけるミラーディスク制御装置の動作を示したフロー
チャートである。FIG. 3 is a flowchart showing an operation of the mirror disk control device at the time of starting the system in the first embodiment.
【図4】 本発明に係るミラーディスク制御方式の第2
の実施の形態を示した構成図である。FIG. 4 shows a second embodiment of the mirror disk control method according to the present invention.
FIG. 2 is a configuration diagram showing an embodiment.
【図5】 本発明に係るミラーディスク制御方式の第3
の実施の形態を示した構成図である。FIG. 5 shows a third embodiment of the mirror disk control method according to the present invention.
FIG. 2 is a configuration diagram showing an embodiment.
【図6】 第3の実施の形態においてシステムの正常動
作時におけるミラーディスク制御装置の動作を示したフ
ローチャートである。FIG. 6 is a flowchart showing an operation of the mirror disk control device during a normal operation of the system in the third embodiment.
【図7】 第3の実施の形態においてマッピングテーブ
ルを作成する処理を示したフローチャートである。FIG. 7 is a flowchart illustrating a process of creating a mapping table in the third embodiment.
【図8】 本発明に係るミラーディスク制御方式の第5
の実施の形態を示した構成図である。FIG. 8 shows a fifth embodiment of the mirror disk control method according to the present invention.
FIG. 2 is a configuration diagram showing an embodiment.
【図9】 第5の実施の形態においてシステムの正常動
作時におけるミラーディスク制御装置の動作を示したフ
ローチャートである。FIG. 9 is a flowchart showing an operation of the mirror disk control device during a normal operation of the system according to the fifth embodiment.
【図10】 第5の実施の形態においてシステムのシス
テム起動時におけるミラーディスク制御装置の動作を示
したフローチャートである。FIG. 10 is a flowchart showing the operation of the mirror disk control device when the system is started up in the fifth embodiment.
【図11】 従来のミラーディスク制御装置の構成図で
ある。FIG. 11 is a configuration diagram of a conventional mirror disk control device.
【図12】 従来の二重化ボリュームの等価性判別方式
の構成図である。FIG. 12 is a configuration diagram of a conventional duplicate volume equivalence determination method.
2a,2b ディスク装置、4 ミラーディスク制御装
置、6 コンピュータ、8 メモリ、21a,21b,
81 アクセス履歴情報テーブル、22a,22b,8
2 アクセスカウント定義領域、24a,24b,84
マッピングテーブル、41 ディスクアクセス制御
部、42 二重化制御部、43 アクセスデータサイズ
履歴テーブル、83 アクセスカウンタ、85 ループ
カウンタ。2a, 2b disk device, 4 mirror disk control device, 6 computer, 8 memory, 21a, 21b,
81 access history information table, 22a, 22b, 8
2 Access count definition area, 24a, 24b, 84
Mapping table, 41 disk access control unit, 42 duplex control unit, 43 access data size history table, 83 access counter, 85 loop counter.
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平2−166509(JP,A) 特開 昭58−175065(JP,A) 特開 平2−136943(JP,A) 特開 平6−67810(JP,A) 特開 平4−107725(JP,A) 特開 平1−266640(JP,A) 特開 昭63−59644(JP,A) 実開 平3−93942(JP,U) 実開 平6−75041(JP,U) Mike Loukides,UNI Xシステムチューニング,日本,株式会 社アスキー,初版,202−209 (58)調査した分野(Int.Cl.7,DB名) G06F 3/06 G06F 12/00 531 G06F 12/16 310 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-2-166509 (JP, A) JP-A-58-175065 (JP, A) JP-A-2-136943 (JP, A) JP-A-6-166943 67810 (JP, A) JP-A-4-107725 (JP, A) JP-A-1-266640 (JP, A) JP-A-63-59644 (JP, A) JP-A-3-93942 (JP, U) 6-75041 (JP, U) Mike Loukides, UNIX System Tuning, ASCII, Japan, First Edition, 202-209 (58) Fields investigated (Int. Cl. 7 , DB name) G06F 3 / 06 G06F 12/00 531 G06F 12/16 310
Claims (15)
によって前記ディスク装置全ての内容を常時一致させる
ミラーディスク制御機能を有するミラーディスク制御手
段と、 を有するミラーディスク制御方式において、 前記ディスク装置への一連のデータの書込み処理を所定
の条件に基づいて複数の書込み処理群に分割し、 システム正常動作時、書込み処理の要求がされた場合、
当該書込み処理によるデータを前記各ディスク装置に書
き込むと共に、当該データの格納位置情報が前記メモリ
にまだ書き込まれていないときのみ当該データの格納位
置情報を前記メモリ及び前記各ディスク装置の双方に書
き込みかつ少なくとも当該書込み処理群の処理の間保持
しておき、また、書込み処理群に含まれる書込み処理が
全て終了したときには、前記メモリ及び前記各ディスク
装置に保持しておいた格納位置情報を初期化し、 システムダウンの復旧時には、前記各ディスク装置に保
持されている格納位置情報に対応するデータのみを、一
の前記ディスク装置から他の前記ディスク装置へコピー
することによって前記各ディスク装置の内容を一致させ
ることを特徴とするミラーディスク制御方法。1. A memory and the mirror disk to have a mirror disk control function to match constantly all the content the disk device and a plurality of disk drives constituting the mirror disk, by writing the same data simultaneously to the each disk device In the mirror disk control method having control means, a series of data write processing to the disk device is divided into a plurality of write processing groups based on predetermined conditions, and a write processing request is issued during normal system operation. If
Write the data resulting from the write processing to each of the disk devices, and write the storage position information of the data to both the memory and each of the disk devices only when the storage position information of the data has not yet been written to the memory; At least during the processing of the write processing group is held, and when all of the write processing included in the write processing group is completed, the storage position information held in the memory and the disk devices is initialized, At the time of system recovery, only the data corresponding to the storage position information held in each of the disk devices is copied from one of the disk devices to another of the disk devices so that the contents of the respective disk devices are matched. And a mirror disk control method.
単位にデータ書込みが行われる複数のディスク装置と、 前記各ディスク装置に同一データを同時に書き込むこと
によって前記ディスク装置全ての内容を常時一致させる
ミラーディスク制御機能を有するミラーディスク制御手
段と、 前記メモリ及び前記各ディスク装置それぞれに同一内容
で構成され、前記ディスク装置に含まれるデータブロッ
クへのデータ書込みの有無を表すアクセス履歴情報を含
むアクセス履歴情報テーブルと、 データ書込み対象となったデータブロックに対応した前
記メモリにおけるアクセス履歴情報にその旨が設定され
ていないときのみ、当該データブロックに対応した前記
メモリ及び前記各ディスク装置のアクセス履歴情報にそ
の旨の設定を行う書込み有無判別手段と、 前記ディスク装置への一連のデータの書込み処理を所定
の条件に基づいて複数の書込み処理群に分割する書込み
処理群形成手段と、 各書込み処理群を構成する全書込み処理が終了した時点
で前記メモリ並びに前記ディスク装置上の前記アクセス
履歴情報テーブルの内容を同時に初期化するテーブル初
期化手段と、 を有し、前記書込み処理群単位で前記ディスク装置の等
価性を保証することを特徴とするミラーディスク制御方
式。2. A memory, a plurality of disk devices that constitute a mirror disk and write data in units of one or a plurality of data blocks, and write all the disk devices simultaneously by writing the same data to each of the disk devices. a mirror disk control unit that have a mirror disk control function to match the content at all times, is composed of the same contents to each of the memory and said disk devices, access indicating whether or not data write to the data block included in the disk device An access history information table including history information, and the memory and each disk corresponding to the data block to be written only when access history information in the memory corresponding to the data block to which data is written is not set to that effect. To that effect in the access history information of the device Writing presence / absence determining means for performing setting; writing processing group forming means for dividing a series of data writing processing to the disk device into a plurality of writing processing groups based on predetermined conditions; Table initializing means for simultaneously initializing the contents of the memory and the access history information table on the disk device at the time of completion of the write process, and the equivalence of the disk device for each write process group. A mirror disk control method characterized by guaranteeing.
ムダウンの復旧時に前記ディスク装置の前記アクセス履
歴情報テーブルのアクセス履歴情報を参照し、データ書
込み対象となった旨の設定がされている場合には当該ア
クセス履歴情報に対応したデータブロックのみを、当該
ディスク装置から他方の前記ディスク装置へコピーする
ことによって前記各ディスク装置の内容を一致させるこ
とを特徴とする請求項2記載のミラーディスク制御方
式。3. The mirror disk control means refers to access history information in the access history information table of the disk device at the time of restoration from a system failure, and sets a data write target when the mirror disk control means has been set. 3. The mirror disk control method according to claim 2, wherein the content of each disk device is matched by copying only the data block corresponding to the access history information from the disk device to the other disk device.
報設定数を予め設定するアクセスカウント定義領域と、 前記アクセス履歴情報テーブルが初期化されてからデー
タの書込みが行われていないデータブロックに対する書
込み処理が発行された回数をカウントするアクセスカウ
ンタと、 を有し、前記アクセス履歴情報テーブルが初期化されて
から前記アクセスカウンタのカウント数が最大アクセス
履歴情報設定数に達するという条件を満たすまでに実行
された書込み処理で一つの書込み処理群を形成し、 前記テーブル初期化手段は、前記アクセスカウンタのカ
ウント数が最大アクセス履歴情報設定数に達したときに
前記アクセス履歴情報テーブルの内容を初期化すること
を特徴とする請求項2記載のミラーディスク制御方式。4. The write processing group forming means includes: an access count definition area for setting a maximum set number of access history information to the access history information table in advance; and writing data after the access history information table is initialized. An access counter that counts the number of times a write process has been issued to a data block for which access has not been performed, and the access counter has been set to a maximum access history information set number since the access history information table was initialized. Forming a single write processing group by the write processing executed until the condition that the number of access counters reaches the maximum access history information set number. The contents of a history information table are initialized. Mirror disk control method described.
前記ディスク装置への一連のデータの書込み処理をタイ
マ割込みによる時間の区切りによって複数の書込み処理
群に分割し、 前記テーブル初期化手段は、タイマ割込み発生の度に前
記アクセス履歴情報テーブルの内容を初期化することを
特徴とする請求項2記載のミラーディスク制御方式。5. The write processing group forming means has a timer interrupt generation unit for generating a timer interrupt,
The process of writing a series of data to the disk device is divided into a plurality of write process groups by dividing time by a timer interrupt, and the table initializing unit initializes the contents of the access history information table each time a timer interrupt occurs. The mirror disk control method according to claim 2, wherein the mirror disk control method is used.
単位にデータ書込みが行われる複数のディスク装置と、 前記各ディスク装置に同一データを同時に書き込むこと
によって前記ディスク装置全ての内容を常時一致させる
ミラーディスク制御機能を有するミラーディスク制御手
段と、 前記メモリ及び前記各ディスク装置それぞれに同一内容
で構成され、前記ディスク装置に含まれるデータブロッ
クへのデータ書込み時点を表すアクセス履歴情報を含む
アクセス履歴情報テーブルと、 前記各ディスク装置への一連のデータの書込み処理を所
定の条件に基づいて複数の書込み処理群に分割するとと
もに書込み処理中の書込み処理群の識別情報を保持する
書込み処理群形成手段と、 データ書込み対象となったデータブロックに対応したア
クセス履歴情報に前記書込み処理群の識別情報の設定を
行う書込み時識別手段と、 を有し、前記書込み処理群単位で前記ディスク装置の等
価性を保証することを特徴とするミラーディスク制御方
式。6. A memory, a plurality of disk devices forming a mirror disk, and writing data in units of one or a plurality of data blocks, and simultaneously writing the same data to each of the disk devices so that all of the disk devices a mirror disk control unit that have a mirror disk control function to match the content at all times, is composed of the same contents to each of the memory and said disk devices, access history indicating a data writing time to the data blocks included in said disk device An access history information table including information, and a process of writing a series of data to each of the disk devices is divided into a plurality of write processing groups based on a predetermined condition, and identification information of the write processing group during the write processing is held. A write processing group forming means, and a data Write-time identification means for setting the identification information of the write processing group in the access history information corresponding to the lock, and assuring equivalence of the disk devices in units of the write processing group. Mirror disk control method.
ムダウンの復旧時に前記全ディスク装置の前記アクセス
履歴情報テーブルの中から最新の前記書込み処理群の識
別情報を検索し、その検索した最新の前記書込み処理群
の識別情報が設定されているアクセス履歴情報に対応し
たデータブロックのみを、当該ディスク装置から他方の
前記ディスク装置へコピーすることによって前記各ディ
スク装置の内容を一致させることを特徴とする請求項6
記載のミラーディスク制御方式。7. The mirror disk control means searches for the latest identification information of the write processing group from the access history information tables of all the disk devices at the time of restoration from a system failure, and searches the latest write processing group. The content of each disk device is matched by copying only the data block corresponding to the access history information in which the identification information of the processing group is set from the disk device to the other disk device. Item 6
The mirror disk control method described.
ぞれに同一内容で構成され、書込み対象となる連続デー
タブロックを一つのブロックとした場合にその各ブロッ
クの格納位置識別情報とサイズとを定義するマッピング
テーブルを有し、 前記メモリ並びに前記ディスク装置上の前記アクセス履
歴情報テーブルに、前記各ブロックに対応させてアクセ
ス履歴情報を設定することで、データブロックとアクセ
ス履歴情報とを、n対1(nは自然数)に対応させるこ
とを特徴とする請求項2又は6いずれかに記載のミラー
ディスク制御方式。8. A mapping configured to have the same contents in each of the memory and each of the disk devices and defining storage position identification information and a size of each continuous data block to be written when the block is one block. By setting access history information corresponding to each of the blocks in the access history information table on the memory and the disk device, a data block and access history information can be stored in an n-to-one (n 7. The mirror disk control method according to claim 2, wherein the mirror disk control method corresponds to a natural number.
テムが理解する論理的な区切りに基づいて設定すること
を特徴とする請求項8記載のミラーディスク制御方式。9. The mirror disk control method according to claim 8, wherein the block division is set based on a logical division understood by a file system.
ク装置の物理的な区切りに基づいて設定することを特徴
とする請求項8記載のミラーディスク制御方式。10. The mirror disk control method according to claim 8, wherein the block division is set based on a physical division of the disk device.
ステム特有の論理的なアクセス単位に基づいて設定する
ことを特徴とする請求項8記載のミラーディスク制御方
式。11. The mirror disk control method according to claim 8, wherein the block delimiter is set based on a logical access unit unique to a file system.
な場合、前記ブロックの区切りを当該データの種類に基
づいて設定することを特徴とする請求項8記載のミラー
ディスク制御方式。12. The mirror disk control method according to claim 8, wherein, if the type of data to be handled can be recognized in advance, the block division is set based on the type of the data.
に応じて前記マッピングテーブルの内容の自動設定を行
うマッピングテーブル自動設定手段を有することを特徴
とする請求項8記載のミラーディスク制御方式。13. The mirror disk control method according to claim 8, further comprising mapping table automatic setting means for automatically setting the contents of said mapping table in accordance with the status of writing processing to said disk device.
は、 前記ディスク装置への各書込み処理におけるデータの格
納位置情報とサイズとを履歴情報として保持するアクセ
ス履歴保持部と、 前記アクセス履歴保持手段に保持された履歴情報に基づ
いて前記マッピングテーブルを作成するテーブル作成部
と、 を有することを特徴とする請求項13記載のミラーディ
スク制御方式。14. An automatic mapping table setting unit, wherein: an access history holding unit for holding, as history information, a storage position information and a size of data in each writing process to the disk device; 14. The mirror disk control method according to claim 13, further comprising: a table creating unit that creates the mapping table based on the history information.
は、前記アクセス履歴情報テーブルが初期化されるタイ
ミングで動作することを特徴とする請求項13記載のミ
ラーディスク制御方式。15. The mirror disk control system according to claim 13, wherein said mapping table automatic setting means operates at a timing when said access history information table is initialized.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP27433396A JP3251182B2 (en) | 1996-10-17 | 1996-10-17 | Mirror disk control method and mirror disk control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP27433396A JP3251182B2 (en) | 1996-10-17 | 1996-10-17 | Mirror disk control method and mirror disk control method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH10124261A JPH10124261A (en) | 1998-05-15 |
| JP3251182B2 true JP3251182B2 (en) | 2002-01-28 |
Family
ID=17540203
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP27433396A Expired - Fee Related JP3251182B2 (en) | 1996-10-17 | 1996-10-17 | Mirror disk control method and mirror disk control method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3251182B2 (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4518541B2 (en) * | 2004-01-16 | 2010-08-04 | 株式会社日立製作所 | Disk array device and disk array device control method |
| JP2009151677A (en) * | 2007-12-21 | 2009-07-09 | Fujitsu Ltd | Storage control device, storage control program, and storage control method |
| JP5218147B2 (en) | 2009-02-26 | 2013-06-26 | 富士通株式会社 | Storage control device, storage control method, and storage control program |
| US9767280B2 (en) | 2012-10-09 | 2017-09-19 | Canon Denshi Kabushiki Kaisha | Information processing apparatus, method of controlling the same, information processing system, and information processing method |
| JP6937337B2 (en) * | 2019-05-14 | 2021-09-22 | 株式会社日立製作所 | Distributed processing method, distributed processing system and server |
-
1996
- 1996-10-17 JP JP27433396A patent/JP3251182B2/en not_active Expired - Fee Related
Non-Patent Citations (1)
| Title |
|---|
| Mike Loukides,UNIXシステムチューニング,日本,株式会社アスキー,初版,202−209 |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH10124261A (en) | 1998-05-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7340645B1 (en) | Data management with virtual recovery mapping and backward moves | |
| US6839819B2 (en) | Data management appliance | |
| US6898688B2 (en) | Data management appliance | |
| EP1504346B1 (en) | Method and apparatus for creating a virtual data copy | |
| JP4142438B2 (en) | Restoring data between primary and backup systems | |
| US5504883A (en) | Method and apparatus for insuring recovery of file control information for secondary storage systems | |
| JP3856855B2 (en) | Differential backup method | |
| US6247024B1 (en) | Method and system for performing deferred file removal in a file system | |
| US5649152A (en) | Method and system for providing a static snapshot of data stored on a mass storage system | |
| JP4839091B2 (en) | Database recovery method and computer system | |
| CA2178213C (en) | Incremental backup system | |
| JP4809040B2 (en) | Storage apparatus and snapshot restore method | |
| US20030131253A1 (en) | Data management appliance | |
| US5632027A (en) | Method and system for mass storage device configuration management | |
| US20060139697A1 (en) | Storage system with multiple copy targeting | |
| WO1996012232A9 (en) | Snapshot of data stored on a mass storage system | |
| EP2286344A1 (en) | Ranking and prioritizing point in time snapshots | |
| KR20010007111A (en) | Data processor storage systems with dynamic resynchronization of mirrored logical data volumes subsequent to a storage system failure | |
| US6192376B1 (en) | Method and apparatus for shadowing a hierarchical file system index structure to enable error recovery | |
| US11531474B1 (en) | Storage system and data replication method in storage system | |
| JP2006527874A (en) | Method, system, and program for managing association between one target volume and one source volume | |
| US7725438B1 (en) | Method and apparatus for efficiently creating backup files | |
| US8990589B1 (en) | System and method for robust full-drive encryption | |
| JP3251182B2 (en) | Mirror disk control method and mirror disk control method | |
| US9158781B1 (en) | Version mapped incremental backups with version creation condition |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20071116 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081116 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081116 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091116 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091116 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101116 Year of fee payment: 9 |
|
| LAPS | Cancellation because of no payment of annual fees |