JPH08234923A - On-line copying method for duplex storage device - Google Patents

On-line copying method for duplex storage device

Info

Publication number
JPH08234923A
JPH08234923A JP7038384A JP3838495A JPH08234923A JP H08234923 A JPH08234923 A JP H08234923A JP 7038384 A JP7038384 A JP 7038384A JP 3838495 A JP3838495 A JP 3838495A JP H08234923 A JPH08234923 A JP H08234923A
Authority
JP
Japan
Prior art keywords
storage device
copy
area
online
secondary storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7038384A
Other languages
Japanese (ja)
Inventor
Katsuki Uetoko
克樹 上床
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP7038384A priority Critical patent/JPH08234923A/en
Publication of JPH08234923A publication Critical patent/JPH08234923A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To shorten the time required for on-line copying from a normal-side storage device to a recovery-side storage device as to a duplex storage device. CONSTITUTION: When a write request is generated during the on-line copying process which is performed from the normal-side disk drive 20-0 to the recovery- side disk drive 20-1 by an on-line copying mechanism 111 in order for every certain storage areas, a read/write mechanism 112 writes data on only the disk drive 20-0. Further, if its request destination storage area number (1) is less than the number (r) of an area that a copy end area number holding part 117 indicates, the bit in a bit map 114 which corresponds to the area number (1) is set to '0' indicating incompletion of copying and after the on-line copying ends, the on-line copying mechanism 111 performs copying process from the disk drive 20-0 to the disk drive 20-1 as to the area corresponding to the bit of '0' in the bit map 114.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、二重化記憶装置を備え
たコンピュータシステムに好適な、二重化記憶装置のオ
ンラインコピー方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an on-line copy method for a duplicated storage device suitable for a computer system having a duplicated storage device.

【0002】[0002]

【従来の技術】コンピュータシステムの二次憶装置は、
耐障害性、高信頼性等のために二重化されていることが
多い。この二次記憶装置が二重化された記憶装置、即ち
二重化記憶装置においては、2つの二次記憶装置の内容
が常に同一となるように、書き込みは両記憶装置に対し
て行われる。もし、一方の二次記憶装置に障害等の異常
が発生した場合には、その記憶装置の内容を復旧(復
元)するために、正常な記憶装置の内容を復旧すべき記
憶装置にオンライン状態でコピーするオンラインコピー
が行われる。
2. Description of the Related Art A secondary storage device of a computer system is
It is often duplicated for fault tolerance and high reliability. In a storage device in which this secondary storage device is duplicated, that is, in a duplicated storage device, writing is performed to both storage devices so that the contents of the two secondary storage devices are always the same. If an error such as a failure occurs in one of the secondary storage devices, in order to restore (restore) the contents of that storage device, the contents of the normal storage device must be online in the storage device to be restored. Online copy is made.

【0003】さて、二重化記憶装置を備えたコンピュー
タシステムでは、オンラインコピー中も、二重化記憶装
置に対するリード/ライト要求がアプリケーションプロ
グラム等の実行に伴って発生する。
Now, in a computer system equipped with a dual storage device, a read / write request to the dual storage device is generated with the execution of an application program or the like even during online copying.

【0004】そこで従来は、コピー中に二重化記憶装置
に対するライト要求が発生した場合には、どこまでコピ
ーを終了したかを判断し、コピーが終了した領域に対す
るライト要求であったならば、コピー元の記憶装置(正
常側記憶装置)だけでなくコピー先の記憶装置(復旧側
記憶装置)にも書き込みを行うようしていた。また、コ
ピーが終了していない領域に対するライト要求であった
ならば、正常側記憶装置に対してのみ書き込みを行い、
復旧側記憶装置に対しては書き込みを行わないようにし
ていた。この書き込み動作の間、コピー作業は中断され
る。また、コピー中に、正常側記憶装置へのリード要求
が発生した場合にも、要求されたリード動作が終了する
まで、コピー作業は中断される。
Therefore, conventionally, when a write request to the duplicated storage device is made during copying, it is determined how far the copy is completed, and if the write request is to the area where the copy is completed, the copy source Writing is performed not only in the storage device (normal storage device) but also in the copy destination storage device (recovery storage device). If the write request is for an area that has not been copied, only the normal storage device is written,
Writing was not performed to the storage device on the recovery side. During this writing operation, the copying operation is suspended. Further, even when a read request is issued to the normal storage device during copying, the copy operation is suspended until the requested read operation is completed.

【0005】[0005]

【発明が解決しようとする課題】上記したように従来の
コンピュータシステムにおける二重化記憶装置のオンラ
インコピー処理では、二重化されている二次記憶装置に
対するライト要求が発生した場合、どこまでコピーを終
了したかを、その都度判断し、終了した領域に対しては
正常側と復旧側の両記憶装置に対して書き込みを行って
いた。このため、例えば二次記憶装置がディスク装置の
場合には、コピーアクセスと書き込みアクセスとによ
り、ディスクのヘッド移動のオーバヘッドが大きくなっ
てしまうという問題があった。
As described above, in the online copy processing of the duplicated storage device in the conventional computer system, when a write request is made to the duplicated secondary storage device, the completion of the copy is determined. The judgment was made each time, and the completed area was written to both the normal side storage device and the recovery side storage device. Therefore, for example, when the secondary storage device is a disk device, there is a problem that the head movement overhead of the disk increases due to the copy access and the write access.

【0006】また、コピー中の領域と書き込み領域とが
重なった場合、排他処理を行わなければならず、データ
をバッファリングしての大量書き込みができないという
問題もあった。
Further, when the area being copied and the writing area overlap, exclusive processing must be performed, and there is a problem that a large amount of data cannot be written by buffering the data.

【0007】更に、従来のオンラインコピー処理では、
コピー中に、正常側記憶装置に対するリードまたはライ
ト要求が発生した場合には、要求されたリードまたはラ
イト動作が終了するまで、復旧のためのコピー作業が待
たされるという問題もあった。
Further, in the conventional online copy processing,
When a read or write request is issued to the normal-side storage device during copying, there is also a problem that the copy operation for recovery is made to wait until the requested read or write operation is completed.

【0008】本発明は上記事情を考慮してなされたもの
でその目的は、正常側記憶装置から復旧側記憶装置への
オンラインコピーに要する時間が短縮できる二重化記憶
装置のオンラインコピー方法を提供することにある。
The present invention has been made in view of the above circumstances, and an object thereof is to provide an online copy method for a duplicated storage device which can reduce the time required for online copy from a normal storage device to a recovery storage device. It is in.

【0009】[0009]

【課題を解決するための手段及び作用】本発明の第1の
観点に係る二重化記憶装置のオンラインコピー方法は、
二重化記憶装置の正常側の二次記憶装置から復旧側の二
次記憶装置へのオンラインコピーを上記二次記憶装置の
一定の記憶領域毎に順に行い、オンラインコピー中にラ
イト要求が発生した場合には、上記正常側二次記憶装置
に対してのみ要求されたデータの書き込みを行うと共
に、その要求先記憶領域をコピー対象領域として記憶し
ておき、一連のオンラインコピーの終了後に、上記記憶
しておいた全ての要求先記憶領域について、上記正常側
の二次記憶装置から復旧側記憶装置へのコピーを再び行
うことを特徴とするものである。
According to a first aspect of the present invention, there is provided an on-line copy method for a dual storage device,
If a write request is issued during online copy, the online copy from the normal secondary storage device of the duplicated storage device to the recovery secondary storage device is performed sequentially for each fixed storage area of the secondary storage device. Writes the requested data only to the normal side secondary storage device, stores the requested storage area as a copy target area, and stores it after the completion of a series of online copying. With respect to all the requested storage areas that have been set, copying from the secondary storage device on the normal side to the storage device on the recovery side is performed again.

【0010】なお、コピー対象領域、即ちデータ書き込
みにより内容が変更された記憶領域を記憶する方法とし
ては、二次記憶装置の一定の記憶領域毎にオンラインコ
ピー中に内容が変更されたか否かを記憶するための変更
有無情報領域(例えばビット)が割り当てられた変更有
無記憶手段(例えばビットマップ)を用意して、ライト
要求が発生した場合に、その要求先記憶領域に対応する
変更有無記憶手段内の変更有無情報領域に変更有りを示
す情報を設定する方法が適用可能である。
As a method of storing the copy target area, that is, the storage area whose content has been changed by writing data, it is determined whether the content has been changed during online copying for each fixed storage area of the secondary storage device. A change presence / absence storage unit (for example, a bit map) to which a change presence / absence information region (for example, bit) for storage is provided, and when a write request is made, a change presence / absence storage unit corresponding to the request destination storage region A method of setting information indicating that there is a change in the change presence / absence information area in is applicable.

【0011】上記第1の観点に係る二重化記憶装置のオ
ンラインコピー方法においては、シーケンシャルなオン
ラインコピー中にライト要求が発生した場合、正常側二
次記憶装置に対してのみ要求されたデータの書き込みが
行われ、復旧側の二次記憶装置に対するデータ書き込み
は行われない。その代わり、ライト要求先記憶領域がコ
ピー対象領域として記憶される。そして、一連のオンラ
インコピーの終了後に、オンラインコピー中に記憶して
おいた全てのコピー対象領域、即ちオンラインコピー中
のライト要求に従うデータ書き込みにより内容が変更さ
れた記憶領域について、正常側の二次記憶装置から復旧
側の二次記憶装置へのコピーが再度行われ、復旧側二次
記憶装置が正常状態に戻される。
In the online copy method for a duplicated storage device according to the first aspect, when a write request occurs during a sequential online copy, the requested data is written only to the normal side secondary storage device. Data is not written to the secondary storage device on the recovery side. Instead, the write request destination storage area is stored as the copy target area. After the completion of a series of online copy, all the copy target areas stored during the online copy, that is, the storage areas whose contents are changed by the data writing according to the write request during the online copy, are Copying from the storage device to the recovery-side secondary storage device is performed again, and the recovery-side secondary storage device is returned to the normal state.

【0012】このように、上記第1の観点に係る二重化
記憶装置のオンラインコピー方法においては、オンライ
ンコピー中にライト要求が発生しても、コピー済みの記
憶領域へのライト要求であるか否かのチェックが不要と
なる他、復旧側の二次記憶装置へのデータ書き込みが行
われないことから、当該記憶装置にディスク装置を適用
した場合のディスクのヘッド移動のオーバヘッドを減少
でき、従来方法より高速にオンラインコピーを行うこと
ができる。
As described above, in the online copy method for a duplicated storage device according to the first aspect, even if a write request is issued during online copy, whether or not the write request is for a copied storage area. Check is unnecessary, and since data is not written to the secondary storage device on the recovery side, it is possible to reduce the overhead of moving the head of the disk when a disk device is applied to the storage device. High-speed online copying is possible.

【0013】次に、本発明の第2の観点に係る二重化記
憶装置のオンラインコピー方法は、二重化記憶装置の正
常側の二次記憶装置から復旧側の二次記憶装置へのオン
ラインコピーを二次記憶装置の一定の記憶領域毎に順に
行い、オンラインコピー中にライト要求が発生した場合
には、正常側二次記憶装置に対してのみ要求されたデー
タの書き込みを行うと共に、その要求先記憶領域がオン
ラインコピーの終了領域であるならば、その要求先領域
をコピー対象領域として記憶しておき、一連のオンライ
ンコピーの終了後に、上記記憶しておいた全てのコピー
対象領域について、正常側の二次記憶装置から復旧側の
二次記憶装置へのコピーを再び行うことを特徴とするも
のである。
A second aspect of the present invention is an online copy method for a duplicated storage device, wherein a secondary copy is performed from a secondary storage device on the normal side of the duplicated storage device to a secondary storage device on the restoration side. When a write request occurs during online copying, the requested data is written only to the normal secondary storage device, and the requested storage area Is the end area of the online copy, the request destination area is stored as the copy target area, and after completion of the series of online copies, all of the stored copy target areas are stored on the normal side. It is characterized in that copying from the secondary storage device to the secondary storage device on the restoration side is performed again.

【0014】なお、コピー対象領域を記憶する方法、即
ちデータ書き込みにより内容が変更された記憶領域のう
ち、その書き込み時以前にオンラインコピーが終了して
いる記憶領域を記憶する方法としては、二次記憶装置の
一定の記憶領域毎にコピー済みであるかコピー未終了で
あるかを記憶するためのコピー終了/未終了情報領域
(例えばビット)が割り当てられたコピー終了/未終了
記憶手段(例えばビットマップ)と、オンラインコピー
がいずれの記憶領域まで終了したかを記憶するためのコ
ピー終了領域記憶手段とを用意して、上記一定の記憶領
域単位のシーケンシャルなオンラインコピー中は、その
都度、そのコピー済み記憶領域に対応するコピー終了/
未終了記憶手段内のコピー終了/未終了情報領域にコピ
ー済みを示す情報を設定すると共に、コピー終了領域記
憶手段の内容を更新し、オンラインコピー中にライト要
求が発生した場合には、その要求先記憶領域がコピー終
了領域であることがコピー終了領域記憶手段の内容によ
り判別されるときに限り、その要求先記憶領域に対応す
るコピー終了/未終了記憶手段内のコピー終了/未終了
情報領域にコピー未終了(コピー対象領域であること)
を示す情報を設定する方法が適用可能である。
As a method of storing the copy target area, that is, a method of storing the storage area of which the contents have been changed by writing the data, in which the online copy is completed before the writing, is a secondary method. Copy end / unfinished storage means (for example, bit) to which a copy end / unfinished information area (for example, bit) for storing whether copy is completed or copy is not completed for each fixed storage area of the storage device Map) and a copy end area storage means for storing up to which storage area the online copy has ended, and during each sequential online copy in the above-mentioned fixed storage area, the copy is made. End copy / corresponding to the completed storage area
Information indicating that copying has been completed is set in the copy end / unfinished information area in the unfinished storage means, the contents of the copy finished area storage means are updated, and if a write request occurs during online copying, that request is made. Only when it is determined by the contents of the copy end area storage means that the destination storage area is the copy end area, the copy end / unfinished information area in the copy end / unfinished storage means corresponding to the request destination storage area Copy not completed (being the copy target area)
The method of setting the information indicating is applicable.

【0015】上記第2の観点に係る二重化記憶装置のオ
ンラインコピー方法においては、前記第1の観点に係る
二重化記憶装置のオンラインコピー方法とは異なって、
オンラインコピー中にライト要求が発生した場合に、オ
ンラインコピーが終了している記憶領域へのライト要求
であるか否かのチェックが必要となるものの、一連のオ
ンラインコピー終了後の再コピーの対象となる記憶領域
は、ライト要求に伴うデータ書き込みが行われた記憶領
域のうち、コピーが終了しているとしてデータ書き込み
が行われた記憶領域だけであり、再コピーに要する時間
を減少することができる。また、オンラインコピー中に
ライト要求が発生しても、復旧側の二次記憶装置へのデ
ータ書き込みが行われないことから、二重化記憶装置に
ディスク装置を適用した場合のディスクのヘッド移動の
オーバヘッドを減少できる点は、前記第1の観点に係る
二重化記憶装置のオンラインコピー方法と同様である。
The online copy method for a duplicate storage device according to the second aspect differs from the online copy method for a duplicate storage device according to the first aspect in that
When a write request is issued during online copy, it is necessary to check whether the write request is for a storage area for which online copy has been completed, but after a series of online copy ends The storage area is a storage area in which data writing is performed in response to a write request, and only the storage area in which data writing has been performed because copying has been completed can reduce the time required for recopying. . In addition, even if a write request occurs during online copy, data is not written to the secondary storage device on the recovery side, so the overhead of moving the head of the disk when the disk device is applied to the redundant storage device is eliminated. The point that it can be reduced is the same as the online copy method of the duplicated storage device according to the first aspect.

【0016】以上の効果は、オンラインコピー中にライ
ト要求があまり発生しなかった場合、また二重化記憶装
置にディスク装置を適用した場合であれば、ライト要求
先がある特定の部分に集中した場合に、特に顕著とな
る。
The above effect is obtained when write requests are not frequently generated during online copying, and when a disk device is applied to the duplicate storage device, when write request destinations are concentrated in a specific part. , Especially noticeable.

【0017】次に、本発明の第3の観点に係る二重化記
憶装置のオンラインコピー方法は、二重化記憶装置の正
常側の二次記憶装置から復旧側の二次記憶装置へのオン
ラインコピーを一定の記憶領域毎にコピー済み領域を除
いて順に行い、オンラインコピー中にライト要求が発生
した場合には、正常側二次記憶装置及び復旧側二次記憶
装置の両方に対してデータ書き込みを行って、その要求
先領域をコピー済み領域として記憶し、オンラインコピ
ー中にリード要求が発生した場合には、正常側二次記憶
装置からのデータ読み込みを行うと共に、そのデータを
復旧側二次記憶装置にコピーして、その要求先領域をコ
ピー済み領域として記憶することを特徴とするものであ
る。なお、コピー済み領域を記憶する方法としては、二
次記憶装置の一定の記憶領域毎にコピー済み領域である
かコピー未終了領域であるかを記憶するためのコピー終
了/未終了情報領域(例えばビット)が割り当てられた
コピー終了/未終了記憶手段(例えばビットマップ)を
用意して、上記一定の記憶領域単位のシーケンシャルな
オンラインコピー中は、その都度、そのコピー済み記憶
領域に対応するコピー終了/未終了記憶手段内のコピー
終了/未終了情報領域にコピー済みを示す情報を設定
し、オンラインコピー中のライト要求に伴うデータ書き
込み時、及びリード要求に伴うリードデータの復旧側二
次記憶装置への書き込み時には、その要求先領域に対応
するコピー終了/未終了記憶手段内のコピー終了/未終
了情報領域にコピー済みを示す情報を設定する方法が適
用可能である。
Next, an online copy method for a duplicated storage device according to a third aspect of the present invention performs a constant online copy from the secondary storage device on the normal side of the duplicated storage device to the secondary storage device on the restoration side. It is performed for each storage area in sequence except the copied area, and when a write request occurs during online copying, data is written to both the normal secondary storage device and the recovery secondary storage device. The requested area is stored as the copied area, and when a read request occurs during online copying, the data is read from the normal secondary storage device and the data is copied to the recovery secondary storage device. Then, the requested area is stored as a copied area. As a method of storing the copied area, a copy end / unfinished information area (for example, a copy completed / unfinished information area for storing whether the area is a copied area or a copy unfinished area for each fixed storage area of the secondary storage device A copy end / unfinished storage means (for example, a bit map) to which bits are assigned is prepared, and during each of the above-described sequential online copy in the fixed storage area, the copy end corresponding to the copied storage area is completed. / Secondary storage device on the side of copy end / unfinished information in the unfinished storage means, in which information indicating that copying has been completed is set, and when data is written in response to a write request during online copying, and when read data is restored in response to a read request When writing to, the copy end / unfinished information area in the copy end / unfinished storage means corresponding to the requested area has already been copied How to set the information indicating which are applicable.

【0018】上記第3の観点に係る二重化記憶装置のオ
ンラインコピー方法においては、シーケンシャルなオン
ラインコピーがコピー済み領域を除いて行われる他、オ
ンラインコピー中にライト要求が発生した場合には、正
常側二次記憶装置及び復旧側二次記憶装置の両方に対し
てデータ書き込みが行われて、その要求先領域がコピー
済み領域とされると共に、リード要求が発生した場合に
は、正常側二次記憶装置から読み出されるデータを利用
して、そのデータが復旧側二次記憶装置にコピーされ
て、その要求先領域がコピー済み領域とされる、このた
め、オンラインコピー中にライト要求またはリード要求
が多発した場合、一定記憶領域単位のオンラインコピー
回数が減少して、正常側二次記憶装置からのデータ読み
込みのための待ち時間を短縮することができ、従来方法
より高速にオンラインコピーを行うことができる。
In the online copy method for the duplicated storage device according to the third aspect, the sequential online copy is performed excluding the copied area, and when a write request is issued during the online copy, the normal side is executed. When data is written to both the secondary storage device and the recovery-side secondary storage device, the requested area becomes the copied area, and when a read request occurs, the normal secondary storage Using the data read from the device, the data is copied to the recovery-side secondary storage device, and the requested area becomes the copied area.Therefore, many write requests or read requests occur during online copying. If the number of online copies in a fixed storage area decreases, waiting for data to be read from the secondary storage device on the normal side It can be shortened, and it is possible to perform an online copy faster than conventional methods.

【0019】なお、オンラインコピー中にリード要求が
発生した場合に、正常側二次記憶装置からのリードデー
タを復旧側二次記憶装置に無条件でコピーするのではな
く、要求先領域がコピー未終了領域の場合だけリードデ
ータをコピーする構成も可能である。この場合、更にオ
ンラインコピーの高速化を図ることができる。
When a read request occurs during online copying, the read data from the normal side secondary storage device is not unconditionally copied to the restoration side secondary storage device, but the requested area is not copied. It is also possible to copy the read data only in the case of the end area. In this case, the speed of online copying can be further increased.

【0020】[0020]

【実施例】以下、本発明の実施例につき図面を参照して
説明する。 [第1の実施例]図1は本発明の第1の実施例に係る二
重化記憶装置を備えたコンピュータシステムの構成を示
すブロック図である。
Embodiments of the present invention will be described below with reference to the drawings. [First Embodiment] FIG. 1 is a block diagram showing the configuration of a computer system having a dual storage device according to a first embodiment of the present invention.

【0021】図1において、1はホスト装置、2はホス
ト装置1からアクセス可能な二重化記憶装置である。二
重化記憶装置2は、二重化された二次記憶装置、例えば
ディスク装置20-0,20-1から構成されている。
In FIG. 1, reference numeral 1 is a host device, and 2 is a dual storage device accessible from the host device 1. The duplicated storage device 2 is constituted by a duplicated secondary storage device, for example, disk devices 20-0 and 20-1.

【0022】ホスト装置1は、各種ハードウェア資源及
び各種ソフトウェア資源を管理する(基本ソフトウェア
により実現される)オペレーティングシステム(以下、
OSと称する)10と、OS10からの要求を受けて二
重化記憶装置2をアクセスするドライバ機構(ディスク
ドライバ)11とを有している。
The host system 1 manages various hardware resources and various software resources (implemented by basic software) operating system (hereinafter referred to as "operating system").
The OS 10) and a driver mechanism (disk driver) 11 for accessing the redundant storage device 2 in response to a request from the OS 10.

【0023】ドライバ機構11は、二重化記憶装置2に
おけるディスク装置20-0,20-1の一方から他方への
オンラインコピーを行うオンラインコピー機構111
と、二重化記憶装置2に対するリード/ライトを行うリ
ード/ライト機構112と、メモリ113とを有してい
る。
The driver mechanism 11 is an online copy mechanism 111 for performing an online copy from one of the disk devices 20-0 and 20-1 in the redundant storage device 2 to the other.
And a memory 113, and a read / write mechanism 112 for reading / writing the redundant storage device 2.

【0024】メモリ113には、ディスク装置20-0,
20-1の一定の記憶領域、例えばセクタ毎にビットが割
り当てられたビットマップ114が確保されている。こ
のビットマップ114の各ビットは、対応する記憶領域
についてディスク装置20-0,20-1の一方から他方へ
のコピーが済んでいるか否か(更には、一旦オンライン
コピーが終了した後に、OS10からのライト要求に伴
うデータ書き込みにより内容が変更されているか否か)
を示すのに用いられる。
The memory 113 includes disk devices 20-0,
A fixed storage area of 20-1, for example, a bitmap 114 in which bits are assigned to each sector is secured. Each bit of the bitmap 114 indicates whether or not the corresponding storage area has been copied from one of the disk devices 20-0 and 20-1 to the other (in addition, after the online copy is finished, the OS 10 determines Whether the contents have been changed by writing data in response to the write request)
Used to indicate

【0025】メモリ113にはまた、現在コピーされて
いる記憶領域(セクタ)の番号(コピー中領域番号)p
を保持するコピー中領域番号保持部115、OS10か
ら要求された二重化記憶装置2に対するアクセス領域の
番号qを保持するアクセス領域番号保持部116、及び
(オンラインコピーがいずれの記憶領域まで終了したか
を示すために)オンラインコピー終了領域の番号rを保
持するコピー終了領域番号保持部117を有している。
In the memory 113, the number of the storage area (sector) currently copied (area number during copying) p
The in-copy area number holding unit 115 that holds the access area number holding unit 115, the access area number holding unit 116 that holds the access area number q for the duplicated storage device 2 requested by the OS 10, and (to which storage area the online copy has ended For the sake of illustration, it has a copy end area number holding unit 117 which holds the number r of the online copy end area.

【0026】次に、図1のシステムにおけるドライバ機
構11を中心とする動作を、(1)オンラインコピー
中、(2)コピー終了後のそれぞれについて、順に説明
する。 (1)オンラインコピー中 1-1)オンラインコピー処理 まず、オンラインコピー処理自体について、図2のフロ
ーチャートを参照して説明する。
Next, the operation centering on the driver mechanism 11 in the system of FIG. 1 will be described in sequence for (1) during online copying and (2) after completion of copying. (1) During Online Copy 1-1) Online Copy Process First, the online copy process itself will be described with reference to the flowchart of FIG.

【0027】ドライバ機構11内のオンラインコピー機
構111は、OS10からオンラインコピーが要求され
ると、二重化記憶装置2における正常側ディスク装置か
ら復旧側ディスク装置へのオンラインコピーを次のよう
に実行する。なお、正常側ディスク装置はディスク装置
20-0であり、復旧側ディスク装置はディスク装置20
-1であるものとし、またビットマップ111の各ビット
は全てコピー未終了を示す“1”に初期化されるものと
する。
When the OS 10 requests the online copy, the online copy mechanism 111 in the driver mechanism 11 executes the online copy from the normal side disk device to the recovery side disk device in the redundant storage device 2 as follows. The normal disk device is the disk device 20-0, and the recovery disk device is the disk device 20-0.
-1, and each bit of the bitmap 111 is initialized to "1" indicating that copying is not completed.

【0028】オンラインコピー機構111はまず、コピ
ー中領域番号pを先頭領域(1番目の領域)を示す
「1」に初期設定する(ステップS1)。次にオンライ
ンコピー機構111は、正常側ディスク装置20-0の領
域番号pで示される領域の内容を、復旧側ディスク装置
20-1の同じ領域番号pで示される領域にコピーし(ス
テップS2)、しかる後にビットマップ114の領域番
号pに対応するビット(bitmap[p])を該当領
域のコピー済みを示す“0”に設定する(ステップS
3)。
The online copy mechanism 111 first initializes the copying area number p to "1" indicating the leading area (first area) (step S1). Next, the online copy mechanism 111 copies the contents of the area indicated by the area number p of the normal disk device 20-0 to the area indicated by the same area number p of the recovery disk device 20-1 (step S2). Then, the bit (bitmap [p]) corresponding to the area number p of the bitmap 114 is set to "0" indicating that the area has been copied (step S).
3).

【0029】次にオンラインコピー機構111は、コピ
ー中領域番号pがディスク装置20-0,20-1の最終領
域を示す領域番号sに一致するか否か(即ち最終領域ま
でのコピーが終了したか否か)を調べる(ステップS
4)。
Next, the online copy mechanism 111 determines whether or not the copying area number p matches the area number s indicating the final area of the disk devices 20-0 and 20-1 (that is, copying to the final area is completed). (Step S)
4).

【0030】もし、コピー中領域番号pが最終領域番号
sに一致していないならば、オンラインコピー機構11
1はオンラインコピーを継続するために、コピー終了領
域番号rとしてコピー中領域番号pを設定すると共に
(ステップS5)、コピー中領域番号pを次の領域を指
すように+1した後(ステップS6)、ステップS2に
戻る。これにより、次の領域について、正常側ディスク
装置20-0から復旧側ディスク装置20-1へのコピーが
行われる。
If the in-copy area number p does not match the final area number s, the online copy mechanism 11
In order to continue the online copy, 1 sets the copying area number p as the copy ending area number r (step S5), and after incrementing the copying area number p by 1 to point to the next area (step S6). , And returns to step S2. As a result, the next area is copied from the normal disk device 20-0 to the recovery disk device 20-1.

【0031】以上のようにして、図3(a),(b),
(c)に示すように、領域r(領域番号rの領域)まで
コピーが終了した状態で、アプリケーションプログラム
の実行等に伴い、OS10からドライバ機構11に対し
て二重化記憶装置2の領域q(アクセス領域番号qの領
域)をアクセス先とするリード要求またはライト要求が
与えられたものとする。この場合の動作を、1-2)オンラ
インコピー中におけるリード要求時動作と、1-3)オンラ
インコピー中におけるライト要求時動作に分けて、図4
のフローチャートを参照して説明する。
As described above, FIGS. 3 (a), 3 (b),
As shown in (c), in the state where the copy is completed up to the area r (the area of the area number r), the area q (access of the redundant storage device 2 is accessed from the OS 10 to the driver mechanism 11 as the application program is executed. It is assumed that a read request or a write request having an area number q) as an access destination is given. The operation in this case is divided into 1-2) a read request operation during online copy and 1-3) a write request operation during online copy.
This will be described with reference to the flowchart in FIG.

【0032】1-2)オンラインコピー中におけるリード要
求時動作 ドライバ機構11内のリード/ライト機構112は、
(オンラインコピー機構111による)オンラインコピ
ー中にOS10からリード/ライト要求があると、リー
ドまたはライトいずれの要求であるかを判定する(ステ
ップS11)。
1-2) Read request operation during online copy The read / write mechanism 112 in the driver mechanism 11 is
If there is a read / write request from the OS 10 during online copy (by the online copy mechanism 111), it is determined whether the request is a read or a write (step S11).

【0033】もし、リード要求の場合には、リード/ラ
イト機構112は、正常側ディスク装置20-0を対象と
して、要求された領域qからのデータ読み込みを行う
(ステップS12)。この場合、ビットマップ114に
対する操作は行われない。
In the case of a read request, the read / write mechanism 112 reads data from the requested area q for the normal disk device 20-0 (step S12). In this case, no operation is performed on the bitmap 114.

【0034】1-3)オンラインコピー中におけるライト要
求時動作に 一方、ライト要求の場合には、リード/ライト機構11
2は、コピー終了領域番号rがアクセス領域番号q以上
であるか否か(即ち、ライトすべき領域がコピー終了領
域であるか否か)を調べる(ステップS13)。
1-3) Operation during write request during online copy On the other hand, in the case of write request, read / write mechanism 11
2 checks whether or not the copy end area number r is greater than or equal to the access area number q (that is, whether or not the area to be written is the copy end area) (step S13).

【0035】もし、r≧qであるならば、リード/ライ
ト機構112はコピー終了領域へのライト要求であると
判断し、(当該ライト要求に従う正常側ディスク装置2
0-0へのデータ書き込みの後は、内容変更に伴う再度の
コピー処理が必要であるとして)ビットマップ114の
対応するビットbitmap[q]をコピー未終了を示
す“1”に設定した後(ステップS14)、正常側ディ
スク装置20-0だけを対象として、要求されたアクセス
領域番号qの示す領域にデータを書き込んで(ステップ
S15)、処理を終了する。
If r ≧ q, the read / write mechanism 112 determines that it is a write request to the copy end area, and determines (the normal disk unit 2 that complies with the write request).
After writing the data to 0-0, it is necessary to perform the copy process again due to the content change. After setting the corresponding bit bitmap [q] of the bitmap 114 to “1” indicating that the copy is not completed ( In step S14), the data is written in the area indicated by the requested access area number q only for the normal disk device 20-0 (step S15), and the processing is ended.

【0036】これに対し、r<qであるならば、リード
/ライト機構112はコピー未終了領域へのライト要求
であると判断し、r≧qの場合のようなビットマップ1
14に対する操作は行わずに、単に正常側ディスク装置
20-0だけを対象として、要求されたアクセス領域番号
qの示す領域にデータを書き込んで(ステップS1
6)、処理を終了する。
On the other hand, if r <q, the read / write mechanism 112 determines that it is a write request to the unfinished copy area, and bitmap 1 as in the case of r ≧ q.
The data is written in the area indicated by the requested access area number q only for the normal disk device 20-0 without performing the operation for 14 (step S1).
6), end the process.

【0037】以上の処理により、図3に示すように領域
rまでコピーが終了した状態で、コピー済み領域q1
(q=q1 ,r≧q1 )をアクセス先とするライト要求
が与えられた場合には、ビットマップ114の状態は、
図3(c)から図5に示す状態に変化する。また、コピ
ー未終了領域q2 (q=q2 ,r<q2 )をアクセス先
とするライト要求が与えられた場合には、ビットマップ
114の状態は変化しない。
As a result of the above processing, as shown in FIG. 3, in the state in which copying has been completed up to the area r, the copied area q1
When a write request with (q = q1, r ≧ q1) as an access destination is given, the state of the bitmap 114 is
The state shown in FIG. 3C changes to the state shown in FIG. When a write request is made with the copy-unfinished area q2 (q = q2, r <q2) as the access destination, the state of the bitmap 114 does not change.

【0038】オンラインコピー機構111は、以上のリ
ード/ライト機構112の処理と並行して、図2のフロ
ーチャートに示した手順でオンラインコピーを続ける。 (2)コピー終了後 2-1)復旧処理(コピー処理) 次に、図2のフローチャートに従うオンラインコピー終
了後の復旧処理について、図6のフローチャートを参照
して説明する。
The online copy mechanism 111 continues the online copy according to the procedure shown in the flowchart of FIG. 2 in parallel with the processing of the read / write mechanism 112 described above. (2) After completion of copy 2-1) Recovery process (copy process) Next, the recovery process after completion of online copy according to the flowchart of FIG. 2 will be described with reference to the flowchart of FIG.

【0039】まず、オンラインコピー終了後のビットマ
ップ114の状態が、図7のようになっているものとす
る。ドライバ機構11内のオンラインコピー機構111
は、図2のフローチャートに従うオンラインコピーを終
了すると、ビットマップ114を参照して、値が“1”
のビット位置に対応する正常側ディスク装置20-0の領
域の内容、即ちオンラインコピー中にデータ書き込みが
行われた結果、コピー終了領域でありながらコピー未終
了領域(内容変更有り領域)とされた正常側ディスク装
置20-0の領域の内容を、復旧側ディスク装置20-1に
コピーする復旧処理を行う。この復旧処理(コピー終了
後の復旧処理)の具体的手順は次のとおりである。
First, it is assumed that the state of the bitmap 114 after the completion of the online copy is as shown in FIG. Online copy mechanism 111 in the driver mechanism 11
When the online copy according to the flowchart of FIG. 2 is completed, the value is “1” with reference to the bitmap 114.
The content of the area of the normal side disk device 20-0 corresponding to the bit position of, that is, as a result of data writing during online copy, it is a copy unfinished area (content changed area) although it is a copy end area. A recovery process of copying the contents of the area of the normal disk device 20-0 to the recovery disk device 20-1 is performed. The specific procedure of this restoration processing (restoration processing after completion of copying) is as follows.

【0040】オンラインコピー機構111はまず、コピ
ー中領域番号pを先頭領域を示す「1」に初期設定する
(ステップS21)。次にオンラインコピー機構111
は、ビットマップ114の領域pに対応するビットbi
tmap[p]を参照して、“1”であるか否かを調べ
る(ステップS22)。
The online copy mechanism 111 first initializes the copying area number p to "1" indicating the head area (step S21). Next, online copy mechanism 111
Is the bit bi corresponding to the region p of the bitmap 114.
By referring to tmap [p], it is checked whether or not it is "1" (step S22).

【0041】もし、bitmap[p]=1の場合に
は、正常側ディスク装置20-0の領域番号pで示される
領域の内容を、復旧側ディスク装置20-1の同じ領域番
号pで示される領域にコピーし(ステップS23)、し
かる後にビットマップ114中の上記bitmap
[p]をコピー終了を示す“0”に設定する(ステップ
S24)。
If bitmap [p] = 1, the contents of the area indicated by the area number p of the normal side disk unit 20-0 are indicated by the same area number p of the restoration side disk unit 20-1. It is copied to the area (step S23), and then the bitmap in the bitmap 114 is copied.
[P] is set to "0" indicating the end of copying (step S24).

【0042】オンラインコピー機構111は、bitm
ap[p]=0の場合には直ちに、bitmap[p]
=1の場合には上記ステップS23,S24を実行した
後に、コピー中領域番号pがディスク装置20-0,20
-1の最終領域を示す領域番号sに一致するか否かを調べ
る(ステップS25)。
The online copy mechanism 111 is a bitm
If ap [p] = 0, then immediately bitmap [p]
When = 1, the above-mentioned steps S23 and S24 are executed, and then the copy-in-progress area number p is set to the disk device 20-0,
It is checked whether or not it matches the area number s indicating the final area of -1 (step S25).

【0043】もし、コピー中領域番号pが最終領域番号
sに一致していないならば、オンラインコピー機構11
1は復旧処理を継続するために、コピー終了領域番号r
としてコピー中領域番号pを設定すると共に(ステップ
S26)、コピー中領域番号pを次の領域を指すように
+1した後(ステップS27)、ステップS22に戻
る。
If the in-copy area number p does not match the final area number s, the online copy mechanism 11
1 is the copy end area number r in order to continue the restoration process.
While setting the copying area number p as (step S26), the copying area number p is incremented by 1 to indicate the next area (step S27), and the process returns to step S22.

【0044】次に、以上の復旧処理中に、OS10から
ドライバ機構11に対して二重化記憶装置2の領域q
(アクセス領域番号qの領域)をアクセス先とするリー
ド要求またはライト要求が与えられたものとする。この
場合の動作を、2-2)復旧処理中におけるリード要求時動
作と、2-3)復旧処理中におけるライト要求時動作に分け
て、図8のフローチャートを参照して説明する。
Next, during the above recovery processing, the area q of the duplicated storage device 2 is transferred from the OS 10 to the driver mechanism 11.
It is assumed that a read request or a write request having the (access area number q) as an access destination is given. The operation in this case will be described with reference to the flowchart of FIG. 8 by dividing into 2-2) a read request operation during recovery processing and 2-3) a write request operation during recovery processing.

【0045】2-2)復旧処理中におけるリード要求時動作 ドライバ機構11内のリード/ライト機構112は、
(オンラインコピー機構111による)復旧処理中にO
S10からリード/ライト要求があると、リードまたは
ライトいずれの要求であるかを判定する(ステップS3
1)。
2-2) Operation at the time of read request during recovery processing The read / write mechanism 112 in the driver mechanism 11 is
O during recovery processing (by online copy mechanism 111)
When there is a read / write request from S10, it is determined whether the request is a read or a write request (step S3).
1).

【0046】もし、リード要求の場合には、リード/ラ
イト機構112は、正常側ディスク装置20-0を対象と
して、要求された領域qからのデータ読み込みを行う
(ステップS32)。この場合、ビットマップ114に
対する操作は行われない。
In the case of a read request, the read / write mechanism 112 reads the data from the requested area q for the normal disk device 20-0 (step S32). In this case, no operation is performed on the bitmap 114.

【0047】2-3)復旧処理中におけるライト要求時動作 一方、ライト要求の場合には、リード/ライト機構11
2は、アクセス領域番号qがコピー中領域番号pに一致
するか否かを調べる(ステップS33)。
2-3) Operation at the time of write request during recovery processing On the other hand, in the case of write request, the read / write mechanism 11
2 checks whether or not the access area number q matches the copying area number p (step S33).

【0048】もし、q=pでないならば、リード/ライ
ト機構112は、コピー終了領域番号rがアクセス領域
番号q以上またはビットマップ114中のbitmap
[q]が“0”であるか否かを調べる(ステップS3
4)。
If q = p is not satisfied, the read / write mechanism 112 determines that the copy end area number r is greater than or equal to the access area number q or the bitmap in the bitmap 114.
It is checked whether [q] is "0" (step S3).
4).

【0049】ここで、r≧qまたはbitmap[q]
=0であるならば、リード/ライト機構112は、正常
側ディスク装置20-0及び復旧側ディスク装置20-1の
両方を対象として、要求されたアクセス領域番号qの示
す領域にデータを書き込んで(ステップS35)、処理
を終了する。
Here, r ≧ q or bitmap [q]
If = 0, the read / write mechanism 112 writes data to the area indicated by the requested access area number q, targeting both the normal disk device 20-0 and the recovery disk device 20-1. (Step S35), the process ends.

【0050】したがって、図7中の領域x1 またはx2
(q=x1 またはq=x2 )をアクセス先とするライト
要求が与えられた場合には、正常側ディスク装置20-0
及び復旧側ディスク装置20-1の両方に対して書き込み
が行われ、ビットマップ114に変更はない。
Therefore, the area x1 or x2 in FIG.
When a write request with (q = x1 or q = x2) as the access destination is given, the normal disk device 20-0
And the recovery side disk device 20-1 are both written, and the bitmap 114 remains unchanged.

【0051】これに対し、(q=pでないときに)r≧
qでもbitmap[q]=0でもないならば、即ちr
<qで且つq≠pで且つbitmap[q]=1である
ならば、リード/ライト機構112は、ビットマップ1
14中のビットbitmap[q]を“0”に変更する
と共に(ステップS36)、正常側ディスク装置20-0
及び復旧側ディスク装置20-1の両方を対象として、要
求されたアクセス領域番号qの示す領域にデータを書き
込んだ後(ステップS35)、処理を終了する。
On the other hand, r ≧ (when q = p is not satisfied)
If neither q nor bitmap [q] = 0, that is, r
If q and q ≠ p and bitmap [q] = 1, the read / write mechanism 112 determines that the bitmap 1
The bit bitmap [q] in 14 is changed to "0" (step S36), and the normal side disk device 20-0
After writing the data in the area indicated by the requested access area number q for both the recovery side disk device 20-1 and the recovery side disk device 20-1 (step S35), the processing is ended.

【0052】したがって、図7中の領域x3 (q=x3
)をアクセス先とするライト要求が与えられた場合に
は、正常側ディスク装置20-0及び復旧側ディスク装置
20-1の両方に対して書き込みが行われ、ビットマップ
114中のbitmap[x3]が“0”に変更され
る。
Therefore, the area x3 (q = x3 in FIG.
) Is given as an access destination, writing is performed to both the normal disk device 20-0 and the recovery disk device 20-1, and bitmap [x3] in the bitmap 114 is written. Is changed to "0".

【0053】また、ステップS31でq=pであると判
定した場合には、リード/ライト機構112は、オンラ
インコピー機構111による領域pに対する復旧処理の
ためのコピー要求よりライト要求が先か否かを判定する
(ステップS37)。
When it is determined in step S31 that q = p, the read / write mechanism 112 determines whether the write request precedes the copy request for the recovery process for the area p by the online copy mechanism 111. Is determined (step S37).

【0054】もし、ライト要求の方が先の場合には、リ
ード/ライト機構112は、bitmap[q]=
“0”であるならば(ステップS38)、正常側ディス
ク装置20-0及び復旧側ディスク装置20-1の両方に対
して領域qへのデータ書き込みを行い(ステップS3
5)、bitmap[q]=“1”であるならば(ステ
ップS38)、正常側ディスク装置20-0のみに対して
領域qへのデータ書き込みを行う(ステップS39)。
If the write request comes first, the read / write mechanism 112 sets bitmap [q] =
If it is "0" (step S38), data is written to the area q for both the normal disk device 20-0 and the recovery disk device 20-1 (step S3).
5) If bitmap [q] = “1” (step S38), data is written to the area q only to the normal disk device 20-0 (step S39).

【0055】一方、コピー要求の方が先の場合には、リ
ード/ライト機構112は、オンラインコピー機構11
1による領域p(=q)を対象とするコピーの終了を待
ち(ステップS40)、しかる後に正常側ディスク装置
20-0及び復旧側ディスク装置20-1の両方に対して領
域qへのデータ書き込みを行う(ステップS35)。
On the other hand, when the copy request comes first, the read / write mechanism 112 determines that the online copy mechanism 11
Waiting for the end of the copy targeting the area p (= q) by 1 (step S40), and then writing the data in the area q to both the normal disk device 20-0 and the recovery disk device 20-1. Is performed (step S35).

【0056】以上に述べた第1の実施例では、ビットマ
ップ114の各ビットを、対応する記憶領域(セクタ)
について正常側ディスク装置20-0から復旧側ディスク
装置20-1へのコピーが済んでいるか否か、更には一旦
オンラインコピーが実行された領域に対応するビットに
ついては、内容が変更されているためにコピー未終了扱
いとして再度のコピーが必要か否かを示すのに用いられ
るものとして説明したが、単にライト要求に伴う正常側
ディスク装置20-0へのデータ書き込みにより対応する
記憶領域の内容が変更されたか否か、したがって再度の
コピーが必要か否かを示すだけに用いることも可能であ
る。この場合、オンラインコピー終了前にライト要求に
伴ってデータ書き込みが行われ、そのデータ書き込み以
後にオンラインコピーが行われる領域についても、一連
のオンラインコピー終了後に再度のコピーが行われると
いう無駄はあるものの、ライト要求に伴う正常側ディス
ク装置20-0へのデータ書き込みに際し、前記実施例の
ように、その書き込み先(要求先)領域qがコピー済み
であるか否かをチェックする必要はなく、その領域qに
対応するビットマップ114内のビット(bitmap
[q])を変更有り(再度のコピーが必要であること)
を示す状態に設定すればよい。そして、オンラインコピ
ー終了後は、ビットマップ114内で変更有りを示す状
態のビットに対応する記憶領域(セクタ)について、正
常側ディスク装置20-0から復旧側ディスク装置20-1
への再度のコピーを行えばよい。 [第2の実施例]次に、本発明の第2の実施例に係る二
重化記憶装置を備えたコンピュータシステムについて説
明する。なお、本実施例におけるコンピュータシステム
の基本構成は前記第1の実施例で参照した図1と同様で
あるため、本実施例においても図1を援用する。但し、
ドライバ機構11内のオンラインコピー機構111及び
リード/ライト機構112における処理内容は、前記第
1の実施例と異なる。
In the first embodiment described above, each bit of the bitmap 114 is assigned to the corresponding storage area (sector).
Regarding whether or not the copy from the normal disk device 20-0 to the recovery disk device 20-1 has been completed, and the content of the bit corresponding to the area where the online copy has been executed has been changed However, the contents of the corresponding storage area are simply written by the data write to the normal side disk device 20-0 in response to the write request. It can also be used only to indicate whether it has been modified, and therefore whether or not another copy is needed. In this case, although there is a waste of data being written in accordance with the write request before the end of the online copy, and for the area where the online copy is performed after the data write, the copy is performed again after the series of online copy ends. When writing data to the normal disk device 20-0 in response to a write request, it is not necessary to check whether or not the write destination (request destination) area q has been copied as in the above embodiment. Bits (bitmap) in the bitmap 114 corresponding to the region q
[Q]) has been changed (requires copying again)
May be set to a state indicating. Then, after the online copy is completed, the storage area (sector) corresponding to the bit in the bitmap 114 in the status indicating that there is a change from the normal disk device 20-0 to the recovery disk device 20-1.
You can make another copy to. [Second Embodiment] Next, a computer system having a dual storage device according to a second embodiment of the present invention will be described. Since the basic configuration of the computer system in this embodiment is the same as that in FIG. 1 referred to in the first embodiment, FIG. 1 is also referred to in this embodiment. However,
The processing contents in the online copy mechanism 111 and the read / write mechanism 112 in the driver mechanism 11 are different from those in the first embodiment.

【0057】まず本実施例では、前記第1の実施例で述
べたようなコピー終了後の処理はない。そこで、オンラ
インコピー中における動作を、3-1)オンラインコピー処
理、3-2)オンラインコピー中におけるリード要求時動作
と、3-3)オンラインコピー中におけるライト要求時動作
に分けて、オンラインコピー処理については図6のフロ
ーチャートを援用し、オンラインコピー中におけるリー
ド要求時動作及びライト要求時動作については図9のフ
ローチャートを参照して順に説明する。
First, in this embodiment, there is no processing after the end of copying as described in the first embodiment. Therefore, online copy processing is divided into 3-1) online copy processing, 3-2) read request operation during online copy, and 3-3) write request operation during online copy. 6 is referred to and the read request operation and write request operation during online copy will be described in order with reference to the flowchart of FIG.

【0058】3-1)オンラインコピー処理 まず、本実施例におけるオンラインコピー機構111
は、図6のフローチャートで示した前記第1の実施例で
の復旧処理と同一手順で、オンラインコピー処理を行
う。即ちオンラインコピー機構111は、正常側ディス
ク装置20-0から復旧側ディスク装置20-1へのコピー
動作を、領域番号1の領域(先頭領域)から領域番号s
の領域(最終領域)まで、シーケンシャルに実行する。
但し、bitmap[p]=0となる領域pに関して
は、図6のフローチャートから明らかなように、コピー
動作をスキップする。
3-1) Online Copy Processing First, the online copy mechanism 111 in this embodiment.
Performs the online copy processing in the same procedure as the restoration processing in the first embodiment shown in the flowchart of FIG. That is, the online copy mechanism 111 performs the copy operation from the normal disk device 20-0 to the recovery disk device 20-1 from the area with the area number 1 (the head area) to the area number s.
Is sequentially executed up to the area (final area).
However, for the region p where bitmap [p] = 0, the copy operation is skipped, as is clear from the flowchart of FIG.

【0059】3-2)オンラインコピー中におけるリード要
求時動作 ドライバ機構11内のリード/ライト機構112は、
(オンラインコピー機構111による図6のフローチャ
ートと同一手順の)オンラインコピー中にOS10から
リード/ライト要求があると、リードまたはライトいず
れの要求であるかを判定する(ステップS51)。
3-2) Read request operation during online copy The read / write mechanism 112 in the driver mechanism 11
If there is a read / write request from the OS 10 during online copy (of the same procedure as the flowchart of FIG. 6 by the online copy mechanism 111), it is determined whether the request is a read or a write (step S51).

【0060】もし、リード要求の場合には、リード/ラ
イト機構112は、正常側ディスク装置20-0を対象と
して、要求された領域qからのデータ読み込みを行い
(ステップS52)、しかる後に当該領域qに対応する
ビットマップ114中のビット、即ちbitmap
[q]が“1”であるか否かを調べる(ステップS3
4)。
In the case of a read request, the read / write mechanism 112 reads data from the requested area q for the normal disk device 20-0 (step S52), and then the area concerned. the bit in the bitmap 114 corresponding to q, namely bitmap
It is checked whether [q] is "1" (step S3).
4).

【0061】もし、bitmap[q]=“1”である
ならば、リード/ライト機構112は、当該bitma
p[q]を“0”に変更する(ステップS54)。そし
てリード/ライト機構112は、復旧側ディスク装置2
0-1を対象として、上記ステップS52で(正常側ディ
スク装置20-0から)読み込んだデータを領域qに書き
込み(ステップS55)、処理を終了する。
If bitmap [q] = “1”, the read / write mechanism 112 determines that the bitmap
p [q] is changed to "0" (step S54). Then, the read / write mechanism 112 uses the recovery-side disk device 2
The data read in step S52 (from the normal disk device 20-0) is written in the area q for 0-1 (step S55), and the process is terminated.

【0062】これに対し、bitmap[q]=“0”
であるならば、リード/ライト機構112は何もせずに
処理を終了する。 3-3)オンラインコピー中におけるライト要求時動作 一方、ライト要求の場合には、リード/ライト機構11
2は、ビットマップ114中のbitmap[q](ラ
イト要求された領域qに対応するビットマップ114中
のビット)を“0”に設定した後(ステップS56)、
正常側ディスク装置20-0及び復旧側ディスク装置20
-1の両方を対象として、要求されたアクセス領域番号q
の示す領域にデータを書き込んで(ステップS57)、
処理を終了する。
On the other hand, bitmap [q] = "0"
If so, the read / write mechanism 112 ends the process without doing anything. 3-3) Operation during write request during online copy On the other hand, in the case of write request, the read / write mechanism 11
2 sets bitmap [q] (bit in the bitmap 114 corresponding to the write-requested area q) in the bitmap 114 to “0” (step S56),
Normal-side disk device 20-0 and recovery-side disk device 20
-1 for both, the requested access area number q
Write data in the area indicated by (step S57),
The process ends.

【0063】したがって、図10(a),(b),
(c)に示すように、領域r(領域番号rの領域)まで
コピーが終了した状態で、コピー未終了領域q2 (q=
q2 )をアクセス先とするリードまたはライト要求が与
えられた場合には、いずれの場合にも、q2 に対応する
ビットマップ114中のbitmap[q2 ]が“0”
に変更され、ビットマップ114の状態は、図10
(c)から図11に示す状態に変化する。また、この領
域q2 まで図6のフローチャートと同一手順のコピー処
理が進んだ場合、領域q2 はコピー済みの状態(bit
map[q2 ]=“0”)であることから、当該領域q
2 を対象とするコピー処理はスキップされる。
Therefore, FIGS. 10 (a), 10 (b),
As shown in (c), in the state where the copy is completed up to the area r (area having the area number r), the copy-unfinished area q2 (q =
When a read or write request with q2) as the access destination is given, in either case, bitmap [q2] in the bitmap 114 corresponding to q2 is "0".
The state of the bitmap 114 is changed to FIG.
The state changes from (c) to the state shown in FIG. Further, when the copy processing of the same procedure as in the flowchart of FIG. 6 proceeds up to this area q2, the area q2 is in the copied state (bit
Since map [q2] = "0"), the area q
The copy process for 2 is skipped.

【0064】以上に述べた第2の実施例では、オンライ
ンコピー中にリード要求が発生した場合には、正常側デ
ィスク装置20-0の要求先領域qからのデータ読み込み
を行った後、その領域qに対応するビットマップ114
内のビット(bitmap[q2 ])をチェックし、当
該ビットがコピー未終了を示す“1”の場合だけ、当該
ビットをコピー済みを示す“0”に変更して、上記読み
込んだデータを復旧側ディスク装置20-1の領域qに書
き込む(コピーする)ものとして説明したが、これに限
るものではない。例えば、リード要求先領域qに対応す
るビットマップ114内ビットのチェックを行わずに、
無条件で当該ビットをコピー済みを示す“0”に設定し
て、上記読み込んだデータを復旧側ディスク装置20-1
の領域qに書き込む(コピーする)ようにしても構わな
い。
In the second embodiment described above, when a read request is issued during online copying, the data is read from the request destination area q of the normal disk device 20-0 and then the area is read. Bitmap 114 corresponding to q
Check the bit (bitmap [q2]) in the inside, and only when the bit is "1" indicating that the copy is not completed, change the bit to "0" indicating that the copy has been completed, and restore the read data. The description has been made assuming that the data is written (copied) in the area q of the disk device 20-1, but the invention is not limited to this. For example, without checking the bits in the bitmap 114 corresponding to the read request destination area q,
The bit is unconditionally set to "0" indicating that the data has been copied, and the read data is restored to the disk device 20-1 on the recovery side.
The area q may be written (copied).

【0065】[0065]

【発明の効果】以上詳述したように本発明によれば、オ
ンラインコピー中にライト要求が発生した場合、正常側
二次記憶装置に対してのみ要求されたデータの書き込み
を行うと共に、その要求先記憶領域を、無条件にあるい
はその要求先記憶領域がコピーの終了領域である場合だ
け、コピー対象領域として記憶しておき、一連のオンラ
インコピーの終了後に、記憶しておいた全てのコピー対
象領域について、正常側の二次記憶装置から復旧側の二
次記憶装置へのコピーを再び行う構成とすることによ
り、コピー済みの記憶領域へのライト要求であるか否か
のチェックを不要にする、あるいは再コピーに要する時
間を減少することができる他、二重化記憶装置にディス
ク装置を適用した場合のディスクのヘッド移動のオーバ
ヘッドを減少でき、従来方法より高速にオンラインコピ
ーを行うことができる。この効果は、オンラインコピー
中にライト要求があまり発生しなかった場合、また二重
化記憶装置にディスク装置を適用した場合であれば、ラ
イト要求先がある特定の部分に集中した場合に、特に顕
著となる。
As described above in detail, according to the present invention, when a write request occurs during online copy, the requested data is written only to the normal secondary storage device and the request is made. The destination storage area is stored unconditionally or only when the requested storage area is the copy end area, and is stored as the copy target area, and after the completion of a series of online copying, all the stored copy targets are stored. By configuring the area to copy from the secondary storage device on the normal side to the secondary storage device on the recovery side again, it is not necessary to check whether it is a write request to the copied storage area. , Or the time required for recopying can be reduced, and the overhead of moving the head of the disk when the disk device is applied to the redundant storage device can be reduced, It is possible to perform the online copy faster than come way. This effect is particularly remarkable when write requests are not frequently generated during online copy, and when a disk device is applied to the duplicate storage device, when write request destinations are concentrated in a specific part. Become.

【0066】また、本発明によれば、正常側の二次記憶
装置から復旧側の二次記憶装置へのオンラインコピーを
一定の記憶領域毎にコピー済み領域を除いて順に行う
他、オンラインコピー中にライト要求が発生した場合に
は、正常側二次記憶装置及び復旧側二次記憶装置の両方
に対してデータ書き込みを行って、その要求先領域をコ
ピー済み領域とする共に、リード要求が発生した場合に
は、正常側二次記憶装置から読み出されるデータを、無
条件にあるいは要求先領域がコピー未終了領域の場合だ
け、復旧側二次記憶装置にコピーして、その要求先領域
をコピー済み領域とする構成とすることにより、コピー
回数を減らすことができ、特にオンラインコピー中にラ
イト要求またはリード要求が多発した場合には、正常側
二次記憶装置からのデータ読み込みのための待ち時間を
短縮することができ、従来方法より高速にオンラインコ
ピーを行えるようになる。
Further, according to the present invention, online copying from the secondary storage device on the normal side to the secondary storage device on the recovery side is performed in order every fixed storage area except for the copied area, and during online copying. When a write request is issued to the normal side secondary storage device and the recovery side secondary storage device, data is written to make the requested area the copied area and a read request is generated. In this case, the data read from the normal secondary storage device is copied to the recovery secondary storage device unconditionally or only when the requested area is an unfinished copy area, and the requested area is copied. The number of copies can be reduced by setting the area as a completed area, especially when a large number of write requests or read requests occur during online copying. It is possible to shorten the waiting time for over data reading becomes faster than the conventional method to perform the online copy.

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

【図1】本発明の第1の実施例に係る二重化記憶装置を
備えたコンピュータシステムの構成を示すブロック図。
FIG. 1 is a block diagram showing a configuration of a computer system including a duplicated storage device according to a first embodiment of the present invention.

【図2】上記第1の実施例におけるオンラインコピー処
理を説明するためのフローチャート。
FIG. 2 is a flowchart for explaining online copy processing in the first embodiment.

【図3】上記第1の実施例において、領域rまでコピー
が終了した場合の正常側ディスク装置20-0と復旧側デ
ィスク装置20-1とビットマップ114の状態例を示す
図。
FIG. 3 is a diagram showing a state example of a normal side disk device 20-0, a recovery side disk device 20-1 and a bitmap 114 when copying is completed up to an area r in the first embodiment.

【図4】上記第1の実施例におけるオンラインコピー中
のリード/ライト要求時動作を説明するためのフローチ
ャート。
FIG. 4 is a flowchart for explaining a read / write request operation during online copying in the first embodiment.

【図5】上記第1の実施例において、領域rまでコピー
が終了した状態で、コピー済み領域q1 をアクセス先と
するライト要求が与えられた場合の処理後のビットマッ
プ114の状態を示す図。
FIG. 5 is a diagram showing a state of the bitmap 114 after processing when a write request is made with the copied area q1 as an access destination in a state where copying has been completed up to the area r in the first embodiment. .

【図6】上記第1の実施例におけるオンラインコピー終
了後の復旧処理について説明するためのフローチャー
ト。
FIG. 6 is a flowchart for explaining a recovery process after completion of online copy in the first embodiment.

【図7】上記第1の実施例におけるオンラインコピー終
了後のビットマップ114の状態例を示す図。
FIG. 7 is a diagram showing an example of a state of a bitmap 114 after completion of online copy in the first embodiment.

【図8】上記第1の実施例におけるオンラインコピー終
了後(復旧処理中)のリード/ライト要求時動作を説明
するためのフローチャート。
FIG. 8 is a flowchart for explaining a read / write request operation after completion of online copy (during recovery processing) in the first embodiment.

【図9】本発明の第2の実施例におけるオンラインコピ
ー中のリード/ライト要求時動作を説明するためのフロ
ーチャート。
FIG. 9 is a flowchart for explaining a read / write request operation during online copy according to the second embodiment of the present invention.

【図10】上記第2の実施例において、領域rまでコピ
ーが終了した場合の正常側ディスク装置20-0と復旧側
ディスク装置20-1とビットマップ114の状態例を示
す図。
FIG. 10 is a diagram showing a state example of a normal side disk device 20-0, a recovery side disk device 20-1 and a bitmap 114 when copying is completed up to an area r in the second embodiment.

【図11】上記第2の実施例において、領域rまでコピ
ーが終了した状態で、コピー未終了領域q2 をアクセス
先とするリードまたはライト要求が与えられた場合の処
理後のビットマップ114の状態を示す図。
FIG. 11 is a state of the bitmap 114 after processing when a read or write request is made with the copy-unfinished area q2 as an access destination in a state where copying has been completed up to the area r in the second embodiment. FIG.

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

1…ホスト装置、2…二重化記憶装置,10…オペレー
ティングシステム(OS)、11…ドライバ機構、20
-0,20-1…ディスク装置(二次記憶装置)、111…
オンラインコピー機構、112…リード/ライト機構、
113…メモリ、114…ビットマップ(変更有無記憶
手段、コピー終了/未終了記憶手段)、115…コピー
中領域番号保持部、116…アクセス領域番号保持部、
117…コピー終了領域番号保持部(コピー終了領域記
憶手段)。
DESCRIPTION OF SYMBOLS 1 ... Host device, 2 ... Redundant storage device, 10 ... Operating system (OS), 11 ... Driver mechanism, 20
-0, 20-1 ... Disk device (secondary storage device), 111 ...
Online copy mechanism, 112 ... Read / write mechanism,
113 ... Memory, 114 ... Bitmap (change presence / absence storage means, copy end / non-end storage means), 115 ... Copying area number holding unit, 116 ... Access area number holding unit,
117 ... Copy end area number holding unit (copy end area storage means).

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 二重化された二次記憶装置により構成さ
れた二重化記憶装置を備えたコンピュータシステムに適
用される二重化記憶装置のオンラインコピー方法におい
て、 前記二重化記憶装置の正常側の二次記憶装置から復旧側
の二次記憶装置へのオンラインコピーを前記二次記憶装
置の一定の記憶領域毎に順に行い、 前記オンラインコピー中にライト要求が発生した場合に
は、前記正常側二次記憶装置に対してのみ要求されたデ
ータの書き込みを行うと共に、その要求先記憶領域をコ
ピー対象領域として記憶しておき、 一連の前記オンラインコピーの終了後に、前記記憶して
おいた全てのコピー対象領域について、前記正常側の二
次記憶装置から復旧側の二次記憶装置へのコピーを再び
行うことを特徴とする二重化記憶装置のオンラインコピ
ー方法。
1. An online copy method of a duplicate storage device applied to a computer system comprising a duplicate storage device configured by a duplicate secondary storage device, comprising: from a secondary storage device on a normal side of the duplicate storage device; Online copy to the secondary storage device on the recovery side is performed sequentially for each fixed storage area of the secondary storage device, and if a write request occurs during the online copy, the normal secondary storage device is The requested data storage area is stored as a copy target area, and after all the online copying is completed, all the stored copy target areas are An online copy of a redundant storage device characterized by copying again from the secondary storage device on the normal side to the secondary storage device on the recovery side. Pee way.
【請求項2】 二重化された二次記憶装置により構成さ
れた二重化記憶装置を備えたコンピュータシステムに適
用される二重化記憶装置のオンラインコピー方法におい
て、 前記二重化記憶装置の正常側の二次記憶装置から復旧側
の二次記憶装置へのオンラインコピーを前記二次記憶装
置の一定の記憶領域毎に順に行い、 前記オンラインコピー中にライト要求が発生した場合に
は、前記正常側二次記憶装置に対してのみ要求されたデ
ータの書き込みを行うと共に、その要求先記憶領域がオ
ンラインコピーの終了領域であるならば、その要求先領
域をコピー対象領域として記憶しておき、 一連の前記オンラインコピーの終了後に、前記記憶して
おいた全てのコピー対象領域について、前記正常側の二
次記憶装置から復旧側の二次記憶装置へのコピーを再び
行うことを特徴とする二重化記憶装置のオンラインコピ
ー方法。
2. A method of online copying of a duplicated storage device applied to a computer system comprising a duplicated storage device configured by a duplicated secondary storage device, wherein a secondary storage device on the normal side of the duplicated storage device is used. Online copy to the secondary storage device on the recovery side is performed sequentially for each fixed storage area of the secondary storage device, and if a write request occurs during the online copy, the normal secondary storage device is If the requested storage area is the end area of the online copy, the requested destination area is stored as the copy target area, and after the series of the online copy ends, Copying all the stored target areas from the secondary storage device on the normal side to the secondary storage device on the recovery side. An online copy method for a duplicate storage device, characterized in that the operation is performed again.
【請求項3】 二重化された二次記憶装置により構成さ
れた二重化記憶装置を備えたコンピュータシステムに適
用される二重化記憶装置のオンラインコピー方法におい
て、 前記二次記憶装置の一定の記憶領域毎にオンラインコピ
ー中に内容が変更されたか否かを記憶するための変更有
無情報領域が割り当てられた変更有無記憶手段を有し、 前記二重化記憶装置の正常側の二次記憶装置から復旧側
の二次記憶装置へのオンラインコピーを前記一定の記憶
領域毎に順に行い、 前記オンラインコピー中にライト要求が発生した場合に
は、前記正常側二次記憶装置に対してのみ要求されたデ
ータの書き込みを行うと共に、その要求先記憶領域に対
応する前記変更有無記憶手段内の変更有無情報領域に変
更有りを示す情報を設定し、 一連の前記オンラインコピーの終了後に前記変更有無記
憶手段内を参照し、変更有りを示す情報が設定されてい
る変更有無情報領域をもとにオンラインコピー中に内容
が変更された全ての記憶領域を検出し、その領域につい
て、前記正常側の二次記憶装置から復旧側の二次記憶装
置へのコピーを再び行うことを特徴とする二重化記憶装
置のオンラインコピー方法。
3. An online copy method for a duplicated storage device applied to a computer system having a duplicated storage device constituted by a duplicated secondary storage device, wherein an online copy is made for each fixed storage area of the secondary storage device. A change presence / absence storage means to which a change presence / absence information area for storing whether or not the contents have been changed during copying is allocated, and the secondary storage on the recovery side from the secondary storage on the normal side of the redundant storage device Online copy to the device is sequentially performed for each of the certain storage areas, and when a write request is generated during the online copy, the requested data is written only to the normal secondary storage device. , Setting information indicating that there is a change in the change presence / absence information area in the change presence / absence storage means corresponding to the request destination storage area, After the end of the copy, the inside of the change presence / absence storage means is referred to, and based on the change presence / absence information area in which the information indicating that there is a change is set, all the storage areas whose contents are changed during the online copy are detected, An online copy method for a duplicated storage device, wherein the area is copied again from the secondary storage device on the normal side to the secondary storage device on the recovery side.
【請求項4】 二重化された二次記憶装置により構成さ
れた二重化記憶装置を備えたコンピュータシステムに適
用される二重化記憶装置のオンラインコピー方法におい
て、 前記二次記憶装置の一定の記憶領域毎にコピー済みであ
るかコピー未終了であるかを記憶するためのコピー終了
/未終了情報領域が割り当てられたコピー終了/未終了
記憶手段と、オンラインコピーがいずれの記憶領域まで
終了したかを記憶するためのコピー終了領域記憶手段と
を有し、 前記二重化記憶装置の正常側の二次記憶装置から復旧側
の二次記憶装置へのオンラインコピーを前記一定の記憶
領域毎に順に行って、その都度、そのコピー済み記憶領
域に対応する前記コピー終了/未終了記憶手段内のコピ
ー終了/未終了情報領域にコピー済みを示す情報を設定
すると共に、前記コピー終了領域記憶手段の内容を更新
し、 前記オンラインコピー中にライト要求が発生した場合に
は、前記正常側二次記憶装置に対してのみ要求されたデ
ータの書き込みを行うと共に、その要求先記憶領域がコ
ピー終了領域であることが前記コピー終了領域記憶手段
の内容により判別されるならば、その要求先記憶領域に
対応する前記コピー終了/未終了記憶手段内のコピー終
了/未終了情報領域にコピー未終了を示す情報を設定
し、 一連の前記オンラインコピーの終了後に前記コピー済み
/未終了記憶手段内を参照し、コピー未終了を示す情報
が設定されているコピー済み/未終了情報領域をもとに
コピー後に内容が変更された全ての記憶領域を検出し、
その領域について、前記正常側の二次記憶装置から復旧
側の二次記憶装置へのコピーを再び行うことを特徴とす
る二重化記憶装置のオンラインコピー方法。
4. An online copy method for a duplicate storage device, which is applied to a computer system having a duplicate storage device configured by a duplicate secondary storage device, comprising: copying every fixed storage area of the secondary storage device. A copy end / unfinished storage means for allocating a copy end / unfinished information area for storing whether the copy has been completed or not completed, and to which storage area the online copy has ended And a copy end area storage means of, the online copy from the secondary storage device on the normal side of the duplicated storage device to the secondary storage device on the recovery side is performed sequentially for each of the certain storage areas, and each time, Information indicating copy completed is set in the copy end / non-end information area in the copy end / non-end storage means corresponding to the copied storage area. Both update the contents of the copy end area storage means, and when a write request occurs during the online copy, write the requested data only to the normal side secondary storage device, and If it is determined by the contents of the copy end area storage means that the request destination storage area is the copy end area, the copy end / unfinished in the copy end / unfinished storage means corresponding to the request destination storage area Information indicating unfinished copying is set in the information area, and after the series of online copying is finished, the inside of the copied / unfinished storage means is referred to, and information indicating unfinished copying is set. Detects all storage areas whose contents have been changed after copying based on the information area,
An online copy method for a duplicated storage device, characterized in that the area is copied again from the secondary storage device on the normal side to the secondary storage device on the recovery side.
【請求項5】 二重化された二次記憶装置により構成さ
れた二重化記憶装置を備えたコンピュータシステムに適
用される二重化記憶装置のオンラインコピー方法におい
て、 前記二重化記憶装置の正常側の二次記憶装置から復旧側
の二次記憶装置へのオンラインコピーを一定の記憶領域
毎にコピー済み領域を除いて順に行い、 前記オンラインコピー中にライト要求が発生した場合に
は、前記正常側二次記憶装置及び復旧側二次記憶装置の
両方に対してデータ書き込みを行って、その要求先領域
をコピー済み領域として記憶し、 前記オンラインコピー中にリード要求が発生した場合に
は、前記正常側二次記憶装置からのデータ読み込みを行
うと共に、そのデータを前記復旧側二次記憶装置にコピ
ーして、その要求先領域をコピー済み領域として記憶す
ることを特徴とする二重化記憶装置のオンラインコピー
方法。
5. An online copy method for a duplicated storage device applied to a computer system comprising a duplicated storage device configured by a duplicated secondary storage device, wherein a secondary storage device on the normal side of the duplicated storage device is used. Online copying to the secondary storage device on the recovery side is performed sequentially for every certain storage area except for the copied area, and when a write request occurs during the online copy, the secondary storage device on the normal side and the recovery Data is written to both of the side secondary storage devices, the requested area is stored as a copied area, and if a read request occurs during the online copy, from the normal side secondary storage device. Data is read, the data is copied to the recovery side secondary storage device, and the request destination area is recorded as the copied area. An on-line copy method for a duplicate storage device characterized by storing.
【請求項6】 二重化された二次記憶装置により構成さ
れた二重化記憶装置を備えたコンピュータシステムに適
用される二重化記憶装置のオンラインコピー方法におい
て、 前記二次記憶装置の一定の記憶領域毎にコピー済み領域
であるかコピー未終了領域であるかを記憶するためのコ
ピー終了/未終了情報領域が割り当てられたコピー終了
/未終了記憶手段を有し、 前記コピー終了/未終了記憶手段内の各コピー終了/未
終了情報領域を順に参照して、コピー済み状態にある前
記一定の記憶領域を検出し、そのコピー済み記憶領域を
除いて、前記二重化記憶装置の正常側の二次記憶装置か
ら復旧側の二次記憶装置へのオンラインコピーを前記一
定の記憶領域毎に順に行って、その都度、そのコピー済
み記憶領域に対応する前記コピー終了/未終了記憶手段
内のコピー終了/未終了情報領域にコピー済みを示す情
報を設定し、 前記オンラインコピー中にライト要求が発生した場合に
は、前記正常側二次記憶装置及び復旧側二次記憶装置の
両方に対してデータ書き込みを行って、その要求先領域
に対応する前記コピー終了/未終了記憶手段内のコピー
終了/未終了情報領域にコピー済みを示す情報を設定
し、 前記オンラインコピー中にリード要求が発生した場合に
は、前記正常側二次記憶装置からのデータ読み込みを行
うと共に、そのデータを前記復旧側二次記憶装置にコピ
ーし、且つその要求先領域に対応する前記コピー終了/
未終了記憶手段内のコピー終了/未終了情報領域にコピ
ー済みを示す情報を設定することを特徴とする二重化記
憶装置のオンラインコピー方法。
6. A method for online copying of a duplicate storage device applied to a computer system comprising a duplicate storage device constituted by a duplicate secondary storage device, comprising: copying every fixed storage area of the secondary storage device. A copy end / unfinished storage means to which a copy end / unfinished information area for storing whether the area is a completed area or a copy unfinished area, The certain storage area in the copied state is detected by sequentially referring to the copy end / non-end information area, and the copied storage area is removed, and the copy is restored from the secondary storage device on the normal side of the redundant storage device. The online copy to the secondary storage device on the side is sequentially performed for each of the certain storage areas, and each time the copy is completed / not completed corresponding to the copied storage area. Information indicating that copying has been completed is set in the copy end / unfinished information area in the end storage means, and if a write request occurs during the online copy, the normal side secondary storage device and the recovery side secondary storage device. Data is written to both of the above, and information indicating that copying has been completed is set in the copy end / unfinished information area in the copy end / unfinished storage means corresponding to the request destination area, and during the online copying When a read request is issued, the data is read from the normal side secondary storage device, the data is copied to the recovery side secondary storage device, and the copy end / correspondence to the request destination area is completed.
An online copy method for a duplicate storage device, characterized in that information indicating that copying has been completed is set in a copy completed / unfinished information area in the unfinished storage means.
【請求項7】 二重化された二次記憶装置により構成さ
れた二重化記憶装置を備えたコンピュータシステムに適
用される二重化記憶装置のオンラインコピー方法におい
て、 前記二重化記憶装置の正常側の二次記憶装置から復旧側
の二次記憶装置へのオンラインコピーを一定の記憶領域
毎にコピー済み領域を除いて順に行い、 前記オンラインコピー中にライト要求が発生した場合に
は、前記正常側二次記憶装置及び復旧側二次記憶装置の
両方に対してデータ書き込みを行って、その要求先領域
をコピー済み領域として記憶し、 前記オンラインコピー中にリード要求が発生した場合に
は、前記正常側二次記憶装置からのデータ読み込みを行
うと共に、その要求先領域がコピー済み領域でないなら
ば、そのデータを前記復旧側二次記憶装置にコピーし
て、その要求先領域をコピー済み領域として記憶するこ
とを特徴とする二重化記憶装置のオンラインコピー方
法。
7. A method of online copying of a duplicated storage device applied to a computer system comprising a duplicated storage device constituted by a duplicated secondary storage device, comprising: Online copying to the secondary storage device on the recovery side is performed sequentially for every certain storage area except for the copied area, and when a write request occurs during the online copy, the secondary storage device on the normal side and the recovery Data is written to both of the side secondary storage devices, the requested area is stored as a copied area, and if a read request occurs during the online copy, from the normal side secondary storage device. When the requested area is not already copied, the data is copied to the recovery side secondary storage device. Then, the request-destination area is stored as a copied area, and the online copy method for the duplicated storage device is characterized.
【請求項8】 二重化された二次記憶装置により構成さ
れた二重化記憶装置を備えたコンピュータシステムに適
用される二重化記憶装置のオンラインコピー方法におい
て、 前記二次記憶装置の一定の記憶領域毎にコピー済み領域
であるかコピー未終了領域であるかを記憶するためのコ
ピー終了/未終了情報領域が割り当てられたコピー終了
/未終了記憶手段を有し、 前記コピー終了/未終了記憶手段内の各コピー終了/未
終了情報領域を順に参照して、コピー済み状態にある前
記一定の記憶領域を検出し、そのコピー済み記憶領域を
除いて、前記二重化記憶装置の正常側の二次記憶装置か
ら復旧側の二次記憶装置へのオンラインコピーを前記一
定の記憶領域毎に順に行って、その都度、そのコピー済
み記憶領域に対応する前記コピー終了/未終了記憶手段
内のコピー終了/未終了情報領域にコピー済みを示す情
報を設定し、 前記オンラインコピー中にライト要求が発生した場合に
は、前記正常側二次記憶装置及び復旧側二次記憶装置の
両方に対してデータ書き込みを行って、その要求先領域
に対応する前記コピー終了/未終了記憶手段内のコピー
終了/未終了情報領域にコピー済みを示す情報を設定
し、 前記オンラインコピー中にリード要求が発生した場合に
は、前記正常側二次記憶装置からのデータ読み込みを行
うと共に、その要求先領域に対応する前記コピー終了/
未終了記憶手段内のコピー終了/未終了情報領域にコピ
ー済みを示す情報が設定されていないならば、そのデー
タを前記復旧側二次記憶装置にコピーし、且つその要求
先領域に対応する前記コピー終了/未終了記憶手段内の
コピー終了/未終了情報領域にコピー済みを示す情報を
設定することを特徴とする二重化記憶装置のオンライン
コピー方法。
8. An online copy method for a duplicate storage device, which is applied to a computer system having a duplicate storage device configured by a duplicate secondary storage device, comprising: copying every fixed storage area of the secondary storage device. A copy end / unfinished storage means to which a copy end / unfinished information area for storing whether the area is a completed area or a copy unfinished area, The certain storage area in the copied state is detected by sequentially referring to the copy end / non-end information area, and the copied storage area is removed, and the copy is restored from the secondary storage device on the normal side of the redundant storage device. The online copy to the secondary storage device on the side is sequentially performed for each of the certain storage areas, and each time the copy is completed / not completed corresponding to the copied storage area. Information indicating that copying has been completed is set in the copy end / unfinished information area in the end storage means, and if a write request occurs during the online copy, the normal side secondary storage device and the recovery side secondary storage device. Data is written to both of the above, and information indicating that copying has been completed is set in the copy end / unfinished information area in the copy end / unfinished storage means corresponding to the request destination area, and during the online copying When a read request is issued, data is read from the normal side secondary storage device and the copy end / copy corresponding to the request destination area is completed.
If the information indicating that the copying is completed is not set in the copy end / unfinished information area in the unfinished storage means, the data is copied to the recovery side secondary storage device, and the data corresponding to the request destination area is copied. An online copy method for a duplicated storage device, characterized in that information indicating copy completion is set in a copy end / non-end information area in a copy end / non-end storage means.
JP7038384A 1995-02-27 1995-02-27 On-line copying method for duplex storage device Pending JPH08234923A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7038384A JPH08234923A (en) 1995-02-27 1995-02-27 On-line copying method for duplex storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7038384A JPH08234923A (en) 1995-02-27 1995-02-27 On-line copying method for duplex storage device

Publications (1)

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

Family

ID=12523792

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7038384A Pending JPH08234923A (en) 1995-02-27 1995-02-27 On-line copying method for duplex storage device

Country Status (1)

Country Link
JP (1) JPH08234923A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009200567A (en) * 2008-02-19 2009-09-03 Mitsubishi Electric Corp Video recording and playback apparatus
JP2009205614A (en) * 2008-02-29 2009-09-10 Fujitsu Ltd Storage system controlling method, switch device and storage system
JP2010198420A (en) * 2009-02-26 2010-09-09 Fujitsu Ltd Storage control device, storage control method, and storage control program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009200567A (en) * 2008-02-19 2009-09-03 Mitsubishi Electric Corp Video recording and playback apparatus
JP2009205614A (en) * 2008-02-29 2009-09-10 Fujitsu Ltd Storage system controlling method, switch device and storage system
JP2010198420A (en) * 2009-02-26 2010-09-09 Fujitsu Ltd Storage control device, storage control method, and storage control program

Similar Documents

Publication Publication Date Title
JP4422016B2 (en) Method and apparatus for creating a virtual data copy
US6785791B2 (en) Method for accessing data being copied between data regions before the copying is completed
US5497483A (en) Method and system for track transfer control during concurrent copy operations in a data processing storage subsystem
US9720786B2 (en) Resolving failed mirrored point-in-time copies with minimum disruption
US6701455B1 (en) Remote copy system with data integrity
JP3246146B2 (en) Data transfer method for external storage device
JP2001166974A (en) Copy processing method between data areas of storage device and storage system and storage medium
JPH0237418A (en) Data matchability control system for storage device
KR101750744B1 (en) Apparatus and Method for Operating Write-Ahead-Logging
JPS5975349A (en) File recovering system in double write storing system
US8688938B2 (en) Data copying
JPH08234923A (en) On-line copying method for duplex storage device
US6854038B2 (en) Global status journaling in NVS
JPS63133240A (en) Contents assurance system for residence table
JP3090182B2 (en) Alternative sector registration method
JPH0235537A (en) Multiple volume update control system
JPH02278572A (en) Alternative block processing system
JP3043662B2 (en) Data backup method
US11307774B2 (en) Storage control device, non-transitory computer-readable storage medium, and storage control method
JP3480282B2 (en) Duplicated file I / O device and method and information processing device using the same
JP2005316697A (en) Disk array system and method for data backup
JPH10143412A (en) Data base managing system
JP2940368B2 (en) Disk array device
JPS6154526A (en) File copy system
JP2003186629A (en) Data copy system