JP4122956B2 - Replica volume generation method and disk device - Google Patents
Replica volume generation method and disk device Download PDFInfo
- Publication number
- JP4122956B2 JP4122956B2 JP2002356838A JP2002356838A JP4122956B2 JP 4122956 B2 JP4122956 B2 JP 4122956B2 JP 2002356838 A JP2002356838 A JP 2002356838A JP 2002356838 A JP2002356838 A JP 2002356838A JP 4122956 B2 JP4122956 B2 JP 4122956B2
- Authority
- JP
- Japan
- Prior art keywords
- logical volume
- replication
- data
- master
- state
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims description 76
- 230000010076 replication Effects 0.000 claims description 341
- 238000007726 management method Methods 0.000 claims description 171
- 230000004044 response Effects 0.000 claims description 28
- 230000008569 process Effects 0.000 claims description 27
- 238000000926 separation method Methods 0.000 claims description 18
- 230000001629 suppression Effects 0.000 claims description 13
- 230000006870 function Effects 0.000 claims description 7
- 230000007704 transition Effects 0.000 claims description 7
- 238000013523 data management Methods 0.000 claims description 6
- 238000005192 partition Methods 0.000 claims description 6
- 230000003362 replicative effect Effects 0.000 claims description 3
- 238000004519 manufacturing process Methods 0.000 claims 4
- 230000008859 change Effects 0.000 claims 2
- 238000012545 processing Methods 0.000 description 35
- 238000010586 diagram Methods 0.000 description 9
- 238000005259 measurement Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 238000007792 addition Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000007430 reference method Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、コンピュータの外部記憶装置における複製ボリュームの生成方法およびディスク装置に関する。
【0002】
【従来の技術】
一般に、ディスクアレイ装置などのコンピュータの外部記憶装置に存在するマスタ論理ボリュームには、各種の業務に使用される重要データが記憶されているため、ハードウェア或いはソフトウェアの障害やオペレータの操作ミスなどによるデータの喪失に備え、マスタ論理ボリュームを複製した複製論理ボリュームを定期的に生成する必要がある。この際、マスタ論理ボリュームの容量は業務処理の複雑化、多様化等につれて年々増加しているため、複製論理ボリュームを如何に高速かつ効率良く生成するかが、当分野の重要課題の1つになっている。
【0003】
論理ボリュームを複製する従来技術としては、ディスクアレイ装置において一時的にミラー化してオリジナルファイルのコピーをミラーに作成し、コピー完了後に非ミラー化して切り離す方法(例えば、後述する特許文献1参照)、ログ構造ファイルシステム(Log-Structured File System)を採用するコンピュータシステムにおいて、ディスク上のデータを直接コピーするのでなく、ファイルの仮想アドレスと実アドレスの対応表であるデータ管理テーブルをメモリ上でコピーする方法(例えば、後述する特許文献2参照)などが知れている。また、特許文献2では、コピーしたデータ管理テーブルを再コピーし、この再コピーしたデータ管理テーブルを使って複製を参照および更新し得るようにしている。
【0004】
【特許文献1】
特開平9−231016号公報
【特許文献2】
特開2001−51882号公報
【0005】
【発明が解決しようとする課題】
しかしながら、特許文献1に記載される方法は、業務処理中に頻繁にデータのコピー動作が行われるため特にオンライン業務に与える影響が大きく、また複製を高速に作成できないという課題がある。これに対して特許文献2に記載される方法は、データ管理テーブルをメモリ上でコピーするだけであるため複製を高速に生成することができる。しかし、実データより容量が小さいとは言え、データ管理テーブルをコピーする必要があり、作成したいタイミングで瞬時に複製を作成することはできない。
【0006】
そこで本発明の目的は、マスタ論理ボリュームの複製を極めて短時間に生成することができる複製ボリューム生成方法およびディスク装置を提供することにある。
【0007】
【課題を解決するための手段】
本発明の第1の複製ボリューム生成方法は、ホストコンピュータに接続されたディスク装置における複製ボリューム生成方法において、a)前記ホストコンピュータからのペア設定指示に応答して、複製用論理ボリュームとして仮想論理ボリュームを使用し、マスタ論理ボリュームに対し、複製用論理ボリュームと、該複製用論理ボリュームの各分割領域に1対1に対応する管理データを記憶するデータマップとを割当て、前記マスタ論理ボリュームと前記複製用論理ボリュームとの組をペア設定状態として管理するステップ、b)ペア設定状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対する前記ホストコンピュータからのレプリケート指示に応答して、前記複製用論理ボリュームを構成する前記仮想論理ボリュームに割り当てられている実記憶領域を開放すると共に、前記複製用論理ボリューム用の前記データマップの全ての管理データを無効状態に設定し、前記マスタ論理ボリュームと前記複製用論理ボリュームとの組をレプリケート状態として管理し、前記ホストコンピュータからの前記複製用論理ボリュームに対する書き込みを禁止するステップ、c)レプリケート状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対する前記ホストコンピュータからのセパレート指示に応答して、前記マスタ論理ボリュームと前記複製用論理ボリュームの組をセパレート状態として管理し、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対して前記ホストコンピュータから書き込み要求が出された際、前記マスタ論理ボリュームの前記分割領域に対応する領域内の全データを前記複製用論理ボリュームの対応する領域にコピーした後に前記マスタ論理ボリュームへの書き込みを行うと共に前記管理データを無効状態から有効状態へ変更し、且つ、前記ホストコンピュータから前記複製用論理ボリュームに対する読み出し要求があった際、前記データマップの管理データが有効状態になっている分割領域への読み出し要求であれば前記複製用論理ボリュームからデータの読み出しを行い、前記データマップの管理データが無効状態になっている分割領域への読み出し要求であれば前記マスタ論理ボリュームの対応する領域からデータの読み出しを行うステップを含み、前記ステップcにおいて、前記ホストコンピュータから前記複製用論理ボリュームへの書き込みを許可し、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域への書き込みであれば、前記分割領域に対応する前記マスタ論理ボリュームの領域内の全データを前記複製用論理ボリュームの対応する領域にコピーした後に前記複製用論理ボリュームへのデータの書き込みを行うと共に前記管理データを無効状態から有効状態へ変更し、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域への書き込みであれば前記複製用論理ボリュームにそのままデータの書き込みを行うようにし、セパレート状態にある前記複製用論理ボリュームを構成する前記仮想論理ボリュームには、セパレート状態において更新された前記マスタ論理ボリュームの分割領域に対応する前記複製用論理ボリュームの分割領域に必要な実記憶領域および、セパレート状態において更新された前記複製用論理ボリュームの分割領域に必要な実記憶領域のみが割り当てられることを特徴とする。
【0008】
この第1の複製ボリューム生成方法にあっては、ホストコンピュータからペア設定指示を与えると、ディスク装置が、複製元となるマスタ論理ボリュームに対し、複製用論理ボリュームと、該複製用論理ボリュームの各分割領域に1対1に対応する管理データを記憶するデータマップとを割当て、前記マスタ論理ボリュームと前記複製用論理ボリュームとの組をペア設定状態として管理し、次いでホストコンピュータからレプリケート指示を与えると、ディスク装置が、前記複製用論理ボリューム用の前記データマップの全ての管理データを無効状態に設定し、前記マスタ論理ボリュームと前記複製用論理ボリュームとの組をレプリケート状態として管理し、前記ホストコンピュータからの前記複製用論理ボリュームに対する書き込みを禁止する。この時点でマスタ論理ボリュームの複製が何時でも瞬時に作成できる準備が整ったことになる。
【0009】
次いで、マスタ論理ボリュームの複製を作成したいタイミングでホストコンピュータからセパレート指示を与えると、ディスク装置は、前記マスタ論理ボリュームと前記複製用論理ボリュームの組をセパレート状態として管理することで、その時点のマスタ論理ボリュームの複製を複製用論理ボリュームとしてホストコンピュータに瞬時に提供する。何故なら、セパレート指示直後においてはデータマップの全ての管理データは無効状態になっており、ディスク装置は、データマップの管理データが無効状態になっている複製用論理ボリュームの分割領域への読み出し要求であればマスタ論理ボリュームの対応する領域からデータの読み出しを行うからである。
【0010】
また、ディスク装置は、セパレート指示後に、データマップの管理データが無効状態になっている複製用論理ボリュームの分割領域に対応するマスタ論理ボリュームの領域に対してホストコンピュータから書き込み要求が出された際、マスタ論理ボリュームの前記分割領域に対応する領域内の全データを複製用論理ボリュームの対応する領域にコピーした後にマスタ論理ボリュームへの書き込みを行うと共に前記管理データを無効状態から有効状態へ変更する。そして、ディスク装置は、ホストコンピュータから複製用論理ボリュームに対する読み出し要求があった際に、データマップの管理データが有効状態になっている分割領域への読み出し要求であれば、複製用論理ボリュームからデータの読み出しを行う。これにより、セパレート指示後にホストコンピュータがマスタ論理ボリュームを更新しても、セパレート指示時点のマスタ論理ボリュームの複製が複製用論理ボリュームに保持されるように維持される。
【0011】
本発明の第1の複製ボリューム生成方法は、セパレート指示時点のマスタ論理ボリュームの複製を使って別の業務処理が行えるようにすることを目的として、前記ステップcにおいて、前記ホストコンピュータから前記複製用論理ボリュームへの書き込みを許可し、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域への書き込みであれば、前記分割領域に対応する前記マスタ論理ボリュームの領域内の全データを前記複製用論理ボリュームの対応する領域にコピーした後に前記複製用論理ボリュームへのデータの書き込みを行うと共に前記管理データを無効状態から有効状態へ変更し、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域への書き込みであれば前記複製用論理ボリュームにそのままデータの書き込みを行うようにする。
【0012】
本発明の第2の複製ボリューム生成方法は、セパレート状態にある複製用論理ボリュームを別の或る時点のマスタ論理ボリュームの複製用論理ボリュームに再利用し得るようにすることを目的として、第1の複製ボリューム生成方法において、d)セパレート状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対する前記ホストコンピュータからのレプリケート指示に応答して、前記複製用論理ボリューム用の前記データマップの全ての管理データを無効状態に設定し、前記マスタ論理ボリュームと前記複製用論理ボリュームとの組をレプリケート状態として管理し、前記ホストコンピュータからの前記複製用論理ボリュームに対する書き込みを禁止するステップを有する。
【0013】
本発明の第3の複製ボリューム生成方法は、複製用論理ボリュームをバックアップディスクとして使用し、セパレート時点のボリューム内容に基づいて直ちに業務が再開できるようにすることを目的として、第1の複製ボリューム生成方法において、d)セパレート状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対する前記ホストコンピュータからのリストア指示に応答して、前記マスタ論理ボリュームと前記複製用論理ボリュームの組をリストア状態として管理し、前記ホストコンピュータから前記マスタ論理ボリュームに対して読み出し要求があった際、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対する読み出し要求であれば前記マスタ論理ボリュームからデータの読み出しを行い、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対する読み出し要求であれば前記複製用論理ボリュームからデータの読み出しを行い、前記ホストコンピュータから前記マスタ論理ボリュームに対して書き込み要求があった際、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対する書き込み要求であれば前記マスタ論理ボリュームにそのままデータの書き込みを行い、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対する書き込み要求であれば、前記分割領域に対応する前記複製用論理ボリュームの領域内の全データを前記マスタ論理ボリュームの対応する領域にコピーした後に前記マスタ論理ボリュームへの書き込みを行うと共に前記管理データを有効状態から無効状態へ変更するステップを有する。
【0014】
本発明の第4の複製ボリューム生成方法は、業務再開後の空き時間を有効に活用してリストア処理を高速化することを目的として、第3の複製ボリューム生成方法において、e)リストア状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対し、前記ホストコンピュータからのアクセスに関係なく、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域内の全データを前記マスタ論理ボリュームの対応する領域にコピーし、前記管理データを有効状態から無効状態へ変更するステップを有する。
【0015】
本発明の第5の複製ボリューム生成方法は、リストア状態にある複製用論理ボリュームを別の或る時点のマスタ論理ボリュームの複製用論理ボリュームに再利用し得るようにすることを目的として、第4の複製ボリューム生成方法において、f)前記ステップeの処理により前記データマップの全ての管理データが無効状態となった時点で、前記リストア状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組をレプリケート状態として管理するステップを有する。
【0016】
本発明の第6の複製ボリューム生成方法は、ディスク容量を有効利用することを目的として、第2または第5の複製ボリューム生成方法において、前記複製用論理ボリュームのレプリケート状態への遷移時、前記複製用論理ボリュームに割当てられていた実記憶領域をすべて切り離して未使用の実記憶領域のプールへ返却する処理を含んでいる。
【0017】
本発明の第7の複製ボリューム生成方法は、マスタ論理ボリュームの入出力性能が複製用論理ボリュームのアクセスで影響がでないようにすることを目的として、第1の複製ボリューム生成方法において、前記マスタ論理ボリュームの負荷状況に応じて、前記ホストコンピュータから前記複製用論理ボリュームに対する入出力性能を調整する処理を含んでいる。具体的には、前記マスタ論理ボリュームの入出力負荷を測定し、前記ホストコンピュータから前記複製用論理ボリュームに対してアクセス要求があったときの前記マスタ論理ボリュームの入出力負荷が予め定めれられた閾値より高い場合には一定時間だけ待って前記アクセス要求を処理するようにしている。
【0018】
本発明の第1のディスク装置は、ホストコンピュータからのペア設定指示に応答して、複製用論理ボリュームとして仮想論理ボリュームを使用し、マスタ論理ボリュームに対し、複製用論理ボリュームと、該複製用論理ボリュームの各分割領域に1対1に対応する管理データを記憶するデータマップとを割り当て、前記マスタ論理ボリュームと前記複製用論理ボリュームとの組をペア設定状態として管理し、ペア設定状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対する前記ホストコンピュータからのレプリケート指示に応答して、前記複製用論理ボリュームを構成する前記仮想論理ボリュームに割り当てられている実記憶領域を開放すると共に、前記複製用論理ボリューム用の前記データマップの全ての管理データを無効状態に設定し、前記マスタ論理ボリュームと前記複製用論理ボリュームとの組をレプリケート状態として管理し、レプリケート状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対する前記ホストコンピュータからのセパレート指示に応答して、前記マスタ論理ボリュームと前記複製用論理ボリュームの組をセパレート状態として管理するスナップショット制御手段と、前記ホストコンピュータから前記マスタ論理ボリュームおよび前記複製用論理ボリュームに対するアクセスを制御するアクセス制御手段とを備え、前記アクセス制御手段は、レプリケート状態の前記複製用論理ボリュームに対する前記ホストコンピュータからの書き込みは禁止するものであり、セパレート状態の前記マスタ論理ボリュームに対する前記ホストコンピュータからの書き込み要求に対しては、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域への書き込みであれば、書き込み前のデータを含む前記分割領域内の全データを前記複製用論理ボリュームの対応する領域にコピーした後に前記マスタ論理ボリュームへの書き込みを行うと共に前記管理データを無効状態から有効状態へ変更するものであり、セパレート状態の前記複製用論理ボリュームに対する前記ホストコンピュータからの読み出し要求に対しては、前記データマップの管理データが有効状態になっている分割領域からの読み出しであれば前記複製用論理ボリュームからデータの読み出しを行い、前記データマップの管理データが無効状態になっている分割領域からの読み出しであれば前記マスタ論理ボリュームの対応する領域からデータの読み出しを行うものであり、且つ、セパレート状態の前記複製用論理ボリュームに対する前記ホストコンピュータからの書き込みを許可するものであり、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域への書き込みであれば、前記分割領域に対応する前記マスタ論理ボリュームの領域内の全データを前記複製用論理ボリュームの対応する領域にコピーした後に前記複製用論理ボリュームへのデータの書き込みを行うと共に前記管理データを無効状態から有効状態へ変更し、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域への書き込みであれば前記複製用論理ボリュームにそのままデータの書き込みを行うものであり、セパレート状態にある前記複製用論理ボリュームを構成する前記仮想論理ボリュームには、セパレート状態において更新された前記マスタ論理ボリュームの分割領域に対応する前記複製用論理ボリュームの分割領域に必要な実記憶領域および、セパレート状態において更新された前記複製用論理ボリュームの分割領域に必要な実記憶領域のみが割り当てられることを特徴とする。
【0019】
この第1のディスク装置にあっては、ホストコンピュータからペア設定指示が与えられると、スナップショット制御手段が、複製元となるマスタ論理ボリュームに対し、複製用論理ボリュームと、該複製用論理ボリュームの各分割領域に1対1に対応する管理データを記憶するデータマップとを割当て、前記マスタ論理ボリュームと前記複製用論理ボリュームとの組をペア設定状態として管理し、次いでホストコンピュータからレプリケート指示が与えられると、前記複製用論理ボリューム用の前記データマップの全ての管理データを無効状態に設定し、前記マスタ論理ボリュームと前記複製用論理ボリュームとの組をレプリケート状態として管理し、アクセス制御手段が、前記ホストコンピュータからの前記複製用論理ボリュームに対する書き込みを禁止する。この時点でマスタ論理ボリュームの複製が何時でも瞬時に作成できる準備が整ったことになる。
【0020】
次いで、マスタ論理ボリュームの複製を作成したいタイミングでホストコンピュータからセパレート指示が与えられると、スナップショット制御手段が、前記マスタ論理ボリュームと前記複製用論理ボリュームの組をセパレート状態として管理することで、その時点のマスタ論理ボリュームの複製を複製用論理ボリュームとしてホストコンピュータに瞬時に提供する。何故なら、セパレート指示直後においてはデータマップの全ての管理データは無効状態になっており、アクセス制御手段は、データマップの管理データが無効状態になっている複製用論理ボリュームの分割領域への読み出し要求であればマスタ論理ボリュームの対応する領域からデータの読み出しを行うからである。
【0021】
また、アクセス制御手段は、セパレート指示後に、データマップの管理データが無効状態になっている複製用論理ボリュームの分割領域に対応するマスタ論理ボリュームの領域に対してホストコンピュータから書き込み要求が出された際、マスタ論理ボリュームの前記分割領域に対応する領域内の全データを複製用論理ボリュームの対応する領域にコピーした後にマスタ論理ボリュームへの書き込みを行うと共に前記管理データを無効状態から有効状態へ変更する。また、ホストコンピュータから複製用論理ボリュームに対する読み出し要求があった際に、データマップの管理データが有効状態になっている分割領域への読み出し要求であれば、複製用論理ボリュームからデータの読み出しを行う。これにより、セパレート指示後にホストコンピュータがマスタ論理ボリュームを更新しても、セパレート指示時点のマスタ論理ボリュームの複製が複製用論理ボリュームに保持されるように維持される。
【0022】
本発明の第1のディスク装置は、セパレート指示時点のマスタ論理ボリュームの複製を使ってホストコンピュータが別の業務処理が行えるようにすることを目的として、前記アクセス制御手段は、セパレート状態の前記複製用論理ボリュームに対する前記ホストコンピュータからの書き込みを許可するものであり、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域への書き込みであれば、前記分割領域に対応する前記マスタ論理ボリュームの領域内の全データを前記複製用論理ボリュームの対応する領域にコピーした後に前記複製用論理ボリュームへのデータの書き込みを行うと共に前記管理データを無効状態から有効状態へ変更し、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域への書き込みであれば前記複製用論理ボリュームにそのままデータの書き込みを行うようにしている。
【0023】
本発明の第2のディスク装置は、セパレート状態にある複製用論理ボリュームを別の或る時点のマスタ論理ボリュームの複製用論理ボリュームに再利用し得るようにすることを目的として、第1のディスク装置において、前記スナップショット制御手段は、セパレート状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対する前記ホストコンピュータからのレプリケート指示に応答して、前記複製用論理ボリューム用の前記データマップの全ての管理データを無効状態に設定し、前記マスタ論理ボリュームと前記複製用論理ボリュームとの組をレプリケート状態として管理し、前記アクセス制御手段は、レプリケート状態の前記複製用論理ボリュームに対する前記ホストコンピュータからの書き込みを禁止する構成を有する。
【0024】
本発明の第3のディスク装置は、複製用論理ボリュームをバックアップディスクとして使用し、セパレート時点のボリューム内容に基づいて直ちに業務が再開できるようにすることを目的として、第1のディスク装置において、前記スナップショット制御手段は、セパレート状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対する前記ホストコンピュータからのリストア指示に応答して、前記マスタ論理ボリュームと前記複製用論理ボリュームの組をリストア状態として管理し、前記アクセス制御手段は、リストア状態の前記マスタ論理ボリュームに対して前記ホストコンピュータから読み出し要求があった際、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対する読み出し要求であれば前記マスタ論理ボリュームからデータの読み出しを行い、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対する読み出し要求であれば前記複製用論理ボリュームからデータの読み出しを行うものであり、リストア状態の前記マスタ論理ボリュームに対して前記ホストコンピュータから書き込み要求があった際、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対する書き込み要求であれば前記マスタ論理ボリュームにそのままデータの書き込みを行い、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対する書き込み要求であれば、前記分割領域に対応する前記複製用論理ボリュームの領域内の全データを前記マスタ論理ボリュームの対応する領域にコピーした後に前記マスタ論理ボリュームへの書き込みを行うと共に前記管理データを有効状態から無効状態へ変更する構成を有する。
【0025】
本発明の第4のディスク装置は、業務再開後の空き時間を有効に活用してリストア処理を高速化することを目的として、第3のディスク装置において、前記スナップショット制御手段は、リストア状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対し、前記ホストコンピュータからのアクセスに関係なく、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域内の全データを前記マスタ論理ボリュームの対応する領域にコピーし、前記管理データを有効状態から無効状態へ変更する処理を行う構成を有する。
【0026】
本発明の第5のディスク装置は、リストア状態にある複製用論理ボリュームを別の或る時点のマスタ論理ボリュームの複製用論理ボリュームに再利用し得るようにすることを目的として、第4のディスク装置において、前記スナップショット制御手段は、前記データマップの全ての管理データが無効状態となった時点で、前記リストア状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組をレプリケート状態として管理する構成を有する。
【0027】
本発明の第6のディスク装置は、ディスク容量を有効利用することを目的として、第2または第5のディスク装置において、前記複製用論理ボリュームのレプリケート状態への遷移時、前記複製用論理ボリュームに割当てられていた実記憶領域をすべて切り離して未使用の実記憶領域のプールへ返却する論理ボリューム制御手段を備えている。
【0028】
本発明の第7のディスク装置は、マスタ論理ボリュームの性能が複製用論理ボリュームのアクセスで影響がでないようにすることを目的として、第1のディスク装置において、前記マスタ論理ボリュームの負荷状況に応じて、前記ホストコンピュータから前記複製用論理ボリュームに対する入出力性能を調整する複製ボリュームI/O抑止手段を備えている。具体的には、前記複製ボリュームI/O抑止手段は、前記ホストコンピュータから前記複製用論理ボリュームに対してアクセス要求があったときの前記マスタ論理ボリュームの入出力負荷が予め定めれられた閾値より高い場合には前記アクセス要求を一定時間だけ待たせるようにしている。
【0029】
【発明の実施の形態】
次に本発明の実施の形態について図面を参照して詳細に説明する。
【0030】
図1を参照すると、本発明の実施の形態にかかるコンピュータシステムは、ホストコンピュータ1に信号線2を通じてディスクアレイ装置3が接続されている。また、ディスクアレイ装置3は、ディスクアレイを構成する複数の物理ディスク4と、ホストコンピュータ1に信号線2で接続されると共に複数の物理ディスク4に信号線5で接続されたディスクアレイ処理部6とを備える。更に、ディスクアレイ処理部6は、アクセス制御手段10、スナップショット制御手段11、複製ボリュームのデータマップ17および制御管理情報18を記憶する不揮発性のメモリ12、論理ボリューム制御手段13、論理ボリューム管理テーブル14、複製ボリュームI/O抑止手段15および論理ボリューム負荷計測手段16を含んで構成される。
【0031】
論理ボリューム制御手段13は、論理ボリュームの生成と管理を行う。論理ボリュームは、物理ディスク4上に生成される物理的なボリュームではなく、ホストコンピュータ1から1つのボリュームとして認識される論理的なボリュームであり、実論理ボリュームと仮想論理ボリュームの2種類がある。実論理ボリュームは、その全領域に対して記憶データの有無に関係なく最初から物理ディスク4の実記憶領域が割当てられているボリュームである。仮想論理ボリュームは、使用時に部分的に物理ディスク4の実記憶領域が割当てられるボリュームである。具体的には、仮想論理ボリュームにおいてデータを記憶する領域が必要になると、物理ディスク4における未使用の記憶領域プール19から実記憶領域を割当て、既に割当てた実記憶領域が不要になると記憶領域プール19に返却することで、実記憶領域の有効利用を図っている。
【0032】
ディスク装置3がホストコンピュータ1に提供する図1に示したマスタ論理ボリューム(以下、MVとも呼ぶ)21および複製用論理ボリューム(以下、RVとも呼ぶ)22は、論理ボリューム制御手段13によって生成されたものである。ここで、マスタ論理ボリューム21および複製用論理ボリューム22のそれぞれは、実論理ボリュームであっても良いし、仮想論理ボリュームであっても良い。
【0033】
論理ボリューム管理テーブル14は、論理ボリューム上での論理記憶領域の位置(論理アドレス)と実記憶領域上での位置(物理アドレス)との対応関係を保持するテーブルである。また、論理ボリュームが仮想論理ボリュームの場合、論理記憶領域に対する実記憶領域の割当の有無もテーブル上で管理する。
【0034】
論理ボリューム負荷計測手段16は、マスタ論理ボリューム21のI/O負荷を計測する機能を有する。I/O負荷としては、例えば単位時間当たりのI/O回数が用いられる。
【0035】
複製ボリュームI/O抑止手段15は、論理ボリューム負荷計測手段16で計測されているマスタ論理ボリューム21のI/O負荷の状況に応じて、ホストコンピュータ1から複製用論理ボリューム22に対するI/O性能を調整する機能を有する。具体的には、ホストコンピュータ1から複製用論理ボリューム22に対してアクセス要求があったときのマスタ論理ボリューム21のI/O負荷が、予め定めれられた閾値より高い場合、この複製用論理ボリューム22に対する所定のアクセス要求を一定時間だけ待たせる処理を行う。
【0036】
メモリ12に記憶される複製ボリュームのデータマップ17は、複製用論理ボリューム22毎に設けられる。1つのデータマップ17は、複製用論理ボリューム22の各分割領域に1対1に対応する管理データを有する。管理データは、対応する分割領域に有効なデータが記憶されていることを示す有効状態と、対応する分割領域が無効であることを示す無効状態との2つの状態の何れかを示す。本実施の形態の場合、複製用論理ボリューム22を1Mバイト単位で分割し、各1Mバイトの分割領域毎に、1ビットの管理データを割当てる。管理データは、値1で無効状態を、値0で有効状態を示す。勿論、本発明において、分割サイズは1Mバイトに限定されず、任意のサイズとすることができる。また、管理データも1ビットである必要はない。
【0037】
メモリ12に記憶される制御管理情報18は、複製用論理ボリューム22毎に設けられる。1つの制御管理情報18は、マスタ論理ボリューム21を一意に識別する論理ディスク番号と、このマスタ論理ボリューム21の複製用として使用する複製用論理ボリューム22を一意に識別する論理ディスク番号との組と、この組の状態がペア設定状態、レプリケート状態、セパレート状態、リストア状態の何れの状態であるかを示すステータスとから構成される。
【0038】
スナップショット制御手段11は、ホストコンピュータ1から発行されるペア設定コマンド、レプリケートコマンド、セパレートコマンド、リストアコマンドに対応する処理を実行する部分であり、データマップ17および制御管理情報18の生成と管理を司る。
【0039】
アクセス制御手段10は、ホストコンソール1から発行されるマスタ論理ボリューム21および複製用論理ボリューム22への参照要求および更新要求にかかる処理を実行する部分であり、必要に応じてデータマップ17および制御管理情報18を参照/更新し、実行すべきアクセス方法等を決定する。
【0040】
図2は本実施の形態のディスクアレイ装置3がサポートするコマンド(ペア設定コマンド、レプリケートコマンド、セパレートコマンド、リストアコマンド)によってマスタ論理ボリューム21と複製用論理ボリューム22の組がどのような状態に遷移するかを示した状態遷移図、図3はホストコンピュータ1からコマンドを受信した際のディスクアレイ処理部6の処理例を示すフローチャート、図4は図3のステップS111の参照処理の詳細を示すフローチャート、図5は図3のステップS112の更新処理の詳細を示すフローチャート、図6はペア設定状態の説明図、図7はレプリケート状態の説明図、図8はセパレート状態の説明図、図9はリストア状態の説明図である。以下、各図を参照して、本実施の形態の機能の詳細と動作を説明する。
【0041】
(1)ペア設定
ディスクアレイ装置3に存在するマスタ論理ボリューム21の複製ボリュームを生成する場合、先ず、複製を生成したいマスタ論理ボリューム21を指定する論理ディスク番号と複製用の論理ボリューム22を指定する論理ディスク番号とを指定したペア設定コマンドをホストコンピュータ1からディスクアレイ装置3に対して発行する。マスタ論理ボリューム21および複製用論理ボリューム22は、実論理ボリュームであっても良いし、仮想論理ボリュームであっても良い。何れの場合も、ペア設定コマンドを投入する以前に論理ボリュームが生成されている必要がある。この論理ボリュームの生成は、従来と同様に行われ、ホストコンピュータ1からディスクアレイ装置3に対して発行される生成コマンドに従って論理ボリューム制御手段13で行われる(図3のS113)。
【0042】
ディスクアレイ装置3のディスクアレイ処理部6は、ペア設定コマンドをホストコンピュータ1から受信すると(図3のS101でYES)、スナップショット制御手段11によりペア設定処理を実行する(図3のS107)。このペア設定処理では、スナップショット制御手段11は、図6に示すように、指定されたマスタ論理ボリューム21と指定された複製用論理ボリューム22とを関連付け、また複製用論理ボリューム22用のデータマップ17を割り付ける。論理ボリュームどうしの関連付けは、図2に示すように、制御管理情報18にそれぞれの論理ディスク番号を設定することで行い、同時に制御管理情報18のステータスにペア設定状態を設定することで、マスタ論理ボリューム21と複製用論理ボリューム22の組をペア設定状態として管理する。
【0043】
ペア設定状態のマスタ論理ボリューム21に対する参照(読み出し)コマンドをホストコンピュータ1から受信すると(図3のS105でYES)、ディスクアレイ処理部6のアクセス制御手段10は、図4に詳細を示す参照処理S111を実行し、ペア設定以前の通常の場合と同様にマスタ論理ボリューム21からデータを読み出してホストコンピュータ1に返却する(図4のS204)。また、ホストコンピュータ1からマスタ論理ボリューム21に対する更新(書き込み)コマンドを受信した場合(図3のS106でYES)、アクセス制御手段10は、図5に詳細を示す更新処理S112を実行する。
【0044】
他方、アクセス制御手段10は、ペア設定状態の複製用論理ボリューム22に対する参照および更新は、何れも禁止する(図4のS208、図5のS310)。
【0045】
(2)レプリケート
ディスクアレイ装置3に存在するマスタ論理ボリューム21と複製用論理ボリューム22とのペア設定後、ホストコンピュータ1からディスクアレイ装置3に対してレプリケートコマンドを発行することができる。なお、レプリケートコマンドはセパレート状態にあるマスタ論理ボリューム21と複製用論理ボリューム22の組に対しても発行可能である。レプリケートコマンドでは、対象となるマスタ論理ボリューム21および複製用論理ボリューム22の論理ディスク番号を指定する。
【0046】
ディスクアレイ装置3のディスクアレイ処理部6は、レプリケートコマンドをホストコンピュータ1から受信すると(図3のS102でYES)、スナップショット制御手段11によりレプリケート処理を実行する(図3のS108)。このレプリケート処理では、スナップショット制御手段11は、指定されたマスタ論理ボリューム21と指定された複製用論理ボリューム22の組を管理する制御管理情報18を参照し、ステータスがペア設定状態またはセパレート状態の場合にのみコマンドを受付け、それ以外は拒否する。セパレートコマンドを受付けたスナップショット制御手段11は、図7に示すように、指定された複製用論理ボリューム22のデータマップ17中の全ての管理データを無効状態(1)に設定する。また、図2に示すように、制御管理情報18のステータスをレプリケート状態に設定し、マスタ論理ボリューム21と複製用論理ボリューム22の組をレプリケート状態として管理する。
【0047】
更に、スナップショット制御手段11は、レプリケート処理の一環として、複製用論理ボリューム22が仮想論理ボリュームで作成されている場合、論理ボリューム制御手段13に対して複製用論理ボリューム22の論理ディスク番号を指定して実記憶領域の開放を要求する。論理ボリューム制御手段13は、論理ボリューム管理テーブル14を更新して、指定された複製用論理ボリューム22に割当てられている実記憶領域を全て切り離し、未使用の記憶領域プール19へ返却する。
【0048】
レプリケート状態のマスタ論理ボリューム21に対する参照コマンドおよび更新コマンドをホストコンピュータ1から受信したときのディスクアレイ処理部6におけるアクセス制御手段10の処理は、ペア設定状態のときと同じであり、ホストコンピュータ1からのマスタ論理ボリューム21に対する参照、更新は通常通りに許可する(図4のS204、図5のS306)。
【0049】
他方、レプリケート状態の複製用論理ボリューム22に対する参照コマンドをホストコンピュータ1から受信した場合(図4のS201でNO)、アクセス制御手段10は、制御管理情報18のステータスがレプリケート状態になっているため(S207でYES)、参照要求された位置に対応するマスタ論理ボリューム21の位置からデータを読み出してホストコンピュータ1に返却する(S212)。このように、レプリケート状態の複製用論理ボリューム22に対して参照コマンドが出された場合、通常業務に使うマスタ論理ボリューム21がアクセスされるため、マスタ論理ボリューム21の負荷が高まるおそれがある。そこで、本実施の形態では、複製ボリュームI/O抑止手段15において、論理ボリューム負荷計測手段16で計測されているマスタ論理ボリューム21の入出力負荷が予め定められた閾値より大きいかどうかを判定し(S210)、若し、所定の閾値より入出力負荷が高ければ今回の参照要求を一定時間だけ待たせ(S211)、しかる後にアクセス制御手段10が参照要求された位置に対応するマスタ論理ボリューム21の位置からデータを読み出してホストコンピュータ1に返却するようにしている(S212)。
【0050】
また、レプリケート状態の複製用論理ボリューム22に対する更新コマンドをホストコンピュータ1から受信した場合(図5のS301でNO)、アクセス制御手段10は、制御管理情報18のステータスがレプリケート状態になっているため(S309でNO)、更新を許可しない(S310)。
【0051】
(3)セパレート
ディスクアレイ装置3に存在するマスタ論理ボリューム21と複製用論理ボリューム22の組をレプリケート状態に設定した後、ホストコンピュータ1からディスクアレイ装置3に対してセパレートコマンドを任意のタイミングで発行することができ、セパレートコマンドを発行した時点で、複製用論理ボリューム22はマスタ論理ボリューム21のスナップショットとなる。セパレートコマンドでは、対象となるマスタ論理ボリューム21および複製用論理ボリューム22の論理ディスク番号を指定する。
【0052】
ディスクアレイ装置3のディスクアレイ処理部6は、セパレートコマンドをホストコンピュータ1から受信すると(図3のS103でYES)、スナップショット制御手段11によりセパレート処理を実行する(図3のS109)。このセパレート処理では、スナップショット制御手段11は、指定されたマスタ論理ボリューム21と指定された複製用論理ボリューム22の組を管理する制御管理情報18を参照し、ステータスがレプリケート状態である場合にのみコマンドを受付け、それ以外は拒否する。セパレートコマンドを受付けたスナップショット制御手段11は、図2に示すように、制御管理情報18のステータスをセパレート状態に設定し、マスタ論理ボリューム21と複製用論理ボリューム22の組をセパレート状態として管理する。
【0053】
セパレート状態のマスタ論理ボリューム21に対する参照コマンドをホストコンピュータ1から受信したときのディスクアレイ処理部6におけるアクセス制御手段10の処理は、ペア設定状態およびレプリケート状態のときと同じであり、ホストコンピュータ1からのマスタ論理ボリューム21に対する参照を通常通りに許可する(図4のS204)。
【0054】
他方、セパレート状態のマスタ論理ボリューム21に対する更新コマンドをホストコンピュータ1から受信した場合、アクセス制御手段10は、制御管理情報18のステータスがセパレート状態になっているため(図5のS302でYES)、マスタ論理ボリューム21の更新位置に相当する複製用論理ボリューム22の分割領域に対応するデータマップ17の管理データが無効状態であるかどうかを調べる(S304)。そして、無効状態であれば、図8(A)に示すように、今回のデータGを書き込み前の1分割領域単位の全データBBをマスタ論理ボリューム21から複製用論理ボリューム22の対応する分割領域にコピーして前記管理データを無効状態(1)から有効状態(0)へ変更し(S305)、マスタ論理ボリューム21へ今回のデータGの書き込みを行う。つまり、モディファイライトの処理を行う。これにより、更新後の領域のデータはBGとなる。また、有効状態であれば、ステップS305の処理をスキップして、通常通りマスタ論理ボリューム21にデータを書き込む(S306)。
【0055】
一方、セパレート状態の複製用論理ボリューム22に対する参照コマンドをホストコンピュータ1から受信した場合、アクセス制御手段10は、制御管理情報18のステータスがセパレート状態になっているため(図4のS206でYES)、参照位置に相当する複製用論理ボリューム22の分割領域に対応するデータマップ17の管理データが無効状態であるかどうかを調べる(S209)。そして、有効状態であれば複製用論理ボリューム22からデータの読み出しを行い(S213)、無効状態であればマスタ論理ボリューム21の対応する領域からデータの読み出しを行う(S212)。このように、セパレート状態の複製用論理ボリューム22に対して参照コマンドが出された場合、データマップ17の該当領域に対応する管理データが無効状態であると、通常業務に使うマスタ論理ボリューム21がアクセスされるため、マスタ論理ボリューム21の負荷が高まるおそれがある。そこで、本実施の形態では、複製ボリュームI/O抑止手段15において、論理ボリューム負荷計測手段16で計測されているマスタ論理ボリューム21の入出力負荷が予め定められた閾値より大きいかどうかを判定し(S210)、若し、所定の閾値より入出力負荷が高ければ今回の参照要求を一定時間だけ待たせ(S211)、しかる後にアクセス制御手段10が参照要求された位置に対応するマスタ論理ボリューム21の位置からデータを読み出してホストコンピュータ1に返却するようにしている(S212)。
【0056】
次に、セパレート状態の複製用論理ボリューム22に対する更新コマンドをホストコンピュータ1から受信した場合、アクセス制御手段10は、制御管理情報18のステータスがセパレート状態になっているため(図5のS309でYES)、更新位置に相当する複製用論理ボリューム22の分割領域に対応するデータマップ17の管理データが無効状態であるかどうかを調べる(S311)。そして、無効状態(1)であれば、図8(B)に示すように、データマップ17の管理データが無効状態になっている複製用論理ボリューム22の分割領域に対応するマスタ論理ボリューム21の領域内の全データBBを複製用論理ボリューム22の対応する領域にコピーして前記管理データを無効状態(1)から有効状態(0)へ変更し(S314)、複製用論理ボリューム22へ今回のデータGの書き込みを行う(S315)。これにより、更新後の領域のデータはBGとなる。また、データマップ17の管理データが有効状態になっている複製用論理ボリューム22の分割領域への書き込みであれば、複製用論理ボリューム22にそのままデータの書き込みを行う(S315)。このように、セパレート状態の複製用論理ボリューム22に対して更新コマンドが出された場合、データマップ17の該当領域に対応する管理データが無効状態であると、通常業務に使うマスタ論理ボリューム21がアクセスされるため、マスタ論理ボリューム21の負荷が高まるおそれがある。そこで、本実施の形態では、複製ボリュームI/O抑止手段15において、論理ボリューム負荷計測手段16で計測されているマスタ論理ボリューム21の入出力負荷が予め定められた閾値より大きいかどうかを判定し(S312)、若し、所定の閾値より入出力負荷が高ければ今回の更新要求を一定時間だけ待たせ(S313)、しかる後にアクセス制御手段10が更新要求された位置に対応するマスタ論理ボリューム21の位置にデータを書き込むようにしている(S315)。
【0057】
セパレートコマンド発行時点のマスタ論理ボリューム21のバックアップを図示しない磁気テープに保存する場合、このセパレート状態にある複製用論理ボリューム22の内容を読み出して磁気テープに出力する。また、セパレート状態にある複製用論理ボリューム22を使って、セパレートコマンド発行時点のマスタ論理ボリューム21の内容に基づいて別の業務処理を行うことも可能である。
【0058】
(4)リストア
ディスクアレイ装置3に存在するマスタ論理ボリューム21と複製用論理ボリューム22の組をセパレート状態に設定し、複製用論理ボリューム22がマスタ論理ボリューム21のスナップショットとなっている場合、ホストコンピュータ1からディスクアレイ装置3に対してリストアコマンドを発行することで、複製用論理ボリューム22をバックアップディスクとして使用して業務処理を再開することができる。リストアコマンドでは、対象となるマスタ論理ボリューム21および複製用論理ボリューム22の論理ディスク番号を指定する。
【0059】
ディスクアレイ装置3のディスクアレイ処理部6は、リストアコマンドをホストコンピュータ1から受信すると(図3のS104でYES)、スナップショット制御手段11によりリストア処理を実行する(図3のS110)。このリストア処理では、ディスクアレイ処理部6のスナップショット制御手段11は、指定されたマスタ論理ボリューム21と指定された複製用論理ボリューム22の組を管理する制御管理情報18を参照し、ステータスがセパレート状態である場合にのみコマンドを受付け、それ以外は拒否する。リストアコマンドを受付けたスナップショット制御手段11は、図2に示すように、制御管理情報18のステータスをリストア状態に設定し、マスタ論理ボリューム21と複製用論理ボリューム22の組をリストア状態として管理する。
【0060】
またスナップショット制御手段11は、リストア処理S110の一環として、リストア状態にあるマスタ論理ボリューム21と複製用論理ボリューム22の組に対し、ホストコンピュータ1からのアクセスに関係なく、図9(A)に示すように、データマップ17の管理データが有効状態(0)になっている複製用論理ボリューム22の分割領域内の全データBGをマスタ論理ボリューム21の対応する領域にコピーして前記管理データを有効状態(0)から無効状態(1)へ変更する処理を、ホストコンピュータ1からのコマンドの処理などと並行して空き時間に実行する。そして、データマップ17の全ての管理データが無効状態(1)になると、リストア完了と判断し、図2に示すようにレプリケート状態に遷移させる。つまり、制御管理情報18のステータスをリストア状態からレプリケート状態に変更し、マスタ論理ボリューム21と複製用論理ボリューム22の組を再びレプリケート状態として管理する。更に、スナップショット制御手段11は、レプリケート状態となった複製用論理ボリューム22が仮想論理ボリュームで作成されている場合、論理ボリューム制御手段13に対して複製用論理ボリューム22の論理ディスク番号を指定して実記憶領域の開放を要求する。論理ボリューム制御手段13は、論理ボリューム管理テーブル14を更新して、指定された複製用論理ボリューム22に割り当てられている実記憶領域を全て切り離し、未使用の記憶領域プール19へ返却する。
【0061】
リストア状態のマスタ論理ボリューム21に対する参照コマンドをホストコンピュータ1から受信した場合、ディスクアレイ処理部6におけるアクセス制御手段10は、制御管理情報18のステータスがリストア状態になっているため(図4のS202でYES)、マスタ論理ボリューム21の参照位置に相当する複製用論理ボリューム22の分割領域に対応するデータマップ17の管理データが無効状態であるかどうかを調べる(S203)。そして、有効状態であれば複製用論理ボリューム22からデータを読み出してホストコンピュータ1に返却し(S205)、無効状態であればマスタ論理ボリューム21からデータを読み出してホストコンピュータ1に返却する(S204)。
【0062】
他方、リストア状態のマスタ論理ボリューム21に対する更新コマンドをホストコンピュータ1から受信した場合、ディスクアレイ処理部6におけるアクセス制御手段10は、制御管理情報18のステータスがリストア状態になっているため(図5のS303でYES)、マスタ論理ボリューム21の更新位置に相当する複製用論理ボリューム22の分割領域に対応するデータマップ17の管理データが無効状態であるかどうかを調べる(S307)。そして、有効状態であれば、図9(B)に示すように、複製用論理ボリューム22の当該分割領域の全データBGをマスタ論理ボリューム21の対応する領域にコピーして前記管理データを有効状態(0)から無効状態(1)へ変更し(S308)、マスタ論理ボリューム21に今回のデータHを書き込む(S306)。これにより、更新後の領域のデータはBHとなる。また、無効状態であれば、ステップS308の処理をスキップして、通常通りマスタ論理ボリューム21にデータを書き込む(S306)。
【0063】
一方、リストア状態の複製用論理ボリューム22に対する参照コマンドおよび更新コマンドをホストコマンド1から受信した場合、アクセス制御手段10は、本実施の形態ではその要求を拒否する(図4のS208、図5のS310)。他の実施の形態として、更新は拒否するが、参照はセパレート状態の複製用論理ボリューム22に対する参照方法と同じ方法で許可するようにしても良い。
【0064】
次に本実施の形態の効果を説明する。
【0065】
本実施の形態にかかる複製ボリューム生成方法は、レプリケート状態にある複製用論理ボリューム22をセパレートコマンドでマスタ論理ボリューム21から切り離した時点で瞬時に複製用論理ボリューム22がマスタ論理ボリューム21のスナップショットとなり、切り離し以降に、セパレート時点のデータを維持するためにコピー動作が行われるため、次のような一般的な運用形態をとるコンピュータシステムにおいては、業務への性能影響がなく、非常に効果がある。
【0066】
一般的に、バックアップは、オンライン業務完了後、バッチ処理と同時に実施される場合が多い。よって、オンライン業務完了後に、セパレートして、複製用論理ボリューム22から磁気テープにバックアップの作業を実施するのと並行して、マスタ論理ボリューム21でバッチ処理が実施できる。この場合、オンライン業務には性能影響が全くなく、かつ、オンライン業務完了直後に複製が瞬時に作成できるので、効率的に磁気テープへのバックアップが実施できる。
【0067】
また、複製用論理ボリューム22をバックアップディスクとして使用することにより、マスタ論理ボリューム21のソフトウェア的な破壊時には、複製用論理ボリューム22をリストアすることで、リカバリ時間を短縮することができる。
【0068】
また、複製用論理ボリューム22が仮想論理ボリュームで作成されている場合、レプリケート遷移時点ではデータマップ17の全ての管理データは無効状態にされ複製用論理ボリューム22の実記憶領域がアクセスされることがない点に着目して、全ての実記憶領域を全て未使用の記憶領域プール19へ一旦返却する。このため、複製用論理ボリューム22の使用する実記憶領域は、セパレート後の更新領域のみの実記憶領域だけとなり、複製用論理ボリューム22の使用する実記憶領域を少なく抑えることができる。また、未使用の記憶領域プール19へ返却された実記憶領域は、複数の複製用論理ボリュームで共用して使用できるので、物理ディスク4の容量を節約することができる。
【0069】
本実施の形態では、ホストコンピュータ1からの複製用論理ボリューム22へのアクセスで、マスタ論理ボリューム21にアクセスが必要となる場合があり、マスタ論理ボリューム21のアクセス性能が低下する懸念があるが、複製ボリュームI/O抑止手段15を備えたことにより、マスタ論理ボリューム21の高負荷時には、マスタ論理ボリューム21のアクセスが必要となる複製用論理ボリューム22へのアクセス要求を待たせることができ、マスタ論理ボリューム21のアクセス性能を複製用論理ボリューム22のアクセスで影響がでないように制御することができる。
【0070】
以上本発明の実施の形態について説明したが、本発明は以上の実施の形態にのみ限定されず、その他各種の付加変更が可能である。例えば、適用対象となるディスク装置は、ディスクアレイ装置に限定されない。また、本発明のディスク装置は、その有する機能をハードウェア的に実現することは勿論、コンピュータとディスク制御用プログラムとで実現することができる。ディスク制御用プログラムは、磁気ディスクや半導体メモリ等のコンピュータ可読記録媒体に記録されて提供され、ディスク装置を構成するコンピュータの立ち上げ時などにコンピュータに読み取られ、そのコンピュータの動作を制御することにより、そのコンピュータを前述した実施の形態におけるディスクアレイ装置におけるディスクアレイ処理部として機能させる。
【0071】
【発明の効果】
以上説明したように本発明によれば以下のような効果が得られる。
【0072】
本発明の第1の複製ボリューム生成方法およびディスク装置によれば、レプリケート状態にあるマスタ論理ボリュームと複製用論理ボリュームの組に対してセパレート指示を出すことにより、マスタ論理ボリュームの複製を複製用論理ボリュームに瞬時に作成することができる。その理由は、ディスク装置は、セパレート指示が与えられると、マスタ論理ボリュームと複製用論理ボリュームの組をセパレート状態として管理し、セパレート指示直後においてはデータマップの全ての管理データは無効状態になっており、複製用論理ボリュームへアクセスがあると、マスタ論理ボリュームの対応する領域からデータの読み出しを行うからである。
【0073】
また本発明の第1の複製ボリューム生成方法およびディスク装置によれば、セパレート指示後にホストコンピュータがマスタ論理ボリュームを更新しても、セパレート指示時点のマスタ論理ボリュームの複製が複製用論理ボリュームに保持されるように維持できる。その理由は、ディスク装置は、セパレート指示後に、データマップの管理データが無効状態になっている複製用論理ボリュームの分割領域に対応するマスタ論理ボリュームの領域に対してホストコンピュータから書き込み要求が出された際、マスタ論理モジュールの前記分割領域に対応する領域内の全データを複製用論理ボリュームの対応する領域にコピーした後にマスタ論理ボリュームへの書き込みを行うと共に前記管理データを無効状態から有効状態へ変更し、且つ、ホストコンピュータから複製用論理ボリュームに対する読み出し要求があった際に、データマップの管理データが有効状態になっている分割領域への読み出し要求であれば、複製用論理ボリュームからデータの読み出しを行うからである。
【0074】
本発明の第2の複製ボリューム生成方法およびディスク装置によれば、セパレート指示時点のマスタ論理ボリュームの複製を使って別の業務処理が行える。その理由は、セパレート状態の複製用論理ボリュームに対するホストコンピュータからの書き込みを許可し、データマップの管理データが無効状態になっている複製用論理ボリュームの分割領域への書き込みであれば、前記分割領域に対応するマスタ論理ボリュームの領域内の全データを複製用論理ボリュームの対応する領域にコピーした後に複製用論理ボリュームへのデータの書き込みを行うと共に管理データを無効状態から有効状態へ変更し、データマップの管理データが有効状態になっている複製用論理ボリュームの分割領域への書き込みであれば複製用論理ボリュームにそのままデータの書き込みを行うからである。
【0075】
本発明の第3の複製ボリューム生成方法およびディスク装置によれば、セパレート状態にある複製用論理ボリュームを別の或る時点のマスタ論理ボリュームの複製用論理ボリュームに再利用することができる。その理由は、セパレート状態にあるマスタ論理ボリュームと複製用論理ボリュームの組に対するホストコンピュータからのレプリケート指示に応答して、複製用論理ボリューム用のデータマップの全ての管理データを無効状態に設定し、マスタ論理ボリュームと複製用論理ボリュームとの組を再びレプリケート状態として管理し、ホストコンピュータからの複製用論理ボリュームに対する書き込みを禁止するからである。
【0076】
本発明の第4の複製ボリューム生成方法およびディスク装置によれば、複製用論理ボリュームをバックアップディスクとして使用し、セパレート時点のボリューム内容に基づいて直ちに業務を再開することができる。その理由は、セパレート状態にあるマスタ論理ボリュームと複製用論理ボリュームの組に対するホストコンピュータからのリストア指示に応答して、マスタ論理ボリュームと複製用論理ボリュームの組をリストア状態として管理し、ホストコンピュータからマスタ論理ボリュームに対して読み出し要求があった際、データマップの管理データが無効状態になっている複製用論理ボリュームの分割領域に対応するマスタ論理ボリュームの領域に対する読み出し要求であればマスタ論理ボリュームからデータの読み出しを行い、データマップの管理データが有効状態になっている複製用論理ボリュームの分割領域に対応するマスタ論理ボリュームの領域に対する読み出し要求であれば複製用論理ボリュームからデータの読み出しを行い、ホストコンピュータからマスタ論理ボリュームに対して書き込み要求があった際、データマップの管理データが無効状態になっている複製用論理ボリュームの分割領域に対応するマスタ論理ボリュームの領域に対する読み出し要求であればマスタ論理ボリュームにそのままデータの書き込みを行い、データマップの管理データが有効状態になっている複製用論理ボリュームの分割領域に対応するマスタ論理ボリュームの領域に対する読み出し要求であれば、分割領域に対応する複製用論理ボリュームの領域内の全データをマスタ論理ボリュームの対応する領域にコピーした後にマスタ論理ボリュームへの書き込みを行うと共に管理データを有効状態から無効状態へ変更するからである。
【0077】
本発明の第5の複製ボリューム生成方法およびディスク装置によれば、業務再開後の空き時間を有効に活用してリストアを短時間で完了することができる。その理由は、リストア状態にあるマスタ論理ボリュームと複製用論理ボリュームの組に対し、ホストコンピュータからのアクセスに関係なく、データマップの管理データが有効状態になっている複製用論理ボリュームの分割領域内の全データをマスタ論理ボリュームの対応する領域にコピーして、管理データを有効状態から無効状態へ変更する処理を行うからである。
【0078】
本発明の第6の複製ボリューム生成方法およびディスク装置によれば、リストア状態にある複製用論理ボリュームを別の或る時点のマスタ論理ボリュームの複製用論理ボリュームに再利用することができる。その理由は、データマップの全ての管理データが無効状態となった時点で、リストア状態にあるマスタ論理ボリュームと複製用論理ボリュームの組をレプリケート状態として再び管理するからである。
【0079】
本発明の第7の複製ボリューム生成方法およびディスク装置によれば、ディスク容量を有効利用することができる。その理由は、複製用論理ボリュームとして仮想論理ボリュームを使用し、複製用論理ボリュームのセパレート状態あるいはリストア状態からレプリケート状態への遷移時、複製用論理ボリュームに割当てられていた実記憶領域をすべて切り離して未使用の実記憶領域のプールへ返却するからである。
【0080】
本発明の第8の複製ボリューム生成方法およびディスク装置によれば、マスタ論理ボリュームの性能が複製用論理ボリュームのアクセスで影響がでないようにすることができる。その理由は、マスタ論理ボリュームの負荷状況に応じて、マスタ論理ボリュームにアクセスが必要となる複製用論理ボリュームに対するアクセスを待たせるようにしているからである。
【図面の簡単な説明】
【図1】本発明の実施の形態にかかるコンピュータシステムのブロック図である。
【図2】本発明の実施の形態におけるディスクアレイ装置がサポートするコマンド(ペア設定コマンド、レプリケートコマンド、セパレートコマンド、リストアコマンド)によってマスタ論理ボリュームと複製用論理ボリュームの組がどのような状態に遷移するかを示した状態遷移図である。
【図3】ホストコンピュータからコマンドを受信した際のディスクアレイ処理部の処理例を示すフローチャートである。
【図4】ホストコンピュータから参照コマンドを受信した際にディスクアレイ処理部が行う参照処理の詳細を示すフローチャートである。
【図5】ホストコンピュータから更新コマンドを受信した際にディスクアレイ処理部が行う更新処理の詳細を示すフローチャートである。
【図6】本発明の実施の形態におけるペア設定状態の説明図である。
【図7】本発明の実施の形態におけるレプリケート状態の説明図である。
【図8】本発明の実施の形態におけるセパレート状態の説明図である。
【図9】本発明の実施の形態におけるリストア状態の説明図である。
【符号の説明】
1…ホストコンピュータ
2…信号線
3…ディスクアレイ装置
4…物理ディスク
5…信号線
6…ディスクアレイ処理部
11…スナップショット制御手段
12…不揮発性メモリ
13…論理ボリューム制御手段
14…論理ボリューム管理テーブル
15…複製ボリュームI/O抑止手段
16…論理ボリューム負荷計測手段
17…複製ボリュームのデータマップ
18…制御管理情報
19…未使用の記憶領域プール
21…マスタ論理ボリューム(MV)
22…複製用論理ボリューム(RV)[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a replica volume generation method and a disk device in an external storage device of a computer.
[0002]
[Prior art]
Generally, a master logical volume that exists in an external storage device of a computer such as a disk array device stores important data used for various operations. This may be caused by a hardware or software failure or an operator error. In preparation for data loss, it is necessary to periodically create a replicated logical volume that duplicates the master logical volume. At this time, since the capacity of the master logical volume is increasing year by year as business processing becomes more complex and diversified, one of the important issues in this field is how to create a replicated logical volume quickly and efficiently. It has become.
[0003]
As a conventional technique for duplicating a logical volume, a method of temporarily mirroring in a disk array device to create a copy of an original file on a mirror and then unmirroring and detaching after completion of the copy (see, for example,
[0004]
[Patent Document 1]
Japanese Patent Laid-Open No. 9-231016
[Patent Document 2]
JP 2001-51882 A
[0005]
[Problems to be solved by the invention]
However, the method described in
[0006]
Accordingly, an object of the present invention is to provide a replica volume generation method and a disk device capable of generating a replica of a master logical volume in an extremely short time.
[0007]
[Means for Solving the Problems]
The first replication volume generation method of the present invention is a replication volume generation method in a disk device connected to a host computer. A) A virtual logical volume as a replication logical volume in response to a pair setting instruction from the host computer Are assigned to the master logical volume, a replication logical volume, and a data map storing management data corresponding to each divided area of the logical volume for replication, and the master logical volume and the replication B) managing a pair with a logical volume as a pair setting state; b) in response to a replication instruction from the host computer for the pair of the master logical volume and the replication logical volume in a pair setting state; The virtual logical volume constituting the logical volume A real storage area allocated to the system, and all management data in the data map for the replication logical volume are set to an invalid state, and a set of the master logical volume and the replication logical volume is set. A step of managing as a replicated state and prohibiting writing from the host computer to the replication logical volume; c) a separate instruction from the host computer for a set of the master logical volume and the replication logical volume in the replicated state In response, the master logical volume and the duplication logical volume pair are managed as separate states, and the master logical volume corresponding to the divided area of the duplication logical volume in which the management data of the data map is invalid For the volume area When a write request is issued from the host computer, all data in the area corresponding to the divided area of the master logical volume is copied to the corresponding area of the duplication logical volume and then written to the master logical volume. The management data is changed from the invalid state to the valid state, and when a read request is made to the duplication logical volume from the host computer, the management data of the data map is transferred to the divided area in the valid state. If it is a read request, data is read from the replication logical volume, and if it is a read request to a divided area where the management data of the data map is invalid, data is read from the corresponding area of the master logical volume. The step c is included in the step c. In this case, if the write to the replication logical volume is permitted from the host computer and the management data of the data map is invalid, the division area After all the data in the area of the master logical volume corresponding to is copied to the area corresponding to the replication logical volume, the data is written to the replication logical volume and the management data is changed from the invalid state to the valid state. If the data is changed and the management data of the data map is written to the divided area of the replication logical volume, the data is written to the replication logical volume as it is, and the data in the separate state is written. The virtual logical volume that constitutes the replication logical volume has a separate Real storage space required for the divided region of the logical volume for duplicate corresponding to the divided regions of the master logical volume that was updated in the preparative conditions and Real storage area required for the division area of the replication logical volume updated in the separate state only Is assigned.
[0008]
In this first replication volume generation method, when a pair setting instruction is given from the host computer, the disk device makes a copy of the replication logical volume and each of the replication logical volumes to the replication source master logical volume. When a data map storing management data corresponding to one-to-one is allocated to the divided area, the set of the master logical volume and the duplication logical volume is managed as a pair setting state, and then a replication instruction is given from the host computer The disk device sets all management data in the data map for the replication logical volume to an invalid state, manages a set of the master logical volume and the replication logical volume as a replicated state, and the host computer Write to the replication logical volume from is prohibited That. At this point, the master logical volume replica is ready to be created instantly at any time.
[0009]
Next, when a separate instruction is given from the host computer at the timing when the master logical volume replica is to be created, the disk device manages the set of the master logical volume and the replicating logical volume as a separate state, so that the current master A replica of the logical volume is instantly provided to the host computer as a logical volume for replication. This is because immediately after the separation instruction, all the management data of the data map is in an invalid state, and the disk device makes a read request to the division area of the duplication logical volume in which the management data of the data map is in an invalid state. This is because data is read from the corresponding area of the master logical volume.
[0010]
In addition, after a separate command is issued, the disk device receives a write request from the host computer to the master logical volume area corresponding to the split area of the replication logical volume whose data map management data is invalid. Then, after all data in the area corresponding to the divided area of the master logical volume is copied to the corresponding area of the replication logical volume, writing to the master logical volume is performed and the management data is changed from the invalid state to the valid state. . When a read request is issued from the host computer to the duplication logical volume, the disk device receives data from the duplication logical volume if it is a read request to a divided area in which the management data of the data map is valid. Is read out. Thus, even if the host computer updates the master logical volume after the separation instruction, the replica of the master logical volume at the time of the separation instruction is maintained so as to be held in the duplication logical volume.
[0011]
First of the
[0012]
First of the
[0013]
First of the present invention 3 The replication volume generation method of the first replication volume generation method uses the replication logical volume as a backup disk so that the business can be resumed immediately based on the volume content at the time of separation. In response to a restore instruction from the host computer for a set of the master logical volume and the replication logical volume in a separate state, the set of the master logical volume and the replication logical volume is managed as a restore state, and the host When a read request is made from the computer to the master logical volume, a read request for the master logical volume area corresponding to the divided area of the duplication logical volume in which the management data of the data map is invalid if there is If the data read from the master logical volume is a read request to the area of the master logical volume corresponding to the divided area of the replication logical volume in which the management data of the data map is valid, the replication Corresponds to the division area of the replication logical volume in which the management data of the data map is in an invalid state when data is read from the logical volume and the host computer makes a write request to the master logical volume If it is a write request to the area of the master logical volume, the data is written to the master logical volume as it is, and the management data of the data map corresponds to the divided area of the duplication logical volume that is valid Master logical volume If it is a write request to the area, after copying all the data in the area of the replication logical volume corresponding to the divided area to the corresponding area of the master logical volume, writing to the master logical volume and the management Changing the data from a valid state to an invalid state.
[0014]
First of the present invention 4 The purpose of this replica volume generation method is to speed up the restoration process by effectively using the free time after the work is resumed. 3 In the duplicate volume generation method, e) the management data in the data map becomes valid regardless of access from the host computer to the set of the master logical volume and the duplicate logical volume in the restored state. Copying all data in the divided area of the replication logical volume to the corresponding area of the master logical volume, and changing the management data from the valid state to the invalid state.
[0015]
First of the
[0016]
First of the present invention 6 The replication volume generation method of the first is intended to make effective use of disk capacity. 2 Or second 5 In the replication volume generation method Before And a process of detaching all the real storage areas allocated to the duplication logical volume and returning them to the pool of unused real storage areas when transitioning to the replicated logical volume.
[0017]
First of the
[0018]
In response to a pair setting instruction from the host computer, the first disk device of the present invention uses a virtual logical volume as a replication logical volume, and for the master logical volume, a replication logical volume and the replication logical volume. A data map storing management data corresponding to one-to-one correspondence is assigned to each divided area of the volume, and a set of the master logical volume and the replication logical volume is managed as a pair setting state, and the pair setting state is in the pair setting state. In response to a replication instruction from the host computer for a set of the master logical volume and the replication logical volume, the real storage area allocated to the virtual logical volume constituting the replication logical volume is released, and All management data in the data map for the logical volume for replication Is set to an invalid state, the set of the master logical volume and the replication logical volume is managed as a replicated state, and the set of the master logical volume and the replicated logical volume in the replicated state is separated from the host computer. In response to the instruction, snapshot control means for managing a set of the master logical volume and the duplication logical volume as a separate state, and access for controlling access from the host computer to the master logical volume and the duplication logical volume Control means, and the access control means prohibits writing from the host computer to the replicated logical volume in the replicated state, and to the master logical volume in the separated state. In response to a write request from the host computer, if it is a write to the area of the master logical volume corresponding to the divided area of the replication logical volume in which the management data of the data map is invalid, After all data in the divided area including data before writing is copied to the corresponding area of the duplication logical volume, writing to the master logical volume and changing the management data from the invalid state to the valid state In response to a read request from the host computer for the replication logical volume in the separate state, the replication logical volume is read out from a divided area in which the management data of the data map is valid Data is read from and management of the data map If the data is read from a divided area in which the data is invalid, the data is read from the corresponding area of the master logical volume, and the replication logical volume in the separate state is read from the host computer. If writing to the divided area of the replication logical volume in which the management data of the data map is in an invalid state is permitted, writing in the area of the master logical volume corresponding to the divided area After all data has been copied to the corresponding area of the replication logical volume, data is written to the replication logical volume and the management data is changed from the invalid state to the valid state, so that the management data in the data map is valid Writing to the divided area of the replication logical volume in the state If this is the case, data is written directly to the replication logical volume, and the virtual logical volume constituting the replication logical volume in the separate state is stored in the master logical volume updated in the separate state. Real storage area required for the division area of the replication logical volume corresponding to the division area and Real storage area required for the division area of the replication logical volume updated in the separate state only Is assigned.
[0019]
In this first disk device, when a pair setting instruction is given from the host computer, the snapshot control means sends the replication logical volume and the replication logical volume to the replication source master logical volume. A data map for storing management data corresponding to one-to-one correspondence is assigned to each divided area, the set of the master logical volume and the duplication logical volume is managed as a pair setting state, and then a replication instruction is given from the host computer When this is done, all the management data of the data map for the replication logical volume is set to an invalid state, the set of the master logical volume and the replication logical volume is managed as a replicated state, and the access control means includes: For the replication logical volume from the host computer To prohibit the lump can. At this point, the master logical volume replica is ready to be created instantly at any time.
[0020]
Next, when a separate instruction is given from the host computer at the timing at which it is desired to create a replica of the master logical volume, the snapshot control means manages the set of the master logical volume and the logical volume for duplication as a separate state. A copy of the master logical volume at the time is instantly provided to the host computer as a replication logical volume. This is because immediately after the separation instruction, all the management data of the data map is in an invalid state, and the access control means reads out to the divided area of the replication logical volume in which the management data of the data map is in an invalid state. This is because if it is a request, data is read from the corresponding area of the master logical volume.
[0021]
In addition, after the separate instruction, the access control means issued a write request from the host computer to the master logical volume area corresponding to the divided area of the duplication logical volume whose management data in the data map is invalid At this time, after all data in the area corresponding to the divided area of the master logical volume is copied to the corresponding area of the replication logical volume, writing to the master logical volume is performed and the management data is changed from the invalid state to the valid state. To do. Also, when a read request is issued from the host computer to the replication logical volume, if the read request is for a divided area in which the management data of the data map is valid, the data is read from the replication logical volume. . Thus, even if the host computer updates the master logical volume after the separation instruction, the replica of the master logical volume at the time of the separation instruction is maintained so as to be held in the duplication logical volume.
[0022]
First of the
[0023]
First of the
[0024]
First of the present invention 3 In the first disk device, the snapshot control means uses the replication logical volume as a backup disk so that the operation can be resumed immediately based on the volume content at the time of separation. Responsive to a restore instruction from the host computer for the set of the master logical volume and the replication logical volume in a separate state, managing the set of the master logical volume and the replication logical volume as a restore state, The access control means corresponds to the divided area of the duplication logical volume in which the management data of the data map is invalid when a read request is issued from the host computer to the master logical volume in the restored state. The master theory If it is a read request for a volume area, the master logical volume is read from the master logical volume, and the master logical volume area corresponding to the divided area of the replication logical volume in which the management data of the data map is valid If the read request is for the data, the data is read from the replication logical volume, and the management data in the data map is invalid when a write request is issued from the host computer to the restored master logical volume. If it is a write request to the area of the master logical volume corresponding to the divided area of the replication logical volume that is in the state, data is written to the master logical volume as it is, and the management data of the data map becomes valid Has become If it is a write request to the area of the master logical volume corresponding to the division area of the replication logical volume, all the data in the area of the replication logical volume corresponding to the division area is assigned to the area corresponding to the master logical volume. And then writing to the master logical volume and copying the management data from the valid state to the invalid state.
[0025]
First of the present invention 4 The purpose of this disk unit is to speed up the restore process by effectively using the free time after the business resumes. 3 In this disk device, the snapshot control means is in a state in which the management data of the data map is valid regardless of access from the host computer to the set of the master logical volume and the replication logical volume in the restore state. And copying all the data in the divided area of the duplication logical volume to the corresponding area of the master logical volume and changing the management data from the valid state to the invalid state.
[0026]
First of the
[0027]
First of the present invention 6 The purpose of this disk unit is to make effective use of disk capacity. 2 Or second 5 Transition of the logical volume for replication to the replicated state Before There is provided logical volume control means for detaching all the real storage areas allocated to the recording / reproducing logical volume and returning them to the pool of unused real storage areas.
[0028]
First of the
[0029]
DETAILED DESCRIPTION OF THE INVENTION
Next, embodiments of the present invention will be described in detail with reference to the drawings.
[0030]
Referring to FIG. 1, in a computer system according to an embodiment of the present invention, a disk array device 3 is connected to a
[0031]
The logical
[0032]
The master logical volume (hereinafter also referred to as MV) 21 and the replication logical volume (hereinafter also referred to as RV) 22 shown in FIG. 1 provided by the disk device 3 to the
[0033]
The logical volume management table 14 is a table that holds the correspondence between the position (logical address) of the logical storage area on the logical volume and the position (physical address) on the real storage area. When the logical volume is a virtual logical volume, the presence / absence of allocation of the real storage area to the logical storage area is also managed on the table.
[0034]
The logical volume
[0035]
The replication volume I /
[0036]
The replication volume data map 17 stored in the
[0037]
The
[0038]
The snapshot control means 11 is a part that executes processing corresponding to a pair setting command, a replicate command, a separate command, and a restore command issued from the
[0039]
The access control means 10 is a part for executing processing related to a reference request and an update request to the master
[0040]
FIG. 2 shows the state of the combination of the master
[0041]
(1) Pair setting
When generating a replication volume of the master
[0042]
When the disk array processing unit 6 of the disk array device 3 receives the pair setting command from the host computer 1 (YES in S101 of FIG. 3), the
[0043]
When the reference (read) command for the master
[0044]
On the other hand, the access control means 10 prohibits any reference or update to the replication
[0045]
(2) Replicate
After the master
[0046]
When the disk array processing unit 6 of the disk array device 3 receives a replicate command from the host computer 1 (YES in S102 of FIG. 3), the snapshot control means 11 executes a replication process (S108 of FIG. 3). In this replication processing, the snapshot control means 11 refers to the
[0047]
Further, as part of the replication processing, the snapshot control means 11 specifies the logical disk number of the duplication
[0048]
When the reference command and update command for the master
[0049]
On the other hand, when the reference command for the replicated
[0050]
Further, when an update command for the replicated
[0051]
(3) Separate
After the set of the master
[0052]
When the disk array processing unit 6 of the disk array device 3 receives a separate command from the host computer 1 (YES in S103 of FIG. 3), the snapshot control means 11 executes a separation process (S109 of FIG. 3). In this separation process, the snapshot control means 11 refers to the
[0053]
When the reference command for the master
[0054]
On the other hand, when the update command for the master
[0055]
On the other hand, when the reference command for the separate copy
[0056]
Next, when an update command for the separate copy
[0057]
When the backup of the master
[0058]
(4) Restore
When the set of the master
[0059]
When the disk array processing unit 6 of the disk array device 3 receives the restore command from the host computer 1 (YES in S104 of FIG. 3), the snapshot control means 11 executes the restore process (S110 of FIG. 3). In this restoration processing, the snapshot control means 11 of the disk array processing unit 6 refers to the
[0060]
In addition, as part of the restore process S110, the
[0061]
When a reference command for the master
[0062]
On the other hand, when an update command for the master
[0063]
On the other hand, when the reference command and the update command for the replication
[0064]
Next, the effect of this embodiment will be described.
[0065]
In the replication volume generation method according to the present embodiment, the replication
[0066]
In general, backup is often performed simultaneously with batch processing after completion of online work. Therefore, batch processing can be performed in the master
[0067]
Further, by using the replication
[0068]
When the replication
[0069]
In this embodiment, access to the replication
[0070]
Although the embodiment of the present invention has been described above, the present invention is not limited to the above embodiment, and various other additions and modifications can be made. For example, the disk device to be applied is not limited to the disk array device. In addition, the disk device of the present invention can be realized by a computer and a disk control program, as well as hardware functions. The disk control program is provided by being recorded on a computer-readable recording medium such as a magnetic disk or a semiconductor memory, and is read by the computer when the computer constituting the disk device is started up to control the operation of the computer. The computer is caused to function as a disk array processing unit in the disk array apparatus in the embodiment described above.
[0071]
【The invention's effect】
As described above, according to the present invention, the following effects can be obtained.
[0072]
According to the first replica volume generation method and the disk device of the present invention, by issuing a separate instruction to a pair of a master logical volume and a replica logical volume that are in a replicated state, the replica of the master logical volume is copied to the replica logical volume. Can be instantly created in the volume. The reason is that when a separate instruction is given, the disk device manages the set of the master logical volume and the replication logical volume as a separate state, and immediately after the separate instruction, all management data in the data map becomes invalid. This is because when a logical volume for replication is accessed, data is read from the corresponding area of the master logical volume.
[0073]
According to the first replica volume generation method and disk device of the present invention, even if the host computer updates the master logical volume after the separation instruction, the replica of the master logical volume at the time of the separation instruction is held in the replication logical volume. Can be maintained. The reason for this is that after the disk unit is instructed, the host computer issues a write request to the master logical volume area corresponding to the replication logical volume partition area in which the management data of the data map is invalid. When all data in the area corresponding to the divided area of the master logical module is copied to the corresponding area of the duplication logical volume, writing to the master logical volume is performed and the management data is changed from the invalid state to the valid state. If there is a read request from the host computer to the replication logical volume, and if it is a read request to a partitioned area where the management data of the data map is valid, the data from the replication logical volume This is because reading is performed.
[0074]
According to the second replica volume generation method and disk device of the present invention, another job process can be performed using the replica of the master logical volume at the time of the separate instruction. The reason for this is that if the writing to the replication logical volume in a separate state is permitted and writing to the divisional area of the replication logical volume in which the management data of the data map is invalid is allowed After all the data in the master logical volume area corresponding to is copied to the corresponding area in the replication logical volume, the data is written to the replication logical volume and the management data is changed from the invalid state to the valid state. This is because if data is written to the divided area of the replication logical volume in which the map management data is valid, the data is written to the replication logical volume as it is.
[0075]
According to the third replication volume generation method and disk device of the present invention, a replication logical volume in a separate state can be reused as a replication logical volume of another master logical volume at a certain point in time. The reason is that in response to the replication instruction from the host computer for the set of the master logical volume and the replication logical volume in the separate state, all management data in the data map for the replication logical volume is set to an invalid state, This is because the set of the master logical volume and the replication logical volume is managed again as a replicated state, and writing to the replication logical volume from the host computer is prohibited.
[0076]
According to the fourth replication volume generation method and disk device of the present invention, the replication logical volume can be used as a backup disk, and the business can be immediately resumed based on the volume contents at the time of separation. The reason for this is that in response to a restore instruction from the host computer for the master logical volume and duplication logical volume pair that is in a separate state, the master logical volume and duplication logical volume pair is managed as a restore state, and the host computer When there is a read request for the master logical volume, if the read request is for the master logical volume area corresponding to the replication logical volume partition area for which the management data in the data map is invalid, the master logical volume If data is read, if the read request is for the master logical volume area corresponding to the divided area of the replication logical volume for which the management data of the data map is valid, the data is read from the replication logical volume, Hostco If there is a write request from the computer to the master logical volume, the master logical volume is a read request for the master logical volume area that corresponds to the replication logical volume partition area for which the management data in the data map is invalid If data is written to the volume as is and a read request is issued for the master logical volume area corresponding to the logical area for the replication logical volume for which the management data in the data map is valid, the replication request for the division area This is because all the data in the area of the logical volume is copied to the corresponding area of the master logical volume and then written to the master logical volume and the management data is changed from the valid state to the invalid state.
[0077]
According to the fifth replicated volume generation method and disk device of the present invention, the restoration can be completed in a short time by effectively utilizing the free time after the business is resumed. The reason for this is that within the partition area of the replication logical volume where the management data of the data map is valid regardless of the access from the host computer to the master logical volume and replication logical volume pair in the restored state. This is because the process of copying all the data to the corresponding area of the master logical volume and changing the management data from the valid state to the invalid state is performed.
[0078]
According to the sixth replication volume generation method and disk device of the present invention, a replication logical volume in a restored state can be reused as a replication logical volume of another master logical volume at a certain point in time. The reason is that when all management data in the data map becomes invalid, the set of the master logical volume and the replication logical volume that are in the restored state is managed again as the replicated state.
[0079]
According to the seventh duplicate volume generation method and disk device of the present invention, the disk capacity can be used effectively. The reason is that a virtual logical volume is used as the replication logical volume, and all the real storage areas allocated to the replication logical volume are disconnected when the replication logical volume transitions from the separate state or restore state to the replicate state. This is because it is returned to an unused real storage area pool.
[0080]
According to the eighth replication volume generation method and disk device of the present invention, the performance of the master logical volume can be prevented from being affected by the access to the replication logical volume. This is because the access to the replication logical volume that requires access to the master logical volume is made to wait in accordance with the load status of the master logical volume.
[Brief description of the drawings]
FIG. 1 is a block diagram of a computer system according to an embodiment of the present invention.
FIG. 2 shows the state of a combination of a master logical volume and a replication logical volume depending on commands (pair setting command, replicate command, separate command, restore command) supported by the disk array device according to the embodiment of the present invention. It is a state transition diagram showing whether to do.
FIG. 3 is a flowchart showing a processing example of a disk array processing unit when a command is received from a host computer.
FIG. 4 is a flowchart showing details of a reference process performed by a disk array processing unit when a reference command is received from a host computer.
FIG. 5 is a flowchart showing details of an update process performed by a disk array processing unit when an update command is received from a host computer.
FIG. 6 is an explanatory diagram of a pair setting state in the embodiment of the present invention.
FIG. 7 is an explanatory diagram of a replicated state in the embodiment of the present invention.
FIG. 8 is an explanatory diagram of a separate state according to the embodiment of the present invention.
FIG. 9 is an explanatory diagram of a restore state according to the embodiment of this invention.
[Explanation of symbols]
1 ... Host computer
2 ... Signal line
3. Disk array device
4 ... Physical disk
5 ... Signal line
6 ... Disk array processor
11 ... Snapshot control means
12 ... Non-volatile memory
13: Logical volume control means
14 ... Logical volume management table
15: Replica volume I / O suppression means
16: Logical volume load measuring means
17 ... Data map of replication volume
18 ... Control management information
19: Unused storage pool
21 ... Master logical volume (MV)
22 ... Replication logical volume (RV)
Claims (24)
a)前記ホストコンピュータからのペア設定指示に応答して、複製用論理ボリュームとして仮想論理ボリュームを使用し、マスタ論理ボリュームに対し、複製用論理ボリュームと、該複製用論理ボリュームの各分割領域に1対1に対応する管理データを記憶するデータマップとを割当て、前記マスタ論理ボリュームと前記複製用論理ボリュームとの組をペア設定状態として管理するステップ、
b)ペア設定状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対する前記ホストコンピュータからのレプリケート指示に応答して、前記複製用論理ボリュームを構成する前記仮想論理ボリュームに割り当てられている実記憶領域を開放すると共に、前記複製用論理ボリューム用の前記データマップの全ての管理データを無効状態に設定し、前記マスタ論理ボリュームと前記複製用論理ボリュームとの組をレプリケート状態として管理し、前記ホストコンピュータからの前記複製用論理ボリュームに対する書き込みを禁止するステップ、
c)レプリケート状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対する前記ホストコンピュータからのセパレート指示に応答して、前記マスタ論理ボリュームと前記複製用論理ボリュームの組をセパレート状態として管理し、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対して前記ホストコンピュータから書き込み要求が出された際、前記マスタ論理ボリュームの前記分割領域に対応する領域内の全データを前記複製用論理ボリュームの対応する領域にコピーした後に前記マスタ論理ボリュームへの書き込みを行うと共に前記管理データを無効状態から有効状態へ変更し、且つ、前記ホストコンピュータから前記複製用論理ボリュームに対する読み出し要求があった際、前記データマップの管理データが有効状態になっている分割領域への読み出し要求であれば前記複製用論理ボリュームからデータの読み出しを行い、前記データマップの管理データが無効状態になっている分割領域への読み出し要求であれば前記マスタ論理ボリュームの対応する領域からデータの読み出しを行うステップを含み、
前記ステップcにおいて、前記ホストコンピュータから前記複製用論理ボリュームへの書き込みを許可し、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域への書き込みであれば、前記分割領域に対応する前記マスタ論理ボリュームの領域内の全データを前記複製用論理ボリュームの対応する領域にコピーした後に前記複製用論理ボリュームへのデータの書き込みを行うと共に前記管理データを無効状態から有効状態へ変更し、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域への書き込みであれば前記複製用論理ボリュームにそのままデータの書き込みを行うようにし、
セパレート状態にある前記複製用論理ボリュームを構成する前記仮想論理ボリュームには、セパレート状態において更新された前記マスタ論理ボリュームの分割領域に対応する前記複製用論理ボリュームの分割領域に必要な実記憶領域および、セパレート状態において更新された前記複製用論理ボリュームの分割領域に必要な実記憶領域のみが割り当てられることを特徴とする複製ボリューム生成方法。In a replica volume generation method in a disk device connected to a host computer,
a) In response to a pair setting instruction from the host computer, a virtual logical volume is used as a logical volume for replication, and 1 for each replication area of the logical volume for replication and the logical volume for replication with respect to the master logical volume. Assigning a data map storing management data corresponding to pair 1, and managing a pair of the master logical volume and the duplication logical volume as a pair setting state;
b) in response to a replication instruction from the host computer for the set of the master logical volume and the replication logical volume in the pair setting state, the actual logical volume allocated to the virtual logical volume constituting the replication logical volume Releasing the storage area, setting all management data of the data map for the replication logical volume to an invalid state, managing the set of the master logical volume and the replication logical volume as a replicated state, Prohibiting writing from the host computer to the replication logical volume;
c) responding to a separate instruction from the host computer for the set of the master logical volume and the replication logical volume in the replicated state, and managing the set of the master logical volume and the replication logical volume as a separate state; When a write request is issued from the host computer to the area of the master logical volume corresponding to the divided area of the replication logical volume in which the management data of the data map is invalid, the master logical volume Writing all data in the area corresponding to the divided area to the corresponding area of the replication logical volume and then writing to the master logical volume and changing the management data from the invalid state to the valid state; and For copying from the host computer When there is a read request for a physical volume, if the read request is for a partitioned area in which the management data of the data map is valid, the data is read from the duplication logical volume, and the management data of the data map Including a step of reading data from a corresponding area of the master logical volume if it is a read request to a divided area in an invalid state,
In the step c, if writing to the replication logical volume is permitted from the host computer and the management data of the data map is in an invalid state, writing to the divided area of the replication logical volume is performed. After all data in the area of the master logical volume corresponding to the divided area is copied to the corresponding area of the replication logical volume, the data is written to the replication logical volume and the management data is enabled from the invalid state. Change to the state, and if the data to be written to the divided area of the replication logical volume in which the management data of the data map is valid, the data is directly written to the replication logical volume,
The said virtual logical volume constituting the logical volume for replication in a separate state, the real storage area and the required divided areas of the logical volume for duplicate corresponding to the divided regions of the master logical volume that was updated in the separation state A method for generating a duplicate volume, wherein only a necessary real storage area is allocated to a divided area of the duplicate logical volume updated in a separate state.
d)セパレート状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対する前記ホストコンピュータからのレプリケート指示に応答して、前記複製用論理ボリューム用の前記データマップの全ての管理データを無効状態に設定し、前記マスタ論理ボリュームと前記複製用論理ボリュームとの組をレプリケート状態として管理し、前記ホストコンピュータからの前記複製用論理ボリュームに対する書き込みを禁止するステップ、
を含むことを特徴とする複製ボリューム生成方法。In the replication volume production | generation method of Claim 1,
d) In response to a replication instruction from the host computer for the set of the master logical volume and the replication logical volume in the separate state, all management data in the data map for the replication logical volume is made invalid. Setting, managing a set of the master logical volume and the duplication logical volume as a replicated state, and prohibiting writing from the host computer to the duplication logical volume;
A duplicate volume generation method comprising:
d)セパレート状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対する前記ホストコンピュータからのリストア指示に応答して、前記マスタ論理ボリュームと前記複製用論理ボリュームの組をリストア状態として管理し、前記ホストコンピュータから前記マスタ論理ボリュームに対して読み出し要求があった際、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対する読み出し要求であれば前記マスタ論理ボリュームからデータの読み出しを行い、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対する読み出し要求であれば前記複製用論理ボリュームからデータの読み出しを行い、前記ホストコンピュータから前記マスタ論理ボリュームに対して書き込み要求があった際、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対する書き込み要求であれば前記マスタ論理ボリュームにそのままデータの書き込みを行い、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対する書き込み要求であれば、前記分割領域に対応する前記複製用論理ボリュームの領域内の全データを前記マスタ論理ボリュームの対応する領域にコピーした後に前記マスタ論理ボリュームへの書き込みを行うと共に前記管理データを有効状態から無効状態へ変更するステップ、
を含むことを特徴とする複製ボリューム生成方法。In the replication volume production | generation method of Claim 1,
d) In response to a restore instruction from the host computer for the set of the master logical volume and the replication logical volume in the separate state, the set of the master logical volume and the replication logical volume is managed as a restore state; When there is a read request from the host computer to the master logical volume, read from the master logical volume area corresponding to the divided area of the replication logical volume in which the management data of the data map is invalid If it is a request, the data is read from the master logical volume, and the read request for the area of the master logical volume corresponding to the divided area of the replication logical volume in which the management data of the data map is valid is available. Said duplication Corresponds to the division area of the replication logical volume in which the management data of the data map is in an invalid state when data is read from the logical volume and the host computer makes a write request to the master logical volume If it is a write request to the area of the master logical volume, the data is written to the master logical volume as it is, and the management data of the data map corresponds to the divided area of the duplication logical volume that is valid If it is a write request to the master logical volume area, all the data in the replication logical volume area corresponding to the divided area is copied to the corresponding area of the master logical volume and then written to the master logical volume. Performing and managing Step of changing over data from a valid state to an invalid state,
A duplicate volume generation method comprising:
e)リストア状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対し、前記ホストコンピュータからのアクセスに関係なく、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域内の全データを前記マスタ論理ボリュームの対応する領域にコピーし、前記管理データを有効状態から無効状態へ変更するステップ、
を含むことを特徴とする複製ボリューム生成方法。In the replication volume production | generation method of Claim 3,
e) For the combination of the master logical volume and the duplication logical volume in the restore state, the duplication logical volume in which the management data of the data map is valid regardless of the access from the host computer Copying all data in the divided area to the corresponding area of the master logical volume, and changing the management data from the valid state to the invalid state;
A duplicate volume generation method comprising:
f)前記ステップeの処理により前記データマップの全ての管理データが無効状態となった時点で、前記リストア状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組をレプリケート状態として管理するステップ、
を含むことを特徴とする複製ボリューム生成方法。In the replication volume production | generation method of Claim 4,
f) a step of managing a set of the master logical volume and the duplication logical volume in the restore state as a replicated state when all the management data of the data map is invalidated by the process of step e;
A duplicate volume generation method comprising:
前記ホストコンピュータから前記マスタ論理ボリュームおよび前記複製用論理ボリュームに対するアクセスを制御するアクセス制御手段とを備え、
前記アクセス制御手段は、レプリケート状態の前記複製用論理ボリュームに対する前記ホストコンピュータからの書き込みは禁止するものであり、セパレート状態の前記マスタ論理ボリュームに対する前記ホストコンピュータからの書き込み要求に対しては、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域への書き込みであれば、書き込み前のデータを含む前記分割領域内の全データを前記複製用論理ボリュームの対応する領域にコピーした後に前記マスタ論理ボリュームへの書き込みを行うと共に前記管理データを無効状態から有効状態へ変更するものであり、セパレート状態の前記複製用論理ボリュームに対する前記ホストコンピュータからの読み出し要求に対しては、前記データマップの管理データが有効状態になっている分割領域からの読み出しであれば前記複製用論理ボリュームからデータの読み出しを行い、前記データマップの管理データが無効状態になっている分割領域からの読み出しであれば前記マスタ論理ボリュームの対応する領域からデータの読み出しを行うものであり、且つ、セパレート状態の前記複製用論理ボリュームに対する前記ホストコンピュータからの書き込みを許可するものであり、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域への書き込みであれば、前記分割領域に対応する前記マスタ論理ボリュームの領域内の全データを前記複製用論理ボリュームの対応する領域にコピーした後に前記複製用論理ボリュームへのデータの書き込みを行うと共に前記管理データを無効状態から有効状態へ変更し、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域への書き込みであれば前記複製用論理ボリュームにそのままデータの書き込みを行うものであり、
セパレート状態にある前記複製用論理ボリュームを構成する前記仮想論理ボリュームには、セパレート状態において更新された前記マスタ論理ボリュームの分割領域に対応する前記複製用論理ボリュームの分割領域に必要な実記憶領域および、セパレート状態において更新された前記複製用論理ボリュームの分割領域に必要な実記憶領域のみが割り当てられることを特徴とするディスク装置。In response to the pair setting instruction from the host computer, the virtual logical volume is used as the logical volume for replication, and the logical volume for replication and the divided area of the logical volume for replication are 1: 1 on the master logical volume. A data map for storing the corresponding management data is allocated, the set of the master logical volume and the replication logical volume is managed as a pair setting state, and the master logical volume and the replication logical volume in the pair setting state are managed. In response to a replication instruction from the host computer to a set, the real storage area allocated to the virtual logical volume constituting the replication logical volume is released, and the data map for the replication logical volume Set all management data to the invalid state and A set of a logical volume and the replication logical volume is managed as a replicated state, and in response to a separate instruction from the host computer for the set of the master logical volume and the replicated logical volume in the replicated state, the master logical volume Snapshot control means for managing a set of a volume and the logical volume for duplication as a separate state;
Access control means for controlling access from the host computer to the master logical volume and the replication logical volume;
The access control means prohibits writing from the host computer to the replicated logical volume in the replicated state, and the write control from the host computer to the master logical volume in the separated state If writing to the area of the master logical volume corresponding to the divided area of the replication logical volume in which the map management data is in an invalid state, all data in the divided area including the data before writing is written to the area. The host computer for the replication logical volume in a separate state, wherein after copying to the corresponding area of the replication logical volume, writing to the master logical volume and changing the management data from the invalid state to the valid state Reading from In response to an output request, if data is read from a divided area in which the management data of the data map is valid, the data is read from the duplication logical volume, and the management data of the data map is invalidated. If the data is read from the divided area, data is read from the corresponding area of the master logical volume, and writing from the host computer to the duplicate logical volume in the separate state is permitted If the data management data of the data map is in an invalid state, if the data is written to a divided area of the replication logical volume, all data in the area of the master logical volume corresponding to the divided area is copied. After copying to the corresponding area of the logical volume for replication If the management data is changed from the invalid state to the valid state and the management data of the data map is in the valid state, the data is written to the divided area of the replication logical volume. The data is directly written into the replication logical volume,
The virtual logical volume constituting the replication logical volume in the separate state includes a real storage area necessary for the division area of the replication logical volume corresponding to the division area of the master logical volume updated in the separate state, and The disk apparatus is characterized in that only a necessary real storage area is allocated to the division area of the replication logical volume updated in the separate state.
前記スナップショット制御手段は、セパレート状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対する前記ホストコンピュータからのレプリケート指示に応答して、前記複製用論理ボリューム用の前記データマップの全ての管理データを無効状態に設定し、前記マスタ論理ボリュームと前記複製用論理ボリュームとの組をレプリケート状態として管理するものであり、
前記アクセス制御手段は、レプリケート状態の前記複製用論理ボリュームに対する前記ホストコンピュータからの書き込みを禁止するものであることを特徴とするディスク装置。The disk device according to claim 9, wherein
The snapshot control means manages all of the data maps for the duplication logical volume in response to a replication instruction from the host computer for the set of the master logical volume and the duplication logical volume in a separate state. Data is set to an invalid state, and a set of the master logical volume and the replication logical volume is managed as a replicated state,
The disk device according to claim 1, wherein the access control means prohibits writing from the host computer to the replicated logical volume.
前記スナップショット制御手段は、セパレート状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対する前記ホストコンピュータからのリストア指示に応答して、前記マスタ論理ボリュームと前記複製用論理ボリュームの組をリストア状態として管理するものであり、
前記アクセス制御手段は、リストア状態の前記マスタ論理ボリュームに対して前記ホストコンピュータから読み出し要求があった際、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対する読み出し要求であれば前記マスタ論理ボリュームからデータの読み出しを行い、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対する読み出し要求であれば前記複製用論理ボリュームからデータの読み出しを行うものであり、リストア状態の前記マスタ論理ボリュームに対して前記ホストコンピュータから書き込み要求があった際、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対する書き込み要求であれば前記マスタ論理ボリュームにそのままデータの書き込みを行い、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対する書き込み要求であれば、前記分割領域に対応する前記複製用論理ボリュームの領域内の全データを前記マスタ論理ボリュームの対応する領域にコピーした後に前記マスタ論理ボリュームへの書き込みを行うと共に前記管理データを有効状態から無効状態へ変更するものであることを特徴とするディスク装置。The disk device according to claim 9, wherein
The snapshot control means restores the set of the master logical volume and the duplication logical volume in response to a restore instruction from the host computer for the set of the master logical volume and the duplication logical volume in a separate state. Is managed as a state,
The access control means corresponds to a divided area of the duplication logical volume in which the management data of the data map is invalid when a read request is made from the host computer to the master logical volume in a restored state. If it is a read request to the master logical volume area, the master reads the data from the master logical volume, and the master corresponding to the divided area of the replication logical volume in which the management data of the data map is valid If it is a read request for the logical volume area, data is read from the replication logical volume, and when the host computer issues a write request to the restored master logical volume, No management data If it is a write request to the area of the master logical volume corresponding to the divided area of the replication logical volume that is in the state, data is written to the master logical volume as it is, and the management data of the data map becomes valid If it is a write request to the area of the master logical volume corresponding to the divided area of the replicating logical volume, all data in the area of the replicating logical volume corresponding to the divided area is transferred to the master logical volume. A disk device characterized by performing writing to the master logical volume after copying to a corresponding area and changing the management data from a valid state to an invalid state.
前記スナップショット制御手段は、リストア状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対し、前記ホストコンピュータからのアクセスに関係なく、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域内の全データを前記マスタ論理ボリュームの対応する領域にコピーし、前記管理データを有効状態から無効状態へ変更する処理を行うものであることを特徴とするディスク装置。12. The disk device according to claim 11, wherein
The snapshot control means has the management data of the data map in a valid state regardless of access from the host computer to the set of the master logical volume and the duplication logical volume in a restore state. A disk device characterized by copying all data in a divided area of a replication logical volume to a corresponding area of the master logical volume and changing the management data from a valid state to an invalid state.
前記スナップショット制御手段は、前記データマップの全ての管理データが無効状態となった時点で、前記リストア状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組をレプリケート状態として管理するものであることを特徴とするディスク装置。The disk device according to claim 12, wherein
The snapshot control means manages the set of the master logical volume and the replication logical volume in the restored state as a replicated state when all the management data of the data map becomes invalid. A disk device characterized by the above.
ホストコンピュータからのペア設定指示に応答して、複製用論理ボリュームとして仮想論理ボリュームを使用し、マスタ論理ボリュームに対し、複製用論理ボリュームと、該複製用論理ボリュームの各分割領域に1対1に対応する管理データを記憶するデータマップとを割り当て、前記マスタ論理ボリュームと前記複製用論理ボリュームとの組をペア設定状態として管理し、ペア設定状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対する前記ホストコンピュータからのレプリケート指示に応答して、前記複製用論理ボリュームを構成する前記仮想論理ボリュームに割り当てられている実記憶領域を開放すると共に、前記複製用論理ボリューム用の前記データマップの全ての管理データを無効状態に設定し、前記マスタ論理ボリュームと前記複製用論理ボリュームとの組をレプリケート状態として管理し、レプリケート状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対する前記ホストコンピュータからのセパレート指示に応答して、前記マスタ論理ボリュームと前記複製用論理ボリュームの組をセパレート状態として管理するスナップショット制御手段、
前記ホストコンピュータから前記マスタ論理ボリュームおよび前記複製用論理ボリュームに対するアクセスを制御するアクセス制御手段、
として機能させるプログラムであって、
前記アクセス制御手段は、レプリケート状態の前記複製用論理ボリュームに対する前記ホストコンピュータからの書き込みは禁止するものであり、セパレート状態の前記マスタ論理ボリュームに対する前記ホストコンピュータからの書き込み要求に対しては、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域への書き込みであれば、前記マスタ論理ボリュームの前記分割領域に対応する領域内の全データを前記複製用論理ボリュームの対応する領域にコピーした後に前記マスタ論理ボリュームへの書き込みを行うと共に前記管理データを無効状態から有効状態へ変更するものであり、セパレート状態の前記複製用論理ボリュームに対する前記ホストコンピュータからの読み出し要求に対しては、前記データマップの管理データが有効状態になっている分割領域からの読み出しであれば前記複製用論理ボリュームからデータの読み出しを行い、前記データマップの管理データが無効状態になっている分割領域からの読み出しであれば前記マスタ論理ボリュームの対応する領域からデータの読み出しを行うものであり、且つ、セパレート状態の前記複製用論理ボリュームに対する前記ホストコンピュータからの書き込みを許可するものであり、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域への書き込みであれば、前記分割領域に対応する前記マスタ論理ボリュームの領域内の全データを前記複製用論理ボリュームの対応する領域にコピーした後に前記複製用論理ボリュームへのデータの書き込みを行うと共に前記管理データを無効状態から有効状態へ変更し、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域への書き込みであれば前記複製用論理ボリュームにそのままデータの書き込みを行うものであり、
セパレート状態にある前記複製用論理ボリュームを構成する前記仮想論理ボリュームには、セパレート状態において更新された前記マスタ論理ボリュームの分割領域に対応する前記複製用論理ボリュームの分割領域に必要な実記憶領域および、セパレート状態において更新された前記複製用論理ボリュームの分割領域に必要な実記憶領域のみが割り当てられることを特徴とするプログラム。The computers that make up the disk unit
In response to the pair setting instruction from the host computer, the virtual logical volume is used as the logical volume for replication, and the logical volume for replication and the divided area of the logical volume for replication are 1: 1 on the master logical volume. A data map for storing the corresponding management data is allocated, the set of the master logical volume and the replication logical volume is managed as a pair setting state, and the master logical volume and the replication logical volume in the pair setting state are managed. In response to a replication instruction from the host computer to a set, the real storage area allocated to the virtual logical volume constituting the replication logical volume is released, and the data map for the replication logical volume Set all management data to the invalid state and A set of a logical volume and the replication logical volume is managed as a replicated state, and in response to a separate instruction from the host computer with respect to the set of the master logical volume and the replicated logical volume in the replicated state, the master logical volume Snapshot control means for managing a set of a volume and the logical volume for duplication as a separate state;
Access control means for controlling access from the host computer to the master logical volume and the duplication logical volume;
A program that functions as
The access control means prohibits writing from the host computer to the replicated logical volume in the replicated state, and the write control from the host computer to the master logical volume in the separated state If writing to the area of the master logical volume corresponding to the divided area of the replication logical volume whose map management data is in an invalid state, all data in the area corresponding to the divided area of the master logical volume The data is copied to the corresponding area of the replication logical volume and then written to the master logical volume, and the management data is changed from an invalid state to a valid state. The host computer In response to a read request from a computer, if the management data of the data map is read from a divided area in which the data map is valid, data is read from the logical volume for duplication, and the management data of the data map If it is a read from a partition area that is in an invalid state, data is read from the corresponding area of the master logical volume, and a write from the host computer to the replication logical volume in a separate state is performed. All data in the area of the master logical volume corresponding to the divided area, if permitted, and if writing to the divided area of the replication logical volume in which the management data of the data map is invalid Before copying to the corresponding area of the replication logical volume Write data to the replication logical volume, change the management data from the invalid state to the valid state, and write to the divided area of the replication logical volume in which the management data of the data map is valid. If there is, the data is directly written to the replication logical volume,
The virtual logical volume constituting the replication logical volume in the separate state includes a real storage area necessary for the division area of the replication logical volume corresponding to the division area of the master logical volume updated in the separate state, and A program characterized in that only a necessary real storage area is allocated to a division area of the replication logical volume updated in a separate state.
前記スナップショット制御手段は、セパレート状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対する前記ホストコンピュータからのレプリケート指示に応答して、前記複製用論理ボリューム用の前記データマップの全ての管理データを無効状態に設定し、前記マスタ論理ボリュームと前記複製用論理ボリュームとの組をレプリケート状態として管理するものであり、
前記アクセス制御手段は、レプリケート状態の前記複製用論理ボリュームに対する前記ホストコンピュータからの書き込みを禁止するものであることを特徴とするプログラム。The program according to claim 17,
The snapshot control means manages all of the data maps for the duplication logical volume in response to a replication instruction from the host computer for the set of the master logical volume and the duplication logical volume in a separate state. Data is set to an invalid state, and a set of the master logical volume and the replication logical volume is managed as a replicated state,
The program, wherein the access control means prohibits writing from the host computer to the replicated logical volume in a replicated state.
前記スナップショット制御手段は、セパレート状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対する前記ホストコンピュータからのリストア指示に応答して、前記マスタ論理ボリュームと前記複製用論理ボリュームの組をリストア状態として管理するものであり、
前記アクセス制御手段は、リストア状態の前記マスタ論理ボリュームに対して前記ホストコンピュータから読み出し要求があった際、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対する読み出し要求であれば前記マスタ論理ボリュームからデータの読み出しを行い、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対する読み出し要求であれば前記複製用論理ボリュームからデータの読み出しを行うものであり、リストア状態の前記マスタ論理ボリュームに対して前記ホストコンピュータから書き込み要求があった際、前記データマップの管理データが無効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対する書き込み要求であれば前記マスタ論理ボリュームにそのままデータの書き込みを行い、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域に対応する前記マスタ論理ボリュームの領域に対する書き込み要求であれば、前記分割領域に対応する前記複製用論理ボリュームの領域内の全データを前記マスタ論理ボリュームの対応する領域にコピーした後に前記マスタ論理ボリュームへの書き込みを行うと共に前記管理データを有効状態から無効状態へ変更するものであることを特徴とするプログラム。The program according to claim 17,
The snapshot control means restores the set of the master logical volume and the duplication logical volume in response to a restore instruction from the host computer for the set of the master logical volume and the duplication logical volume in a separate state. Is managed as a state,
The access control means corresponds to a divided area of the duplication logical volume in which the management data of the data map is invalid when a read request is made from the host computer to the master logical volume in a restored state. If it is a read request to the master logical volume area, the master reads the data from the master logical volume, and the master corresponding to the divided area of the replication logical volume in which the management data of the data map is valid If it is a read request for the logical volume area, data is read from the replication logical volume, and when the host computer issues a write request to the restored master logical volume, No management data If it is a write request to the area of the master logical volume corresponding to the divided area of the replication logical volume that is in the state, data is written to the master logical volume as it is, and the management data of the data map becomes valid If it is a write request to the master logical volume area corresponding to the divided logical volume partition area, all the data in the duplicate logical volume area corresponding to the split area is stored in the master logical volume area. A program for writing to the master logical volume after copying to a corresponding area and changing the management data from a valid state to an invalid state.
前記スナップショット制御手段は、リストア状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組に対し、前記ホストコンピュータからのアクセスに関係なく、前記データマップの管理データが有効状態になっている前記複製用論理ボリュームの分割領域内の全データを前記マスタ論理ボリュームの対応する領域にコピーし、前記管理データを有効状態から無効状態へ変更する処理を行うものであることを特徴とするプログラム。The program according to claim 19, wherein
The snapshot control means has the management data of the data map in a valid state regardless of access from the host computer to the set of the master logical volume and the duplication logical volume in a restore state. A program for copying all data in a divided area of a replication logical volume to a corresponding area of the master logical volume and changing the management data from a valid state to an invalid state.
前記スナップショット制御手段は、前記データマップの全ての管理データが無効状態となった時点で、前記リストア状態にある前記マスタ論理ボリュームと前記複製用論理ボリュームの組をレプリケート状態として管理するものであることを特徴とするプログラム。The program according to claim 20, wherein
The snapshot control means manages the set of the master logical volume and the replication logical volume in the restored state as a replicated state when all the management data of the data map becomes invalid. A program characterized by that.
前記コンピュータを更に、前記複製用論理ボリュームのレプリケート状態への遷移時、前記複製用論理ボリュームに割り当てられていた実記憶領域をすべて切り離して未使用の実記憶領域のプールへ返却する論理ボリューム制御手段として機能させることを特徴とするプログラム。The program according to claim 18 or 21,
Logical volume control means for further detaching the real storage area allocated to the replication logical volume and returning it to the pool of unused real storage areas when the computer further transitions to the replicated state of the replication logical volume A program characterized by functioning as
前記コンピュータを更に、前記マスタ論理ボリュームの負荷状況に応じて、前記ホストコンピュータから前記複製用論理ボリュームに対する入出力性能を調整する複製ボリュームI/O抑止手段として機能させることを特徴とするプログラム。The program according to claim 17,
A program that causes the computer to further function as a replication volume I / O suppression unit that adjusts input / output performance from the host computer to the replication logical volume in accordance with a load status of the master logical volume.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002356838A JP4122956B2 (en) | 2002-12-09 | 2002-12-09 | Replica volume generation method and disk device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002356838A JP4122956B2 (en) | 2002-12-09 | 2002-12-09 | Replica volume generation method and disk device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2004192133A JP2004192133A (en) | 2004-07-08 |
| JP4122956B2 true JP4122956B2 (en) | 2008-07-23 |
Family
ID=32757062
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2002356838A Expired - Fee Related JP4122956B2 (en) | 2002-12-09 | 2002-12-09 | Replica volume generation method and disk device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4122956B2 (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4809040B2 (en) * | 2005-11-08 | 2011-11-02 | 株式会社日立製作所 | Storage apparatus and snapshot restore method |
| US7823007B2 (en) * | 2006-02-17 | 2010-10-26 | International Business Machines Corporation | Apparatus, system, and method for switching a volume address association in a point-in-time copy relationship |
| US8131957B2 (en) | 2007-08-16 | 2012-03-06 | International Business Machines Corporation | Splitting writes between a storage controller and replication engine |
| JP5293213B2 (en) * | 2009-01-16 | 2013-09-18 | 日本電気株式会社 | Replication volume dynamic generation system and dynamic pair setting method |
| JP2012058863A (en) | 2010-09-07 | 2012-03-22 | Nec Corp | Disk device and method and program for data duplication to disk device |
| JP5867215B2 (en) * | 2012-03-22 | 2016-02-24 | 日本電気株式会社 | Information processing apparatus, information processing method, and information processing program |
| JP5998806B2 (en) * | 2012-09-28 | 2016-09-28 | 富士通株式会社 | Storage control device, storage control program, and copy method |
| JP7429214B2 (en) * | 2021-10-07 | 2024-02-07 | 株式会社日立製作所 | Storage system and data replication method in storage system |
-
2002
- 2002-12-09 JP JP2002356838A patent/JP4122956B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2004192133A (en) | 2004-07-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1091283B1 (en) | Copying method between logical disks, disk-storage system and program for the same | |
| JP4681249B2 (en) | Disk array device | |
| JP4170056B2 (en) | Backup / restore management method between replicated volumes and storage control device used in this method | |
| JP3606797B2 (en) | Copy processing method between data areas of storage device, storage system, and storage medium thereof | |
| US20020144070A1 (en) | Processing method for copying between memory device data regions and memory system | |
| JP4681247B2 (en) | Disk array device and disk array device control method | |
| US7421538B2 (en) | Storage control apparatus and control method thereof | |
| CN101981550A (en) | Database system, database update method, database and database update program | |
| JP4419884B2 (en) | Data replication apparatus, method, program, and storage system | |
| JP4122956B2 (en) | Replica volume generation method and disk device | |
| US7093087B2 (en) | Method for controlling storage device controller, storage device controller, and program | |
| JP2010122761A (en) | Data storage device and replication method in casing | |
| JP4915365B2 (en) | Data storage method and apparatus, duplicate data storage method and apparatus, and control program thereof | |
| US9235349B2 (en) | Data duplication system, data duplication method, and program thereof | |
| JPH07210439A (en) | Storage device | |
| JP2002099390A (en) | Disk controller | |
| JP2001290713A (en) | Storage device system and backup acquisition method thereof | |
| JP3785165B2 (en) | Disk array device and intra-cabinet replication method | |
| JP4741976B2 (en) | Disk array device and data management method | |
| JP2007141183A (en) | Storage control device and storage control method | |
| JP2011159101A (en) | Information processing apparatus, method and program for managing memory | |
| JP4122724B2 (en) | Data replication method and information processing system | |
| JPH0553732A (en) | Dual disk system | |
| JPH07319637A (en) | Disk unit controller and disk unit control method | |
| JP6157158B2 (en) | Information processing apparatus, control method thereof, and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20040427 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20071009 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20071112 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080115 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080314 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20080408 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080421 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4122956 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110516 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110516 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120516 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120516 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130516 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140516 Year of fee payment: 6 |
|
| LAPS | Cancellation because of no payment of annual fees |