JP2003173240A - Storage device system and its data backup method - Google Patents

Storage device system and its data backup method

Info

Publication number
JP2003173240A
JP2003173240A JP2001371205A JP2001371205A JP2003173240A JP 2003173240 A JP2003173240 A JP 2003173240A JP 2001371205 A JP2001371205 A JP 2001371205A JP 2001371205 A JP2001371205 A JP 2001371205A JP 2003173240 A JP2003173240 A JP 2003173240A
Authority
JP
Japan
Prior art keywords
volume
data
pair
storage area
bit
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
JP2001371205A
Other languages
Japanese (ja)
Inventor
Takaaki Miura
隆明 三浦
Hiroshi Izumo
博 出雲
Masaaki Kobayashi
正明 小林
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 Software Engineering Co Ltd
Hitachi Ltd
Original Assignee
Hitachi Software Engineering Co Ltd
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 Software Engineering Co Ltd, Hitachi Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP2001371205A priority Critical patent/JP2003173240A/en
Publication of JP2003173240A publication Critical patent/JP2003173240A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To reduce memory capacity required for control, and to shorten time required for re-synchronization to doubling in a method for controlling difference data between both volumes after transferring the doubling volume for constituting a pair to a separate state from a doubling state. <P>SOLUTION: A storage area on the volume is controlled by LU securing block information 200, a block control table 210, and a bit map area 220. One bit of the bit map area 220 is made to correspond to the storage area (for example, 1 MB) equal to the maximum transfer length when copying data between the volumes to control the existence of the difference data of the respective storage areas on the volume. The bit map area 220 is divided into a plurality of blocks, and can make access to a specific bit allocated to the respective one bit corresponding storage areas of the respective volumes via a block number. <P>COPYRIGHT: (C)2003,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、記憶装置システム
のデータバックアップ方式に係わり、特にボリュームを
二重化することによってバックアップする方式に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data backup system for a storage device system, and more particularly to a system for backing up data by duplicating volumes.

【0002】[0002]

【従来の技術】ディスクシステム内のユーザボリューム
について、そのデータをシステム障害、人為的ミス、災
害などから保護するためにデータのバックアップが行わ
れる。例えば特開平11−153386号公報に記載さ
れている方法は、図7に示すように、ユーザデータを格
納しておりオンライン業務に使用しているユーザボリュ
ーム70のコピーをセカンダリボリューム80に格納す
る。このようにユーザボリューム70とセカンダリボリ
ューム80の二重化の状態をペアと呼ぶ。テープ装置6
0へのデータのバックアップを行わないときは、データ
はユーザボリューム70とセカンダリボリューム80に
二重化して格納されている。テープ装置60へのデータ
のバックアップを行う際には、ホストコンピュータ10
はディスクシステム20に対してペアの分離を指示する
コマンドを発行するとともに、分離したボリューム上に
格納された全データをテープ装置60へコピーするコピ
ーコマンドをセカンダリボリューム80に対して発行す
る。一方、ディスクシステム20はペアの分離指示を受
領すると、指定されたペアの両ボリュームを分離する。
コピーコマンドを受領すると、指定されたブロックをセ
カンダリボリューム80からテープ装置60へデータコ
ピーする。ペアの分離時点でセカンダリボリューム80
上のデータは凍結されるため、ペア分離後はユーザボリ
ューム70に対するアクセスと、セカンダリボリューム
80からのデータコピー処理が並行して行える。
2. Description of the Related Art A user volume in a disk system is backed up in order to protect the data from system failure, human error, disaster and the like. For example, in the method disclosed in Japanese Patent Laid-Open No. 11-153386, as shown in FIG. 7, a copy of the user volume 70 that stores user data and is used for online work is stored in the secondary volume 80. The duplexed state of the user volume 70 and the secondary volume 80 is called a pair. Tape device 6
When the data is not backed up to 0, the data is redundantly stored in the user volume 70 and the secondary volume 80. When backing up data to the tape device 60, the host computer 10
Issues a command for instructing the pair separation to the disk system 20 and also issues a copy command to the secondary volume 80 to copy all the data stored in the separated volume to the tape device 60. On the other hand, when the disk system 20 receives the pair separation instruction, it separates both volumes of the specified pair.
When the copy command is received, the designated block is data-copied from the secondary volume 80 to the tape device 60. Secondary volume 80 when pair is separated
Since the above data is frozen, access to the user volume 70 and data copy processing from the secondary volume 80 can be performed in parallel after the pair separation.

【0003】セカンダリボリューム80からテープ装置
60へのコピー実行中でも、ホストコンピュータ10か
らユーザボリューム70へのアクセスは継続できる。ユ
ーザボリューム70上のデータが更新されるとき、更新
されたブロック71がセカンダリボリューム80へ未反
映であることを記録しておく。テープ装置60へのデー
タコピーが完了すると、ホストコンピュータ10は再同
期コマンドを発行して、ユーザボリューム70とセカン
ダリボリューム80を再び二重化状態に戻す。この際に
は、ユーザボリューム70の更新データをセカンダリボ
リューム80に反映するためにコピーする。
Even while the copy from the secondary volume 80 to the tape device 60 is being executed, the access from the host computer 10 to the user volume 70 can be continued. When the data on the user volume 70 is updated, it is recorded that the updated block 71 has not been reflected in the secondary volume 80. When the data copy to the tape device 60 is completed, the host computer 10 issues a resynchronization command to return the user volume 70 and the secondary volume 80 to the duplicated state again. At this time, the update data of the user volume 70 is copied to be reflected in the secondary volume 80.

【0004】[0004]

【発明が解決しようとする課題】ペアの分離状態でユー
ザボリューム70に対してデータ更新があった場合、セ
カンダリボリューム80へ未反映であることを記録して
おく。このとき記録する単位が1ビット当たり1ブロッ
ク(512B)であるため、ボリュームの容量が2TB
とすると1GBものメモリ容量が必要となる。これは1
ペア当たりに必要なメモリであり、ペア数がn倍になれ
ば必要なメモリ容量も1GB×nとなり膨大なメモリが
必要となってしまう。しかし逆に1ビット当たりのサイ
ズが小さい程、両ボリューム間のデータ差分が少ない場
合に再同期時間が減少するため、再同期時間を考慮する
と、1ビット当たりの記憶単位が小さい方がいいことに
なる。
When data is updated to the user volume 70 in the separated state of the pair, it is recorded in the secondary volume 80 that it has not been reflected. Since the unit to record at this time is one block (512B) per bit, the volume capacity is 2TB.
Then, a memory capacity of 1 GB is required. This is 1
It is a memory required for each pair, and if the number of pairs is increased by n times, the required memory capacity becomes 1 GB × n, and a huge amount of memory is required. However, conversely, the smaller the size per bit, the shorter the resynchronization time when the data difference between both volumes is small. Therefore, considering the resynchronization time, the smaller the storage unit per bit is, the better. Become.

【0005】以上から本発明の目的は、ペアの分離状態
においてセカンダリボリュームへの未反映データを記録
するために必要なメモリ容量を削減させるとともに、そ
れに伴う再同期時間を短縮させることにある。
In view of the above, an object of the present invention is to reduce the memory capacity necessary for recording unreflected data in the secondary volume in the pair separation state, and to shorten the resynchronization time associated therewith.

【0006】[0006]

【課題を解決するための手段】本発明は、第1のボリュ
ームと第2のボリュームとがデータバックアップのため
のペアを構成し、この両ボリュームが二重化状態から分
離状態に移行した後に第1のボリュームに対してデータ
書き込みのあった記憶領域を管理する記憶装置システム
のデータバックアップ方式において、第1のボリューム
から第2のボリュームへのデータコピーの際の1回の転
送可能な最大転送長に等しい第1のボリューム上の記憶
領域に対応する記憶単位をデータ書き込みのあった記憶
領域管理の管理単位として記憶装置上に設定し、データ
書き込みがあった記憶領域に対応する管理単位を特定
し、特定された管理単位に書き込みありを示すフラグを
設定するデータバックアップ方式を特徴とする。
According to the present invention, a first volume and a second volume constitute a pair for data backup, and the first volume and the second volume are transferred from a duplexed state to a separated state. In the data backup method of the storage device system that manages the storage area where data has been written to the volume, it is equal to the maximum transfer length that can be transferred once when copying data from the first volume to the second volume. The storage unit corresponding to the storage area on the first volume is set on the storage device as the management unit for storage area management in which data has been written, and the management unit corresponding to the storage area in which data has been written is specified and specified. It is characterized by a data backup method that sets a flag indicating that there is a write in the selected management unit.

【0007】[0007]

【発明の実施の形態】以下、本発明の実施例について図
面を用いて説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings.

【0008】図1は、本発明に関連するシステムの構成
を示す図である。記憶装置システム20は、ホストコン
ピュータ10に接続される。記憶装置システム20は、
ハードウェア的にはCPU、メモリ、キャッシュ、ディ
スク記憶装置などの構成要素によって構成され、メモリ
に格納される制御プログラムによって動作する。ホスト
コンピュータ10からみたディスク記憶装置は、論理的
なボリュームとして認識される。図1ではこれらの構成
要素の図示を省略し、制御プログラムの一部機能であ
り、本発明に関連するMRCF−Lite機能(Mul
tiple RAID Coupling Featu
re―Lite)30を図示している。MRCF−Li
te機能30は、ホストコンピュータ10からのコマン
ドによって起動される。正ボリューム(P−Vol)と
副ボリューム(S−Vol)は、データバックアップの
ためのミラーペアを構成する。MRCF−Lite機能
30は、P−Vol及びS−Volを管理する。なおボ
リュームは以降LU(ロジカルユニット)として説明す
る。
FIG. 1 is a diagram showing the configuration of a system related to the present invention. The storage system 20 is connected to the host computer 10. The storage device system 20 is
In terms of hardware, it is configured by components such as a CPU, a memory, a cache, and a disk storage device, and operates by a control program stored in the memory. The disk storage device viewed from the host computer 10 is recognized as a logical volume. In FIG. 1, illustration of these constituent elements is omitted, and the MRCF-Lite function (Mul) is a function of a control program and is related to the present invention.
triple RAID Coupling Feature
re-Lite) 30 is shown. MRCF-Li
The te function 30 is activated by a command from the host computer 10. The primary volume (P-Vol) and the secondary volume (S-Vol) form a mirror pair for data backup. The MRCF-Lite function 30 manages P-Vol and S-Vol. The volume will be described as an LU (logical unit) hereinafter.

【0009】MRCF−Lite機能30は、二重化機
能(coupling)31、分離機能(split)
32および再同期機能(resync)33の3つの機
能を含む。二重化機能31は、正LU40のデータを副
LU50にコピーすることによって正LU40と副LU
50をミラーペアとして二重化する。正LU40にデー
タがWRITEされると、二重化機能31は、同じデー
タを副LU50にもWRITEし、正LUと副LUのデ
ータを一致させる。
The MRCF-Lite function 30 includes a duplication function (coupling) 31 and a separation function (split).
32 and a resynchronization function (resync) 33. The duplication function 31 copies the data of the primary LU 40 to the secondary LU 50 to copy the primary LU 40 and the secondary LU 50.
Duplicate 50 as a mirror pair. When the data is written to the primary LU 40, the duplication function 31 also writes the same data to the secondary LU 50 to match the data of the primary LU and the secondary LU.

【0010】分離機能32は、ホストコンピュータ10
によってミラーペアの分離が指示されると、その時点で
データの二重化を停止する。正LU40にデータがWR
ITEされても副LU50には反映されず、逆に副LU
50にデータがWRITEされても正LU40には反映
されない。
The separating function 32 is implemented by the host computer 10.
When the mirror pair separation is instructed by, the data duplication is stopped at that point. Data is written to the primary LU 40 WR
Even if it is ITE, it is not reflected in the sub-LU 50, and conversely the sub-LU
Even if the data is written in 50, it is not reflected in the primary LU 40.

【0011】再同期機能33は、ホストコンピュータ1
0によってミラーペアの再同期が指示されると、指示に
従って正LU40から副LU50、または副LU50か
ら正LU40にデータをコピーし、分離された正LU4
0と副LU50のデータを再び一致させる。
The resynchronization function 33 is provided in the host computer 1
When the mirror pair resynchronization is instructed by 0, data is copied from the primary LU 40 to the secondary LU 50 or from the secondary LU 50 to the primary LU 40 according to the instruction, and the separated primary LU 4
The data of 0 and the data of the sub-LU 50 are matched again.

【0012】図2は、記憶装置システム20においてL
Uのペアの状態と各状態が遷移する条件を示す状態遷移
図である。ペアが解除されている状態“SMPL“10
0でホストコンピュータ10から二重化を指示するコマ
ンドを受けると、正LUから副LUへのボリューム全体
のコピー(イニシャルコピー)実行中の状態“COPY
(PD)”101となる。コピーが終了すると、正LU
と副LUのデータが一致している状態“PAIR”10
2となり、二重化が完了して両LUはミラーペアとな
る。“PAIR”102状態でホストコンピュータ10
からペアの分離を指示するコマンドを受けると、分離状
態“PSUS“103となり、正LU40にデータがW
RITEされても副LU50には反映されず、副LU5
0に対するデータのWRITEがない限り分離時点での
正LU40のデータが保持される。“PSUS”103
状態でホストコンピュータ10より正LUから副LUへ
の再同期を指示するコマンドを受けると、正LUから副
LUへのコピーの状態“COPY(RS)”104とな
る。“PSUS”103状態でホストコンピュータ10
より副LUから正LUへの再同期を指示するコマンドを
受けると、副LUから正LUへのコピーの状態“COP
Y(RS−R)”105となる。再同期のためのコピー
が終了すると、“PAIR”102状態に戻り、二重化
が完了する。ペア状態が”SMPL“100以外でホス
トコンピュータ10からサスペンド指示を受けると、サ
スペンドされた状態“PSUE”106となる。またイ
ニシャルコピー又は再同期実行中に障害が発生した場合
も“PSUE”106となる。“COPY(RS)”1
04又は“COPY(RS−R)”105中のサスペン
ドが解除されるか障害から復旧すると、元のコピー状態
に戻る。ホストコンピュータ10からペア解除を指示す
るコマンドを受けると、“SMPL“100に戻る。
FIG. 2 shows an L in the storage system 20.
It is a state transition diagram which shows the state of a pair of U, and the conditions which each state changes. The pair is released "SMPL" 10
When a command for instructing duplexing is received from the host computer 10 at 0, the status "COPY" is being executed during the entire volume copy (initial copy) from the primary LU to the secondary LU.
(PD) ”101. When copying is completed, the primary LU
"PAIR" 10 that the data of the sub-LU and the data of the sub-LU match.
2, the duplication is completed and both LUs become a mirror pair. Host computer 10 in "PAIR" 102 state
When the command to separate the pair is received from the device, the status changes to "PSUS" 103 and the data is transferred to the primary LU 40.
Even if RITE is performed, it is not reflected in the sub-LU 50, and the sub-LU 5
Unless there is a WRITE of data for 0, the data of the primary LU 40 at the time of separation is held. "PSUS" 103
When a command to resynchronize from the primary LU to the secondary LU is received from the host computer 10 in the state, the copy state from the primary LU to the secondary LU becomes “COPY (RS)” 104. Host computer 10 in "PSUS" 103 state
When a command to resynchronize from the secondary LU to the primary LU is received, the status of copying from the secondary LU to the primary LU "COP
Y (RS-R) ”105. When the copy for resynchronization is completed, the state returns to the“ PAIR ”102 state and the duplication is completed. When the pair state is other than“ SMPL ”100, the suspend instruction is issued from the host computer 10. When it is received, the suspended state becomes "PSUE" 106. Also, when a failure occurs during the initial copy or resynchronization, it becomes "PSUE" 106. "COPY (RS)" 1
When the suspension in 04 or “COPY (RS-R)” 105 is canceled or the failure is recovered, the original copy state is restored. When the command for canceling the pair is received from the host computer 10, the process returns to "SMPL" 100.

【0013】図3は、記憶装置システム20のメモリに
格納されるLU確保ブロック情報200、ブロック管理
テーブル210及びキャッシュ領域内に設けられるビッ
トマップエリア220のデータ構成を示す図である。ビ
ットマップエリア220は、複数のブロックに分割され
ており、各ブロックは2KBの記憶容量を有する。各ブ
ロックは0から始まるブロック番号のいずれかに対応し
ている。ブロック内の1ビットをLUの1MB分の記憶
領域に対応させるので、1ブロックによってLUの16
GB分の記憶領域を管理する。ここで1MBはハードウ
ェア上の制限によるLU−LU間のコピーのための1回
の最大データ転送長に相当する。すなわちビットマップ
エリア220の1ビットは最大転送長に相当している。
ビットマップエリア220は、LUペアを構成する正L
U及び副LU各々についてビットマップ情報を格納す
る。各ビットを差分ビットと呼ぶ。初期状態及び正LU
と副LUの差分ビット対応記憶領域の内容が一致したと
き、差分ビットは値“0”(オフ)に設定される。“P
SUS”103状態の場合に正LU又は副LUの差分ビ
ット対応記憶領域に対して情報の書き込みが行われたと
き、対応する差分ビットは値“1”(オン)に設定され
る。
FIG. 3 is a diagram showing the data structure of the LU reserved block information 200 stored in the memory of the storage system 20, the block management table 210, and the bitmap area 220 provided in the cache area. The bitmap area 220 is divided into a plurality of blocks, and each block has a storage capacity of 2 KB. Each block corresponds to one of the block numbers starting from 0. Since 1 bit in a block corresponds to a storage area of 1 MB of LU, 16 blocks of LU
The storage area for GB is managed. Here, 1 MB corresponds to one maximum data transfer length for LU-LU copy due to hardware restrictions. That is, 1 bit in the bitmap area 220 corresponds to the maximum transfer length.
The bitmap area 220 is a primary L that constitutes an LU pair.
Bitmap information is stored for each U and sub-LU. Each bit is called a difference bit. Initial state and primary LU
And the contents of the storage area corresponding to the difference bit of the sub-LU match, the difference bit is set to the value “0” (off). "P
When information is written to the differential bit corresponding storage area of the primary LU or the secondary LU in the SUS "103 state, the corresponding differential bit is set to the value" 1 "(on).

【0014】ブロック管理テーブル210は、ビットマ
ップエリア220の各ブロックについてブロック番号0
から順に使用中フラグ211及びブロック先頭アドレス
212を格納する。使用中フラグ211はそのブロック
が使用中か否かを示すフラグである。ブロック先頭アド
レス212は、ビットマップエリア220内でそのブロ
ックの先頭アドレスを設定する。LU確保ブロック情報
200は、各LUごとにビットマップエリア220内の
割り当てたブロックのブロック番号を設定する。図示し
ていないが、LUペアを構成する正LUと副LUのLU
番号の組を制御情報としてメモリ上に格納する。
The block management table 210 has a block number 0 for each block in the bitmap area 220.
The in-use flag 211 and the block start address 212 are stored in this order. The busy flag 211 is a flag indicating whether the block is in use. The block start address 212 sets the start address of the block in the bitmap area 220. The LU reservation block information 200 sets the block number of the allocated block in the bitmap area 220 for each LU. Although not shown, the LUs of the primary LU and secondary LU that make up the LU pair
A set of numbers is stored in the memory as control information.

【0015】記憶装置システム20の二重化機能31
は、ホストコンピュータ10から二重化指示のコマンド
を受け取ると、LUペアを構成する正LUと副LU各々
について、ブロック管理テーブル210を参照して使用
中フラグ211が未使用を示すブロックを当該LUの容
量に応じて必要分割り当て、割り当てたブロックに対応
する使用中フラグ211を使用中状態に変更する。また
各LUについて割り当てたブロックのブロック番号をL
U確保ブロック情報200に登録する。ビットマップエ
リア220はあらかじめ必要量が確保されているので、
割り当てるブロックが不足することはない。ホストコン
ピュータ10からペア解除を指示するコマンドを受け取
ると、二重化機能31は、該当するLUペアについてブ
ロック管理テーブル210の該当するブロックの使用中
フラグ211をすべて未使用に戻すことによって割り当
てられていたブロックを解放する。またLU確保ブロッ
ク情報200の該当するLUのブロック番号情報を削除
する。
A duplication function 31 of the storage system 20
When receiving a duplication instruction command from the host computer 10, refers to the block management table 210 for each of the primary LU and the secondary LU that make up the LU pair, and determines the block whose busy flag 211 indicates unused to the capacity of the LU. According to the above, the necessary amount is allocated and the busy flag 211 corresponding to the allocated block is changed to the busy state. In addition, the block number of the block assigned to each LU is L
Register in the U reservation block information 200. Since the required amount of bitmap area 220 is secured in advance,
There is no shortage of blocks to allocate. Upon receiving the command for canceling the pair from the host computer 10, the duplication function 31 returns all the in-use flags 211 of the corresponding block of the block management table 210 to the unused block for the corresponding LU pair. To release. Further, the block number information of the corresponding LU in the LU reserved block information 200 is deleted.

【0016】1LU当り割当可能な最大ブロック数を1
28ブロックにすることによって、最大2TBの記憶容
量をもつLUに対応する差分ビットのビットマップを管
理できる。よって2TBの容量をもつLUから構成され
るLUペアの差分情報を管理するために必要なメモリ容
量は、「ビットマップエリア220(2KB×128ブ
ロック×2LU)+LU確保ブロック情報200(数バ
イト×128ブロック×2LU)+ブロック管理テーブ
ル210(数バイト×128ブロック×2LU)=約5
13KB」となる。複数のLUペアを管理する場合は、
「1LUペアに必要なメモリ×ペア数」となる。
The maximum number of blocks that can be allocated per LU is 1
By using 28 blocks, it is possible to manage the bitmap of the differential bits corresponding to the LU having the maximum storage capacity of 2 TB. Therefore, the memory capacity required to manage the difference information of an LU pair composed of LUs having a capacity of 2 TB is “bitmap area 220 (2 KB × 128 blocks × 2 LU) + LU reserved block information 200 (several bytes × 128 Block × 2 LU) + block management table 210 (several bytes × 128 blocks × 2 LU) = about 5
13 KB ". When managing multiple LU pairs,
"Memory required for 1 LU pair x number of pairs".

【0017】なお分離状態で副LUに対するデータ書き
込みを凍結する場合には、LU確保ブロック情報20
0、ブロック管理テーブル210及びビットマップエリ
ア220の副LU分が不要になるから、これらに必要な
記憶容量は上記の約半分になる。
When the data writing to the secondary LU is frozen in the separated state, the LU reserved block information 20
0, the block management table 210, and the sub-LU for the bitmap area 220 are unnecessary, so the storage capacity required for them is about half the above.

【0018】管理単位である差分ビットに対応する記憶
容量を小さくすれば、1LUペアに必要なメモリが多く
なるが、差分が少ない場合の再同期の時間は短くなる。
逆に差分ビットに対応する記憶容量を大きくすれば、1
LUペアに必要なメモリが少なくなるが、差分が少ない
場合にコピーする量が多くなり、再同期の時間が長くな
る。
If the storage capacity corresponding to the difference bit, which is a management unit, is reduced, more memory is required for one LU pair, but the resynchronization time is shortened when the difference is small.
Conversely, if the storage capacity corresponding to the difference bit is increased, it becomes 1
Although the memory required for the LU pair is small, the amount of copying is large when the difference is small, and the resynchronization time is long.

【0019】図4は、記憶装置システム20の分離機能
32が行う差分ビットのオン設定処理の流れを示すフロ
ーチャートである。分離機能32は、LUペアを構成す
る正LU又は副LUに対してホストコンピュータ10か
らWRITEコマンドを受けたとき、そのLUペアが
“PSUS”103状態の場合に(ステップ301YE
S)、LU確保ブロック情報200およびブロック管理
テーブル210を経由してビットマップエリア220を
参照し、LUの書き込み領域に対応するビットマップエ
リア220内の差分ビットの位置を算出し(ステップ3
02)、ビットマップエリア220から該当する差分ビ
ットを含む1バイト分の情報をメモリ上に取得する(ス
テップ303)。次に該当する差分ビットの値をオンに
設定し(ステップ304)、オン設定された差分ビット
を含む1バイト分の情報をビットマップエリア220内
の元の位置に格納する(ステップ305)。
FIG. 4 is a flowchart showing the flow of the differential bit ON setting process performed by the separation function 32 of the storage system 20. The separation function 32 receives the WRITE command from the host computer 10 for the primary LU or the sub-LU which constitutes the LU pair, and when the LU pair is in the “PSUS” 103 state (step 301YE
S), referring to the bitmap area 220 via the LU reserved block information 200 and the block management table 210, the position of the differential bit in the bitmap area 220 corresponding to the write area of the LU is calculated (step 3).
02), information of 1 byte including the corresponding difference bit is acquired from the bitmap area 220 on the memory (step 303). Next, the value of the relevant difference bit is set to ON (step 304), and 1 byte of information including the ON-set difference bit is stored in the original position in the bitmap area 220 (step 305).

【0020】図5は、再同期機能33が行う再同期処理
の流れを示すフローチャートである。再同期機能33
は、指定されたLUペアについて、LU確保ブロック情
報200およびブロック管理テーブル210を経由して
ビットマップエリア220上のその正LU又は副LUの
該当する値がオンの差分ビットを順に検索する(ステッ
プ401)。該当する差分ビットがあれば(ステップ4
02YES)、再同期指示に従って正LUから副LUへ
又は副LUから正LUへ当該差分ビット対応記憶領域の
情報をコピーする(ステップ403)。このときコピー
する記憶容量は、LU−LU間コピーの最大転送長(1
MB)である。ホストコンピュータ10からREAD/
WRITE要求を受けたなどの理由によってコピーが中
断したときには(ステップ404NO)、ステップ40
3に戻り、差分ビット対応記憶領域ののコピーが終了す
るまで差分コピーを繰り返す。差分ビット対応記憶領域
のコピーが終了したとき(ステップ404YES)、当
該差分ビットをオフにし、ステップ401に戻り、残り
の差分ビットの検索を続ける。オンの差分ビットが見当
たらず、当該LUペア分の検索が終了したとき(ステッ
プ402NO)、処理を終了する。
FIG. 5 is a flow chart showing the flow of resynchronization processing performed by the resynchronization function 33. Resync function 33
Searches for the specified LU pair in order via the LU allocation block information 200 and the block management table 210 for the difference bits for which the corresponding value of the primary LU or the secondary LU in the bitmap area 220 is ON (step 401). If there is a corresponding difference bit (step 4)
02), the information of the storage area corresponding to the difference bit is copied from the primary LU to the secondary LU or from the secondary LU to the primary LU according to the resynchronization instruction (step 403). The storage capacity to be copied at this time is the maximum transfer length of LU-LU copy (1
MB). From the host computer 10 READ /
When the copying is interrupted due to a reason such as receiving a WRITE request (step 404 NO), step 40
Returning to 3, the differential copy is repeated until the copy of the differential bit corresponding storage area is completed. When the copy of the differential bit corresponding storage area is completed (step 404 YES), the differential bit is turned off, the process returns to step 401, and the search for the remaining differential bits is continued. When the difference bit of ON is not found and the search for the LU pair is completed (NO in step 402), the process is ended.

【0021】図6は、ステップ401及び402の差分
ビットを検索し判別する処理の詳細を説明する図であ
る。例えば正LUに割り当てられているブロックのブロ
ック番号をLU確保ブロック情報202から取得し、ブ
ロック番号0のブロックに含まれるビットマップの1バ
イト221を取得する。同様に副LUに割り当てられて
いるブロックのブロック番号をLU確保ブロック情報2
03から取得し、ブロック番号6に含まれるビットマッ
プの1バイト222を取得する。1バイト221と1バ
イト222について差分ビットの論理和(OR)をとる
と、バイト223を得る。バイト223のうち値がオン
となっているビットが該当する差分ありのビットであ
る。再同期機能33は、再同期指示に従って差分ありの
差分ビットに対応する記憶領域の情報をコピーする。コ
ピーが完了したとき、正LU又は副LUのオンであった
該当する差分ビットをオフにする。なお正LUについて
のみ、差分ビットの検索をすることも可能である。
FIG. 6 is a diagram for explaining the details of the processing for searching and discriminating the difference bit in steps 401 and 402. For example, the block number of the block allocated to the primary LU is acquired from the LU reserved block information 202, and the 1-byte 221 of the bitmap included in the block of block number 0 is acquired. Similarly, the block number of the block assigned to the sub-LU is used as the LU reserved block information 2
03, and one byte 222 of the bitmap included in block number 6 is acquired. Byte 223 is obtained by taking the logical sum (OR) of the difference bits for 1 byte 221 and 1 byte 222. The bit whose value is ON in the byte 223 is the corresponding bit with a difference. The resynchronization function 33 copies the information in the storage area corresponding to the difference bit with a difference according to the resynchronization instruction. When the copy is completed, the corresponding difference bit, which was the primary LU or the secondary LU, is turned off. Note that it is also possible to search for the difference bit only for the primary LU.

【0022】このようにして当該LUペアについて再同
期処理が終了したとき、当該LUペアの正LU及び副L
Uに対応する差分ビットはすべてオフとなる。二重化機
能31は、LUペアのペア状態を“PAIR”102に
し、二重化が完了する。
When the resynchronization processing is completed for the LU pair in this way, the primary LU and the sub-L of the LU pair are completed.
All the difference bits corresponding to U are turned off. The duplication function 31 sets the pair status of the LU pair to "PAIR" 102, and duplication is completed.

【0023】LUからLUへ情報コピーするときに、1
回のデータ転送ごとにコピー時間にハードウェア的なオ
ーバヘッド時間が加わる。従って差分ビット対応記憶領
域を最大転送長にとると、差分データの管理のために必
要なメモリ容量と再同期所要時間がトレードオフされ、
最適化される。差分ビット対応記憶領域を最大転送長以
上にすると、メモリ容量は削減されるが、余分なオーバ
ヘッド時間が加わり不利となる。また差分ビット対応記
憶領域を最大転送長より小さくすると、メモリ容量が増
加するとともに、余分なオーバヘッドが加わる可能性が
生じ不利となる。
When copying information from LU to LU, 1
A hardware overhead time is added to the copy time for each data transfer. Therefore, if the differential bit correspondence storage area is set to the maximum transfer length, there is a trade-off between the memory capacity required for managing differential data and the resynchronization required time.
Optimized. If the differential bit corresponding storage area is made longer than the maximum transfer length, the memory capacity is reduced, but an extra overhead time is added, which is disadvantageous. If the differential bit corresponding storage area is made smaller than the maximum transfer length, the memory capacity increases and an extra overhead may be added, which is disadvantageous.

【0024】[0024]

【発明の効果】以上述べたように本発明によれば、ペア
を構成する両ボリュームの分離状態において両ボリュー
ムの差分データを管理する場合に、その管理単位を最大
転送長にすることにより、差分管理に必要なメモリ容量
を削減できるとともに、再同期にかかる時間を短縮する
ことができる。
As described above, according to the present invention, when managing the differential data of both volumes in the separated state of both volumes forming a pair, by setting the management unit to the maximum transfer length, the difference The memory capacity required for management can be reduced, and the time required for resynchronization can be shortened.

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

【図1】本発明に関連するシステムの構成を示す図であ
る。
FIG. 1 is a diagram showing a configuration of a system related to the present invention.

【図2】LUペアの状態と各状態が遷移する条件を示す
状態遷移図である。
FIG. 2 is a state transition diagram showing LU pair states and conditions under which each state transitions.

【図3】差分管理のための管理情報の形式例を示す図で
ある。
FIG. 3 is a diagram showing a format example of management information for difference management.

【図4】実施例の差分ビットのオン設定処理の流れを示
すフローチャートである。
FIG. 4 is a flowchart showing a flow of differential bit ON setting processing according to the embodiment.

【図5】実施例の再同期処理の流れを示すフローチャー
トである。
FIG. 5 is a flowchart showing a flow of resynchronization processing according to the embodiment.

【図6】実施例の差分ビットを検索し判別する処理を説
明する図である。
FIG. 6 is a diagram illustrating a process of searching and determining a difference bit according to the embodiment.

【図7】従来技術のデータバックアップ方法を説明する
図である。
FIG. 7 is a diagram illustrating a conventional data backup method.

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

10・・・ホストコンピュータ、20・・・記憶装置システ
ム、30・・・MRCF−Lite機能、31・・・二重化機
能、32・・・分離機能、33・・・再同期機能、40・・・正
LU、50・・・副LU、200・・・LU確保ブロック情
報、210・・・ブロック管理テーブル、220・・・ビット
マップエリア。
10 ... Host computer, 20 ... Storage system, 30 ... MRCF-Lite function, 31 ... Duplication function, 32 ... Separation function, 33 ... Resynchronization function, 40 ... Primary LU, 50 ... Sub LU, 200 ... LU reserved block information, 210 ... Block management table, 220 ... Bitmap area.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) G06F 12/16 310 G06F 12/16 310M (72)発明者 三浦 隆明 神奈川県横浜市中区尾上町6丁目81番地 日立ソフトウエアエンジニアリング株式会 社内 (72)発明者 出雲 博 神奈川県横浜市中区尾上町6丁目81番地 日立ソフトウエアエンジニアリング株式会 社内 (72)発明者 小林 正明 神奈川県小田原市中里322番地2号 株式 会社日立製作所RAIDシステム事業部内 Fターム(参考) 5B018 GA04 HA04 KA11 MA12 5B065 BA01 CA12 CA16 CC03 CC08 CC10 EA31 EA33 5B082 DC09 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 7 Identification code FI theme code (reference) G06F 12/16 310 G06F 12/16 310M (72) Inventor Takaaki Miura 6-chome, Onoue-cho, Naka-ku, Yokohama-shi, Kanagawa 81 Hitachi Software Engineering Co., Ltd. In-house (72) Inventor Hiroshi Izumo 6-81 Onoue-cho, Naka-ku, Yokohama-shi, Kanagawa Hitachi Software Engineering Co., Ltd. In-house (72) Inventor Masaaki Kobayashi 322-2 Nakazato, Odawara-shi, Kanagawa No. F-term in the RAID Systems Division, Hitachi, Ltd. (reference) 5B018 GA04 HA04 KA11 MA12 5B065 BA01 CA12 CA16 CC03 CC08 CC10 EA31 EA33 5B082 DC09

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】第1のボリュームと第2のボリュームとが
データバックアップのためのペアを構成し、前記の両ボ
リュームが二重化状態から分離状態に移行した後に前記
第1のボリュームに対してデータ書き込みのあった記憶
領域を管理する記憶装置システムのデータバックアップ
方法において、 前記第1のボリュームから前記第2のボリュームへのデ
ータコピーの際の1回で転送可能な最大転送長に等しい
前記第1のボリューム上の記憶領域に対応する記憶単位
を前記データ書き込みのあった記憶領域管理の管理単位
として記憶装置上に設定し、前記データ書き込みがあっ
た記憶領域に対応する前記管理単位を特定し、特定され
た前記管理単位に書き込みありを示すフラグを設定する
ことを特徴とするデータバックアップ方法。
1. A first volume and a second volume constitute a pair for data backup, and data writing to the first volume is performed after the both volumes have transitioned from a duplexed state to a separated state. In the data backup method for a storage device system that manages a storage area that has a problem, the first backup data is equal to the maximum transfer length that can be transferred at one time when data is copied from the first volume to the second volume. A storage unit corresponding to a storage area on a volume is set on the storage device as a management unit for managing the storage area in which the data has been written, and the management unit corresponding to the storage area in which the data has been written is specified and specified. A data backup method, characterized in that a flag indicating that there is writing is set in the management unit that has been created.
【請求項2】前記ペアを構成する前記分離状態の前記両
ボリュームについて再同期の指示を受けたとき、前記第
1のボリュ―ムについて前記書き込みありを示すフラグ
が設定された前記管理単位を検索し、検索結果の前記管
理単位に対応する前記第1のボリューム上の記憶領域に
ついて前記第1のボリュームから前記第2のボリューム
へデータコピーすることを特徴とする請求項1記載のデ
ータバックアップ方法。
2. When the resynchronization instruction is received for both the separated volumes forming the pair, the management unit in which the flag indicating the writing is set for the first volume is searched. The data backup method according to claim 1, wherein data is copied from the first volume to the second volume in a storage area on the first volume corresponding to the management unit of the search result.
【請求項3】第1のボリュームと第2のボリュームとが
データバックアップのためのペアを構成し、前記の両ボ
リュームが二重化状態から分離状態に移行した後に前記
第1のボリュームに対してデータ書き込みのあった記憶
領域を管理する手段を有する記憶装置システムにおい
て、 前記第1のボリュームから前記第2のボリュームへのデ
ータコピーの際の1回で転送可能な最大転送長に等しい
前記第1のボリューム上の記憶領域に対応する記憶単位
を前記データ書き込みのあった記憶領域管理の管理単位
として記憶装置上に設定する手段と、前記データ書き込
みがあった記憶領域に対応する前記管理単位を特定する
手段と、特定された前記管理単位に書き込みありを示す
フラグを設定する手段とを有することを特徴とする記憶
装置システム。
3. A first volume and a second volume form a pair for data backup, and both the volumes are written to the first volume after transition from a duplexed state to a separated state. In a storage device system having means for managing a storage area that has a problem, the first volume is equal to the maximum transfer length that can be transferred at one time when data is copied from the first volume to the second volume. Means for setting a storage unit corresponding to the upper storage area on the storage device as a management unit for storage area management in which the data has been written, and means for specifying the management unit corresponding to the storage area in which the data has been written And a means for setting a flag indicating that there is writing in the specified management unit.
JP2001371205A 2001-12-05 2001-12-05 Storage device system and its data backup method Pending JP2003173240A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001371205A JP2003173240A (en) 2001-12-05 2001-12-05 Storage device system and its data backup method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001371205A JP2003173240A (en) 2001-12-05 2001-12-05 Storage device system and its data backup method

Publications (1)

Publication Number Publication Date
JP2003173240A true JP2003173240A (en) 2003-06-20

Family

ID=19180283

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001371205A Pending JP2003173240A (en) 2001-12-05 2001-12-05 Storage device system and its data backup method

Country Status (1)

Country Link
JP (1) JP2003173240A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006039598A (en) * 2004-06-24 2006-02-09 Katsuya Ishihara Data linkage method and data linkage device for computer system
JP2008305288A (en) * 2007-06-11 2008-12-18 Hitachi Ltd Information system, and information storing method of information system
JP2009544100A (en) * 2006-07-18 2009-12-10 ネットアップ,インコーポレイテッド Removable portable data backup for network storage system
US7945749B2 (en) 2005-12-27 2011-05-17 Fujitsu Limited Data mirroring method
JP2011222030A (en) * 2004-02-04 2011-11-04 Sandisk Corp Dual media storage device
US8468298B2 (en) 2008-04-11 2013-06-18 Fujitsu Limited Management device and management method
WO2014060881A1 (en) * 2012-10-17 2014-04-24 International Business Machines Corporation Consistency group management
US9015385B2 (en) 2012-08-20 2015-04-21 Fujitsu Limited Data storage device and method of controlling data storage device
US9251230B2 (en) 2012-10-17 2016-02-02 International Business Machines Corporation Exchanging locations of an out of synchronization indicator and a change recording indicator via pointers

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011222030A (en) * 2004-02-04 2011-11-04 Sandisk Corp Dual media storage device
JP2006039598A (en) * 2004-06-24 2006-02-09 Katsuya Ishihara Data linkage method and data linkage device for computer system
US7945749B2 (en) 2005-12-27 2011-05-17 Fujitsu Limited Data mirroring method
JP2009544100A (en) * 2006-07-18 2009-12-10 ネットアップ,インコーポレイテッド Removable portable data backup for network storage system
JP2008305288A (en) * 2007-06-11 2008-12-18 Hitachi Ltd Information system, and information storing method of information system
JP5251974B2 (en) * 2008-04-11 2013-07-31 富士通株式会社 Management device, management method, and program
US8468298B2 (en) 2008-04-11 2013-06-18 Fujitsu Limited Management device and management method
US9015385B2 (en) 2012-08-20 2015-04-21 Fujitsu Limited Data storage device and method of controlling data storage device
WO2014060881A1 (en) * 2012-10-17 2014-04-24 International Business Machines Corporation Consistency group management
US9251233B2 (en) 2012-10-17 2016-02-02 International Business Machines Corporation Merging an out of synchronization indicator and a change recording indicator in response to a failure in consistency group formation
US9251231B2 (en) 2012-10-17 2016-02-02 International Business Machines Corporation Merging an out of synchronization indicator and a change recording indicator in response to a failure in consistency group formation
US9251230B2 (en) 2012-10-17 2016-02-02 International Business Machines Corporation Exchanging locations of an out of synchronization indicator and a change recording indicator via pointers
US9367598B2 (en) 2012-10-17 2016-06-14 International Business Machines Corporation Merging an out of synchronization indicator and a change recording indicator in response to a failure in consistency group formation
US9372908B2 (en) 2012-10-17 2016-06-21 International Business Machines Corporation Merging an out of synchronization indicator and a change recording indicator in response to a failure in consistency group formation

Similar Documents

Publication Publication Date Title
JP3726559B2 (en) Direct backup method and storage system
JP4749112B2 (en) Storage control system and method
US7496718B2 (en) Data transfer and access control between disk array systems
JP3741609B2 (en) Data processing method and apparatus for allowing independent access to replicated data
US6981115B2 (en) Method of data backup in a computer system and a storage system therefor
US7873600B2 (en) Storage control device to backup data stored in virtual volume
EP1148416B1 (en) Computer system and snapshot data management method
JP4900811B2 (en) Storage system and storage control method
US7412578B2 (en) Snapshot creating method and apparatus
JP3268555B2 (en) Data processor storage system with dynamic resynchronization of mirrored logical data volumes following storage system failure
US20030126388A1 (en) Method and apparatus for managing storage based replication
JP4961319B2 (en) A storage system that dynamically allocates real areas to virtual areas in virtual volumes
US20110119459A1 (en) Snapshot system
JP2001216185A (en) Data restoration method for information procession system and disk sub-system
JP2006268829A (en) Method and apparatus for mirroring object between storage systems
JP2003280964A (en) Method for acquiring snapshot, storage system and disk device
JP2008059443A (en) Storage system and backup method
JPH07248988A (en) Memory controller and related method thereof
JP2001337939A (en) Data multiplexing method and its system
US8332601B2 (en) Storage controller having virtual volume
JP2002259062A (en) Storage device system and data copying method for data for the same
JP2003162378A (en) Method for duplicating data
JP2000122902A (en) Method for writing data in log structure storage destination, medium and data storage system
JP7472341B2 (en) STORAGE SYSTEM AND METHOD FOR CONTROLLING STORAGE SYSTEM - Patent application
JP2003173240A (en) Storage device system and its data backup method