JP2004171597A - Storage device system of preparing copy of data - Google Patents

Storage device system of preparing copy of data Download PDF

Info

Publication number
JP2004171597A
JP2004171597A JP2004059982A JP2004059982A JP2004171597A JP 2004171597 A JP2004171597 A JP 2004171597A JP 2004059982 A JP2004059982 A JP 2004059982A JP 2004059982 A JP2004059982 A JP 2004059982A JP 2004171597 A JP2004171597 A JP 2004171597A
Authority
JP
Japan
Prior art keywords
volume
copy
data
pair
information
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
JP2004059982A
Other languages
Japanese (ja)
Inventor
Haruaki Watanabe
治明 渡辺
Hiroharu Arai
弘治 荒井
Takashi Oeda
高 大枝
Kenji Yamakami
憲司 山神
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2004059982A priority Critical patent/JP2004171597A/en
Publication of JP2004171597A publication Critical patent/JP2004171597A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To prepare a copy of a dataset or file in a storage device. <P>SOLUTION: A control device 112 receives from a host 100 a volume including original data (an original volume), a volume storing a copy (a copy volume), and a start address and an end address indicating a range of an objective dataset or file. The control device 112, depending on the received information, reads from a storage device 113 the data of the objective range in the original volume, and prepares the copy. <P>COPYRIGHT: (C)2004,JPO

Description

本発明は、情報処理システムなどにおける記憶装置システムに係り、ボリュームに格納されているデータのコピーを作成する機能を有する計算機システムに関する。   The present invention relates to a storage system in an information processing system or the like, and more particularly to a computer system having a function of creating a copy of data stored in a volume.

記憶装置に障害が発生したときに大切なデータを完全に失ってしまうことを防ぐ手段として、バックアップをとることが一般的に知られている。通常、バックアップをとるデータの整合性を保証するために、バックアップをとっている間は、当該ボリュームに対するリード/ライト処理を停止する。このため、バックアップをとっている間は、バックアップ対象のボリュームを使用する処理は停止しなくてはならないという問題がある。この問題を解決する方法として、記憶装置内でボリュームのコピーを作成して、(1)通常は、オリジナルボリュームデ
ータとコピーボリュームのデータを一致させる、(2)バックアップをとる間は、オリジナルボリュームのデータとコピーボリュームのデータとを一致させない(したがって、コピーボリュームは整合性のとれているある時点のオリジナルボリュームをあらわすことになる)、(3)バックアップはコピーボリュームを使用する、という方法が知られている。これにより、バックアップをとっている間に処理を停止させることなく、整合性の取れたデータをバックアップデータとしてとることができる。
It is generally known to take a backup as a means for preventing important data from being completely lost when a failure occurs in a storage device. Normally, in order to guarantee the consistency of the data to be backed up, the read / write processing for the volume is stopped while the backup is being taken. For this reason, there is a problem that the process using the volume to be backed up must be stopped while the backup is being performed. To solve this problem, a copy of the volume is created in the storage device, and (1) usually matches the original volume data with the data of the copy volume. (2) During the backup, the original volume data is copied. It is known that the data does not match the data of the copy volume (therefore, the copy volume represents the original volume at a certain point in time), and (3) the backup uses the copy volume. ing. As a result, consistent data can be taken as backup data without stopping the processing while the backup is being taken.

上記の方法では、コピーを作成する単位がボリュームであるため、ボリューム内の特定の領域(例えば、データセットやファイルなど)単位のデータを必要とする場合でも、ボリューム全体のコピーを作成する必要がある。したがって、不要なコピーが発生し、(1)記憶装置に余計な負荷をかける、(2)余計に時間がかかる、という課題があった。   In the above method, since the unit for making a copy is a volume, it is necessary to make a copy of the entire volume even when data of a specific area (for example, a data set or a file) in the volume is required. is there. Therefore, unnecessary copying occurs, and there is a problem that (1) extra load is applied to the storage device, and (2) extra time is required.

一般に、記憶装置は、ホストが管理しているファイルシステムの構造が分からないため、データセットやファイルがどの領域のデータで構成されるのかが分からない。本発明では、ホストから記憶装置に領域を通知する手段を設ける。この手段を用いて、記憶装置は、本来必要とされるだけのデータセットやファイルなどの領域のコピーを作成し、余計な負荷や時間を削減する。   Generally, in a storage device, since the structure of a file system managed by a host is not known, it is not known which area a data set or file is composed of. In the present invention, means for notifying the storage device of the area from the host is provided. Using this means, the storage device makes copies of areas such as data sets and files as originally required to reduce unnecessary load and time.

データセットやファイルなどの領域単位のコピーが可能になったため、余計なコピーを削減することができる。これにより、記憶装置の負荷やコピー作成の時間を削減することができる。   Since copying of data sets, files, and the like in units of area is enabled, unnecessary copying can be reduced. As a result, the load on the storage device and the time for making a copy can be reduced.

以下、本発明の実施例について、図面を参照して説明する。尚、本発明は、本実施例に限られるものではない。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. Note that the present invention is not limited to the present embodiment.

図1は、本発明の第一の実施の形態を示すシステム構成図である。システムは、ホスト100、制御装置112、記憶装置113から構成される。ホスト100は、ユーザの指示、あるいは、ユーザプログラムによって、制御装置112に対して、さまざまな要求を発行する。記憶装置113は、データを格納する。制御装置112は、ホスト100からの要求にしたがって、記憶装置113からデータを読み取ったり、記憶装置113にデータを書き込んだりする。   FIG. 1 is a system configuration diagram showing a first embodiment of the present invention. The system includes a host 100, a control device 112, and a storage device 113. The host 100 issues various requests to the control device 112 according to a user's instruction or a user program. The storage device 113 stores data. The control device 112 reads data from the storage device 113 or writes data to the storage device 113 according to a request from the host 100.

制御装置112は、制御プロセッサ101、制御メモリ109、キャッシュメ
モリ111から構成される。
The control device 112 includes a control processor 101, a control memory 109, and a cache memory 111.

制御プロセッサ101は、制御装置112を制御する。制御プロセッサ101内では、ペア作成処理102、ペア分割処理103、エクステントアップデート処理104、ライト処理105、ペア作成コピー処理106、ペア分割コピー処理107、エクステントアップデートコピー処理108が動作する。制御メモリ109は、制御プロセッサ101が制御装置112を制御するために必要な制御情報、例えば、ペア情報110を格納する。キャッシュメモリ111は、ホスト100から受領したデータや記憶装置113から読み取ったデータを一時的に格
納する。
The control processor 101 controls the control device 112. In the control processor 101, a pair creation process 102, a pair split process 103, an extent update process 104, a write process 105, a pair creation copy process 106, a pair split copy process 107, and an extent update copy process 108 operate. The control memory 109 stores control information necessary for the control processor 101 to control the control device 112, for example, pair information 110. The cache memory 111 temporarily stores data received from the host 100 and data read from the storage device 113.

図2は、ペア情報110のデータ構造を示している。ペア情報110は、使用フラグ200、正ボリューム番号201、副ボリューム番号202、ペア状態203、差分情報204、エクステント情報205から構成される。使用フラグ200は、当該ペア情報110が使用されているかどうか、すなわち、当該ペア情報110内の情報が有効かどうかを示すフラグで、1が有効を示し、0が無効を示す。正ボリューム番号201は、ホスト100からの要求によって、ボリュームのコピーを作成するときの、オリジナルとなるボリュームの番号を示す。副ボリューム番号202は、ホスト100からの要求によって、ボリュームのコピーを作成するときの、オリジナルとなるボリュームのデータをコピーしたものを格納するボリュームの番号である。ペア状態203は、ボリュームのコピーを作成する過程がどこまで進んでいるかを示し、「形成中」、「形成完了」、「分割中」、「分割完了」の4つの値を持つ。差分情報204は、正ボリューム番号201によって示されるボリュームと、副ボリューム番号202によって示されるボリュームとでデータが食い違っているところを示す情報である。エクステント情報205は、データセットやファイルなどの領域がボリュームのどこに格納されるかを示す情報で、使用フラグ206、開始アドレス207、終了アドレス208から構成される。使用フラグ206は、当該エクステント情報205が有効かどうかを示すフラグで、1が有効であることを示し、0が無効であることを示す。開始アドレス207は、データセットやファイルなどの領域の始端を示すアドレスで、終了アドレス208は、データセットやファイルなどの領域の終端を示すアドレスである。   FIG. 2 shows the data structure of the pair information 110. The pair information 110 includes a use flag 200, a primary volume number 201, a secondary volume number 202, a pair status 203, difference information 204, and extent information 205. The use flag 200 is a flag indicating whether the pair information 110 is used, that is, whether the information in the pair information 110 is valid. 1 indicates valid, and 0 indicates invalid. The primary volume number 201 indicates the number of the original volume when a copy of the volume is created in response to a request from the host 100. The secondary volume number 202 is the number of the volume that stores a copy of the data of the original volume when a copy of the volume is created in response to a request from the host 100. The pair status 203 indicates how far the process of creating a copy of the volume has progressed, and has four values of “being formed”, “being formed”, “being split”, and “being split”. The difference information 204 is information indicating that data differs between the volume indicated by the primary volume number 201 and the volume indicated by the secondary volume number 202. The extent information 205 is information indicating where an area such as a data set or a file is stored in the volume, and includes a use flag 206, a start address 207, and an end address 208. The use flag 206 is a flag indicating whether or not the extent information 205 is valid. 1 indicates that the extent information 205 is valid, and 0 indicates that it is invalid. The start address 207 is an address indicating the start of an area such as a data set or a file, and the end address 208 is an address indicating the end of an area such as a data set or a file.

図3は、差分情報204の構造を示している。差分情報204は、作成中差分情報300、分割中差分情報301、アップデート中差分情報302という3種類のビットマップから構成される。1ビットは、1トラックに対応し、値が0のとき、対応するトラックのデータは、正ボリューム番号201で示されるボリュームと副ボリューム番号202で示されるボリュームとで一致していることを示し、値が1のとき、一致していないことを示す。もちろん、1ビットを他の単位に適用させても良い。   FIG. 3 shows the structure of the difference information 204. The difference information 204 is composed of three types of bitmaps, that is, the creating difference information 300, the dividing difference information 301, and the updating difference information 302. One bit corresponds to one track, and when the value is 0, it indicates that the data of the corresponding track matches the volume indicated by the primary volume number 201 and the volume indicated by the secondary volume number 202, When the value is 1, it indicates that they do not match. Of course, one bit may be applied to another unit.

図4は、ペア作成処理102の処理フローを示している。ホスト100は、制御装置112に、あるボリュームのコピーを作成させるとき、ペア作成要求を発行する。制御プロセッサ101は、ホスト100からペア作成要求を受領すると、ペア作成処理102を開始する。ペア作成要求は、2つのパラメータを持つ。   FIG. 4 shows a processing flow of the pair creation processing 102. The host 100 issues a pair creation request when the control device 112 creates a copy of a certain volume. When receiving the pair creation request from the host 100, the control processor 101 starts the pair creation processing 102. The pair creation request has two parameters.

コピーを作成するボリューム(このボリュームをオリジナルボリュームと呼ぶ)のボリューム番号と、コピーデータを格納するボリューム(このボリュームをコピーボリュームと呼ぶ)のボリューム番号である。   A volume number of a volume for creating a copy (this volume is called an original volume) and a volume number of a volume for storing copy data (this volume is called a copy volume).

ステップ400では、使用フラグ200が0になっている未使用のペア情報110を選択し、使用フラグ200を1を設定し、ホスト100から受領したオリジナルボリュームのボリューム番号を正ボリューム番号201に設定し、ホスト100から受領したコピーボリュームのボリューム番号を副ボリューム番号202に設定し、ペア状態203に「形成中」を設定し、差分情報204の作成中差分情報300のすべてのビットに1を設定し、分割中差分情報301のすべてのビットに0を設定し、アップデート中差分情報302のすべてのビットに0を設
定し、エクステント情報205の使用フラグ206に0を設定する。ステップ401では、ペア作成コピー処理106を起動して、終了する。
In step 400, the unused pair information 110 whose use flag 200 is 0 is selected, the use flag 200 is set to 1, and the volume number of the original volume received from the host 100 is set to the primary volume number 201. Then, the volume number of the copy volume received from the host 100 is set to the secondary volume number 202, the pair status 203 is set to “being formed”, and all the bits of the creating difference information 300 of the difference information 204 are set to “1”. , 0 is set to all bits of the difference information 301 during division, 0 is set to all bits of the difference information 302 during update, and 0 is set to the use flag 206 of the extent information 205. In step 401, the pair creation copy process 106 is started and ends.

図5は、ペア分割処理103の処理フローを示している。ホスト100は、制御装置112に、コピーボリュームに格納されるデータを確定させ、コピーボリュームに格納されているデータを使用できるようにするとき、ペア分割要求を発行する。制御プロセッサ101は、ホスト100からペア分割要求を受領すると、ペア分割処理を開始する。ペア分割要求は、2つのパラメータを持つ。オリジナルボリュームのボリューム番号とコピーボリュームのボリューム番号である。   FIG. 5 shows a processing flow of the pair division processing 103. The host 100 issues a pair split request to the control device 112 when the data stored in the copy volume is determined and the data stored in the copy volume can be used. When receiving the pair split request from the host 100, the control processor 101 starts the pair split processing. The pair split request has two parameters. The volume number of the original volume and the volume number of the copy volume.

ステップ500では、まず、オリジナルボリュームのボリューム番号を正ボリューム番号201にもち、コピーボリュームのボリューム番号を副ボリューム番号202に持つペア情報110を選択し、当該ペア情報110のペア状態203に「分割中」を設定する。次に、ペア分割コピー処理107を起動して、終了する。   In step 500, first, pair information 110 having the original volume number as the primary volume number 201 and the copy volume number as the secondary volume number 202 is selected, and the pair status 203 of the pair information 110 is set to “partitioning Is set. Next, the pair split copy process 107 is started and ended.

図6は、エクステントアップデート処理104の処理フローを示している。ペア分割要求を発行し、これが完了すると、その後にオリジナルボリュームに書き込んだデータは、コピーボリュームには反映されない。したがって、コピーボリュームに格納されているデータは、どんどん古いものになっていき、オリジナルボリュームに格納されている最新のデータとは異なってくる。データセットやファイルなどの特定の領域に関して、コピーボリュームのデータをオリジナルボリュームと一致させたいとき、ホスト100は、制御装置112に、エクステント
アップデート要求を発行する。エクステントアップデート要求は、4つのパラメータを持つ。オリジナルボリュームのボリューム番号と、コピーボリュームのボリューム番号と、オリジナルボリュームとコピーボリュームとで一致させたいデータセットやファイルなどの領域の開始アドレスと、前記デ終了アドレスである。開始アドレスと終了アドレスは複数組あっても良い。制御プロセッサ101は、エクステントアップデート要求を受領すると、エクステントアップデート処理104を開始する。ステップ600では、まず、パラメータとして受領したオリジナルボリュームのボリューム番号を正ボリューム番号201に持ち、コピーボリュームのボリューム番号を副ボリューム番号202に持つペア情報110を選択する。次に、選択したペア情報110の使用フラグ206が0になっているエクステント情報205を選択する。次に、選択したエクステント情報205の使用フラグ206に1を設定し、開始アドレス207にパラメータとして受領したデータセットやファイルなどの領域の開始アドレスを設定し、終了アドレス208にパラメータとして受領した終了アドレスを設定する。ステップ601では、
エクステントアップデートコピー処理108を起動して、終了する。
FIG. 6 shows a processing flow of the extent update processing 104. When a pair split request is issued and this is completed, data written to the original volume thereafter is not reflected on the copy volume. Therefore, the data stored in the copy volume becomes older and older, and is different from the latest data stored in the original volume. The host 100 issues an extent update request to the control device 112 when it is desired to match the data of the copy volume with the original volume for a specific area such as a data set or a file. The extent update request has four parameters. These are the volume number of the original volume, the volume number of the copy volume, the start address of an area such as a data set or a file to be matched between the original volume and the copy volume, and the de-end address. There may be a plurality of sets of the start address and the end address. Upon receiving the extent update request, the control processor 101 starts an extent update process 104. In step 600, first, pair information 110 having the volume number of the original volume received as a parameter in the primary volume number 201 and the volume number of the copy volume in the secondary volume number 202 is selected. Next, the extent information 205 in which the use flag 206 of the selected pair information 110 is 0 is selected. Next, the use flag 206 of the selected extent information 205 is set to 1, the start address 207 is set to the start address of an area such as a data set or a file received as a parameter, and the end address 208 is set to the end address received as a parameter. Set. In step 601,
The extent update copy processing 108 is started and ended.

図7は、ライト処理105の処理フローを示している。ホスト100から書き込み要求を受領すると、制御プロセッサ101は、ライト処理105を開始する。書き込み要求は3つのパラメータを持っている。書き込みデータと、書き込みデータを格納するボリュームのボリューム番号と、書き込みデータを格納するボリューム内のアドレスである。   FIG. 7 shows a processing flow of the write processing 105. Upon receiving a write request from the host 100, the control processor 101 starts a write process 105. The write request has three parameters. The write data, the volume number of the volume that stores the write data, and the address in the volume that stores the write data.

ステップ700では、使用フラグ200が1のペア情報110の中から、パラメータとして受領したボリューム番号を正ボリューム番号201に持つペア情報110を選択する。前記条件にあうペア情報110がない場合は、ステップ707に進む。前記条件にあうペア情報110がある場合は、ステップ701に進む。   In step 700, the pair information 110 having the primary volume number 201 with the volume number received as a parameter is selected from the pair information 110 whose use flag 200 is 1. If there is no pair information 110 that satisfies the above condition, the process proceeds to step 707. If there is pair information 110 meeting the above conditions, the process proceeds to step 701.

ステップ701では、ステップ700で選択したペア情報110に関して、使用フラグ205が1になっているエクステント情報205の中から、パラメータとして受領したアドレスが開始アドレス207と終了アドレス208の間にはいるエクステント情報205の有無を調べる。前記条件にあうエクステント情報205がない場合は、ステップ708に進む。前記条件にあうエクステント情報205がある場合は、ステップ702に進む。   In step 701, regarding the pair information 110 selected in step 700, from the extent information 205 in which the use flag 205 is 1, the extent information in which the address received as a parameter is between the start address 207 and the end address 208 The presence or absence of 205 is checked. If there is no extent information 205 that satisfies the above condition, the process proceeds to step 708. If there is the extent information 205 that satisfies the above condition, the process proceeds to step 702.

ステップ702では、ステップ700で選択したペア情報110の差分情報204の分割中差分情報301を参照し、パラメータとして受領したアドレスに対応するトラックに対応するビットが0か1かを調べる。1の場合はステップ703に進む。0の場合はステップ706に進む。   In step 702, it is checked whether the bit corresponding to the track corresponding to the address received as a parameter is 0 or 1 by referring to the in-division difference information 301 of the difference information 204 of the pair information 110 selected in step 700. In the case of 1, the process proceeds to step 703. If it is 0, the process proceeds to step 706.

ステップ703では、パラメータとして受領したアドレスに対応するトラックが格納するデータを、記憶装置113からキャッシュメモリ111に読み込む。   In step 703, data stored in the track corresponding to the address received as a parameter is read from the storage device 113 into the cache memory 111.

ステップ704では、ステップ704で読み込んだデータのコピーをキャッシュメモリ111に作成する。作成したコピーは、ステップ700で選択したペア情報110の副ボリューム番号202が示すコピーボリュームのデータであるが、記憶装置113に書き込む時期はいつでも良い。   In step 704, a copy of the data read in step 704 is created in the cache memory 111. The created copy is the data of the copy volume indicated by the secondary volume number 202 of the pair information 110 selected in step 700, but may be written to the storage device 113 at any time.

ステップ705では、ステップ702で調べたビットに0を設定する。   In step 705, 0 is set to the bit checked in step 702.

ステップ706では、ステップ700で選択したペア情報110の差分情報204の差分ビットを1にする。ペア状態203が「形成中」あるいは「形成完了」の場合は、作成中差分情報300の、パラメータとして受領したアドレスに対応するトラックに対応するビットに1を設定する。ペア状態203が「分割中」の場合は、分割中差分情報301の、パラメータとして受領したアドレスに対応するトラックに対応するビットに1を設定する。ペア状態203が「分割完了」で、ステップ701でエクステント情報205がありと判定した場合は、アップ
デート中差分情報302の、パラメータとして受領したアドレスに対応するトラックに対応するビットに1を設定する。ペア状態203が「分割完了」で、ステップ701でエクステント情報205がなしと判定した場合は、分割中差分情報301の、パラメータとして受領したアドレスに対応するトラックに対応するビットに1を設定する。
In step 706, the difference bit of the difference information 204 of the pair information 110 selected in step 700 is set to 1. When the pair status 203 is “forming” or “completion completed”, 1 is set to a bit corresponding to the track corresponding to the address received as a parameter of the creating difference information 300 as a parameter. When the pair status 203 is “partitioning”, “1” is set to the bit corresponding to the track corresponding to the address received as a parameter in the dividing difference information 301 as a parameter. If the pair status 203 is “division completed” and it is determined in step 701 that the extent information 205 is present, “1” is set to the bit corresponding to the track corresponding to the address received as a parameter of the updating difference information 302 as a parameter. If the pair status 203 is “division completed” and it is determined in step 701 that there is no extent information 205, 1 is set to a bit corresponding to the track corresponding to the address received as a parameter of the in-division difference information 301 as a parameter.

ステップ707では、パラメータとして受領した書き込みデータをキャッシュメモリ111に格納して、処理を終了する。   In step 707, the write data received as a parameter is stored in the cache memory 111, and the process ends.

ステップ708では、ペア状態203を調べる。「分割中」の場合はステップ709に進む。「分割中」でない場合はステップ706に進む。   In step 708, the pair status 203 is checked. In the case of “partitioning”, the process proceeds to step 709. If it is not “dividing”, the process proceeds to step 706.

ステップ709では、ステップ700で選択したペア情報110の差分情報204の作成中差分情報300を参照し、パラメータとして受領したアドレスに対応するトラックに対応するビットが1か0かを調べる。1の場合は、ステップ7
10に進む。0の場合はステップ706に進む。
In step 709, it is checked whether the bit corresponding to the track corresponding to the address received as a parameter is 1 or 0 with reference to the in-creation difference information 300 of the difference information 204 of the pair information 110 selected in step 700. If 1, step 7
Go to 10. If it is 0, the process proceeds to step 706.

ステップ710では、パラメータとして受領したアドレスに対応するトラックが格納するデータを、記憶装置113からキャッシュメモリ111に読み込む。   In step 710, data stored in the track corresponding to the address received as a parameter is read from the storage device 113 to the cache memory 111.

ステップ711では、ステップ710で読み込んだデータのコピーをキャッシュメモリ111に作成する。作成したコピーは、ステップ700で選択したペア情報110の副ボリューム番号202が示すコピーボリュームのデータであるが
、記憶装置113に書き込む時期はいつでも良い。
In step 711, a copy of the data read in step 710 is created in the cache memory 111. The created copy is the data of the copy volume indicated by the secondary volume number 202 of the pair information 110 selected in step 700, but may be written to the storage device 113 at any time.

ステップ712では、ステップ709で調べたビットに0を設定し、ステップ706に進む。   In step 712, 0 is set to the bit checked in step 709, and the flow advances to step 706.

図8は、ペア作成コピー処理106の処理フローを示している。ペア作成コピー処理106は、ペア作成処理102から起動される。パラメータとして、オリジナルボリュームのボリューム番号と、コピーボリュームのボリューム番号が与えられる。   FIG. 8 shows a processing flow of the pair creation copy processing 106. The pair creation copy process 106 is started from the pair creation process 102. The volume number of the original volume and the volume number of the copy volume are given as parameters.

ステップ800では、変数iに、オリジナルボリュームの先頭のトラックのトラック番号を設定する。   In step 800, the track number of the first track of the original volume is set in a variable i.

ステップ801では、まず、パラメータとして与えられたオリジナルボリュームのボリューム番号を正ボリューム番号201に持ち、パラメータとして与えられたコピーボリュームのボリューム番号を副ボリューム番号202に持つペア情報110を選択する。次に、選択したペア情報110の差分情報204の作成中差分情報300を参照して、トラック番号が変数iであるトラックに対応するビットが0か1かを調べる。0の場合は、ステップ805に進む。1の場合はステップ802に進む。   In step 801, first, pair information 110 having the original volume number given as a parameter as the primary volume number 201 and the copy volume given as a parameter as the secondary volume number 202 is selected. Next, by referring to the in-creation difference information 300 of the difference information 204 of the selected pair information 110, it is checked whether the bit corresponding to the track whose track number is the variable i is 0 or 1. If it is 0, the process proceeds to step 805. In the case of 1, the process proceeds to step 802.

ステップ802では、トラック番号が変数iであるトラックのデータを、記憶装置113からキャッシュメモリ111に読み込む。   In step 802, the data of the track whose track number is variable i is read from the storage device 113 into the cache memory 111.

ステップ803では、ステップ802で取りこんだデータのコピーを、キャッシュメモリ111に作成する。作成したデータは、パラメータとして与えられたコピーボリュームのボリューム番号のボリュームのデータであるが、記憶装置113に書き込む時期はいつでも良い。   In step 803, a copy of the data taken in step 802 is created in the cache memory 111. The created data is the data of the volume having the volume number of the copy volume given as a parameter, but may be written to the storage device 113 at any time.

ステップ804では、ステップ801で参照したビットに0を設定する。   At step 804, 0 is set to the bit referred to at step 801.

ステップ805では、コピーを作成したトラックがボリュームの終端にあたるトラックかどうかを調べる。終端にあたるトラックである場合、ステップ807
に進む。終端にあたるトラックでない場合、ステップ806に進む。
In step 805, it is checked whether the track on which the copy has been made is the end track of the volume. If the track is at the end, step 807
Proceed to. If the track is not the end track, the process proceeds to step 806.

ステップ806では、変数iに1を加算して、ステップ801に進み、次のトラックに処理を進める。   In step 806, 1 is added to the variable i, and the flow advances to step 801 to proceed to the next track.

ステップ807では、ペア状態203に「形成完了」を設定して、処理を終了する。   In step 807, “formation completed” is set in the pair status 203, and the process ends.

図9は、ペア分割コピー処理107の処理フローを示している。ペア分割コピー処理107は、ペア分割処理103から起動される。パラメータとして、オリジナルボリュームのボリューム番号と、コピーボリュームのボリューム番号が与えられる。   FIG. 9 shows a processing flow of the pair split copy processing 107. The pair split copy process 107 is started from the pair split process 103. The volume number of the original volume and the volume number of the copy volume are given as parameters.

ステップ900では、変数iに、オリジナルボリュームの先頭のトラックのトラック番号を設定する。   In step 900, the track number of the first track of the original volume is set in the variable i.

ステップ901では、まず、パラメータとして与えられたオリジナルボリュームのボリューム番号を正ボリューム番号201に持ち、パラメータとして与えられたコピーボリュームのボリューム番号を副ボリューム番号202に持つペア情報110を選択する。次に、選択したペア情報110の差分情報204の作成中差分情報300を参照して、トラック番号が変数iであるトラックに対応するビットが0か1かを調べる。0の場合は、ステップ905に進む。1の場合はステップ902に進む。   In step 901, first, pair information 110 having the original volume number given as a parameter as the primary volume number 201 and the copy volume given as a parameter as the secondary volume number 202 is selected. Next, by referring to the in-creation difference information 300 of the difference information 204 of the selected pair information 110, it is checked whether the bit corresponding to the track whose track number is the variable i is 0 or 1. If it is 0, the process proceeds to step 905. In the case of 1, the process proceeds to step 902.

ステップ902では、トラック番号が変数iであるトラックのデータを、記憶装置113からキャッシュメモリ111に読み込む。   In step 902, the data of the track whose track number is variable i is read from the storage device 113 into the cache memory 111.

ステップ903では、ステップ902で取りこんだデータのコピーを、キャッシュメモリ111に作成する。作成したデータは、パラメータとして与えられたコピーボリュームのボリューム番号のボリュームのデータであるが、記憶装置113に書き込む時期はいつでも良い。   In step 903, a copy of the data captured in step 902 is created in the cache memory 111. The created data is the data of the volume having the volume number of the copy volume given as a parameter, but may be written to the storage device 113 at any time.

ステップ904では、ステップ901で参照したビットに0を設定する。   In step 904, 0 is set to the bit referred to in step 901.

ステップ905では、コピーを作成したトラックがボリュームの終端にあたるトラックかどうかを調べる。終端にあたるトラックである場合、ステップ907に進む。終端にあたるトラックでない場合、ステップ906に進む。   In step 905, it is checked whether the track on which the copy has been made is the end track of the volume. If it is the last track, the process proceeds to step 907. If the track is not the end track, the process proceeds to step 906.

ステップ906では、変数iに1を加算して、ステップ901に進み、次のトラックに処理を進める。   In step 906, 1 is added to the variable i, and the flow advances to step 901 to proceed to the next track.

ステップ907では、ペア状態203に「分割完了」を設定して、処理を終了する。   In step 907, “division completion” is set in the pair status 203, and the process ends.

図10は、エクステントアップデートコピー処理108の処理フローを示している。エクステントアップデートコピー処理108は、エクステントアップデート処理103から起動される。パラメータとして、オリジナルボリュームのボリューム番号と、コピーボリュームのボリューム番号と、データセットやファイルなどの領域のの開始アドレスと、終了アドレスが与えられる。   FIG. 10 shows a processing flow of the extent update copy processing 108. The extent update copy process 108 is started from the extent update process 103. As parameters, a volume number of the original volume, a volume number of the copy volume, a start address of an area such as a data set and a file, and an end address are given.

ステップ1000では、変数iに、パラメータとして与えられた開始アドレスに対応するトラックのトラック番号を設定する。   In step 1000, the track number of the track corresponding to the start address given as a parameter is set in a variable i.

ステップ1001では、まず、パラメータとして与えられたオリジナルボリュームのボリューム番号を正ボリューム番号201に持ち、パラメータとして与えられたコピーボリュームのボリューム番号を副ボリューム番号202に持つペア情報110を選択する。次に、選択したペア情報110の差分情報204の分割中差分情報300を参照して、トラック番号が変数iであるトラックに対応するビットが0か1かを調べる。0の場合は、ステップ1005に進む。1の場合はステップ1002に進む。   In step 1001, first, pair information 110 having the original volume number given as a parameter as the primary volume number 201 and the volume number of the copy volume given as a parameter as the secondary volume number 202 is selected. Next, with reference to the in-division difference information 300 of the difference information 204 of the selected pair information 110, it is checked whether the bit corresponding to the track whose track number is the variable i is 0 or 1. If it is 0, the process proceeds to step 1005. In the case of 1, the process proceeds to step 1002.

ステップ1002では、トラック番号が変数iであるトラックのデータを、記憶装置113からキャッシュメモリ111に読み込む。   In step 1002, the data of the track whose track number is variable i is read from the storage device 113 into the cache memory 111.

ステップ1003では、ステップ1002で取りこんだデータのコピーを、キャッシュメモリ111に作成する。作成したデータは、パラメータとして与えられたコピーボリュームのボリューム番号のボリュームのデータであるが、記憶装置113に書き込む時期はいつでも良い。   In step 1003, a copy of the data taken in step 1002 is created in the cache memory 111. The created data is the data of the volume having the volume number of the copy volume given as a parameter, but may be written to the storage device 113 at any time.

ステップ1004では、ステップ1001で参照したビットに0を設定する。   In step 1004, 0 is set to the bit referred to in step 1001.

ステップ1005では、コピーを作成したトラックがパラメータとして与えられた終了アドレスに対応するトラックかどうかを調べる。対応するトラックである場合、ステップ1007に進む。対応するトラックでない場合、ステップ1006に進む。   In step 1005, it is checked whether the track on which the copy was made is a track corresponding to the end address given as a parameter. If it is the corresponding track, the process proceeds to step 1007. If it is not the corresponding track, the process proceeds to step 1006.

ステップ1006では、変数iに1を加算して、ステップ1001に進み、次のトラックに処理を進める。   In step 1006, 1 is added to the variable i, and the flow advances to step 1001 to proceed to the next track.

ステップ1007では、まず、アップデート中差分情報302の、パラメータとして与えられた開始アドレスと終了アドレスの範囲のビットを読み込み、読み込んだ値を分割中差分情報301に書き込む。次に、エクステント情報205の使用フラグ206に0を設定して、エクステント情報205を無効化して処理を終了する。   In step 1007, first, the bits in the range of the start address and the end address given as parameters of the difference information 302 during update are read, and the read values are written in the difference information 301 during division. Next, the use flag 206 of the extent information 205 is set to 0, the extent information 205 is invalidated, and the process ends.

図11は、本発明の第二の実施の形態を示すシステム構成図である。システムは、ホスト1100、制御装置1112、記憶装置1113から構成される。   FIG. 11 is a system configuration diagram showing the second embodiment of the present invention. The system includes a host 1100, a control device 1112, and a storage device 1113.

ホスト1100は、ユーザの指示、あるいは、ユーザプログラムによって、制御装置112に対して、さまざまな要求を発行する。記憶装置1113は、データを格納する。制御装置1112は、ホスト1100からの要求にしたがって、記憶装置1113からデータを読み取ったり、記憶装置1113にデータを書き込んだりする。   The host 1100 issues various requests to the control device 112 according to a user's instruction or a user program. The storage device 1113 stores data. The control device 1112 reads data from or writes data to the storage device 1113 according to a request from the host 1100.

制御装置1112は、制御プロセッサ1101、制御メモリ1109、キャッシュメモリ1111から構成される。   The control device 1112 includes a control processor 1101, a control memory 1109, and a cache memory 1111.

制御プロセッサ1101は、制御装置1112を制御する。制御プロセッサ1101内では、ペア作成処理1102、ペア分割処理1103、ライト処理1105、ペア作成コピー処理1106、ペア分割コピー処理1107が動作する。   The control processor 1101 controls the control device 1112. In the control processor 1101, a pair creation process 1102, a pair split process 1103, a write process 1105, a pair creation copy process 1106, and a pair split copy process 1107 operate.

制御メモリ1109は、制御プロセッサ1101が制御装置1112を制御するために必要な制御情報、例えば、ペア情報1110を格納する。キャッシュメモリ1111は、ホスト1100から受領したデータや記憶装置1113から読み取ったデータを一時的に格納する。   The control memory 1109 stores control information necessary for the control processor 1101 to control the control device 1112, for example, pair information 1110. The cache memory 1111 temporarily stores data received from the host 1100 and data read from the storage device 1113.

図12は、ペア情報1110のデータ構造を示している。ペア情報1110は、使用フラグ1200、正ボリューム番号1201、副ボリューム番号1202、ペア状態1203、差分情報1204、開始アドレス1205、終了アドレス1206から構成される。使用フラグ1200は、当該ペア情報1110が使用されているかどうか、すなわち、当該ペア情報1110内の情報が有効かどうかを示すフラグで、1が有効を示し、0が無効を示す。正ボリューム番号1201は、ホスト1100からの要求によって、ボリュームのコピーを作成するときの
、オリジナルとなるボリュームの番号を示す。副ボリューム番号1202は、ホスト1100からの要求によって、ボリュームのコピーを作成するときの、オリジナルとなるボリュームのデータをコピーしたものを格納するボリュームの番号である。ペア状態1203は、ボリュームのコピーを作成する過程がどこまで進んでいるかを示し、「形成中」、「形成完了」、「分割中」、「分割完了」の4つの値を持つ。差分情報1204は、正ボリューム番号1201によって示されるボリュームと、副ボリューム番号1202によって示されるボリュームとでデ
ータが食い違っているところを示す情報である。開始アドレス1205は、データセットやファイルなどの領域のの始端を示すアドレスで、終了アドレス1206は、データセットやファイルなどの終端を示すアドレスである。
FIG. 12 shows the data structure of the pair information 1110. The pair information 1110 includes a use flag 1200, a primary volume number 1201, a secondary volume number 1202, a pair status 1203, difference information 1204, a start address 1205, and an end address 1206. The use flag 1200 is a flag indicating whether the pair information 1110 is used, that is, whether the information in the pair information 1110 is valid. 1 indicates valid, and 0 indicates invalid. The primary volume number 1201 indicates the number of the original volume when a copy of the volume is created in response to a request from the host 1100. The secondary volume number 1202 is the number of the volume that stores a copy of the data of the original volume when a copy of the volume is created in response to a request from the host 1100. The pair status 1203 indicates how far the process of creating a copy of the volume has progressed, and has four values of “being formed”, “being formed”, “being split”, and “split completed”. The difference information 1204 is information indicating that data is different between the volume indicated by the primary volume number 1201 and the volume indicated by the secondary volume number 1202. The start address 1205 is an address indicating the start of an area such as a data set or a file, and the end address 1206 is an address indicating the end of a data set or a file.

図13は、差分情報1204の構造を示している。差分情報1204は、複数のビットで構成され、1ビットは、1トラックに対応し、値が0のとき、対応するトラックのデータは、正ボリューム番号1201で示されるボリュームと副ボリューム番号1202で示されるボリュームとで一致していることを示し、値が1のとき、一致していないことを示す。もちろん、1ビットを他の単位に適用させても良い。   FIG. 13 shows the structure of the difference information 1204. The difference information 1204 is composed of a plurality of bits. One bit corresponds to one track. When the value is 0, the data of the corresponding track is indicated by a volume indicated by the primary volume number 1201 and a secondary volume number 1202. Indicates that they match, and when the value is 1, it indicates that they do not match. Of course, one bit may be applied to another unit.

図14は、ペア作成処理1102の処理フローを示している。ホスト1100は、制御装置112に、あるデータセットやファイルなどの領域のコピーを作成させるとき、ペア作成要求を発行する。制御プロセッサ1101は、ホスト1100からペア作成要求を受領すると、ペア作成処理1102を開始する。ペア作成要求は、4つのパラメータを持つ。コピーを作成したいデータセットやファイルなどの領域が含まれるボリューム(これをコピー元ボリュームと呼ぶ)のボリューム番号と、コピーデータを格納するボリューム(これをコピー先ボリューム
と呼ぶ)のボリューム番号と、コピーを作成したいデータセットやファイルなどの領域の始端を示すアドレスと、コピーを作成したいデータセットやファイルなどの領域の終端を示すアドレスである。データセットやファイルなどがボリューム内で複数個の領域から構成されるとき、ホスト1100は複数組の始端アドレスと終端アドレスをパラメータとして制御装置112に渡す。
FIG. 14 shows a processing flow of the pair creation processing 1102. The host 1100 issues a pair creation request when the control device 112 creates a copy of an area such as a certain data set or file. Upon receiving the pair creation request from the host 1100, the control processor 1101 starts the pair creation processing 1102. The pair creation request has four parameters. The volume number of a volume that contains an area such as a dataset or file to be copied (this is called a copy source volume), the volume number of a volume that stores copy data (this is called a copy destination volume), and the copy number An address indicating the start of an area such as a data set or a file for which the user wants to make a copy, and an address indicating the end of an area such as a data set or a file for which a copy is to be created. When a data set, a file, or the like is composed of a plurality of areas in a volume, the host 1100 passes a plurality of sets of start and end addresses to the control device 112 as parameters.

ステップ1400では、使用フラグ1200が0になっている未使用のペア情報1110を選択し、使用フラグ1200に1を設定し、ホスト1100から受領したコピー元ボリュームのボリューム番号を正ボリューム番号1201に設定し、ホスト1100から受領したコピー先ボリュームのボリューム番号を副ボリューム番号1202に設定し、ペア状態1203に「形成中」を設定し、差分情報1204のすべてのビットに1を設定し、開始アドレス1205にホスト1100から受領したデータセットやファイルなど領域の始端を示すアドレスを設定し、終了アドレス1206にホスト1100から受領したデータセットやファイルなどの領域の終端を示すアドレスを設定する。複数組の始端アドレスと終端アドレスがパラメータとして与えられたときは、本ステップを繰り返し、パラメータを制御メモリ1109に格納する。ステップ1401では、ペア作成コピー処理1106を起動して、処理を終了する。   In step 1400, the unused pair information 1110 whose use flag 1200 is 0 is selected, the use flag 1200 is set to 1, and the volume number of the copy source volume received from the host 1100 is set to the primary volume number 1201. Then, the volume number of the copy destination volume received from the host 1100 is set to the secondary volume number 1202, “being formed” is set to the pair status 1203, 1 is set to all bits of the difference information 1204, and the start address 1205 is set. An address indicating the start of an area such as a data set or a file received from the host 1100 is set in the field, and an address indicating the end of an area such as a data set or a file received from the host 1100 is set in the end address 1206. When a plurality of sets of the start address and the end address are given as parameters, this step is repeated, and the parameters are stored in the control memory 1109. In step 1401, a pair creation copy process 1106 is started, and the process ends.

図15は、ペア分割処理1103の処理フローを示している。ホスト1100は、制御装置1112に、コピー先ボリュームに入っているデータセットやファイルなどの領域を確定するときに、ペア分割要求を発行する。制御プロセッサ1101は、ホスト1100からペア分割要求を受領すると、ペア分割処理1103を開始する。ペア分割要求は、4つのパラメータを持つ。コピー元ボリュームのボリューム番号と、コピー先ボリュームのボリューム番号と、確定させたいデータセットやファイルなどの領域の始端を示すアドレスと、確定させたいデータ
セットやファイルなどの領域の終端を示すアドレスである。
FIG. 15 shows a processing flow of the pair division processing 1103. The host 1100 issues a pair split request to the control device 1112 when determining an area such as a data set or a file in the copy destination volume. Upon receiving the pair split request from the host 1100, the control processor 1101 starts the pair split processing 1103. The pair split request has four parameters. The volume number of the copy source volume, the volume number of the copy destination volume, the address indicating the start of the area of the data set or file to be determined, and the address indicating the end of the area of the data set or file to be determined. .

ステップ1500では、まず、コピー元ボリュームのボリューム番号を正ボリューム番号1201にもち、コピー先ボリュームのボリューム番号を副ボリューム番号1202に持つペア情報1110を選択し、当該ペア情報1110のペア状態1203に「分割中」を設定する。次に、ペア分割コピー処理1107を起動して、処理を終了する。   In step 1500, first, pair information 1110 having the volume number of the copy source volume in the primary volume number 1201 and the volume number of the copy destination volume in the secondary volume number 1202 is selected, and the pair status 1203 of the pair information 1110 is set to " Set to "Dividing". Next, the pair split copy processing 1107 is started, and the processing ends.

図16は、ライト処理1105の処理フローを示している。ホスト1100から書き込み要求を受領すると、制御プロセッサ1101は、ライト処理1105を開始する。書き込み要求は3つのパラメータを持っている。書き込みデータと、書き込みデータを格納するボリュームのボリューム番号と、書き込みデータを格納するボリューム内のアドレスである。   FIG. 16 shows a processing flow of the write processing 1105. Upon receiving a write request from the host 1100, the control processor 1101 starts a write process 1105. The write request has three parameters. The write data, the volume number of the volume that stores the write data, and the address in the volume that stores the write data.

ステップ1600では、使用フラグ1200が1になっているのペア情報1110の中から、パラメータとして受領したボリューム番号を正ボリューム番号1201に持ち、かつ、パラメータとして受領したアドレスが開始アドレス1205と終了アドレス1206の間にあるようなペア情報1110を選択する。前記条件にあうペア情報1110がない場合は、ステップ1607に進む。前記条件にあうペア情報1110あある場合は、ステップ1601に進む。   In step 1600, of the pair information 1110 in which the use flag 1200 is 1, the volume number received as a parameter has the primary volume number 1201 and the address received as a parameter is the start address 1205 and the end address 1206. Is selected as pair information 1110 between the two. If there is no pair information 1110 that satisfies the condition, the process proceeds to step 1607. If there is pair information 1110 that meets the above conditions, the process proceeds to step 1601.

ステップ1601では、ステップ1600で選択したペア情報1110のペア状態1203を参照する。ペア状態1203が「分割中」の場合はステップ1602に進む。ペア状態1203が「分割中」でない場合は、ステップ1608に進む。   In step 1601, the pair status 1203 of the pair information 1110 selected in step 1600 is referred to. If the pair status 1203 is “being split”, the process proceeds to step 1602. If the pair status 1203 is not “split”, the process proceeds to step 1608.

ステップ1602では、ステップ1600で選択したペア情報1110の差分情報1204を参照する。パラメータとして受領したアドレスに対応するトラックに対応するビットが1かどうかを調べる。1の場合はステップ1603に進む。0の場合はステップ1607に進む。   In step 1602, the difference information 1204 of the pair information 1110 selected in step 1600 is referred to. It is checked whether the bit corresponding to the track corresponding to the address received as a parameter is one. In the case of 1, the process proceeds to step 1603. If it is 0, the process proceeds to step 1607.

ステップ1603では、パラメータとして受領したアドレスに対応するトラックのデータを記憶装置1113からキャッシュメモリ1111に読み込む。   In step 1603, the data of the track corresponding to the address received as a parameter is read from the storage device 1113 into the cache memory 1111.

ステップ1604では、ステップ1603で読み込んだデータのコピーを、キャッシュメモリ1111に作成する。作成したデータは、副ボリューム番号1202が示すボリュームのデータであるが、記憶装置1113に書き込む時期はいつでも良い。   In step 1604, a copy of the data read in step 1603 is created in the cache memory 1111. The created data is data of the volume indicated by the secondary volume number 1202, but may be written to the storage device 1113 at any time.

ステップ1605では、ステップ1602で調べたビットに0を設定する。   In step 1605, 0 is set to the bit checked in step 1602.

ステップ1607では、パラメータとして受領した書き込みデータをキャッシュメモリ1111に格納して、処理を終了する。   In step 1607, the write data received as a parameter is stored in the cache memory 1111 and the process ends.

ステップ1608では、ステップ1600で選択したペア情報1110のペア状態1203を参照する。ペア状態1203が「形成中」または「形成完了」の場合は、ステップ1606に進む。ペア状態1203が「形成中」でも「形成完了」でもない場合は、ステップ1607に進む。   In step 1608, the pair status 1203 of the pair information 1110 selected in step 1600 is referred to. If the pair status 1203 is “forming” or “completion completed”, the process proceeds to step 1606. If the pair status 1203 is neither “being formed” nor “completed”, the process proceeds to step 1607.

ステップ1606では、パラメータとして受領したアドレスに対応するトラックに対応する差分情報1204のビットに1を設定する。   In step 1606, 1 is set to the bit of the difference information 1204 corresponding to the track corresponding to the address received as a parameter.

図17は、ペア作成コピー処理1106の処理フローを示している。ペア作成コピー処理1106は、ペア作成処理1102から起動される。パラメータとして、コピー元ボリュームのボリューム番号と、コピー先ボリュームのボリューム番号と、データセットやファイルなどの領域の始端を示すアドレスと、データセットやファイルなどの領域の終端を示すアドレス与えられる。   FIG. 17 shows a processing flow of the pair creation copy processing 1106. The pair creation copy process 1106 is started from the pair creation process 1102. As parameters, the volume number of the copy source volume, the volume number of the copy destination volume, an address indicating the start of an area such as a data set or a file, and an address indicating the end of an area such as a data set or a file are given.

ステップ1700では、まず、使用フラグ1200が1である使用中のペア情報1110の中から、パラメータとして与えられたコピー元ボリュームのボリューム番号を正ボリューム番号1201にもち、パラメータとして与えられたコピー先ボリュームのボリューム番号を副ボリューム番号1202にもち、パラメータとして与えられた始端を示すアドレスを開始アドレス1205にもち、パラメータとして与えられた終端を示すアドレスを終了アドレス1206にもつペア情報1110を選択する。次に、変数iに、選択したペア情報1110の開始アド
レス1205に対応するトラックのトラック番号を設定する。
In step 1700, first, the volume number of the copy source volume given as a parameter from the in-use pair information 1110 whose use flag 1200 is 1 is set as the primary volume number 1201, and the copy destination volume given as a parameter is used. Is selected as the sub-volume number 1202, the start address 1205 has the start address given as a parameter, and the end information 1206 has the end address 1206 given as a parameter. Next, the track number of the track corresponding to the start address 1205 of the selected pair information 1110 is set to the variable i.

ステップ1701では、ステップ1700で選択したペア情報1110の差分情報1204を参照し、トラック番号が変数iであるトラックに対応するビットが0か1かを調べる。0の場合はステップ1705に進む。1の場合はステップ
1702に進む。
In step 1701, it is checked whether the bit corresponding to the track whose track number is variable i is 0 or 1 by referring to the difference information 1204 of the pair information 1110 selected in step 1700. If it is 0, the process proceeds to step 1705. In the case of 1, the process proceeds to step 1702.

ステップ1702では、トラック番号が変数iであるトラックのデータを、記憶装置1113からキャッシュメモリ1111に読み込む。   In step 1702, the data of the track whose track number is variable i is read from the storage device 1113 into the cache memory 1111.

ステップ1703では、ステップ1702で取りこんだデータのコピーを、キャッシュメモリ1111に作成する。作成したデータは、パラメータとして与えられたコピー先ボリュームのボリューム番号のボリュームのデータであるが、記憶装置1113に書き込む時期はいつでも良い。   In step 1703, a copy of the data taken in step 1702 is created in the cache memory 1111. The created data is the volume data of the volume number of the copy destination volume given as a parameter, but the data may be written to the storage device 1113 at any time.

ステップ1704では、ステップ1701で参照したビットに0を設定する。   In step 1704, 0 is set to the bit referred to in step 1701.

ステップ1705では、コピーしたトラックが終了アドレス1206に対応するトラックまで到達したかどうかを調べる。到達している場合はステップ170
7に進む。到達していない場合は、ステップ1706に進む。
In step 1705, it is checked whether or not the copied track has reached the track corresponding to the end address 1206. If it has reached step 170
Proceed to 7. If not, the process proceeds to step 1706.

ステップ1706では、変数iに1を加算して、ステップ1701に進み、次のトラックに処理を進める。   In step 1706, 1 is added to the variable i, and the flow advances to step 1701 to proceed to the next track.

ステップ1707では、ペア状態1203に「形成完了」を設定して、処理を終了する。   In step 1707, “formation completed” is set in the pair status 1203, and the process ends.

図18は、ペア分割コピー処理1107の処理フローを示している。ペア分割コピー処理1107は、ペア分割処理1103から起動される。パラメータとして、コピー元ボリュームのボリューム番号と、コピー先ボリュームのボリューム番号と、データセットやファイルなどの領域の始端を示すアドレスと、データセットやファイルなどの領域の終端を示すアドレスが与えられる。   FIG. 18 shows a processing flow of the pair split copy processing 1107. The pair split copy process 1107 is started from the pair split process 1103. As parameters, the volume number of the copy source volume, the volume number of the copy destination volume, an address indicating the start of an area such as a data set or a file, and an address indicating the end of an area such as a data set or a file are given.

ステップ1800では、まず、使用フラグ1200が1である使用中のペア情報1110の中から、パラメータとして与えられたコピー元ボリュームのボリューム番号を正ボリューム番号1201にもち、パラメータとして与えられたコピー先ボリュームのボリューム番号を副ボリューム番号1202にもち、パラメータとして与えられた始端を示すアドレスを開始アドレス1205にもち、パラメータとして与えられた終端を示すアドレスを終了アドレス1206にもつペア情報1110を選択する。次に、変数iに、選択したペア情報1110の開始アド
レス1205に対応するトラックのトラック番号を設定する。
In step 1800, the volume number of the copy source volume given as a parameter is set to the primary volume number 1201 from the used pair information 1110 whose use flag 1200 is 1, and the copy destination volume given as a parameter is used. Is selected as the sub-volume number 1202, the start address 1205 has the start address given as a parameter, and the end information 1206 has the end address 1206 given as a parameter. Next, the track number of the track corresponding to the start address 1205 of the selected pair information 1110 is set to the variable i.

ステップ1801では、ステップ1800で選択したペア情報1110の差分情報1204を参照し、トラック番号が変数iであるトラックに対応するビットが0か1かを調べる。0の場合はステップ1805に進む。1の場合はステップ1802に進む。   In step 1801, it is checked whether the bit corresponding to the track whose track number is variable i is 0 or 1 by referring to the difference information 1204 of the pair information 1110 selected in step 1800. If it is 0, the process proceeds to step 1805. In the case of 1, the process proceeds to step 1802.

ステップ1802では、トラック番号が変数iであるトラックのデータを、記憶装置1113からキャッシュメモリ1111に読み込む。   In step 1802, the data of the track whose track number is variable i is read from the storage device 1113 into the cache memory 1111.

ステップ1803では、ステップ1702で取りこんだデータのコピーを、キャッシュメモリ1111に作成する。作成したデータは、パラメータとして与えられたコピー先ボリュームのボリューム番号のボリュームのデータであるが、記憶装置1113に書き込む時期はいつでも良い。   In step 1803, a copy of the data captured in step 1702 is created in the cache memory 1111. The created data is the volume data of the volume number of the copy destination volume given as a parameter, but the data may be written to the storage device 1113 at any time.

ステップ1804では、ステップ1801で参照したビットに0を設定する。   In step 1804, 0 is set to the bit referred to in step 1801.

ステップ1805では、コピーしたトラックが終了アドレス1206に対応するトラックまで到達したかどうかを調べる。到達している場合はステップ1807に進む。到達していない場合は、ステップ1806に進む。   In step 1805, it is checked whether the copied track has reached the track corresponding to the end address 1206. If it has reached, the process proceeds to step 1807. If not, the process proceeds to step 1806.

ステップ1806では、変数iに1を加算して、ステップ1801に進み、次のトラックに処理を進める。   In step 1806, 1 is added to the variable i, and the flow advances to step 1801 to proceed to the next track.

ステップ1807では、ペア状態1203に「分割完了」を設定して、処理を終了する。   In step 1807, “division completion” is set in the pair status 1203, and the process ends.

図19は、本発明の第三の実施の形態を示すシステム構成図である。システムは、ホスト1900、制御装置1901、記憶装置1912から構成される。ホスト1900は、ユーザの指示、あるいは、ユーザプログラムによって、制御装置1901に対して、さまざまな要求を発行する。記憶装置1912は、データを格納する。制御装置1901は、ホスト1900からの要求にしたがって、記憶装置1912からデータを読み取ったり、記憶装置1912にデータを書き込んだりする。   FIG. 19 is a system configuration diagram showing the third embodiment of the present invention. The system includes a host 1900, a control device 1901, and a storage device 1912. The host 1900 issues various requests to the control device 1901 according to a user's instruction or a user program. The storage device 1912 stores data. The control device 1901 reads data from or writes data to the storage device 1912 according to a request from the host 1900.

制御装置1901は、制御プロセッサ1902、制御メモリ1910、キャッシュメモリ1911から構成される。   The control device 1901 includes a control processor 1902, a control memory 1910, and a cache memory 1911.

制御プロセッサ1902は、制御装置1901を制御する。制御プロセッサ1902内では、ペア作成処理1903、エクステント分割処理1904、エクステント結合処理1905、ライト処理1906、エクステント分割コピー処理1907、エクステント結合コピー処理1908、ペア形成コピー処理1913が動作する。制御メモリ1910は、制御プロセッサ1902が制御装置1901を制御するために必要な制御情報、例えば、ペア情報1909を格納する。キャッシュメモリ1911は、ホスト1900から受領したデータや記憶装置1912から読みとったデータを一時的に格納する。   The control processor 1902 controls the control device 1901. In the control processor 1902, pair creation processing 1903, extent division processing 1904, extent combination processing 1905, write processing 1906, extent division copy processing 1907, extent combination copy processing 1908, and pair formation copy processing 1913 operate. The control memory 1910 stores control information required for the control processor 1902 to control the control device 1901, for example, pair information 1909. The cache memory 1911 temporarily stores data received from the host 1900 and data read from the storage device 1912.

図20は、ペア情報1909のデータ構造を示している。ペア情報1909は、使用フラグ2001、正ボリューム番号2002、副ボリューム番号2003、差分情報2004、ペア状態2005、エクステント情報2006から構成される。使用フラグ2001は、当該ペア情報1909が使用されているかどうか、すなわち、当該ペア情報1909内の情報が有効かどうかを示すフラグで、1が有効を示し、0が無効を示す。正ボリューム番号2002は、ホスト1900からの要求によって、ボリュームのコピーを作成するときの、オリジナルとなる
ボリュームの番号を示す。副ボリューム番号2003は、ホスト100からの要求によって、ボリュームのコピーを作成するときの、オリジナルとなるボリュームのデータをコピーしたものを格納するボリュームの番号を示す。差分情報2004は、正ボリューム番号2002によって示されるボリュームと、副ボリューム番号2003によって示されるボリュームとでデータが異なっているところを示す情報である。ペア状態2005は、ボリューム全体やボリュームの一部のコピーを作成する過程がどこまで進んでいるかを示し、「形成中」、「形成完了」
、「エクステント分割中」、「エクステント分割完了」、「エクステント結合中」の5個の値を持つ。エクステント情報2006は、データセットやファイルなどの領域がボリュームのどこに格納されているかを示す情報で、開始アドレス2007、終了アドレス2008から構成される。開始アドレス2007は、データセットやファイルなどの領域の始端を示すアドレスである。終了アドレス2008は、データセットやファイルなどの領域の終端を示すアドレスである。
FIG. 20 shows the data structure of the pair information 1909. The pair information 1909 includes a use flag 2001, a primary volume number 2002, a secondary volume number 2003, difference information 2004, a pair status 2005, and extent information 2006. The use flag 2001 is a flag indicating whether the pair information 1909 is used, that is, whether the information in the pair information 1909 is valid. 1 indicates valid, and 0 indicates invalid. The primary volume number 2002 indicates the number of the original volume when a copy of the volume is created in response to a request from the host 1900. The secondary volume number 2003 indicates the number of a volume that stores a copy of the data of the original volume when a copy of the volume is created in response to a request from the host 100. The difference information 2004 is information indicating that data differs between the volume indicated by the primary volume number 2002 and the volume indicated by the secondary volume number 2003. The pair status 2005 indicates how far the process of making a copy of the entire volume or a part of the volume has progressed, and is “being formed” and “completed”.
, “Extent split”, “extent split completed”, and “extent merged”. The extent information 2006 is information indicating where a region such as a data set or a file is stored in the volume, and is composed of a start address 2007 and an end address 2008. The start address 2007 is an address indicating the start of an area such as a data set or a file. The end address 2008 is an address indicating the end of an area such as a data set or a file.

図21は、差分情報2004の構造を示している。差分情報2004は、作成中差分情報2100と分割中差分情報2101という2種類のビットマップから構成される。1ビットは、1トラックに対応し、値が0のとき、対応するトラックのデータは、正ボリューム番号2002で示されるボリュームと副ボリューム番号2003で示されるボリュームとで一致していることを示し、値が1のとき、一致していないことを示す。もちろん、1ビットを他の単位に適用させても良い。   FIG. 21 shows the structure of the difference information 2004. The difference information 2004 is composed of two types of bitmaps, that is, the creating difference information 2100 and the dividing difference information 2101. One bit corresponds to one track, and when the value is 0, it indicates that the data of the corresponding track matches the volume indicated by the primary volume number 2002 and the volume indicated by the secondary volume number 2003, When the value is 1, it indicates that they do not match. Of course, one bit may be applied to another unit.

図22は、ペア作成処理1903の処理フローを示している。ホスト1900は、制御装置1901に、あるボリュームのコピーを作成させるとき、ペア作成要求を発行する。制御プロセッサ1902は、ホスト1900が発行したペア作成要求を受領すると、ペア作成処理1903を開始する。ペア作成要求は、2個のパラメータを持つ。コピーを作成するボリューム(このボリュームをオリジナルボリュームと呼ぶ)のボリューム番号と、コピーデータを格納するボリューム(このボリュームをコピーボリュームと呼ぶ)のボリューム番号である。   FIG. 22 shows a processing flow of the pair creation processing 1903. The host 1900 issues a pair creation request when the control device 1901 creates a copy of a certain volume. Upon receiving the pair creation request issued by the host 1900, the control processor 1902 starts the pair creation processing 1903. The pair creation request has two parameters. A volume number of a volume for creating a copy (this volume is called an original volume) and a volume number of a volume for storing copy data (this volume is called a copy volume).

ステップ2200では、使用フラグ2001が0になっている未使用のペア情報1909を選択し、使用フラグ2001に1を設定し、ホスト1900から受領したオリジナルボリュームのボリューム番号を正ボリューム番号2002に設定し、ホスト1900から受領したコピーボリュームのボリューム番号を副ボリューム番号2003に設定し、ペア状態2005に「形成中」を設定し、差分情報2004の作成中差分情報2100のすべてのビットに1を設定し、分割中差分情報2101のすべてのビットに0を設定する。   In step 2200, unused pair information 1909 whose use flag 2001 is 0 is selected, 1 is set in the use flag 2001, and the volume number of the original volume received from the host 1900 is set in the primary volume number 2002. , Sets the volume number of the copy volume received from the host 1900 to the secondary volume number 2003, sets “forming” to the pair status 2005, and sets 1 to all the bits of the creating difference information 2100 of the difference information 2004. , 0 is set to all bits of the dividing difference information 2101.

ステップ2201では、ペア作成コピー処理1913を起動して、終了する。   In step 2201, the pair creation copy process 1913 is started and ended.

図23は、エクステント分割処理1904の処理フローを示している。ホスト1900は、ボリューム内の特定の領域に関して、コピーボリュームに格納されるデータを確定させるとき、エクステント分割要求を発行する。制御プロセッサ1902は、ホスト1900が発行したエクステント分割要求を受領すると、エクステント分割処理を開始する。エクステント分割要求は、1個のオリジナルボリュームのボリューム番号と、1個のコピーボリュームのボリューム番号と、1個以上のデータを確定させたい領域の始端を示す開始アドレスと、1個以上終端
を示す終了アドレスから構成されるパラメータを持つ。
FIG. 23 shows a processing flow of the extent division processing 1904. The host 1900 issues an extent division request when determining data to be stored in the copy volume for a specific area in the volume. Upon receiving the extent division request issued by the host 1900, the control processor 1902 starts the extent division processing. The extent division request includes a volume number of one original volume, a volume number of one copy volume, a start address indicating a start end of an area where one or more data is to be determined, and an end indicating one or more end ends. It has a parameter consisting of an address.

ステップ2300では、まず、パラメータとして受領したオリジナルボリュームのボリューム番号を正ボリューム番号2002にもち、パラメータとして受領したコピーボリュームのボリューム番号を副ボリューム番号2003にもつペア情報1909を選択する。次に、選択したペア情報1909のペア状態2005に「エクステント分割中」を設定する。次に、選択したペア情報1909のエクステント情報2006の開始アドレス2007にパラメータとして受領した開始アドレスを設定し、終了アドレス2008にパラメータとして受領した終了アドレスを設定する。   In step 2300, first, pair information 1909 having the primary volume number 2002 as the volume number of the original volume received as a parameter, and the secondary volume number 2003 as the volume number of the received copy volume as a parameter is selected. Next, “extent in progress” is set in the pair status 2005 of the selected pair information 1909. Next, the received start address is set as a parameter to the start address 2007 of the extent information 2006 of the selected pair information 1909, and the received end address is set to the end address 2008 as a parameter.

ステップ2301では、エクステント分割コピー処理を起動して、終了する。   In step 2301, extent division copy processing is started and ended.

図24は、エクステント結合処理1905の処理フローを示している。制御プ
ロセッサ1900は、ホスト1900が発行したエクステント結合要求を受領す
ると、エクステント結合処理1905を開始する。エクステント結合要求は、オ
リジナルボリュームのボリューム番号とコピーボリュームのボリューム番号から
構成されるパラメータを持つ。
FIG. 24 shows a processing flow of the extent combining processing 1905. Upon receiving the extent combining request issued by the host 1900, the control processor 1900 starts extent combining processing 1905. The extent combination request has a parameter composed of the volume number of the original volume and the volume number of the copy volume.

ステップ2400では、まず、パラメータとして与えられたオリジナルボリュームのボリューム番号を正ボリューム番号2002にもち、パラメータとして与えられたコピーボリュームのボリューム番号を副ボリューム番号2003にもつペア情報1909を選択し、選択したペア情報1909のペア状態2005に「エクステント結合中」を設定する。次に、エクステント結合コピー処理1908を起動して、終了する。   In step 2400, first, pair information 1909 having the original volume number given as a parameter as the primary volume number 2002 and the copy volume given as a parameter as the secondary volume number 2003 is selected and selected. In the pair status 1905 of the pair information 1909, “extent merge” is set. Next, the extent combination copy processing 1908 is started and ended.

図25は、ペア作成コピー処理1913の処理フローを示している。ペア作成コピー処理1913は、ペア作成処理1903から起動される。パラメータとして、オリジナルボリュームのボリューム番号と、コピーボリュームのボリューム番号が与えられる。   FIG. 25 shows a processing flow of the pair creation copy processing 1913. The pair creation copy process 1913 is started from the pair creation process 1903. The volume number of the original volume and the volume number of the copy volume are given as parameters.

ステップ2500では、変数iに、パラメータとして与えられたオリジナルボリュームの先頭のトラックのトラック番号を設定する。   In step 2500, the track number of the first track of the original volume given as a parameter is set in the variable i.

ステップ2501では、まず、パラメータとして与えられたオリジナルボリュームのボリューム番号を正ボリューム番号2002にもち、パラメータとして与えられたコピーボリュームのボリューム番号を副ボリューム番号2003にもつペア情報1909を選択する。次に、選択したペア情報2000の差分情報2004の作成中差分情報2100を参照して、トラック番号が変数iであるトラックに対応するビットが0か1かを調べる。0の場合は、ステップ2505に進む。1の場合は、ステップ2502に進む。   In step 2501, first, pair information 1909 having the volume number of the original volume given as a parameter as the primary volume number 2002 and the volume number of the copy volume given as a parameter as the secondary volume number 2003 is selected. Next, with reference to the in-creation difference information 2100 of the difference information 2004 of the selected pair information 2000, it is checked whether the bit corresponding to the track whose track number is the variable i is 0 or 1. If it is 0, the process proceeds to step 2505. In the case of 1, the process proceeds to step 2502.

ステップ2502では、トラック番号が変数iであるトラックのデータを、記憶装置1912からキャッシュメモリ1911に読み込む。   In step 2502, the data of the track whose track number is variable i is read from the storage device 1912 to the cache memory 1911.

ステップ2503では、ステップ2502で読み込んだデータのコピーを、キャッシュメモリ1911に作成する。作成したデータは、パラメータとして与えられたコピーボリュームのボリューム番号のボリュームのデータであるが、記憶装置1912に書き込む時期はいつでも良い。   In step 2503, a copy of the data read in step 2502 is created in the cache memory 1911. The created data is the data of the volume having the volume number of the copy volume given as a parameter, but may be written to the storage device 1912 at any time.

ステップ2504では、ステップ2501で参照したビットに0を設定する。   In step 2504, 0 is set to the bit referred to in step 2501.

ステップ2505では、トラック番号が変数iであるトラックが、パラメータとして与えられたオリジナルボリュームのボリューム番号に対応するボリュームの終端にあたるトラックかどうかを調べる。終端にあたるトラックの場合、ステップ2507に進む。終端にあたるトラックでない場合、ステップ2506に進む。   In step 2505, it is checked whether the track whose track number is variable i is the end of the volume corresponding to the volume number of the original volume given as a parameter. In the case of the last track, the process proceeds to step 2507. If the track is not the end track, the process proceeds to step 2506.

ステップ2506では、変数iを更新してステップ2501に進み、次のトラックに処理を進める。   In step 2506, the variable i is updated, and the flow advances to step 2501 to proceed to the next track.

ステップ2507では、ステップ2501で選択したペア情報1909のペア状態2005に「形成完了」を設定し、処理を終了する。   In step 2507, “formation completed” is set in the pair status 2005 of the pair information 1909 selected in step 2501, and the process ends.

図26は、ライト処理1906の処理フローを示している。ホスト1900から書き込み要求を受領すると、制御プロセッサ1902は、ライト処理1906を開始する。書き込み要求は3個のパラメータを持っている。書き込みデータと、書き込みデータを格納するボリュームのボリューム番号と、書き込みデータを格納するボリューム内のアドレスである。   FIG. 26 shows a processing flow of the write processing 1906. Upon receiving a write request from the host 1900, the control processor 1902 starts write processing 1906. The write request has three parameters. The write data, the volume number of the volume that stores the write data, and the address in the volume that stores the write data.

ステップ2600では、使用フラグ2001が1のペア情報1909の中から、パラメータとして受領したボリューム番号を正ボリューム番号2002にもつペア情報1909を選択する。前記条件にあうペア情報1909がない場合は、ステップ2608に進む。前記条件にあうペア情報1909がある場合は、ステップ2601に進む。   In step 2600, the pair information 1909 having the primary volume number 2002 with the volume number received as a parameter is selected from among the pair information 1909 whose use flag 2001 is 1. If there is no pair information 1909 that satisfies the above condition, the process proceeds to step 2608. If there is pair information 1909 that meets the above conditions, the process proceeds to step 2601.

ステップ2601では、ステップ2600で選択したペア情報1909のペア状態2005を調べる。ペア状態2005が「エクステント分割中」の場合はステップ2602に進む。それ以外の場合はステップ2607に進む。   In step 2601, the pair status 2005 of the pair information 1909 selected in step 2600 is checked. If the pair status 2005 is “extent split”, the process proceeds to step 2602. Otherwise, the process proceeds to step 2607.

ステップ2602では、ステップ2600で選択したペア情報1909のエクステント情報2006を参照し、パラメータとして受領したボリューム内のアドレスがエクステント情報2006の開始アドレス2007と終了アドレス2008の間に含まれるかどうかを調べる。含まれる場合はステップ2603に進む。含まれない場合はステップ2607に進む。   In step 2602, it is determined whether the address in the volume received as a parameter is included between the start address 2007 and the end address 2008 of the extent information 2006 by referring to the extent information 2006 of the pair information 1909 selected in step 2600. If it is included, the process proceeds to step 2603. If not included, the process proceeds to step 2607.

ステップ2603では、ステップ2600で選択したペア情報1909の差分情報2004の作成中差分情報2100を参照し、パラメータとして与えられたボリューム内のアドレスに対応するトラックに対応するビットが0か1かを調べる。0の場合は、ステップ2607に進む。1の場合は、ステップ2604に進む。   In step 2603, reference is made to the in-creation difference information 2100 of the difference information 2004 of the pair information 1909 selected in step 2600 to check whether the bit corresponding to the track corresponding to the address in the volume given as a parameter is 0 or 1. . If it is 0, the process proceeds to step 2607. In the case of 1, the process proceeds to step 2604.

ステップ2604では、パラメータとして受領したボリューム内のアドレスに対応するトラックのデータを、記憶装置1912からキャッシュメモリ1911に読み込む。   In step 2604, the data of the track corresponding to the address in the volume received as a parameter is read from the storage device 1912 to the cache memory 1911.

ステップ2605では、ステップ2604で読み込んだデータのコピーをキャッシュメモリ1911に作成する。作成したコピーは、ステップ2600で選択したペア情報1909の副ボリューム番号2003が示すボリュームのデータであるが、記憶装置1912に書き込む時期はいつでも良い。   In step 2605, a copy of the data read in step 2604 is created in the cache memory 1911. The created copy is the data of the volume indicated by the secondary volume number 2003 of the pair information 1909 selected in step 2600, but may be written to the storage device 1912 at any time.

ステップ2606では、ステップ2603で調べたビットに0を設定する。   In step 2606, 0 is set to the bit checked in step 2603.

ステップ2607では、まず、ステップ2600で選択したペア情報1909のペア状態2005を調べる。ペア状態2005が、「形成中」、「形成完了」、「エクステント結合中」の場合は、差分情報2004の作成中差分情報2100のパラメータとして与えられたボリューム内のアドレスに対応するトラックに対応するビットに1を設定する。ペア状態2005が、「エクステント分割中」、「エクステント分割完了」の場合は、差分情報2004の分割中差分情報2100のパラメータとして与えられたボリューム内のアドレスに対応するトラックに対応するビットに1を設定する。   In step 2607, first, the pair status 2005 of the pair information 1909 selected in step 2600 is checked. When the pair status 2005 is “being formed”, “being formed”, or “being combined extents”, it corresponds to the track corresponding to the address in the volume given as a parameter of the difference information 2100 during the creation of the difference information 2004 Set the bit to 1. If the pair status 2005 is “extent split” or “extent split complete”, 1 is set to the bit corresponding to the track corresponding to the address in the volume given as the parameter of the split difference information 2100 of the difference information 2004. Set.

ステップ2608では、パラメータとして受領した書き込みデータをキャッシュメモリ1911に格納して、処理を終了する。   In step 2608, the write data received as a parameter is stored in the cache memory 1911, and the process ends.

図27は、エクステント分割コピー処理1907の処理フローを示している。エクステント分割コピー処理1907は、エクステント分割処理1904から起動され、パラメータとしてオリジナルボリュームのボリューム番号とコピーボリュームのボリューム番号が与えられる。   FIG. 27 shows a processing flow of the extent division copy processing 1907. The extent division copy processing 1907 is started from the extent division processing 1904, and the volume number of the original volume and the volume number of the copy volume are given as parameters.

ステップ2700では、まず、パラメータとして与えられたオリジナルボリュームのボリューム番号を正ボリューム番号2002にもち、パラメータとして与えられたコピーボリュームのボリューム番号を副ボリューム番号2003に持つペア情報1909を選択する。次に、選択したペア情報1909のエクステント情報2006を1個選択し、変数iに開始アドレス2007を設定する。   In step 2700, first, pair information 1909 having the volume number of the original volume given as a parameter as the primary volume number 2002 and the volume number of the copy volume given as a parameter as the secondary volume number 2003 is selected. Next, one piece of extent information 2006 of the selected pair information 1909 is selected, and a start address 2007 is set to a variable i.

ステップ2701では、ステップ2700で選択したペア情報1909の差分情報2004の作成中差分情報2100を参照し、トラック番号が変数iであるトラックに対応するビットを調べる。0の場合はステップ2705に進む。1の場合はステップ2702に進む。   In step 2701, the bit corresponding to the track whose track number is variable i is checked with reference to the creating difference information 2100 of the difference information 2004 of the pair information 1909 selected in step 2700. If it is 0, the process proceeds to step 2705. In the case of 1, the process proceeds to step 2702.

ステップ2702では、トラック番号が変数iであるトラックのデータを、記憶装置1912からキャッシュメモリ1911に読み込む。   In step 2702, the data of the track whose track number is the variable i is read from the storage device 1912 to the cache memory 1911.

ステップ2703では、ステップ2702で読み込んだデータのコピーをキャッシュメモリ1911に作成する。作成したデータは、パラメータとして与えられたコピーボリュームのボリューム番号に対応するボリュームのデータであるが、記憶装置1912に書き込む時期はいつでも良い。   In step 2703, a copy of the data read in step 2702 is created in the cache memory 1911. The created data is data of a volume corresponding to the volume number of the copy volume given as a parameter, but may be written to the storage device 1912 at any time.

ステップ2704では、ステップ2701で調べたビットに0を設定する。   In step 2704, 0 is set to the bit checked in step 2701.

ステップ2705では、トラック番号が変数iであるトラックが、終了アドレス2008に相当するトラックかどうかを調べる。相当するトラックの場合、ステップ2708に進む。それ以外の場合、ステップ2706に進む。   In step 2705, it is checked whether the track whose track number is variable i is a track corresponding to the end address 2008. In the case of the corresponding track, the process proceeds to step 2708. Otherwise, go to step 2706.

ステップ2706では、変数iを更新してステップ2701に進み、次のトラックに処理を進める。   In step 2706, the variable i is updated, and the flow advances to step 2701 to proceed to the next track.

ステップ2708では、ステップ2700で選択したペア情報1909のすべてのエクステント情報2006に対して、ステップ2700からステップ2706までの処理を行ったかどうかを調べる。処理済みの場合は、ステップ2707に進む。未処理のエクステント情報2006がある場合は、ステップ2700に進み、次のエクステント情報2006に記載されている範囲について処理を実行する。   In step 2708, it is checked whether or not the processing from step 2700 to step 2706 has been performed on all the extent information 2006 of the pair information 1909 selected in step 2700. If the processing has been completed, the process proceeds to step 2707. If there is unprocessed extent information 2006, the process proceeds to step 2700, and the process is executed for the range described in the next extent information 2006.

ステップ2707では、ステップ2700で選択したペア情報1909のペア状態2005に「エクステント分割完了」を設定して、処理を終了する。これにより、エクステント分割要求のパラメータとして与えられたオリジナルボリュームの特定の範囲の、エクステント分割要求を発行した時刻のデータが、コピーボリュームに作成された。   In step 2707, “extent division completed” is set in the pair status 2005 of the pair information 1909 selected in step 2700, and the process ends. As a result, data of a specific range of the original volume given as a parameter of the extent division request and at the time when the extent division request was issued is created in the copy volume.

図28は、エクステント結合コピー処理1908の処理フローを示している。エクステント結合コピー処理1908は、エクステント結合処理1905から起動され、パラメータとしてオリジナルボリュームのボリューム番号とコピーボリュームのボリューム番号が与えられる。   FIG. 28 shows a processing flow of the extent combination copy processing 1908. The extent combination copy processing 1908 is started from the extent combination processing 1905, and the volume number of the original volume and the volume number of the copy volume are given as parameters.

ステップ2800では、まず、パラメータとして与えられたオリジナルボリュームのボリューム番号を正ボリューム番号2002にもち、パラメータとして与えられたコピーボリュームのボリューム番号を副ボリューム番号2003に持つペア情報1909を選択する。次に、選択したペア情報1909のエクステント情報2006を1個選択し、変数iに開始アドレス2007を設定する。   In step 2800, first, pair information 1909 having the volume number of the original volume given as a parameter as the primary volume number 2002 and the volume number of the copy volume given as a parameter in the secondary volume number 2003 is selected. Next, one piece of extent information 2006 of the selected pair information 1909 is selected, and a start address 2007 is set to a variable i.

ステップ2801では、ステップ2800で選択したペア情報1909の差分情報2004の分割中差分情報2101を参照し、トラック番号が変数iであるトラックに対応するビットを調べる。0の場合はステップ2805に進む。1の場合はステップ2802に進む。   In step 2801, the bit corresponding to the track whose track number is variable i is checked by referring to the in-division difference information 2101 of the difference information 2004 of the pair information 1909 selected in step 2800. If it is 0, the process proceeds to step 2805. In the case of 1, the process proceeds to step 2802.

ステップ2802では、トラック番号が変数iであるトラックのデータを、記憶装置1912からキャッシュメモリ1911に読み込む。   In step 2802, the data of the track whose track number is the variable i is read from the storage device 1912 to the cache memory 1911.

ステップ2803では、ステップ2802で読み込んだデータのコピーをキャッシュメモリ1911に作成する。作成したデータは、パラメータとして与えられたコピーボリュームのボリューム番号に対応するボリュームであるが、記憶装置1912に書き込む時期はいつでも良い。   In step 2803, a copy of the data read in step 2802 is created in the cache memory 1911. The created data is a volume corresponding to the volume number of the copy volume given as a parameter, but may be written to the storage device 1912 at any time.

ステップ2804では、ステップ2801で調べたビットに0を設定する。   In step 2804, 0 is set to the bit checked in step 2801.

ステップ2805では、トラック番号が変数iであるトラックが、終了アドレ
ス2008に相当するトラックかどうかを調べる。相当するトラックの場合、ス
テップ2808に進む。それ以外の場合、ステップ2806に進む。
In step 2805, it is checked whether the track whose track number is variable i is a track corresponding to the end address 2008. In the case of the corresponding track, the process proceeds to step 2808. Otherwise, go to step 2806.

ステップ2806では、変数iを更新してステップ2801に進み、次のトラックに処理を進める。   In step 2806, the variable i is updated, and the flow advances to step 2801 to proceed to the next track.

ステップ2808では、ステップ2800で選択したペア情報1909のすべてのエクステント情報2006に対して、ステップ2800からステップ2806までの処理を行ったかどうかを調べる。処理済みの場合は、ステップ2807に進む。未処理のエクステント情報2006がある場合は、ステップ2800に進み、次のエクステント情報2006に記載されている範囲について処理を実行する。   In step 2808, it is checked whether or not the processing from step 2800 to step 2806 has been performed on all the extent information 2006 of the pair information 1909 selected in step 2800. If the processing has been completed, the process proceeds to step 2807. If there is unprocessed extent information 2006, the process advances to step 2800 to execute processing for the range described in the next extent information 2006.

ステップ2807では、ステップ2800で選択したペア情報1909のペア状態2005に「形成完了」を設定して、処理を終了する。   In step 2807, “formation completed” is set in the pair status 2005 of the pair information 1909 selected in step 2800, and the process ends.

ディスク装置の性能を向上させるために、ライトデータを複数のディスクに並列に書き込むディスクアレイと技術がある。第一の実施の形態、第二の実施の形態、第三の実施の形態に記載されているボリュームは、ディスクアレイ技術を適用して構成されたものであっても良い。第一の実施の形態、第二の実施の形態、第三の実施の形態に記載されているボリュームは、ディスクアレイ技術を適用せず、単一のディスクに格納される領域であっても良い。第一の実施の形態、第二の実施の形態、第三の実施の形態に記載されているオリジナルボリュームは、デ
ィスクアレイ技術を適用して構成され、コピーボリュームは、ディスクアレイ技術を適用せず、単一のディスクに格納される領域であっても良い。第一の実施の形態、第二の実施の形態、第三の実施の形態に記載されているオリジナルボリュームは、ディスクアレイ技術を適用せず、単一のディスクに格納される領域であり、コピーボリュームは、ディスクアレイ技術を適用して構成されたものであっても良い。
In order to improve the performance of a disk device, there is a disk array and a technology for writing write data to a plurality of disks in parallel. The volumes described in the first embodiment, the second embodiment, and the third embodiment may be configured by applying the disk array technology. The volumes described in the first embodiment, the second embodiment, and the third embodiment may be areas stored in a single disk without applying the disk array technology. . The original volumes described in the first embodiment, the second embodiment, and the third embodiment are configured by applying the disk array technology, and the copy volumes are not applied by the disk array technology. , May be an area stored on a single disk. The original volume described in the first embodiment, the second embodiment, and the third embodiment is an area stored on a single disk without applying the disk array technology, and The volume may be configured by applying the disk array technology.

本発明の第一の実施形態におけるシステムの構成を示す。1 shows a configuration of a system according to a first embodiment of the present invention. 本発明を実施するさいに、制御プロセッサが必要とする制御情報の内容を示す。The contents of the control information required by the control processor when implementing the present invention will be described. 制御情報のうちの差分情報の構成を示す。4 shows a configuration of difference information of the control information. ホストからペア作成要求を受領したときの処理フローを示す。10 shows a processing flow when a pair creation request is received from a host. ホストからペア分割要求を受領したときの処理フローを示す。10 shows a processing flow when a pair split request is received from a host. ホストからエクステントアップデート要求を受領したときの処理フローを示す。10 shows a processing flow when an extent update request is received from a host. ホストから書き込み要求を受領したときの処理フローを示す。4 shows a processing flow when a write request is received from a host. ペア作成コピー処理の処理フローを示す。4 shows a processing flow of pair creation copy processing. ペア分割コピー処理の処理フローを示す。4 shows a processing flow of pair split copy processing. エクステントアップデートコピー処理の処理フローを示す。5 shows a processing flow of extent update copy processing. 本発明の第二の実施形態におけるシステムの構成を示す。7 shows a configuration of a system according to a second embodiment of the present invention. 本発明を実施するさいに、制御プロセッサが必要とする制御情報の内容を示す。The contents of the control information required by the control processor when implementing the present invention will be described. 制御情報のうちの差分情報の構成を示す。4 shows a configuration of difference information of the control information. ホストからペア作成要求を受領したときの処理フローを示す。10 shows a processing flow when a pair creation request is received from a host. ホストからペア分割要求を受領したときの処理フローを示す。10 shows a processing flow when a pair split request is received from a host. ホストから書き込み要求を受領したときの処理フローを示す。4 shows a processing flow when a write request is received from a host. ペア作成コピー処理の処理フローを示す。4 shows a processing flow of pair creation copy processing. ペア分割コピー処理の処理フローを示す。4 shows a processing flow of pair split copy processing. 本発明の第三の実施形態におけるシステムの構成を示す。9 shows a configuration of a system according to a third embodiment of the present invention. 本発明を実施するさいに、制御プロセッサが必要とする制御情報の内容を示す。The contents of the control information required by the control processor when implementing the present invention will be described. 制御情報のうちの差分情報の構成を示す。4 shows a configuration of difference information of the control information. ホストからペア作成要求を受領したときの処理フローを示す。10 shows a processing flow when a pair creation request is received from a host. ホストからエクステント分割要求を受領したときの処理フローを示す。10 shows a processing flow when an extent division request is received from a host. ホストからエクステント結合要求を受領したときの処理フローを示す。14 shows a processing flow when an extent combination request is received from a host. ペア作成コピー処理の処理フローを示す。4 shows a processing flow of pair creation copy processing. ホストからライト要求を受領したときの処理フローを示す。10 shows a processing flow when a write request is received from a host. エクステント分割コピー処理の処理フローを示す。4 shows a processing flow of extent division copy processing. エクステント結合コピー処理の処理フローを示す。4 shows a processing flow of extent combination copy processing.

符号の説明Explanation of reference numerals

100…ホスト
101…制御プロセッサ
109…制御メモリ
111…キャッシュメモリ
112…制御装置
113…記憶装置。
100 host 101 control processor 109 control memory 111 cache memory 112 control device 113 storage device.

Claims (3)

ホストからの指示にしたがって、ある時刻のボリューム(オリジナルボリューム)に格納されているデータの複製(コピーボリューム)を作成する機能を有する記憶装置システムにおいて、前記ホストから前記オリジナルボリュームに含まれる範囲を示す開始アドレスと終了アドレスを受領する手段と、受領した前記開始アドレスと前記終了アドレスで特定される範囲のデータについて、前記オリジナルボリュームから読み出し、前記コピーボリュームに書き込むことにより、前記コピーボリュームの前記開始アドレスと前記終了アドレスで特定される範囲の
データを再び前記オリジナルボリュームのデータと一致させる手段とを有することを特徴とする記憶装置システム。
In a storage device system having a function of creating a copy (copy volume) of data stored in a volume (original volume) at a certain time in accordance with an instruction from a host, a range included in the original volume from the host is indicated. Means for receiving a start address and an end address, and reading the data in the range specified by the received start address and end address from the original volume and writing the data to the copy volume, thereby obtaining the start address of the copy volume. And a means for matching data in the range specified by the end address with data of the original volume again.
請求項1に記載の記憶装置システムにおいて、前記ホストの書き込み処理によって発生する前記オリジナルボリュームと前記コピーボリュームの差分の場所を記憶する手段と、前記コピーボリュームの前記開始アドレスと前記終了アドレスで特定される範囲のデータを再び前記オリジナルボリュームのデータと一致させるさいに、記憶した差分の場所だけを、前記オリジナルボリュームから読み込んで、前記コピーボリュームに書き込む手段を有することを特徴とする計算機システム。   2. The storage device system according to claim 1, wherein the storage unit stores a location of a difference between the original volume and the copy volume generated by a write process of the host, and the start address and the end address of the copy volume. A computer system for reading only the location of the stored difference from the original volume and writing the data to the copy volume when matching the data of the range again with the data of the original volume. ホストと、前記ホストに接続する記憶装置システムにおいて、前記ホストからボリュームに属する特定の範囲を示す開始アドレスと終了アドレスを受領する手段と、前記特定の範囲に含まれるデータの複製を作成する手段を有することを特徴とする計算機システム。
A host, a storage device system connected to the host, a unit for receiving a start address and an end address indicating a specific range belonging to a volume from the host, and a unit for creating a copy of data included in the specific range. A computer system comprising:
JP2004059982A 1998-12-24 2004-03-04 Storage device system of preparing copy of data Pending JP2004171597A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004059982A JP2004171597A (en) 1998-12-24 2004-03-04 Storage device system of preparing copy of data

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP36634798 1998-12-24
JP2004059982A JP2004171597A (en) 1998-12-24 2004-03-04 Storage device system of preparing copy of data

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP11080970A Division JP2000242437A (en) 1998-12-24 1999-03-25 Storage device system for preparing copy of data

Publications (1)

Publication Number Publication Date
JP2004171597A true JP2004171597A (en) 2004-06-17

Family

ID=32715376

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004059982A Pending JP2004171597A (en) 1998-12-24 2004-03-04 Storage device system of preparing copy of data

Country Status (1)

Country Link
JP (1) JP2004171597A (en)

Similar Documents

Publication Publication Date Title
US6757797B1 (en) Copying method between logical disks, disk-storage system and its storage medium
US6785791B2 (en) Method for accessing data being copied between data regions before the copying is completed
US6205558B1 (en) Recovery of file systems after modification failure
US7890720B2 (en) Snapshot system
JP4809040B2 (en) Storage apparatus and snapshot restore method
JP4419884B2 (en) Data replication apparatus, method, program, and storage system
JP3606797B2 (en) Copy processing method between data areas of storage device, storage system, and storage medium thereof
JP4681247B2 (en) Disk array device and disk array device control method
WO2009153917A1 (en) Virtual computer system, information processor and program providing the virtual computer system
JP4915365B2 (en) Data storage method and apparatus, duplicate data storage method and apparatus, and control program thereof
JP2000242437A (en) Storage device system for preparing copy of data
EP3136245B1 (en) Computer
US9235349B2 (en) Data duplication system, data duplication method, and program thereof
US7234039B1 (en) Method, system, and apparatus for determining the physical memory address of an allocated and locked memory buffer
JP4741976B2 (en) Disk array device and data management method
JP2004171597A (en) Storage device system of preparing copy of data
JP4669027B2 (en) Storage system
JP2005316624A (en) Database reorganization program, database reorganization method, and database reorganization device
JP6627541B2 (en) Volume management device, volume management method, and volume management program
US11531474B1 (en) Storage system and data replication method in storage system
KR101881038B1 (en) Method for atomic update of memory mapped files stored in non-volatile memory and control apparatus thereof
JP2005227983A (en) Information storage device
JP6202026B2 (en) Data management apparatus, data management method, and data management program
JP2008276563A (en) Disk array device and management method
JP3092663B2 (en) Main memory swapping method