JP5290938B2 - Copy control apparatus and method - Google Patents

Copy control apparatus and method Download PDF

Info

Publication number
JP5290938B2
JP5290938B2 JP2009262693A JP2009262693A JP5290938B2 JP 5290938 B2 JP5290938 B2 JP 5290938B2 JP 2009262693 A JP2009262693 A JP 2009262693A JP 2009262693 A JP2009262693 A JP 2009262693A JP 5290938 B2 JP5290938 B2 JP 5290938B2
Authority
JP
Japan
Prior art keywords
copy
area
request
update location
source area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2009262693A
Other languages
Japanese (ja)
Other versions
JP2010033619A (en
Inventor
太 渡辺
剛志 山口
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2009262693A priority Critical patent/JP5290938B2/en
Publication of JP2010033619A publication Critical patent/JP2010033619A/en
Application granted granted Critical
Publication of JP5290938B2 publication Critical patent/JP5290938B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は、ホスト装置からの指示により、ストレージ装置において指定時点におけるデータのコピーを作成するコピー動作を制御する装置および方法に関する。   The present invention relates to an apparatus and a method for controlling a copy operation for creating a copy of data at a specified time in a storage apparatus according to an instruction from a host apparatus.

1つ以上の磁気ディスク装置(ディスクドライブ)を有するストレージ装置(ディスクアレイ装置)に格納されたデータのコピーを作成する従来の方法としては、次の2通りの方法がある。
(1)ホスト装置を介してコピーする方法
この方法では、図18に示すように、ホスト装置11がストレージ装置12のコピー元論理ユニット21からコピー対象のデータを読み取り、コピー先論理ユニット22に書き込む。論理ユニットは、メインフレーム系ではボリュームに相当し、オープン系ではスライスやパーティションに相当する。
(2)ストレージ装置によりコピーする方法
この方法では、図19に示すように、ホスト装置11がストレージ装置12に対してコピー指示を与える。これを受けて、ストレージ装置12は、論理ユニット21からコピー対象のデータを読み取り、論理ユニット22に書き込む。
There are the following two methods as a conventional method for creating a copy of data stored in a storage device (disk array device) having one or more magnetic disk devices (disk drives).
(1) Method of Copying via Host Device In this method, as shown in FIG. 18, the host device 11 reads data to be copied from the copy source logical unit 21 of the storage device 12 and writes it to the copy destination logical unit 22. . A logical unit corresponds to a volume in the mainframe system, and corresponds to a slice or partition in the open system.
(2) Method of Copying by Storage Device In this method, the host device 11 gives a copy instruction to the storage device 12 as shown in FIG. In response to this, the storage apparatus 12 reads data to be copied from the logical unit 21 and writes it to the logical unit 22.

このように、ストレージ装置においてコピー動作を行う機能は一般に知られており、これを拡張したOPC(One Point Copy)という機能も提案されている(例えば、特許文献1参照)。このOPCは、図20に示すように、以下の手順で動作する。   As described above, a function for performing a copy operation in a storage apparatus is generally known, and a function called OPC (One Point Copy), which is an extension of this function, has also been proposed (for example, see Patent Document 1). As shown in FIG. 20, this OPC operates in the following procedure.

1.ストレージ装置は、ホスト装置からのコピー指示を受け取る。
2.ストレージ装置は、コピー指示発行時点におけるデータのコピーが論理的に完了したものとして、ホスト装置に対して即時にコピー完了応答を行う。
3.ストレージ装置は、コピー完了を応答後、実際のデータをコピー元論理ユニットからコピー先論理ユニットへ物理的にコピーする。
4.ストレージ装置は、実際のデータのコピーが完了していない領域に対するホスト装置からのリード/ライトアクセスに対しては、以下の動作を行う。
1. The storage device receives a copy instruction from the host device.
2. The storage apparatus immediately sends a copy completion response to the host apparatus, assuming that the data copy at the time of issuing the copy instruction is logically completed.
3. After responding that the copy is completed, the storage apparatus physically copies the actual data from the copy source logical unit to the copy destination logical unit.
4). The storage apparatus performs the following operation for read / write access from the host apparatus to an area where actual data copying has not been completed.

A.コピー元の未コピー領域へのリードアクセス
通常の動作。そのまま実データをリードする。
B.コピー元の未コピー領域へのライトアクセス
コピー先へ既存のデータをコピーした後、指定された実データをライトする。
C.コピー先の未コピー領域へのリードアクセス
コピー元から実データをコピーした後、コピーされたデータをリードする。
D.コピー先の未コピー領域へのライトアクセス
そのまま指定された実データをライトする。その後、この領域はコピー済みとして扱う。
A. Read access to uncopied area of copy source Normal operation. Read the actual data as it is.
B. Write access to non-copy area of copy source Writes the specified actual data after copying existing data to the copy destination.
C. Read access to the copy destination uncopied area After copying the actual data from the copy source, read the copied data.
D. Write access to the uncopied area at the copy destination Writes the specified actual data. Thereafter, this area is treated as copied.

このような動作を行うことにより、ホスト装置からは、コピーに要する時間は上記2.の応答が返って来るまでの極わずかな時間に見える。例えば、ギガバイト単位のコピーでも数秒で完了したように見える。   By performing such an operation, the time required for copying from the host device is the above described 2. It seems to be a very short time until the response is returned. For example, a gigabyte copy appears to complete in seconds.

特許文献2は、ディスク装置を有する情報処理システムにおけるダンプ取得方法に関する。   Patent Document 2 relates to a dump acquisition method in an information processing system having a disk device.

特開2001−166974号公報JP 2001-166974 A 特開平11−345158号公報Japanese Patent Laid-Open No. 11-345158

上述した従来のストレージ装置によるコピー制御には、次のような問題がある。
OPCは、指定された論理ユニット全体またはその一部(コピー元、以後Srcと称す)のスナップショットを、指定された論理ユニット(コピー先、以後Destと称す)にコピーする機能である。OPCにおいては、起動時に毎回指定された範囲全体の物理コピーがSrcからDestに対して行われる。物理コピーの実施中は、コントローラや磁気ディスク装置への負荷がかかるため、物理コピー未実施の場合と比較して、ストレージ装置全体としての性能が低下する。
The copy control by the conventional storage apparatus described above has the following problems.
The OPC is a function for copying a snapshot of the entire specified logical unit or a part thereof (copy source, hereinafter referred to as Src) to a specified logical unit (copy destination, hereinafter referred to as Dest). In OPC, a physical copy of the entire range specified each time at startup is performed from Src to Dest. During execution of physical copy, a load is applied to the controller and the magnetic disk device, so that the performance of the entire storage device is deteriorated as compared with the case where physical copy is not executed.

本発明の課題は、ストレージ装置がコピー動作を行う場合の負荷を軽減し、ストレージ装置全体としての性能低下を防止することである。   An object of the present invention is to reduce a load when a storage apparatus performs a copy operation, and to prevent performance degradation of the entire storage apparatus.

図1は、本発明のコピー制御装置の原理図である。図1のコピー制御装置は、格納手段101および処理手段102を備え、コピー元領域103のデータをコピー先領域104にコピーする制御を行う。   FIG. 1 shows the principle of a copy control apparatus according to the present invention. The copy control apparatus of FIG. 1 includes a storage unit 101 and a processing unit 102, and performs control to copy data in the copy source area 103 to the copy destination area 104.

格納手段101は、第1のコピー要求を受信してコピー元領域103からコピー先領域104へのコピーが起動された後に、コピー元領域103およびコピー先領域104の少なくとも一方のデータの更新が発生したとき、更新箇所を示す情報105を格納する。処理手段102は、更新箇所を示す情報105を格納手段101に記録し、第2のコピー要求を受信したとき、格納手段102に格納された情報105に基づき、更新箇所に対応するコピー元領域103のデータをコピー先領域104へコピーする制御を行う。   The storage means 101 receives the first copy request, and after the copy from the copy source area 103 to the copy destination area 104 is activated, the data in at least one of the copy source area 103 and the copy destination area 104 is updated. When this is done, information 105 indicating the update location is stored. The processing unit 102 records the information 105 indicating the update location in the storage unit 101 and, when receiving the second copy request, based on the information 105 stored in the storage unit 102, the copy source area 103 corresponding to the update location. Is copied to the copy destination area 104.

処理手段102は、第1のコピー要求を受信すると、コピー元領域103からコピー先領域104へのコピーを起動し、その後発生したデータ更新の更新箇所を格納手段101に記録する。そして、第2のコピー要求を受信したとき、記録された更新箇所に対応するコピー元領域103のデータをコピー先領域104へコピーする制御を行う。   When the processing unit 102 receives the first copy request, the processing unit 102 starts copying from the copy source area 103 to the copy destination area 104, and records the update portion of the data update that has occurred thereafter in the storage unit 101. When the second copy request is received, control is performed to copy the data in the copy source area 103 corresponding to the recorded update location to the copy destination area 104.

このような制御によれば、第1のコピー要求と同じコピー元領域103とコピー先領域104をペアとする第2のコピー要求が発行されたとき、前回のコピー起動時点以後に更新されたデータ位置のみについて物理コピーを行うことができる。   According to such control, when a second copy request is issued in which the same copy source area 103 and copy destination area 104 as the first copy request are paired, data updated after the previous copy activation time is issued. Physical copy can be performed only for the position.

格納手段101および処理手段102は、例えば、後述する図6のメモリ602およびプロセッサ601にそれぞれ対応し、コピー元領域103およびコピー先領域104は、例えば、上述したSrcおよびDestにそれぞれ対応する。   The storage unit 101 and the processing unit 102 correspond to, for example, a memory 602 and a processor 601 in FIG. 6 described later, respectively, and the copy source area 103 and the copy destination area 104 correspond to, for example, the above-described Src and Dest.

一般に、同一論理ユニットを定期的にバックアップするような場合、毎回Src全体の物理コピーを行う必要はなく、前回コピー起動時点からの差分データのみの物理コピーを行うことができれば、物理コピーに要する時間を短縮することが期待できる。   Generally, when the same logical unit is backed up regularly, it is not necessary to perform physical copy of the entire Src every time. If physical copy of only differential data from the previous copy start time can be performed, the time required for physical copy Can be expected to shorten.

本発明によれば、前回からの差分データのみを物理コピーすることが可能となり、物理コピー時間が短縮される。これにより、物理コピーの実施中のコントローラや磁気ディスク装置への負荷を低減することができ、ストレージ装置全体としての性能低下が防止される。   According to the present invention, only differential data from the previous time can be physically copied, and the physical copy time is shortened. As a result, it is possible to reduce the load on the controller and the magnetic disk device that are performing the physical copy, thereby preventing the performance of the entire storage device from being deteriorated.

本発明のコピー制御装置の原理図である。1 is a principle diagram of a copy control apparatus of the present invention. コピー要求時の動作を示す図である。It is a figure which shows the operation | movement at the time of a copy request | requirement. 再コピー要求時の動作を示す図である。It is a figure which shows the operation | movement at the time of a recopy request | requirement. トラッキング停止要求後の動作を示す図である。It is a figure which shows the operation | movement after a tracking stop request | requirement. ストレージ装置の構成図である。It is a block diagram of a storage apparatus. コントローラの構成図である。It is a block diagram of a controller. 初期状態のビットマップを示す図である。It is a figure which shows the bit map of an initial state. 第1の状態のビットマップを示す図である。It is a figure which shows the bit map of a 1st state. 第2の状態のビットマップを示す図である。It is a figure which shows the bit map of a 2nd state. 第3の状態のビットマップを示す図である。It is a figure which shows the bit map of a 3rd state. 第4の状態のビットマップを示す図である。It is a figure which shows the bit map of a 4th state. 第5の状態のビットマップを示す図である。It is a figure which shows the bit map of a 5th state. 第6の状態のビットマップを示す図である。It is a figure which shows the bit map of a 6th state. ビットマップのマージを示す図である。It is a figure which shows the merge of a bitmap. 差分OPCを示す図である。It is a figure which shows difference OPC. データのリカバリを示す図である。It is a figure which shows the recovery of data. プログラムおよびデータの提供方法を示す図である。It is a figure which shows the provision method of a program and data. ホスト装置を介したコピーを示す図である。It is a figure which shows the copy via a host apparatus. ストレージ装置によるコピーを示す図である。It is a figure which shows the copy by a storage apparatus. OPCを示す図である。It is a figure which shows OPC.

以下、図面を参照しながら、本発明を実施するための最良の形態を詳細に説明する。
本実施形態では、前回コピー時点からの更新情報を記録しておき、差分データのみをコピーする機能(以後差分コピー機能と称す)を実現する。差分コピー機能の特徴は、以下の通りである。
The best mode for carrying out the present invention will be described below in detail with reference to the drawings.
In the present embodiment, a function of recording update information from the previous copy point and copying only the difference data (hereinafter referred to as a difference copy function) is realized. The features of the differential copy function are as follows.

(1)コピーは瞬時に完了する(論理コピーの即時完了)。
(2)論理コピー完了直後、SrcとDestは同じ内容の別のボリュームとして、ボリューム形式が認識できるすべてのホストからのリード/ライト動作を保証する。
(3)論理コピー完了後、バックグラウンドで物理コピーが動作する。以後、この状態を物理コピー状態と称す(図2参照)。
(4)物理コピーの実施中に、Src側コピー対象領域に対するライト要求が発生しても、Dest側にはコピー要求受領時点のSrcの内容がコピーされるように動作する。
(5)物理コピーが完了していないDest側コピー対象領域に対するリード要求が発生しても、コピー要求受領時点のSrcと同じ内容をリードすることができるように動作する。
(6)論理コピー完了後、SrcおよびDestに対するライト要求が発生した場合に、ライトによる更新個所を記録する。以後、更新個所を記録する状態のことをトラッキング状態と称す(図2および3参照)。
(7)物理コピー完了後もトラッキング状態として、SrcおよびDestからなる論理ペアが継続する(図2および3参照)。
(8)再コピー要求により、前回論理コピー時点から生じた更新個所のデータのみをSrc側よりDest側へコピーする(図3参照)。同時に、再コピー要求時点までの更新箇所の記録をクリアし、改めて更新個所の記録を開始する。なお、Dest側の更新個所のデータは、再コピー要求により、Src側のデータにて上書きされる。また、物理コピー中の再コピー要求は可能とする。
(9)トラッキング停止要求により、トラッキング状態が終了し、論理ペアが解消される(図4参照)。物理コピー中の場合は、物理コピー完了後に論理ペアが解消され、物理コピーが完了している場合は、即時論理ペアが解消される。
(1) Copying is completed instantaneously (immediate completion of logical copying).
(2) Immediately after the logical copy is completed, Src and Dest guarantee read / write operations from all hosts that can recognize the volume format as different volumes having the same contents.
(3) After the logical copy is completed, the physical copy operates in the background. Hereinafter, this state is referred to as a physical copy state (see FIG. 2).
(4) Even if a write request to the Src-side copy target area is generated during the physical copy, the Dest operates so that the contents of the Src at the time when the copy request is received are copied.
(5) Even if a read request for a Dest side copy target area for which physical copying has not been completed occurs, the same contents as Src at the time of receiving the copy request can be read.
(6) When a write request for Src and Dest occurs after the logical copy is completed, the update location by writing is recorded. Hereinafter, the state in which the update location is recorded is referred to as a tracking state (see FIGS. 2 and 3).
(7) Even after the physical copy is completed, the logical pair consisting of Src and Dest continues as the tracking state (see FIGS. 2 and 3).
(8) In response to a recopy request, only the data at the update location that has occurred since the previous logical copy is copied from the Src side to the Dest side (see FIG. 3). At the same time, the record of the update location up to the time of the recopy request is cleared, and the update location recording is started again. The data on the update side on the Dest side is overwritten with the data on the Src side by the re-copy request. In addition, a recopy request during physical copy is possible.
(9) The tracking state is terminated by the tracking stop request, and the logical pair is canceled (see FIG. 4). When the physical copy is in progress, the logical pair is canceled after the physical copy is completed. When the physical copy is completed, the immediate logical pair is canceled.

上記(1)〜(5)は従来のOPCと同じ機能であり、上記(6)〜(9)は差分OPC独自の機能である。
図5は、このようなストレージ装置の構成図である。図5のストレージ装置501は、ホストアダプタ511、512、コントローラ513、および論理ユニット514〜517を備える。各論理ユニットは、1つ以上の磁気ディスク装置の全データ領域または一部のデータ領域に相当する。論理ユニットの数は4つに限定されるわけではない。
The above (1) to (5) are the same functions as the conventional OPC, and the above (6) to (9) are the functions unique to the differential OPC.
FIG. 5 is a configuration diagram of such a storage apparatus. The storage apparatus 501 of FIG. 5 includes host adapters 511 and 512, a controller 513, and logical units 514 to 517. Each logical unit corresponds to the entire data area or a partial data area of one or more magnetic disk devices. The number of logical units is not limited to four.

コントローラ513は、図6に示すように、プロセッサ601およびメモリ602を備え、論理ユニット514〜517に対するアクセスを制御する。メモリ602は、プロセッサ601が用いるプログラムおよびデータを格納し、プロセッサ601は、メモリ602を利用してプログラムを実行することにより、必要な処理を行う。   As shown in FIG. 6, the controller 513 includes a processor 601 and a memory 602, and controls access to the logical units 514 to 517. The memory 602 stores a program and data used by the processor 601, and the processor 601 performs necessary processing by executing the program using the memory 602.

メモリ602には、ステータステーブル521、コピービットマップ522、Srcトラッキングビットマップ523、およびDestトラッキングビットマップ524が制御情報として格納される。ステータステーブル521は、コピー状態を管理する制御テーブルであり、コピービットマップ522は、物理コピー制御用のビットマップである。Srcトラッキングビットマップ523およびDestトラッキングビットマップ524は、それぞれ、Src側およびDest側の変更位置記録用のビットマップである。   In the memory 602, a status table 521, a copy bitmap 522, an Src tracking bitmap 523, and a Dest tracking bitmap 524 are stored as control information. The status table 521 is a control table for managing the copy status, and the copy bitmap 522 is a bitmap for physical copy control. The Src tracking bitmap 523 and the Dest tracking bitmap 524 are bitmaps for recording change positions on the Src side and the Dest side, respectively.

ビットマップ522〜524は、論理ユニット内のデータ位置の数に相当するビット数の制御データである。コピービットマップ522において、論理“1”は物理コピーが完了していないデータ位置を示し、論理“0”は物理コピーが完了したデータ位置を示す。トラッキングビットマップ523および524において、論理“1”はトラッキング開始後に変更されたデータ位置を示し、論理“0”は変更されていないデータ位置を示す。   Bitmaps 522 to 524 are control data having the number of bits corresponding to the number of data positions in the logical unit. In the copy bitmap 522, a logical “1” indicates a data position where physical copying is not completed, and a logical “0” indicates a data position where physical copying is completed. In the tracking bitmaps 523 and 524, the logic “1” indicates a data position that has been changed after the start of tracking, and the logic “0” indicates a data position that has not been changed.

ホストアダプタ511および512は、ホスト装置からの要求を受信してコントローラ513に転送し、コントローラ513から転送される応答をホスト装置に送信する。ホストアダプタ511および512は、冗長構成として同一のホスト装置に接続されることもあれば、別々のホスト装置に接続されることもある。   The host adapters 511 and 512 receive a request from the host device, transfer the request to the controller 513, and transmit a response transferred from the controller 513 to the host device. The host adapters 511 and 512 may be connected to the same host device as a redundant configuration, or may be connected to different host devices.

ストレージ装置501は、コピー制御用の外部インタフェースとして、以下のコマンドを装備する。
(1)開始コマンド(Start)
(2)再開始コマンド(Restart)
(3)トラッキング停止コマンド(Tracking stop)
(4)停止コマンド(Stop)
(5)状態表示コマンド(Query)
以下では、ホスト装置からこれらのコマンドを受信した場合のストレージ装置501の動作を順番に説明する。
The storage apparatus 501 is equipped with the following commands as an external interface for copy control.
(1) Start command (Start)
(2) Restart command (Restart)
(3) Tracking stop command (Tracking stop)
(4) Stop command (Stop)
(5) Status display command (Query)
Hereinafter, operations of the storage apparatus 501 when these commands are received from the host apparatus will be described in order.

(1)開始コマンド
コントローラ513は、ステータステーブル521、コピービットマップ522、Srcトラッキングビットマップ523、およびDestトラッキングビットマップ524の領域をメモリ602上に確保し、論理コピーの完了を応答する。ステータステーブル521には、SrcおよびDestの論理ユニット番号(LUN)等の制御情報が登録される。図7に示すように、コピービットマップ522の初期値はALL1とし、トラッキングビットマップ523および524の初期値はALL0とする。
(1) Start command The controller 513 secures areas of the status table 521, the copy bitmap 522, the Src tracking bitmap 523, and the Dest tracking bitmap 524 on the memory 602, and responds with the completion of the logical copy. In the status table 521, control information such as Src and Dest logical unit numbers (LUNs) is registered. As shown in FIG. 7, the initial value of the copy bitmap 522 is ALL1, and the initial values of the tracking bitmaps 523 and 524 are ALL0.

その後、コントローラ513は、バックグラウンドで物理コピーを開始する。
(a)コピービットマップ522の“1”のビットに対応するデータについて、SrcからDestへ物理コピーを行う。この場合、図8に示すように、コピービットマップ522のコピー済み領域のビットを“1”から“0”に変更する。
(b)Srcのコピー済み領域へのリード要求受信時には、Srcからのリードを行う。ビットマップ522〜524は更新されない。
(c)Srcのコピー済み領域へのライト要求受信時には、Srcへのライトを行った後、図9に示すように、Srcトラッキングビットマップ523の対応位置のビットを“0”から“1”に変更する。
(d)Srcの未コピー領域へのリード要求受信時には、Srcからのリードを行う。ビットマップ522〜524は更新されない。
(e)Srcの未コピー領域へのライト要求受信時には、SrcからDestへ物理コピーを行った後、図10に示すように、コピービットマップ522の対応位置のビットを“1”から“0”に変更する。その後、Srcへのライトを行い、Srcトラッキングビットマップ523の対応位置のビットを“0”から“1”に変更する。
トラッキングビットマップの対象位置が0から1へ更新される。
(f)Destのコピー済み領域へのリード要求受信時には、Destからのリードを行う。ビットマップ522〜524は更新されない。
(g)Destのコピー済み領域へのライト要求受信時には、Destへのライトを行った後、図11に示すように、Destトラッキングビットマップ524の対応位置のビットを“0”から“1”に変更する。
(h)Destの未コピー領域へのリード要求受信時には、SrcからDestへ物理コピーとDestからのリードを行った後、図12に示すように、コピービットマップ522の対応位置のビットを“1”から“0”に変更する。
(i)Destの未コピー領域へのライト要求受信時には、Destへのライトを行った後、図13に示すように、コピービットマップ522の対応位置の対応位置のビットを“1”から“0”に変更し、Destトラッキングビットマップ524の対応位置のビットを“0”から“1”に変更する。SrcからDestへの物理コピーは行う必要がない。
Thereafter, the controller 513 starts physical copying in the background.
(A) Physical copy is performed from Src to Dest for the data corresponding to the “1” bit of the copy bitmap 522. In this case, as shown in FIG. 8, the bit of the copied area of the copy bitmap 522 is changed from “1” to “0”.
(B) When receiving a read request to the copied area of Src, reading from Src is performed. Bitmaps 522-524 are not updated.
(C) Upon reception of a write request to the Src copied area, after writing to Src, the bit at the corresponding position in the Src tracking bitmap 523 is changed from “0” to “1” as shown in FIG. change.
(D) When receiving a read request to an uncopied area of Src, reading from Src is performed. Bitmaps 522-524 are not updated.
(E) At the time of receiving a write request to a non-copied area of Src, after performing a physical copy from Src to Dest, as shown in FIG. Change to Thereafter, writing to Src is performed, and the bit at the corresponding position in the Src tracking bitmap 523 is changed from “0” to “1”.
The target position of the tracking bitmap is updated from 0 to 1.
(F) When receiving a read request to the copied area of Dest, reading from Dest is performed. Bitmaps 522-524 are not updated.
(G) Upon receiving a write request to the copied area of Dest, after writing to Dest, as shown in FIG. 11, the bit at the corresponding position in Dest tracking bitmap 524 is changed from “0” to “1”. change.
(H) Upon receiving a read request to an uncopied area of Dest, after performing physical copy from Src to Dest and reading from Dest, as shown in FIG. 12, the bit at the corresponding position in copy bitmap 522 is set to “1”. Change from "" to "0".
(I) Upon receiving a write request to a Dest uncopied area, after writing to the Dest, as shown in FIG. 13, the bit at the corresponding position in the copy bitmap 522 is changed from “1” to “0”. And the bit at the corresponding position in the Dest tracking bitmap 524 is changed from “0” to “1”. There is no need to perform a physical copy from Src to Dest.

(2)再開始コマンド
(a)前回の物理コピーが完了している場合は、コピービットマップ522はALL0になっている。この場合、コントローラ513は、Srcトラッキングビットマップ523とDestトラッキングビットマップ524を論理和演算によりマージした結果を、コピービットマップ522に設定する。その後、Srcトラッキングビットマップ523とDestトラッキングビットマップ524をALL0に変更して、物理コピーを開始する。以後の動作は、開始コマンドの場合の(a)〜(i)と同じである。
(b)前回の物理コピーが未完了の場合は、コピービットマップ522の一部のビットが“1”のままである。この場合、コントローラ513は、図14に示すように、コピービットマップ522、Srcトラッキングビットマップ523、およびDestトラッキングビットマップ524を論理和演算によりマージした結果を、改めてコピービットマップ522に設定する。その後、上記(a)の場合と同様に、Srcトラッキングビットマップ523とDestトラッキングビットマップ524をALL0に変更して、物理コピーを開始する。
(2) Restart command (a) When the previous physical copy is completed, the copy bitmap 522 is ALL0. In this case, the controller 513 sets a result obtained by merging the Src tracking bitmap 523 and the Dest tracking bitmap 524 by the logical sum operation in the copy bitmap 522. Thereafter, the Src tracking bitmap 523 and the Dest tracking bitmap 524 are changed to ALL0, and physical copying is started. The subsequent operation is the same as (a) to (i) in the case of the start command.
(B) If the previous physical copy is incomplete, some bits of the copy bitmap 522 remain “1”. In this case, the controller 513 sets the result of merging the copy bitmap 522, the Src tracking bitmap 523, and the Dest tracking bitmap 524 by OR operation as shown in FIG. 14 in the copy bitmap 522 again. Thereafter, as in the case of (a) above, the Src tracking bitmap 523 and the Dest tracking bitmap 524 are changed to ALL0, and physical copying is started.

(3)トラッキング停止コマンド
(a)物理コピーが完了している場合、コントローラ513は、すべての制御情報を開放し、コピー処理を終了する。
(b)物理コピーが未完了の場合、コントローラ513は、Srcトラッキングビットマップ523とDestトラッキングビットマップ524を開放する。物理コピーはコピービットマップ522に従って継続し、全領域のコピーが完了した時点で、ステータステーブル521とコピービットマップ522を開放して、コピー処理を終了する。
(3) Tracking stop command (a) When the physical copy is completed, the controller 513 releases all control information and ends the copy process.
(B) When the physical copy has not been completed, the controller 513 releases the Src tracking bitmap 523 and the Dest tracking bitmap 524. The physical copy continues according to the copy bitmap 522, and when the copy of all areas is completed, the status table 521 and the copy bitmap 522 are released, and the copy process is terminated.

(4)停止コマンド
コントローラ513は、すべての制御情報を開放し、コピー処理を終了する。物理コピーが未完了の場合、Dest側のデータの値は保証されない。
(4) Stop command The controller 513 releases all control information and ends the copy process. If the physical copy is not completed, the data value on the Dest side is not guaranteed.

(5)状態表示コマンド
コントローラ513は、実行中のコピー処理について以下の情報をホスト装置に通知する。
・SrcのLUN
・DestのLUN
・物理コピーの進捗状況
・トラッキングの有無
次に、差分コピー機能の拡張した使用方法について説明する。図15に示すように、SrcからDestへの差分OPCによりバックアップデータを作成した場合、ハードウェア要因ではなく、ソフトウェア要因や人的オペレーションミスによるデータ破壊が発生した際に、SrcとDestを入れ替えたOPCを起動することでデータのリカバリを行うことができる。
(5) Status display command The controller 513 notifies the host device of the following information regarding the copy process being executed.
-LUN of Src
・ Dest LUN
-Progress of physical copy-Presence / absence of tracking Next, an extended usage method of the differential copy function will be described. As shown in FIG. 15, when backup data is created by differential OPC from Src to Dest, Src and Dest are replaced when data corruption occurs due to a software factor or a human operation error instead of a hardware factor. Data recovery can be performed by starting OPC.

この場合、バックアップデータ作成後のデータ破壊による更新箇所は、Srcトラッキングビットマップ523に記録されている。そこで、SrcとDestを入れ替えたOPCを「データリストアのためのOPC」と判断し、図16に示すように、DestからSrcへのOPCを起動する。   In this case, the update location due to the data destruction after the backup data is created is recorded in the Src tracking bitmap 523. Therefore, the OPC in which Src and Dest are exchanged is determined as “OPC for data restoration”, and OPC from Dest to Src is started as shown in FIG.

このとき、コントローラ513は、Srcトラッキングビットマップ523のデータをコピービットマップ522の初期値として設定して、Srcの更新箇所のみをDestからSrcへコピーする。これにより、Destのデータを用いて破壊されたデータのみを復元することができ、すべてのデータをコピーする復元方法と比較して、物理コピーの時間を短縮することができる。   At this time, the controller 513 sets the data of the Src tracking bitmap 523 as the initial value of the copy bitmap 522, and copies only the updated portion of Src from Dest to Src. As a result, only the destroyed data can be restored using the Dest data, and the physical copy time can be shortened as compared with the restoration method for copying all the data.

図17は、コントローラ513のプロセッサ601が処理に用いるプログラムおよびデータの提供方法を示している。情報処理装置等の外部装置1701や可搬記録媒体1702に格納されたプログラムおよびデータは、ストレージ装置501内のコントローラ513のメモリ602にロードされる。   FIG. 17 shows a program and data providing method used by the processor 601 of the controller 513 for processing. Programs and data stored in an external device 1701 such as an information processing device or a portable recording medium 1702 are loaded into the memory 602 of the controller 513 in the storage device 501.

外部装置1701は、そのプログラムおよびデータを搬送する搬送信号を生成し、通信ネットワーク上の任意の伝送媒体を介してストレージ装置501に送信する。可搬記録媒体1702は、メモリカード、フレキシブルディスク、光ディスク、光磁気ディスク等の任意のコンピュータ読み取り可能な記録媒体である。プロセッサ601は、そのデータを用いてそのプログラムを実行し、必要な処理を行う。   The external device 1701 generates a carrier signal for carrying the program and data, and transmits the carrier signal to the storage device 501 via any transmission medium on the communication network. The portable recording medium 1702 is an arbitrary computer-readable recording medium such as a memory card, a flexible disk, an optical disk, and a magneto-optical disk. The processor 601 executes the program using the data and performs necessary processing.

図5のストレージ装置501では磁気ディスク装置が用いられているが、本発明は、光ディスク装置、光磁気ディスク装置等の他のディスク装置や、テープ装置のような他の記憶装置が接続されたストレージ装置に対しても、適用可能である。   The storage device 501 of FIG. 5 uses a magnetic disk device, but the present invention is a storage device to which another disk device such as an optical disk device or a magneto-optical disk device, or another storage device such as a tape device is connected. The present invention can also be applied to a device.

また、コントローラ513は、Srcトラッキングビットマップ523とDestトラッキングビットマップ524の両方を備える必要はなく、1つのトラッキングビットマップのみを用いて差分コピー機能を実現することも可能である。   Further, the controller 513 does not need to include both the Src tracking bitmap 523 and the Dest tracking bitmap 524, and the differential copy function can be realized using only one tracking bitmap.

例えば、バックアップデータを作成する場合、通常はDestのデータを更新することはないので、Srcの更新箇所を記録するトラッキングビットマップを備えていれば十分である。また、SrcとDestの更新箇所を同一のトラッキングビットマップに記録しておけば、再開始コマンドの受信時に、2つのトラッキングビットマップをマージする必要がなくなる。   For example, when creating backup data, the Dest data is not normally updated, so it is sufficient to have a tracking bitmap that records the Src update location. Further, if the updated locations of Src and Dest are recorded in the same tracking bitmap, it is not necessary to merge the two tracking bitmaps when the restart command is received.

(付記1) コピー元領域のデータをコピー先領域にコピーする制御を行うコピー制御装置であって、
第1のコピー要求を受信して前記コピー元領域から前記コピー先領域へのコピーが起動された後に、該コピー元領域およびコピー先領域の少なくとも一方のデータの更新が発生したとき、更新箇所を示す情報を格納する格納手段と、
前記更新箇所を示す情報を前記格納手段に記録し、第2のコピー要求を受信したとき、該格納手段に格納された情報に基づき、前記更新箇所に対応する前記コピー元領域のデータを前記コピー先領域へコピーする制御を行う処理手段と
を備えることを特徴とするコピー制御装置。
(Supplementary Note 1) A copy control apparatus that performs control to copy data in a copy source area to a copy destination area,
After the first copy request is received and the copy from the copy source area to the copy destination area is started, when update of at least one of the data in the copy source area and the copy destination area occurs, the update location is Storage means for storing the indicated information;
Information indicating the update location is recorded in the storage means, and when the second copy request is received, the copy source area data corresponding to the update location is copied based on the information stored in the storage means A copy control apparatus comprising processing means for performing control of copying to a destination area.

(付記2) 前記処理手段は、前記第1のコピー要求を受信したとき、コピー完了応答を行ってから前記コピー元領域のデータを前記コピー先領域にコピーする制御を行い、該コピー完了応答を行った後に発生したデータ更新の更新箇所を示す情報を、前記格納手段に記録することを特徴とする付記1記載のコピー制御装置。   (Supplementary Note 2) When the processing means receives the first copy request, it performs a control to copy the data in the copy source area to the copy destination area after performing a copy completion response, and sends the copy completion response. The copy control apparatus according to appendix 1, wherein information indicating an update location of a data update that occurs after the recording is recorded in the storage unit.

(付記3) 前記処理手段は、前記第1のコピー要求に基づくコピーが完了した後も、前記更新箇所を示す情報を記録する処理を継続することを特徴とする付記1または2記載のコピー制御装置。   (Supplementary Note 3) The copy control according to Supplementary Note 1 or 2, wherein the processing unit continues the process of recording information indicating the update location even after the copy based on the first copy request is completed. apparatus.

(付記4) 前記処理手段は、記録停止要求を受信したとき、前記更新箇所を示す情報を記録する処理を終了することを特徴とする付記3記載のコピー制御装置。   (Supplementary note 4) The copy control apparatus according to supplementary note 3, wherein the processing means terminates the process of recording the information indicating the update location when the recording stop request is received.

(付記5) 前記処理手段は、前記第2のコピー要求に基づくコピーを起動した後、新たに発生したデータ更新の更新箇所を示す情報を前記格納手段に記録する処理を開始することを特徴とする付記1または2記載のコピー制御装置。   (Additional remark 5) The said process means starts the process which records the information which shows the update location of the data update which newly generate | occur | produced in the said storage means, after starting the copy based on a said 2nd copy request. The copy control apparatus according to appendix 1 or 2, wherein

(付記6) 前記格納手段は、前記コピー元領域の更新箇所を示すコピー元トラッキング情報と、前記コピー先領域の更新箇所を示すコピー先トラッキング情報とを格納し、前記処理手段は、前記第1のコピー要求に基づくコピーが完了した後に前記第2のコピー要求を受信したとき、該コピー元トラッキング情報に対応するデータと該コピー先トラッキング情報に対応するデータを、該コピー元領域から該コピー先領域へコピーする制御を行うことを特徴とする付記1または2記載のコピー制御装置。   (Additional remark 6) The said storage means stores the copy source tracking information which shows the update location of the said copy source area | region, and the copy destination tracking information which shows the update location of the said copy destination area | region, The said processing means stores the said 1st When the second copy request is received after the copy based on the copy request is completed, the data corresponding to the copy source tracking information and the data corresponding to the copy destination tracking information are transferred from the copy source area to the copy destination. The copy control apparatus according to appendix 1 or 2, wherein the copy control is performed to copy to an area.

(付記7) 前記格納手段は、前記コピー元領域の更新箇所を示すコピー元トラッキング情報と、前記コピー先領域の更新箇所を示すコピー先トラッキング情報とを格納し、前記処理手段は、前記第1のコピー要求に基づくコピーが未完了のうちに前記第2のコピー要求を受信したとき、コピー未完了のデータと該コピー元トラッキング情報に対応するデータと該コピー先トラッキング情報に対応するデータを、該コピー元領域から該コピー先領域へコピーする制御を行うことを特徴とする付記1または2記載のコピー制御装置。   (Supplementary Note 7) The storage means stores copy source tracking information indicating an update location of the copy source area and copy destination tracking information indicating an update location of the copy destination area, and the processing means includes the first When the second copy request is received while the copy based on the copy request is incomplete, the copy incomplete data, the data corresponding to the copy source tracking information, and the data corresponding to the copy destination tracking information are: The copy control apparatus according to appendix 1 or 2, wherein control is performed to copy from the copy source area to the copy destination area.

(付記8) 前記格納手段は、前記コピー元領域の更新箇所を示す情報を格納し、前記処理手段は、該コピー元領域のデータリカバリを行うとき、該コピー元領域の更新箇所に対応するデータを該コピー先領域から該コピー元領域へコピーする制御を行うことを特徴とする付記1または2記載のコピー制御装置。   (Supplementary Note 8) The storage means stores information indicating the update location of the copy source area, and the processing means performs data recovery of the copy source area when data corresponding to the update location of the copy source area is stored. The copy control apparatus according to appendix 1 or 2, wherein control is performed to copy from the copy destination area to the copy source area.

(付記9) コピー元領域と、
コピー先領域と、
コピー要求を受信する受信手段と、
第1のコピー要求を受信して前記コピー元領域から前記コピー先領域へのコピーが起動された後に、該コピー元領域およびコピー先領域の少なくとも一方のデータの更新が発生したとき、更新箇所を示す情報を格納する格納手段と、
前記更新箇所を示す情報を前記格納手段に記録し、第2のコピー要求を受信したとき、該格納手段に格納された情報に基づき、前記更新箇所に対応する前記コピー元領域のデータを前記コピー先領域へコピーする制御を行う処理手段と
を備えることを特徴とするストレージ装置。
(Supplementary note 9) Copy source area,
Copy destination area,
Receiving means for receiving a copy request;
After the first copy request is received and the copy from the copy source area to the copy destination area is started, when update of at least one of the data in the copy source area and the copy destination area occurs, the update location is Storage means for storing the indicated information;
Information indicating the update location is recorded in the storage means, and when the second copy request is received, the copy source area data corresponding to the update location is copied based on the information stored in the storage means A storage apparatus comprising processing means for performing control of copying to a destination area.

(付記10) コピー元領域のデータをコピー先領域にコピーする制御を行うプロセッサのためのプログラムであって、
第1のコピー要求を受信して前記コピー元領域から前記コピー先領域へのコピーが起動された後に、該コピー元領域およびコピー先領域の少なくとも一方のデータの更新が発生したとき、更新箇所を示す情報を記録し、
第2のコピー要求を受信したとき、前記更新箇所を示す情報に基づき、該更新箇所に対応する前記コピー元領域のデータを前記コピー先領域へコピーする
処理を前記プロセッサに実行させることを特徴とするプログラム。
(Supplementary Note 10) A program for a processor that performs control to copy data in a copy source area to a copy destination area,
After the first copy request is received and the copy from the copy source area to the copy destination area is started, when update of at least one of the data in the copy source area and the copy destination area occurs, the update location is Record the information you indicate,
When the second copy request is received, the processor causes the processor to execute a process of copying the data in the copy source area corresponding to the update location to the copy destination region based on the information indicating the update location. Program to do.

(付記11) コピー元領域のデータをコピー先領域にコピーする制御を行うコピー制御方法であって、
第1のコピー要求を受信して前記コピー元領域から前記コピー先領域へのコピーが起動された後に、該コピー元領域およびコピー先領域の少なくとも一方のデータの更新が発生したとき、更新箇所を示す情報を記録し、
第2のコピー要求を受信したとき、前記更新箇所を示す情報に基づき、該更新箇所に対応する前記コピー元領域のデータを前記コピー先領域へコピーする制御を行う
ことを特徴とするコピー制御方法。
(Supplementary Note 11) A copy control method for performing control of copying data in a copy source area to a copy destination area,
After the first copy request is received and the copy from the copy source area to the copy destination area is started, when update of at least one of the data in the copy source area and the copy destination area occurs, the update location is Record the information you indicate,
When receiving a second copy request, based on the information indicating the update location, the copy control method performs a control to copy the data of the copy source area corresponding to the update location to the copy destination area .

11 ホスト装置
12、501 ストレージ装置
21、22、514、515、516、517 論理ユニット
101 格納手段
102 処理手段
103 コピー元領域
104 コピー先領域
105 更新箇所
511、512 ホストアダプタ
513 コントローラ
521 ステータステーブル
522 コピービットマップ
523 Srcトラッキングビットマップ
524 Destトラッキングビットマップ
601 プロセッサ
602 メモリ
1701 外部装置
1702 可搬記録媒体
11 Host device 12, 501 Storage device 21, 22, 514, 515, 516, 517 Logical unit 101 Storage means 102 Processing means 103 Copy source area 104 Copy destination area 105 Update location 511, 512 Host adapter 513 Controller 521 Status table 522 Copy Bitmap 523 Src tracking bitmap 524 Dest tracking bitmap 601 processor 602 memory 1701 external device 1702 portable recording medium

Claims (8)

ホスト装置からコピー要求を受信すると前記ホスト装置に対してコピー完了応答を行ってからコピー元領域のデータをコピー先領域にコピーする制御を行うコピー制御装置であって、
第1のコピー要求を受信して前記コピー元領域から前記コピー先領域へのコピーが起動される前に前記コピー元領域に記憶されているコピー対象データを示すコピー対象情報と、前記第1のコピー要求を受信して前記コピー元領域から前記コピー先領域へのコピーが起動された後に更新された該コピー元領域のデータの更新箇所を示す第1の更新箇所情報と、前記第1のコピー要求を受信して前記コピー元領域から前記コピー先領域へのコピーが起動された後に更新された該コピー先領域のデータの更新箇所を示す第2の更新箇所情報とを格納する格納手段と、
前記第1のコピー要求を受信したとき、前記コピー対象情報に基づき、前記コピー元領域から前記コピー先領域へコピーするとともに、前記コピー元領域に対する更新要求を前記第1の更新箇所情報に記録し、前記コピー先領域に対する更新要求を前記第2の更新箇所情報に記録しておき、前記コピー元領域から前記コピー先領域への再コピー要求である第2のコピー要求を受信したとき、前記第1及び第2の更新箇所情報に基づき、前記コピー元領域及びコピー先領域の更新箇所に対応する前記コピー元領域のデータを前記コピー先領域へコピーする制御を行い、前記第1のコピー要求のコピー完了後にデータ破壊が生じたコピー元領域のデータをリカバリするとき、前記第1の更新箇所情報に基づいて、前記コピー元領域の更新箇所及びコピー先領域の更新箇所のうち前記コピー元領域の更新箇所のみに対応するデータを該コピー先領域から該コピー元領域へコピーする制御を行う処理手段と
を備えることを特徴とするコピー制御装置。
When a copy request is received from the host device, a copy completion response is sent to the host device, and then the copy control device performs control to copy the data in the copy source area to the copy destination area.
Copy target information indicating copy target data stored in the copy source area before receiving a first copy request and starting copying from the copy source area to the copy destination area; and First update location information indicating an update location of data in the copy source area updated after a copy request is received and a copy from the copy source area to the copy destination area is started, and the first copy Storage means for storing second update location information indicating an update location of data in the copy destination area updated after receiving a request and starting copying from the copy source area to the copy destination area;
When the first copy request is received, based on the copy target information, a copy is made from the copy source area to the copy destination area, and an update request for the copy source area is recorded in the first update location information. , an update request for the copy destination area may be recorded in the second update location information, when receiving the second copy request is re-copy request to the copy destination area from said copy source area, the first Based on the first and second update location information, control is performed to copy the data of the copy source region corresponding to the update location of the copy source region and the copy destination region to the copy destination region, and the first copy request when recovering the data of the copy source area where the data destruction occurred after copying is complete, on the basis of the first update location information, update location of the copy source area and Data corresponding only to the updated portion of the copy source area of the update location of the copy destination area copy control device characterized by comprising a processing means for performing control to copy from the copy destination area to the copy source area.
前記処理手段は、前記コピー完了応答を行った後に発生したデータ更新の更新箇所を示す情報を、前記第1及び第2の更新箇所情報に記録することを特徴とする請求項1記載のコピー制御装置。   2. The copy control according to claim 1, wherein the processing unit records information indicating an update location of the data update generated after the copy completion response is performed in the first update location information and the second update location information. apparatus. 前記処理手段は、前記第2のコピー要求に基づくコピーを起動した後、新たに発生したデータ更新の更新箇所を示す更新箇所情報を前記格納手段に記録する処理を開始することを特徴とする請求項1または2記載のコピー制御装置。   The processing means starts processing for recording update location information indicating an update location of a newly generated data update in the storage means after activating a copy based on the second copy request. Item 3. The copy control apparatus according to Item 1 or 2. 前記格納手段は、前記コピー元領域の更新箇所を示すコピー元トラッキング情報を前記第1の更新箇所情報として格納するとともに、前記コピー先領域の更新箇所を示すコピー先トラッキング情報を前記第2の更新箇所情報として格納し、前記処理手段は、前記第1のコピー要求に基づくコピーが完了した後に前記第2のコピー要求を受信したとき、該コピー元トラッキング情報に対応するデータと該コピー先トラッキング情報に対応するデータを、該コピー元領域から該コピー先領域へコピーする制御を行うことを特徴とする請求項1または2記載のコピー制御装置。   The storage means stores copy source tracking information indicating an update location of the copy source area as the first update location information, and also copies copy destination tracking information indicating an update location of the copy destination area to the second update location. When the second copy request is received after the copy based on the first copy request is completed, the processing means stores the data corresponding to the copy source tracking information and the copy destination tracking information. 3. The copy control apparatus according to claim 1, wherein control is performed to copy the data corresponding to the data from the copy source area to the copy destination area. 前記格納手段は、前記コピー元領域の更新箇所を示すコピー元トラッキング情報を前記第1の更新箇所情報として格納するとともに、前記コピー先領域の更新箇所を示すコピー先トラッキング情報を前記第2の更新箇所情報として格納し、前記処理手段は、前記第1のコピー要求に基づくコピーが未完了のうちに前記第2のコピー要求を受信したとき、コピー未完了のデータと該コピー元トラッキング情報に対応するデータと該コピー先トラッキング情報に対応するデータを、該コピー元領域から該コピー先領域へコピーする制御を行うことを特徴とする請求項1または2記載のコピー制御装置。   The storage means stores copy source tracking information indicating an update location of the copy source area as the first update location information, and also copies copy destination tracking information indicating an update location of the copy destination area to the second update location. When the second copy request is received while the copy based on the first copy request is incomplete, the processing means corresponds to the copy incomplete data and the copy source tracking information. 3. The copy control apparatus according to claim 1, wherein control is performed to copy data to be copied and data corresponding to the copy destination tracking information from the copy source area to the copy destination area. ホスト装置からコピー要求を受信すると前記ホスト装置に対してコピー完了応答を行ってからデータのコピーを行うストレージ装置であって、
コピー元領域と、
コピー先領域と、
コピー要求を受信する受信手段と、
第1のコピー要求を受信して前記コピー元領域から前記コピー先領域へのコピーが起動される前に前記コピー元領域に記憶されているコピー対象データを示すコピー対象情報と、前記第1のコピー要求を受信して前記コピー元領域から前記コピー先領域へのコピーが起動された後に更新された該コピー元領域のデータの更新箇所を示す第1の更新箇所情報と、前記第1のコピー要求を受信して前記コピー元領域から前記コピー先領域へのコピーが起動された後に更新された該コピー先領域のデータの更新箇所を示す第2の更新箇所情報とを格納する格納手段と、
前記第1のコピー要求を受信したとき、前記コピー対象情報に基づき、前記コピー元領域から前記コピー先領域へコピーするとともに、前記コピー元領域に対する更新要求を前記第1の更新箇所情報に記録し、前記コピー先領域に対する更新要求を前記第2の更新箇所情報に記録しておき、前記コピー元領域から前記コピー先領域への再コピー要求である第2のコピー要求を受信したとき、前記第1及び第2の更新箇所情報に基づき、前記コピー元領域及びコピー先領域の更新箇所に対応する前記コピー元領域のデータを前記コピー先領域へコピーする制御を行い、前記第1のコピー要求のコピー完了後にデータ破壊が生じたコピー元領域のデータをリカバリするとき、前記第1の更新箇所情報に基づいて、前記コピー元領域の更新箇所及びコピー先領域の更新箇所のうち前記コピー元領域の更新箇所のみに対応するデータを該コピー先領域から該コピー元領域へコピーする制御を行う処理手段と
を備えることを特徴とするストレージ装置。
A storage device that performs data copy after receiving a copy completion response to the host device upon receiving a copy request from the host device;
Copy source area,
Copy destination area,
Receiving means for receiving a copy request;
Copy target information indicating copy target data stored in the copy source area before receiving a first copy request and starting copying from the copy source area to the copy destination area; and First update location information indicating an update location of data in the copy source area updated after a copy request is received and a copy from the copy source area to the copy destination area is started, and the first copy Storage means for storing second update location information indicating an update location of data in the copy destination area updated after receiving a request and starting copying from the copy source area to the copy destination area;
When the first copy request is received, based on the copy target information, a copy is made from the copy source area to the copy destination area, and an update request for the copy source area is recorded in the first update location information. , an update request for the copy destination area may be recorded in the second update location information, when receiving the second copy request is re-copy request to the copy destination area from said copy source area, the first Based on the first and second update location information, control is performed to copy the data of the copy source region corresponding to the update location of the copy source region and the copy destination region to the copy destination region, and the first copy request when recovering the data of the copy source area where the data destruction occurred after copying is complete, on the basis of the first update location information, update location of the copy source area and Storage apparatus the data corresponding only to the updated portion of the copy source area of the update location of the copy destination area, characterized in that it comprises processing means for performing control to copy from the copy destination area to the copy source area.
ホスト装置からコピー要求を受信すると前記ホスト装置に対してコピー完了応答を行ってからコピー元領域のデータをコピー先領域にコピーする制御を行うプロセッサのためのプログラムであって、
第1のコピー要求を受信して前記コピー元領域から前記コピー先領域へのコピーが起動される前に前記コピー元領域に記憶されているコピー対象データを示すコピー対象情報を記録し、
前記第1のコピー要求を受信したとき、前記コピー対象情報に基づき、前記コピー元領域から前記コピー先領域へコピーし、
前記第1のコピー要求を受信して前記コピー元領域から前記コピー先領域へのコピーが起動された後に更新された該コピー元領域のデータの更新箇所を示す第1の更新箇所情報として、前記コピー元領域に対する更新要求を記録し、
前記第1のコピー要求を受信して前記コピー元領域から前記コピー先領域へのコピーが起動された後に更新された該コピー先領域のデータの更新箇所を示す第2の更新箇所情報として、前記コピー先領域に対する更新要求を記録し、
前記コピー元領域から前記コピー先領域への再コピー要求である第2のコピー要求を受信したとき、前記第1及び第2の更新箇所情報に基づき、前記コピー元領域及びコピー先領域の更新箇所に対応する前記コピー元領域のデータを前記コピー先領域へコピーし、
前記第1のコピー要求のコピー完了後にデータ破壊が生じたコピー元領域のデータをリカバリするとき、前記第1の更新箇所情報に基づいて、前記コピー元領域の更新箇所及びコピー先領域の更新箇所のうち前記コピー元領域の更新箇所のみに対応するデータを該コピー先領域から該コピー元領域へコピーする
処理を前記プロセッサに実行させることを特徴とするプログラム。
When a copy request is received from a host device, a program for a processor that performs a control to copy data in a copy source area to a copy destination area after performing a copy completion response to the host device,
Before receiving a first copy request and starting copying from the copy source area to the copy destination area, record copy target information indicating copy target data stored in the copy source area;
When receiving the first copy request, based on the copy target information, copy from the copy source area to the copy destination area,
As the first update location information indicating the update location of the data in the copy source area updated after the copy from the copy source area to the copy destination area is activated upon receipt of the first copy request, Record the update request for the copy source area,
As second update location information indicating the update location of data in the copy destination area updated after the first copy request is received and the copy from the copy source area to the copy destination area is activated, Record the update request for the copy destination area,
When a second copy request, which is a re-copy request from the copy source area to the copy destination area, is received, the update location of the copy source area and the copy destination area based on the first and second update location information Copy the data of the copy source area corresponding to to the copy destination area,
When recovering data in a copy source area where data corruption has occurred after completion of copying of the first copy request, based on the first update location information, the update location of the copy source area and the update location of the copy destination area A program for causing the processor to execute a process of copying data corresponding only to the update location of the copy source area from the copy destination area to the copy source area.
ホスト装置からコピー要求を受信すると前記ホスト装置に対してコピー完了応答を行ってからコピー元領域のデータをコピー先領域にコピーする制御を行うコピー制御方法であって、
第1のコピー要求を受信して前記コピー元領域から前記コピー先領域へのコピーが起動される前に前記コピー元領域に記憶されているコピー対象データを示すコピー対象情報を記録し、
前記第1のコピー要求を受信したとき、前記コピー対象情報に基づき、前記コピー元領域から前記コピー先領域へコピーし、
前記第1のコピー要求を受信して前記コピー元領域から前記コピー先領域へのコピーが起動された後に更新された該コピー元領域のデータの更新箇所を示す第1の更新箇所情報として、前記コピー元領域に対する更新要求を記録し、
前記第1のコピー要求を受信して前記コピー元領域から前記コピー先領域へのコピーが起動された後に更新された該コピー先領域のデータの更新箇所を示す第2の更新箇所情報として、前記コピー先領域に対する更新要求を記録し、
前記コピー元領域から前記コピー先領域への再コピー要求である第2のコピー要求を受信したとき、前記第1及び第2の更新箇所情報に基づき、前記コピー元領域及びコピー先領域の更新箇所に対応する前記コピー元領域のデータを前記コピー先領域へコピーし、
前記第1のコピー要求のコピー完了後にデータ破壊が生じたコピー元領域のデータをリカバリするとき、前記第1の更新箇所情報に基づいて、前記コピー元領域の更新箇所及びコピー先領域の更新箇所のうち前記コピー元領域の更新箇所のみに対応するデータを該コピー先領域から該コピー元領域へコピーすることを特徴とするコピー制御方法。
When a copy request is received from a host device, a copy completion response is sent to the host device, and then a copy control method is performed to copy data in the copy source area to the copy destination area,
Before receiving a first copy request and starting copying from the copy source area to the copy destination area, record copy target information indicating copy target data stored in the copy source area;
When receiving the first copy request, based on the copy target information, copy from the copy source area to the copy destination area,
As the first update location information indicating the update location of the data in the copy source area updated after the copy from the copy source area to the copy destination area is activated upon receipt of the first copy request, Record the update request for the copy source area,
As second update location information indicating the update location of data in the copy destination area updated after the first copy request is received and the copy from the copy source area to the copy destination area is activated, Record the update request for the copy destination area,
When a second copy request, which is a re-copy request from the copy source area to the copy destination area, is received, the update location of the copy source area and the copy destination area based on the first and second update location information Copy the data of the copy source area corresponding to to the copy destination area,
When recovering data in a copy source area where data corruption has occurred after completion of copying of the first copy request, based on the first update location information, the update location of the copy source area and the update location of the copy destination area A copy control method for copying data corresponding only to the update location of the copy source area from the copy destination area to the copy source area.
JP2009262693A 2009-11-18 2009-11-18 Copy control apparatus and method Expired - Fee Related JP5290938B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009262693A JP5290938B2 (en) 2009-11-18 2009-11-18 Copy control apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009262693A JP5290938B2 (en) 2009-11-18 2009-11-18 Copy control apparatus and method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2004358368A Division JP2006164162A (en) 2004-12-10 2004-12-10 Copy control device and method

Publications (2)

Publication Number Publication Date
JP2010033619A JP2010033619A (en) 2010-02-12
JP5290938B2 true JP5290938B2 (en) 2013-09-18

Family

ID=41737917

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009262693A Expired - Fee Related JP5290938B2 (en) 2009-11-18 2009-11-18 Copy control apparatus and method

Country Status (1)

Country Link
JP (1) JP5290938B2 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5263154A (en) * 1992-04-20 1993-11-16 International Business Machines Corporation Method and system for incremental time zero backup copying of data
JP3552491B2 (en) * 1997-10-03 2004-08-11 トヨタ自動車株式会社 Vehicle data backup system and in-vehicle terminal device constituting the system
JPH11212875A (en) * 1998-01-21 1999-08-06 Hitachi Ltd Storage device subsystem and difference backup method for recording data
JPH11242566A (en) * 1998-02-26 1999-09-07 Hitachi Ltd Multiplex data storage system
JP3606797B2 (en) * 1999-09-30 2005-01-05 富士通株式会社 Copy processing method between data areas of storage device, storage system, and storage medium thereof
JP2004046435A (en) * 2002-07-10 2004-02-12 Hitachi Ltd Backup method and storage controller used for the same
US6996586B2 (en) * 2003-06-18 2006-02-07 International Business Machines Corporation Method, system, and article for incremental virtual copy of a data block

Also Published As

Publication number Publication date
JP2010033619A (en) 2010-02-12

Similar Documents

Publication Publication Date Title
KR100710767B1 (en) Copy controller and method thereof
JP5124183B2 (en) Asynchronous remote copy system control method and asynchronous remote copy system
JP4701007B2 (en) Fast reverse restore
JP4900811B2 (en) Storage system and storage control method
US8001344B2 (en) Storage control apparatus, storage control program, and storage control method
JP2004258944A (en) Storage device and method for managing it
US20060161732A1 (en) Disk array apparatus and disk array apparatus control method
US7277997B2 (en) Data consistency for mirroring updatable source data storage
JP2005011317A (en) Method and device for initializing storage system
US8555012B2 (en) Data storage apparatus
JP2002149499A (en) Remote copy system with integrity of data
JP4508798B2 (en) Storage remote copy method
US8533411B2 (en) Multiple backup processes
JP2014142852A (en) Storage system and control device
US7353351B1 (en) System and method for managing data associated with copying and recovery procedures in a data storage environment
JP4311532B2 (en) Storage system and snapshot management method in the same system
US20050289309A1 (en) Storage control system and storage control method
US8131958B2 (en) Storage system, storage device, and data updating method using a journal volume
JP3937878B2 (en) Magnetic tape device, control method thereof, and program for controlling magnetic tape device
JP5290938B2 (en) Copy control apparatus and method
JP2002278706A (en) Disk array device
JPWO2007135731A1 (en) Storage control device, storage control program, and storage control method
JP2009129283A (en) Data storage device, data backup method and data backup program
JP3226047B2 (en) I / O device
JP2006277355A (en) Path switching system and method for backup system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091118

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111115

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120113

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20120207

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120507

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20120514

A912 Re-examination (zenchi) completed and case transferred to appeal board

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20120601

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130606

R150 Certificate of patent or registration of utility model

Ref document number: 5290938

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees