JP5760843B2 - Storage device, control device, and data copy method - Google Patents
Storage device, control device, and data copy method Download PDFInfo
- Publication number
- JP5760843B2 JP5760843B2 JP2011179504A JP2011179504A JP5760843B2 JP 5760843 B2 JP5760843 B2 JP 5760843B2 JP 2011179504 A JP2011179504 A JP 2011179504A JP 2011179504 A JP2011179504 A JP 2011179504A JP 5760843 B2 JP5760843 B2 JP 5760843B2
- Authority
- JP
- Japan
- Prior art keywords
- migration
- copy
- logical volume
- management table
- storage device
- 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 113
- 230000008569 process Effects 0.000 claims description 89
- 238000004891 communication Methods 0.000 claims description 23
- 230000005012 migration Effects 0.000 description 717
- 238000013508 migration Methods 0.000 description 717
- 238000007726 management method Methods 0.000 description 304
- 238000012546 transfer Methods 0.000 description 132
- 238000012545 processing Methods 0.000 description 50
- 230000007704 transition Effects 0.000 description 41
- 238000010586 diagram Methods 0.000 description 24
- 230000006870 function Effects 0.000 description 16
- 230000003287 optical effect Effects 0.000 description 7
- 239000006185 dispersion Substances 0.000 description 6
- 230000004044 response Effects 0.000 description 5
- WBMKMLWMIQUJDP-STHHAXOLSA-N (4R,4aS,7aR,12bS)-4a,9-dihydroxy-3-prop-2-ynyl-2,4,5,6,7a,13-hexahydro-1H-4,12-methanobenzofuro[3,2-e]isoquinolin-7-one hydrochloride Chemical compound Cl.Oc1ccc2C[C@H]3N(CC#C)CC[C@@]45[C@@H](Oc1c24)C(=O)CC[C@@]35O WBMKMLWMIQUJDP-STHHAXOLSA-N 0.000 description 4
- 230000001174 ascending effect Effects 0.000 description 4
- 239000000284 extract Substances 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 239000012141 concentrate Substances 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
- G06F3/0613—Improving I/O performance in relation to throughput
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0647—Migration mechanisms
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/065—Replication mechanisms
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0683—Plurality of storage devices
- G06F3/0689—Disk arrays, e.g. RAID, JBOD
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
本発明は、ボリューム間でのデータ移行を行うストレージ装置に関する。 The present invention relates to a storage apparatus that performs data migration between volumes.
ストレージ装置に格納されたデータを、他のストレージ装置に移行する場合がある。例えば、既存のストレージ装置を、そのストレージ装置よりも高性能なストレージ装置に置き換える場合に、既存のストレージ装置から高性能なストレージ装置にデータが移行される。このように、ストレージ装置間でデータの移行を行うことを、データマイグレーションと呼ぶ。データマイグレーションを行う場合、例えば、ストレージ装置内の論理ボリューム単位で、移行元と移行先とが指定される。論理ボリュームは、ストレージ装置が有するディスク装置内に論理的に設けたボリュームである。 Data stored in the storage device may be migrated to another storage device. For example, when an existing storage device is replaced with a storage device with higher performance than the storage device, data is migrated from the existing storage device to a high-performance storage device. This migration of data between storage devices is called data migration. When performing data migration, for example, the migration source and the migration destination are designated in units of logical volumes in the storage apparatus. The logical volume is a volume that is logically provided in the disk device of the storage device.
データマイグレーションでは、ストレージ装置間で大量のデータが転送される。そのため、ストレージ装置の大容量化に伴い、データマイグレーションに要する時間も長期化する傾向にある。そこでデータマイグレーションの技術として、例えば、ボリュームの並列移行時に物理リソースの競合を少なくする技術が提案されている。 In data migration, a large amount of data is transferred between storage devices. For this reason, as the capacity of the storage apparatus increases, the time required for data migration tends to increase. Therefore, as a data migration technique, for example, a technique for reducing physical resource contention during parallel migration of volumes has been proposed.
しかし、従来の物理リソースの競合を少なくする技術では、データマイグレーション処理全体としての処理の効率化が不十分な場合がある。例えば、ディスク装置ごとのデータ移行対象となる論理ボリューム数にばらつきがある場合、データ移行の終盤において、特定のディスク装置においてのみ、複数の論理ボリュームがデータ移行未完了の状態で残される可能性がある。この場合、データ移行の終盤では、特定のディスク装置にアクセスが集中してしまい、データ移行のためのデータコピーの処理効率が低下してしまう。 However, in the conventional technology for reducing the competition of physical resources, the efficiency of processing as the entire data migration processing may be insufficient. For example, when there is a variation in the number of logical volumes that are subject to data migration for each disk device, there is a possibility that a plurality of logical volumes may be left in an incomplete state only in a specific disk device at the end of data migration. is there. In this case, at the end of data migration, access concentrates on a specific disk device, and the processing efficiency of data copy for data migration decreases.
1つの側面では、本発明は、異なるストレージ装置間でのデータのコピーを効率的に行うことができるストレージ装置、制御装置、およびデータコピー方法を提供することを目的とする。 In one aspect, an object of the present invention is to provide a storage apparatus, a control apparatus, and a data copy method capable of efficiently copying data between different storage apparatuses.
1つの案では、以下のような複数の記憶装置を内蔵するストレージ装置が提供される。ストレージ装置は、取得部、決定部、およびコピー部を有する。取得部は、外部のストレージ装置内の複数の記憶装置それぞれに設けられた論理ボリュームをコピー元とし、内蔵する複数の記憶装置それぞれに設けられた論理ボリュームをコピー先とする論理ボリューム対が複数示されたコピー要求を取得する。決定部は、コピー要求に基づき、コピー未実行の論理ボリューム対に属する論理ボリュームが同一ストレージ装置内の他の記憶装置よりも多く含まれる記憶装置を、外部のストレージ装置内の複数の記憶装置と、内蔵する複数の記憶装置とのそれぞれから優先的に選択し、選択した2つの記憶装置の一方に設けられた論理ボリュームをコピー元、他方に設けられた論理ボリュームをコピー先とするコピー未実行の論理ボリューム対を、コピー実行対象に決定する。コピー部は、コピー実行対象に決定された論理ボリューム対に属するコピー元の論理ボリュームに格納されたデータを、該論理ボリューム対に属するコピー先の論理ボリュームにコピーする。 In one proposal, a storage device including a plurality of storage devices as described below is provided. The storage device includes an acquisition unit, a determination unit, and a copy unit. The acquisition unit displays a plurality of logical volume pairs in which a logical volume provided in each of a plurality of storage devices in the external storage device is a copy source and a logical volume provided in each of the plurality of built-in storage devices is a copy destination. Get the copied request. The determining unit, based on the copy request, includes a storage device that includes more logical volumes belonging to the unexecuted logical volume pair than other storage devices in the same storage device as a plurality of storage devices in the external storage device. , Preferentially select from each of the built-in storage devices, copy not executed with the logical volume provided in one of the two selected storage devices as the copy source and the logical volume provided in the other as the copy destination Is determined as a copy execution target. The copy unit copies the data stored in the copy source logical volume belonging to the logical volume pair determined as the copy execution target to the copy destination logical volume belonging to the logical volume pair.
1態様によれば、異なるストレージ装置間でのデータのコピーを効率的に行うことが可能となる。 According to one aspect, it is possible to efficiently copy data between different storage apparatuses.
以下、本実施の形態について図面を参照して説明する。なお各実施の形態は、矛盾のない範囲で複数の実施の形態を組み合わせて実施することができる。
〔第1の実施の形態〕
図1は、第1の実施の形態に係るストレージ装置の機能構成の一例を示す図である。第1の実施の形態では、ストレージ装置1とストレージ装置2とがケーブルで接続されている。ストレージ装置1は、制御装置1−1と複数の記憶装置1−2,1−3,1−4,・・・を有する。記憶装置1−2には、複数の論理ボリューム1−2a,1−2b,・・・が設けられている。記憶装置1−3には、複数の論理ボリューム1−3a,1−3b,・・・が設けられている。記憶装置1−4には、複数の論理ボリューム1−4a,1−4b,・・・が設けられている。
Hereinafter, the present embodiment will be described with reference to the drawings. Each embodiment can be implemented by combining a plurality of embodiments within a consistent range.
[First Embodiment]
FIG. 1 is a diagram illustrating an example of a functional configuration of the storage apparatus according to the first embodiment. In the first embodiment, the
ストレージ装置2は、複数の記憶装置2−1,2−2,2−3,・・・を有する。記憶装置2−1には、複数の論理ボリューム2−1a,2−1b,・・・が設けられている。記憶装置2−2には、複数の論理ボリューム2−2a,2−2b,・・・が設けられている。記憶装置2−3には、複数の論理ボリューム2−3a,2−3b,・・・が設けられている。
The
ストレージ装置1の制御装置1−1は、取得部1−1a、決定部1−1b、およびコピー部1−1cを有する。
取得部1−1aは、論理ボリューム対が複数示されたコピー要求を取得する。例えば取得部1−1aは、ストレージ装置1に接続された端末装置3から入力されたコピー要求を取得する。論理ボリューム対は、コピー元の論理ボリュームとコピー先の論理ボリュームとの対である。論理ボリューム対では、例えば、ストレージ装置2内の複数の記憶装置2−1,2−2,2−3,・・・それぞれに設けられた論理ボリュームが、コピー元として示される。また論理ボリューム対では、例えば、ストレージ装置1が内蔵する複数の記憶装置1−2,1−3,1−4,・・・それぞれに設けられた論理ボリュームが、コピー先として示される。
The control device 1-1 of the
The acquisition unit 1-1a acquires a copy request indicating a plurality of logical volume pairs. For example, the acquisition unit 1-1 a acquires a copy request input from the
決定部1−1bは、コピー要求に基づき、ストレージ装置2内の複数の記憶装置2−1,2−2,2−3,・・・と、ストレージ装置1内の複数の記憶装置1−2,1−3,1−4,・・・とのそれぞれから、記憶装置を選択する。例えば決定部1−1bは、コピー未実行の論理ボリューム対に属する論理ボリュームが同一ストレージ装置内の他の記憶装置よりも多く含まれる記憶装置を、優先的に選択する。さらに、決定部1−1bは、選択した2つの記憶装置の一方に設けられた論理ボリュームをコピー元、他方に設けられた論理ボリュームをコピー先とするコピー未実行の論理ボリューム対を、コピー実行対象に決定する。
Based on the copy request, the determination unit 1-1b includes a plurality of storage devices 2-1, 2-2, 2-3,... In the
コピー部1−1cは、コピー実行対象に決定された論理ボリューム対に属するコピー元の論理ボリュームに格納されたデータを、該論理ボリューム対に属するコピー先の論理ボリュームにコピーする。 The copy unit 1-1c copies the data stored in the copy source logical volume belonging to the logical volume pair determined as the copy execution target to the copy destination logical volume belonging to the logical volume pair.
なお、図1に示した各要素間を接続する線は通信経路の一部を示すものであり、図示した通信経路以外の通信経路も設定可能である。
次に、図1に示したシステムによるデータコピー処理の手順を説明する。
In addition, the line which connects between each element shown in FIG. 1 shows a part of communication path | route, and communication paths other than the communication path shown in figure can also be set.
Next, the procedure of data copy processing by the system shown in FIG. 1 will be described.
図2は、第1の実施の形態に係るデータコピー処理の手順の一例を示すフローチャートである。以下、図2に示す処理をステップ番号に沿って説明する。
[ステップS1]取得部1−1aは、コピー要求を取得する。取得部1−1aは、取得したコピー要求を、決定部1−1bに送信する。
FIG. 2 is a flowchart illustrating an example of a procedure of data copy processing according to the first embodiment. In the following, the process illustrated in FIG. 2 will be described in order of step number.
[Step S1] The acquisition unit 1-1a acquires a copy request. The acquisition unit 1-1a transmits the acquired copy request to the determination unit 1-1b.
[ステップS2]決定部1−1bは、ストレージ装置1とストレージ装置2との間に、未使用の通信パスがあるか否かを判断する。例えば決定部1−1bは、コピーを実行中の論理ボリューム対の数が、ストレージ装置1とストレージ装置2との間に確立した通信パス数に満たなければ、未使用の通信パスがあると判断する。決定部1−1bは、未使用の通信パスがあれば、処理をステップS3に進める。また決定部1−1bは、未使用の通信パスがなければ、ステップS2の処理を繰り返し、通信パスが未使用になるのを待つ。
[Step S2] The determination unit 1-1b determines whether there is an unused communication path between the
[ステップS3]決定部1−1bは、それぞれのストレージ装置1,2から記憶装置を選択する。例えば決定部1−1bは、コピー未実行の論理ボリューム対に属する論理ボリュームが同一ストレージ装置内の他の記憶装置よりも多く含まれる記憶装置を、優先的に選択する。
[Step S3] The determining unit 1-1b selects a storage device from the
[ステップS4]決定部1−1bは、選択した2つの記憶装置の一方に設けられた論理ボリュームをコピー元、他方に設けられた論理ボリュームをコピー先とするコピー未実行の論理ボリューム対を、コピー実行対象に決定する。 [Step S4] The determination unit 1-1b selects a logical volume pair that has not been copied and has a logical volume provided in one of the selected two storage devices as a copy source and a logical volume provided in the other as a copy destination. Determine the copy execution target.
[ステップS5]決定部1−1bは、コピー実行対象に決定した論理ボリューム対間でのデータコピーの開始を、コピー部1−1cに指示する。コピー部1−1cは、未使用の通信パスを用い、コピー実行対象に決定された論理ボリューム対に属するコピー元の論理ボリュームに格納されたデータを、該論理ボリューム対に属するコピー先の論理ボリュームにコピーする。決定部1−1bは、データコピーの開始を指示後、コピー完了を待たずに、処理をステップS6に進める。 [Step S5] The determining unit 1-1b instructs the copy unit 1-1c to start data copying between the logical volume pair determined as the copy execution target. The copy unit 1-1c uses an unused communication path to transfer data stored in the copy source logical volume belonging to the logical volume pair determined as the copy execution target to the copy destination logical volume belonging to the logical volume pair. Copy to. After instructing the start of data copying, the determination unit 1-1b advances the process to step S6 without waiting for the completion of copying.
[ステップS6]決定部1−1bは、コピー要求に示されたすべての論理ボリューム対に関するコピー開始指示が完了したか否かを判断する。すべての論理ボリューム対に関するコピー開始指示が完了した場合、決定部1−1bは処理を終了する。コピー開始指示を行っていない論理ボリューム対がある場合、決定部1−1bは処理をステップS2に進める。 [Step S6] The determination unit 1-1b determines whether or not the copy start instruction for all the logical volume pairs indicated in the copy request has been completed. When the copy start instruction for all logical volume pairs is completed, the determination unit 1-1b ends the process. If there is a logical volume pair that has not been instructed to start copying, the determination unit 1-1b advances the process to step S2.
次に、コピー実行対象となる論理ボリューム対の決定例について説明する。
図3は、第1の実施の形態によるコピー実行対象となる論理ボリューム対の決定例を示す図である。図3に示すように、コピー要求4には、コピー先の論理ボリュームの識別情報と、コピー元の論理ボリュームの識別情報とを含む論理ボリューム対が複数含まれる。論理ボリュームの識別情報は、そのボリュームを有している記憶媒体の識別子(ID)と、その記憶媒体内での論理ボリュームの識別番号(LV#)とで表されている。
Next, an example of determining a logical volume pair to be copied is described.
FIG. 3 is a diagram illustrating an example of determining a logical volume pair to be a copy execution target according to the first embodiment. As shown in FIG. 3, the
入力されたコピー要求4は、取得部1−1aを介して決定部1−1bに渡される。決定部1−1bは、例えばコピー元記憶媒体リスト5とコピー先記憶媒体リスト6とを用いて、記憶媒体を選択する際の優先順位を管理する。
The
コピー元記憶媒体リスト5には、ストレージ装置2が有する記憶媒体のIDが設定されている。記憶媒体のIDには、その記憶媒体内のコピー未実行の論理ボリューム対に属する論路ボリュームの数(コピー未実行数)が関連付けて登録されている。決定部1−1bは、例えば、コピー元記憶媒体リスト5内の各記憶媒体のレコードを、コピー未実行数が多い順にソートする。そして決定部1−1bは、ソートの結果上位に位置する記憶媒体を優先的に選択する。
In the copy source
コピー先記憶媒体リスト6には、ストレージ装置1が有する記憶媒体のIDが設定されている。記憶媒体のIDには、その記憶媒体内のコピー未実行の論理ボリューム対に属する論路ボリュームの数(コピー未実行数)が関連付けて登録されている。決定部1−1bは、例えば、コピー先記憶媒体リスト6内の各記憶媒体のレコードを、コピー未実行数が多い順にソートする。そして決定部1−1bは、ソートの結果上位に位置する記憶媒体を優先的に選択する。
In the copy destination
図3の例では、コピー元であるストレージ装置2内の記憶装置2−1,2−2,2−3,・・・の中から、優先順位が最も高いID「b」の記憶装置2−2が選択される。コピー先であるストレージ装置1内の記憶装置1−2,1−3,1−4,・・・の中から、優先順位が最も高いID「F」の記憶装置1−5が選択される。
In the example of FIG. 3, the
決定部1−1bは、コピー要求4に含まれる論理ボリューム対の中から、選択した2つの記憶装置2−2,1−5の一方をコピー元、他方をコピー先とする、コピー未実行の論理ボリューム対を検索する。なお図3の例では、すべての論理ボリューム対について、コピー未実行であるものとする。その場合、記憶装置2−2内の識別番号「8」の論理ボリューム2−2cをコピー元とし、記憶装置1−5内の識別番号「3」の論理ボリューム1−5aをコピー先とする論理ボリューム対が検出される。決定部1−1bは、検出した論理ボリューム対を、コピー実行対象に決定する。
The determining unit 1-1b selects one of the two selected storage devices 2-2 and 1-5 from the logical volume pair included in the
決定部1−1bは、コピー実行対象の論理ボリューム対を指定したコピー開始指示7を、コピー部1−1cに送信する。するとコピー部1−1cが、コピー開始指示7に応じて、記憶装置2−2の論理ボリューム2−2c内のデータを、記憶装置1−5の論理ボリューム1−5aにコピーする。
The deciding unit 1-1b transmits a
このように第1の実施の形態では、コピー未実行の論理ボリュームを他よりも多く含む記憶装置を優先的に選択し、選択した記憶装置をコピー元またはコピー先とするデータコピーが行われる。これにより、コピー要求4に示されたすべての論理ボリューム対のデータコピー処理の終盤において、特定の記憶装置のみ、複数のボリュームがコピー未実行のまま残され、その記憶装置にアクセスが集中してしまう事態を抑止することができる。その結果、ストレージ装置間のデータコピーの処理効率が向上する。
As described above, in the first embodiment, a storage device including more logical volumes that have not been copied is preferentially selected, and data copy is performed using the selected storage device as a copy source or a copy destination. As a result, at the end of the data copy process for all logical volume pairs indicated in the
なお、選択した2つの記憶装置の一方をコピー元、他方をコピー先とするコピー未実行の論理ボリューム対がない場合もあり得る。この場合、例えば決定部1−1bは、ストレージ装置2内の複数の記憶装置2−1,2−2,2−3,・・・それぞれのコピー未実行の論理ボリューム対に属する論理ボリューム数に関する、該複数の記憶装置間でのばらつきを求める。同様に、決定部1−1bは、ストレージ装置1が内蔵する複数の記憶装置1−2,1−3,1−4,・・・それぞれのコピー未実行の論理ボリューム対に属する論理ボリューム数に関する、該複数の記憶装置間でのばらつきを求める。決定部1−1bは、ストレージ装置1,2それぞれから求めたばらつきを比較する。そして決定部1−1bは、ばらつきが小さい方のストレージ装置内の複数の記憶装置の中から選択した記憶装置の選択を解除し、その複数の記憶装置の中から、選択を解除した記憶装置とは別の記憶装置を選択する。決定部1−1bは、別の記憶装置を選択した場合、新たに選択された記憶装置に基づいて、選択した2つの記憶装置の一方をコピー元、他方をコピー先とするコピー未実行の論理ボリューム対を検索する。
Note that there may be no uncopied logical volume pair in which one of the two selected storage devices is a copy source and the other is a copy destination. In this case, for example, the determination unit 1-1b relates to the number of logical volumes belonging to the unexecuted logical volume pairs of the plurality of storage devices 2-1, 2-2, 2-3,. Then, the variation among the plurality of storage devices is obtained. Similarly, the determination unit 1-1b relates to the number of logical volumes belonging to the unexecuted logical volume pairs of the plurality of storage devices 1-2, 1-3, 1-4,. Then, the variation among the plurality of storage devices is obtained. The determination unit 1-1b compares the variations obtained from the
このようにして、ばらつきが大きい方のストレージ装置については、コピー未実行の論理ボリューム数が多い記憶装置を選択したまま、ばらつきが少ない方のストレージ装置から選択する記憶装置が変更され、コピー実行対象の論理ボリューム対が探索される。これにより、記憶装置内のコピー未実行の論理ボリューム数のばらつきを少なくするようにコピー実行対象が決定され、ストレージ装置間のコピーの終盤で、特定の記憶装置についてのみ、コピー未実施の論理ボリュームが複数残されることを抑止できる。 In this way, for the storage device with the larger variation, the storage device selected from the storage device with the smaller variation is changed while the storage device with the larger number of unexecuted logical volumes is selected, and the copy execution target is changed. Are searched for logical volume pairs. As a result, the copy execution target is determined so as to reduce the variation in the number of unexecuted logical volumes in the storage device. At the end of the copy between the storage devices, only the specific storage device has not been copied. Can be prevented from being left behind.
なお、ストレージ装置内の複数の記憶装置間でのコピー未実行の論理ボリューム数のばらつきは、例えば、複数の記憶装置それぞれのコピー未実行の論理ボリューム対に属する論理ボリューム数の標準偏差または分散で求めることができる。また複数の記憶装置それぞれのコピー未実行の論理ボリューム対に属する論理ボリューム数のうちの最大値と最小値との差を、ストレージ装置内の複数の記憶装置間でのコピー未実行の論理ボリューム数のばらつきとすることもできる。 Note that the variation in the number of unexecuted logical volumes among a plurality of storage devices in a storage device is, for example, the standard deviation or distribution of the number of logical volumes belonging to the pair of unexecuted logical volumes of each of the plurality of storage devices. Can be sought. Also, the difference between the maximum value and the minimum value of the number of logical volumes belonging to the pair of unexecuted logical volumes of each of the multiple storage devices is the number of unexecuted logical volumes among the multiple storage devices in the storage device. It can also be set as the dispersion | variation.
さらに決定部1−1bは、記憶装置ごとの、コピー処理を実行中の論理ボリュームの数に応じて、記憶装置を選択することもできる。例えば決定部1−1bは、まず、同一の記憶装置内のコピー元またはコピー先となっている論理ボリューム数が、他の記憶装置よりも少ない記憶装置を優先的に選択する。次に決定部1−1bは、コピー元またはコピー先となっている論理ボリューム数が同数の場合に、コピー未実行の論理ボリューム対に属する論理ボリュームが同一ストレージ装置内の他の記憶装置よりも多く含まれる記憶装置を優先的に選択する。コピー実行中の論理ボリュームを有する記憶装置内の別の論理ボリュームをコピー元またはコピー先とする論理ボリューム対がコピー実行対象に決定されると、その記憶装置においてアクセスの競合が発生してしまう。コピー処理を実行中の論理ボリュームの数に応じて記憶装置を選択することで、アクセス競合の発生を適切に抑止し、データコピーの処理効率を向上させることができる。 Further, the determining unit 1-1b can select a storage device according to the number of logical volumes that are executing copy processing for each storage device. For example, the determination unit 1-1b first preferentially selects a storage device in which the number of logical volumes serving as copy sources or copy destinations in the same storage device is smaller than other storage devices. Next, when the number of logical volumes that are the copy source or the copy destination is the same, the determination unit 1-1b determines that the logical volume belonging to the logical volume pair that has not been copied is more than the other storage devices in the same storage device. Preferentially select storage devices that are included in large numbers. When a logical volume pair whose copy source or copy destination is another logical volume in a storage device having a logical volume being copied is determined as a copy execution target, an access conflict occurs in the storage device. By selecting a storage device in accordance with the number of logical volumes that are executing copy processing, it is possible to appropriately suppress the occurrence of access contention and improve data copy processing efficiency.
なお、図1の例では、データのコピー先のストレージ装置1内に制御装置1−1が設けられているが、制御装置1−1を他の装置に実装することもできる。例えば、データのコピー元のストレージ装置2内に制御装置1−1を実装することもできる。また端末装置3内に制御装置1−1を実装することもできる。その場合、コピー部1−1cは、例えばストレージ装置1,2を遠隔制御することで、データコピーを実現する。
In the example of FIG. 1, the control device 1-1 is provided in the
〔第2の実施の形態〕
次に第2の実施の形態について説明する。第2の実施の形態は、ストレージ装置内にデータマイグレーション機構を搭載したものである。ストレージ装置内にデータマイグレーション機構を搭載することで、ホストコンピュータを介さずに、データマイグレーションが可能となる。
[Second Embodiment]
Next, a second embodiment will be described. In the second embodiment, a data migration mechanism is mounted in a storage apparatus. By installing a data migration mechanism in the storage apparatus, data migration can be performed without using a host computer.
例えば、データマイグレーションを行う管理者は、データ移行先のストレージ装置として、データマイグレーション機構を有するストレージ装置を用意する。さらに管理者は、データ移行元のストレージ装置とデータ移行先のストレージ装置とを通信用のケーブルで接続する。そして管理者は、データ移行先のストレージ装置に対して、データ移行指示を入力する。するとデータ移行先のストレージ装置が、データ移行元のストレージ装置から適宜データを読み出し、内蔵するボリュームにデータを格納する。このとき、データ移行先のストレージ装置は、通信用の複数のパスを有効に使用した効率的なデータマイグレーションを行う。 For example, an administrator who performs data migration prepares a storage device having a data migration mechanism as a data migration destination storage device. Further, the administrator connects the data migration source storage device and the data migration destination storage device with a communication cable. Then, the administrator inputs a data migration instruction to the data migration destination storage device. Then, the data migration destination storage apparatus reads data from the data migration source storage apparatus as appropriate, and stores the data in the built-in volume. At this time, the data migration destination storage apparatus performs efficient data migration that effectively uses a plurality of communication paths.
図4は、第2の実施の形態のシステム構成例を示す図である。2台のストレージ装置100,200は、複数のケーブル21,22,23,・・・で接続されている。1つのケーブルを用いて、ストレージ装置間のデータ通信用の1つのパスが形成できる。例えばストレージ装置100,200は、RAID(Redundant Array of Inexpensive Disks)技術によりデータを記憶することができる。またストレージ装置100,200は、例えばCKD(Count Key and Data)方式でデータを記録する。またストレージ装置100,200は、FBA(Fixed Block Architecture)方式でデータを記録してもよい。
FIG. 4 illustrates a system configuration example according to the second embodiment. The two
図4の例では、ストレージ装置100がデータの移行先であり、ストレージ装置200がデータの移行元であるものとする。第2の実施の形態では、移行先のストレージ装置100による、ストレージ装置200内のボリュームからのデータ読み出し処理によって、データ移行が行われるものとする。
In the example of FIG. 4, it is assumed that the
移行先のストレージ装置100には、端末装置300が接続されている。端末装置300は、システムの管理者が使用するマンマシンインタフェース(man machine interface)の一例である。管理者は、端末装置300を用いて、ストレージ装置100に対してデータ移行指示を入力することができる。端末装置300とストレージ装置100とは、例えば、LAN(Local Area Network)ケーブルによって直接接続されていてもよいし、あるいは、LANスイッチなどを介して接続されていてもよい。
A
第2の実施の形態では、データの移動先のストレージ装置100が、移動元のデータを保持するストレージ装置200からデータを読み出し、自己の管理下の論理的なボリュームに格納する。
In the second embodiment, the data storage
図5は、データ移行時のストレージ装置間の通信を示す図である。図5に示すように、ストレージ装置100からストレージ装置200へ、データのリードコマンドが送信される。そしてリードコマンドに応答して、ストレージ装置200からストレージ装置100へ、コピーデータが送信される。このようなリードコマンドとコピーデータとの送信は、パスごとに並列実行される。
FIG. 5 is a diagram illustrating communication between storage apparatuses during data migration. As shown in FIG. 5, a data read command is transmitted from the
次に、このようなデータ移行を実現する各装置のハードウェア構成について説明する。
図6は、ストレージ装置のハードウェア構成の一例を示す図である。ストレージ装置100は、複数のハードディスク装置(HDD:Hard Disk Drive)111,112,113,114,・・・、CM(Controller Module)120、および複数のCA(Channel Adapter)131,132,133,・・・を有している。
Next, the hardware configuration of each device that realizes such data migration will be described.
FIG. 6 is a diagram illustrating an example of a hardware configuration of the storage apparatus. The
HDD111,112,113,114,・・・は、データを記憶する。例えば、複数のHDDによって1つのRAIDグループを作成することができる。RAIDグループは、1つのディスクとして取り扱うことができる。さらに、RAIDグループには、論理ユニット(LU:Logical Unit)と呼ばれる論理的なボリュームを作成することができる。第2の実施の形態では、1つのRAIDグループを1つのディスクとし、RAIDグループ内のLUを、データの移行対象のボリュームとする。
The
CM120は、ストレージ装置100全体を制御する。例えばCM120は、HDD111,112,113,114,・・・に接続されており、HDD111,112,113,114,・・・へのデータの入出力を行う。またCM120には、CA131,132,133,・・・が接続されており、CA131,132,133,・・・を介して外部の装置との間のデータ通信を行う。さらにCM120は、端末装置300に接続されている。CM210は、端末装置300からデータ移行指示などの各種の指示を取得し、指示に応じた処理結果を端末装置300に送信する。
The
CA131,132,133,・・・は、ファイバーチャネルによってホストコンピュータや他のストレージ装置200と通信する。またCA131,132,133,・・・は、接続された相手の装置に対して、データ読み出し要求などの制御コマンドを発行する機能を有する。例えばCA131,132,133,・・・は、CCW(Channel Command Word)によるコマンドを発行する。第2の実施の形態では、移行先のストレージ装置100のCA131,132,133,・・・は、それぞれケーブル21,22,23,・・・によって、移行元のストレージ装置200のCA231,232,233,・・・に接続される。
ストレージ装置200もストレージ装置100と同様に、複数のHDD211,212,213,214,・・・、CM220、および複数のCA231,232,233,・・・を有している。ストレージ装置200のHDD211,212,213,214,・・・には、移行対象となるデータが格納されている。
Similar to the
なお図6の例では、記憶媒体としてHDDを用いているが、HDDに代えて他の記憶媒体を使用することもできる。例えばストレージ装置100,200は、HDDに代えて、SSD(Solid State Drive)を使用することができる。
In the example of FIG. 6, an HDD is used as the storage medium, but other storage media can be used instead of the HDD. For example, the
次に、CM120の内部構成について説明する。
図7は、CMの内部構成の一例を示す図である。CM120は、CPU121、RAM(Random Access Memory)122、フラッシュROM(Read Only Memory)123、キャッシュメモリ124、DI(Device Interface)125a,125b,・・・およびLANインタフェース(I/F)126を備えている。
Next, the internal configuration of the
FIG. 7 is a diagram illustrating an example of the internal configuration of a CM. The
CPU121は、フラッシュROM123などに記憶されたプログラムを実行することにより、CM120全体を統括的に制御する。RAM122は、CPU121に実行させるプログラムの少なくとも一部や、プログラムによる処理に必要な各種データを一時的に記憶する。フラッシュROM123は、CPU121により実行されるプログラムや、プログラムの実行に必要な各種のデータなどを記憶する。
The
キャッシュメモリ124は、HDD111,112,・・・から読み出したデータをキャッシュする。また、キャッシュメモリ124には、CPU121による処理に必要なデータが一時的に記憶されてもよい。
The
DI125a,125b,・・・は、それぞれHDD111,112,・・・とキャッシュメモリ124との間でデータを送受信するインタフェース機能を提供する。
LANインタフェース126は、LANケーブルを介して端末装置300などの外部装置と接続し、外部装置との間でデータの送受信を行う。
The
The
次に、CAの内部構成について説明する。
図8は、CAの内部構成の一例を示す図である。CA131は、ホストI/F(インタフェース)131a、CMI/F131b、フラッシュROM131c、フレーム転送回路131d、データ転送回路131e、およびCPU131fを有する。
Next, the internal configuration of the CA will be described.
FIG. 8 is a diagram illustrating an example of the internal configuration of the CA. The
ホストI/F131aは、ホストコンピュータや他のストレージ装置200とファイバーチャネルによって通信するインタフェースである。CMI/F131bは、CM120と通信するインタフェースである。フラッシュROM131cは、CA131を制御するためのファームウェアを記憶する。例えばフラッシュROM131cには、データリードのCCWコマンドの発行処理に関するプログラムや、受信したCCWコマンドに応じた処理に関するプログラムが記憶される。
The host I /
フレーム転送回路131dは、ホストI/F131aを介して、フレームの送受信を行う。例えばフレーム転送回路131dは、ホストI/F131aを介して受信したフレームからデータを抽出し、CPU131fを介してデータ転送回路131eに転送する。またフレーム転送回路131dは、データ転送回路131eから受信したデータを含むフレームを生成し、ホストI/F131aへ転送する。またフレーム転送回路131dは、CM120からのデータ移行処理の実行要求を受信すると、CPU131fの指示に基づき、ストレージ装置200に対してデータリードコマンドを送信する。フレーム転送回路131dは、データリードコマンドに対してストレージ装置200から応答されたデータを、CPU131fを介してデータ転送回路131eに転送する。
The
データ転送回路131eは、CM120とフレーム転送回路131dとの間で、データ転送を行う。例えばデータ転送回路131eは、CMI/F131bを介してCM120からデータを受信すると、そのデータを、CPU131fを介してフレーム転送回路131dに転送する。またデータ転送回路131eは、CPU131fを介してフレーム転送回路131dからデータを受信すると、そのデータをCMI/F131bを介してCM120に転送する。
The
CPU131fは、フレーム転送回路131dとデータ転送回路131eとの間のデータ転送を中継すると共に、フレーム転送回路131dとデータ転送回路131eと動作を制御する。例えばCPU131fは、CM120からのデータ移行処理の実行要求を受信すると、フラッシュROM131cに格納されているファームウェアに従って、フレーム転送回路131dに対し、ストレージ装置200へのデータリードコマンドの送信を指示する。
The
なお図8には、CA131のハードウェア構成例を示したが、ストレージ装置100とストレージ装置200との他のCAも、CA131と同様のハードウェア構成である。
次に、端末装置300のハードウェア構成について説明する。
Although FIG. 8 shows an example of the hardware configuration of the
Next, the hardware configuration of the
図9は、第2の実施の形態に用いる端末装置のハードウェアの一構成例を示す図である。端末装置300は、CPU301によって装置全体が制御されている。CPU301には、バス308を介してRAM302と複数の周辺機器が接続されている。
FIG. 9 is a diagram illustrating a configuration example of hardware of a terminal device used in the second embodiment. The entire
RAM302は、端末装置300の主記憶装置として使用される。RAM302には、CPU301に実行させるOS(Operating System)のプログラムやアプリケーションプログラムの少なくとも一部が一時的に格納される。また、RAM302には、CPU301による処理に必要な各種データが格納される。
The
バス308に接続されている周辺機器としては、HDD303、グラフィック処理装置304、入力インタフェース305、光学ドライブ装置306、および通信インタフェース307がある。
Peripheral devices connected to the
HDD303は、内蔵したディスクに対して、磁気的にデータの書き込みおよび読み出しを行う。HDD303は、端末装置300の二次記憶装置として使用される。HDD303には、OSのプログラム、アプリケーションプログラム、および各種データが格納される。なお、二次記憶装置としては、フラッシュメモリなどの半導体記憶装置を使用することもできる。
The
グラフィック処理装置304には、モニタ11が接続されている。グラフィック処理装置304は、CPU301からの命令に従って、画像をモニタ11の画面に表示させる。モニタ11としては、CRT(Cathode Ray Tube)を用いた表示装置や液晶表示装置などがある。
A monitor 11 is connected to the
入力インタフェース305には、キーボード12とマウス13とが接続されている。入力インタフェース305は、キーボード12やマウス13から送られてくる信号をCPU301に送信する。なお、マウス13は、ポインティングデバイスの一例であり、他のポインティングデバイスを使用することもできる。他のポインティングデバイスとしては、タッチパネル、タブレット、タッチパッド、トラックボールなどがある。
A keyboard 12 and a mouse 13 are connected to the
光学ドライブ装置306は、レーザ光などを利用して、光ディスク14に記録されたデータの読み取りを行う。光ディスク14は、光の反射によって読み取り可能なようにデータが記録された可搬型の記録媒体である。光ディスク14には、DVD(Digital Versatile Disc)、DVD−RAM、CD−ROM(Compact Disc Read Only Memory)、CD−R(Recordable)/RW(ReWritable)などがある。
The
通信インタフェース307は、LANなどのネットワークを介して、ストレージ装置100との間でデータの送受信を行う。
以上のようなハードウェア構成によって、第2の実施の形態の処理機能を実現することができる。なお図9の端末装置300には、周辺機器として、フレキシブルディスク(FD)などの可搬型の磁気ディスクにリード・ライトするドライブ装置を接続することもできる。また、第1の実施の形態に示したストレージ装置も、図6〜図8に示したストレージ装置100と同様のハードウェアにより実現することができる。
The
With the hardware configuration described above, the processing functions of the second embodiment can be realized. 9 can be connected to a drive device that reads / writes a portable magnetic disk such as a flexible disk (FD) as a peripheral device. Further, the storage apparatus shown in the first embodiment can also be realized by the same hardware as the
次に、ストレージ装置100が有するデータマイグレーション機能について説明する。
図10は、ストレージ装置のデータマイグレーション機能を示すブロック図である。ストレージ装置100は、管理テーブル作成部140、管理テーブル記憶部150、移行順決定部160、移行制御部170、および複数のデータ移行部181,182,183,・・・を有する。
Next, the data migration function that the
FIG. 10 is a block diagram showing the data migration function of the storage apparatus. The
管理テーブル作成部140は、端末装置300から入力されたデータ移行指示に従って、データ移行に用いる管理テーブルを作成する。例えば、入力されるデータ移行指示には、データ移行元のLUと、データ移行先のLUとの対応関係を示す移行情報が含まれる。
The management
管理テーブル作成部140は、移行情報に基づいて、状態管理テーブル151、移行先管理テーブル152、および移行元管理テーブル153を作成する。状態管理テーブル151は、移行先のLUと移行元のLUとの組(以下、移行ペアと呼ぶ)ごとの、移行状態を示すデータテーブルである。移行状態には、例えば移行待ち、移行中、移行完了がある。移行先管理テーブル152は、移行先となるLUを有するディスクの移行処理状況を示すデータテーブルである。移行元管理テーブル153は、移行元となるLUを有するディスクの移行処理状況を示すデータテーブルである。移行先と移行元とのディスクに関する移行処理状況は、例えば移行待ちのLU数、移行中のLU数で示される。
The management
管理テーブル記憶部150は、状態管理テーブル151、移行先管理テーブル152、および移行元管理テーブル153を記憶する。状態管理テーブル151、移行先管理テーブル152、および移行元管理テーブル153は、管理テーブル作成部140によって作成され、移行制御部170によって内容が更新される。管理テーブル記憶部150としては、例えばCM120のRAM122の記憶領域の一部が使用される。
The management table storage unit 150 stores a state management table 151, a migration destination management table 152, and a migration source management table 153. The state management table 151, the migration destination management table 152, and the migration source management table 153 are created by the management
移行順決定部160は、管理テーブル記憶部150に格納された情報に基づいて、データ移行処理を開始する移行ペアを決定する。
移行制御部170は、管理テーブル記憶部150に格納された情報に基づいて、LU間のデータ移行処理を行う。例えば移行制御部170は、適宜、移行先管理テーブル152と移行元管理テーブル153とのそれぞれのレコードをソートする。そして移行制御部170は、ソート結果に基づく移行開始対象とする移行ペアの決定要求を、移行順決定部160に送信する。また移行制御部170は、決定された移行ペア間でのデータ移行の指示を、いずれかのデータ移行部に送信する。
Based on the information stored in the management table storage unit 150, the migration
The
データ移行部181,182,183,・・・は、ストレージ装置200との間のデータ通信用のパスと同じ数だけ設けられる。データ移行部181,182,183,・・・は、移行ペアを指定したデータ移行開始指示を受け取ると、未使用のパスを用いて、指定された移行ペア間のデータ移行を行う。例えばデータ移行部181,182,183,・・・は、CAを制御し、指定された移行ペアの移行元のLU内のデータのリード要求をストレージ装置200に対して送信し、リード要求に対して応答されたデータを、指定された移行ペアの移行先のLUに書き込む。またデータ移行部181,182,183,・・・は、CAによるデータコピー状況を監視し、データコピーの進捗状況に応じて、管理テーブル記憶部150内の情報を更新する。
The
図10に示した各要素のうち、管理テーブル作成部140、移行順決定部160、および移行制御部170は、例えばCM120のCPU121で実現される機能である。また、管理テーブル記憶部150は、例えばCM120のRAM122で実現される機能である。さらに、例えばデータ移行部181,182,183,・・・は、それぞれCA131,132,133,・・・とCM120のCPU121との連係動作により実現される機能である。
Among the elements shown in FIG. 10, the management
なお、図10に示した各要素間を接続する線は通信経路の一部を示すものであり、図示した通信経路以外の通信経路も設定可能である。また管理テーブル作成部140は、図1に示した第1の実施の形態における取得部1−1aの一例である。移行順決定部160と移行制御部170とを合わせた機能は、図1に示した第1の実施の形態における決定部1−1bの一例である。データ移行部181,182,183,・・・は、図1に示した第1の実施の形態におけるコピー部1−1cの一例である。
In addition, the line which connects between each element shown in FIG. 10 shows a part of communication path, and communication paths other than the communication path shown in figure can also be set. The management
次に、データ移行指示に含まれる移行情報について説明する。
図11は、移行情報のデータ構造の一例を示す図である。移行情報31には、移行先と移行元との欄が設けられている。移行情報31の同一行に登録された情報が、移行ペアを示している。
Next, the migration information included in the data migration instruction will be described.
FIG. 11 is a diagram illustrating an example of the data structure of the migration information. The migration information 31 has columns for a migration destination and a migration source. Information registered in the same row of the migration information 31 indicates a migration pair.
移行先の欄は、移行先のLUを示す情報が設定される。移行先の欄は、さらにIDとLU番号(LUN)との欄に分かれている。IDの欄には、移行先のLUを有するディスクのストレージ装置100内での識別子(ID)が設定される。LUNの欄には、移行先のLUのディスク内での識別番号が設定される。
Information indicating the migration destination LU is set in the migration destination column. The migration destination column is further divided into columns of ID and LU number (LUN). In the ID column, an identifier (ID) in the
移行元の欄は、移行元のLUを示す情報が設定される。移行元の欄は、さらにIDとLU番号(LUN)との欄に分かれている。IDの欄には、移行元のLUを有するディスクのストレージ装置200内での識別子(ID)が設定される。LUNの欄には、移行元のLUのディスク内での識別番号が設定される。
Information indicating the migration source LU is set in the migration source column. The migration source column is further divided into columns of ID and LU number (LUN). In the ID column, an identifier (ID) in the
図11に示した様な移行情報31に基づいて、管理テーブル作成部140によって、状態管理テーブル151、移行先管理テーブル152、および移行元管理テーブル153が作成される。
Based on the migration information 31 as shown in FIG. 11, the management
図12は、状態管理テーブルのデータ構造の一例を示す図である。状態管理テーブル151には、移行先、移行元、および状態の欄が設けられている。移行先と移行元との欄には、データ移行指示に含まれた移行情報31の内容が設定される。 FIG. 12 is a diagram illustrating an example of the data structure of the state management table. The status management table 151 includes columns for migration destination, migration source, and status. The contents of the migration information 31 included in the data migration instruction are set in the columns of migration destination and migration source.
状態の欄には、移行情報31で示された各移行ペアの状態が設定される。移行ペアが移行待ちの場合、状態の欄に「READY」と設定される。移行ペアが移行中の場合、状態の欄に「USING」と設定される。移行ペアのデータ移行が完了した場合、状態の欄に「FINISHED」と設定される。状態管理テーブル151の作成時には、管理テーブル作成部140によって、移行ペアの初期状態として、すべての移行ペアの状態の欄に、「READY」と設定される。
In the status column, the status of each migration pair indicated by the migration information 31 is set. When the transfer pair is waiting for transfer, “READY” is set in the status column. When the migration pair is being migrated, “USING” is set in the status column. When the data transfer of the transfer pair is completed, “FINISHED” is set in the status column. When creating the status management table 151, the management
図13は、移行先管理テーブルのデータ構造の一例を示す図である。移行先管理テーブル152には、ID、TOTAL数、READY数、およびUSING数の欄が設けられている。 FIG. 13 is a diagram illustrating an example of the data structure of the migration destination management table. The migration destination management table 152 has columns for ID, TOTAL number, READY number, and USING number.
IDの欄には、移行先のストレージ装置100内に設けられたディスクの識別子が設定される。TOTAL数の欄には、対応するDISK番号で示されるディスク内のLUのうち、データの移行先に指定されているLUの数が設定される。READY数の欄には、対応するDISK番号で示されるディスク内の、データの移行先に指定されているLUのうち、移行待ち状態のLUの数が設定される。USING数の欄には、対応するDISK番号で示されるディスク内の、データの移行先に指定されているLUのうち、データを移行中のLUの数が設定される。
In the ID column, an identifier of a disk provided in the migration
TOTAL数の欄の数値は、移行情報31における移行先の欄に設定されているディスクのIDの数を、IDごとに計数することで得られる。READY数の欄の初期値は、TOTAL数と同じである。USING数の初期値は、すべて「0」である。 The numerical value in the TOTAL column is obtained by counting the number of disk IDs set in the transfer destination column in the transfer information 31 for each ID. The initial value in the READY number column is the same as the TOTAL number. The initial value of the USING number is all “0”.
図14は、移行元管理テーブルのデータ構造の一例を示す図である。移行元管理テーブル153には、ID、TOTAL数、READY数、およびUSING数の欄が設けられている。 FIG. 14 is a diagram illustrating an example of the data structure of the migration source management table. The migration source management table 153 includes columns for ID, TOTAL number, READY number, and USING number.
IDの欄には、移行元のストレージ装置200内に設けられたディスクの識別子(ID)が設定される。TOTAL数の欄には、対応するDISK番号で示されるディスク内のLUのうち、データの移行元に指定されているLUの数が設定される。READY数の欄には、対応するDISK番号で示されるディスク内の、データの移行元に指定されているLUのうち、移行待ち状態のLUの数が設定される。USING数の欄には、対応するDISK番号で示されるディスク内の、データの移行元に指定されているLUのうち、データを移行中のLUの数が設定される。
In the ID column, an identifier (ID) of a disk provided in the migration
TOTAL数の欄の数値は、移行情報31における移行元の欄に設定されているディスクのIDの数を、IDごとに計数することで得られる。READY数の欄の初期値は、TOTAL数と同じである。USING数の初期値は、すべて「0」である。 The numerical value in the TOTAL column is obtained by counting the number of disk IDs set in the transfer source column in the transfer information 31 for each ID. The initial value in the READY number column is the same as the TOTAL number. The initial value of the USING number is all “0”.
このようなデータテーブルに基づいて、データ移行処理が実行される。以下、データ移行処理の手順について説明する。
図15は、データ移行処理の手順の一例を示すフローチャートである。以下、図15に示す処理をステップ番号に沿って説明する。この処理は、例えば移行情報を伴うデータ移行指示が入力されたときに開始される。
Data migration processing is executed based on such a data table. Hereinafter, the procedure of the data migration process will be described.
FIG. 15 is a flowchart illustrating an example of the procedure of the data migration process. In the following, the process illustrated in FIG. 15 will be described in order of step number. This process is started when, for example, a data migration instruction with migration information is input.
[ステップS101]管理テーブル作成部140は、管理テーブル作成処理を実行する。この処理の詳細は後述する(図16参照)。
[ステップS102]移行制御部170は、未使用パスがあるか否かを判断する。例えば、ストレージ装置100とストレージ装置200とを接続するケーブルの本数が、パスの総数である。移行制御部170は、状態管理テーブル151を参照し、状態が「USING」の移行ペアの数が、パスの総数に達していなければ、未使用のパスがあると判断する。また移行制御部170は、状態が「USING」の移行ペアの数が、パスの総数に達していれば、未使用のパスはないと判断する。移行制御部170は、未使用のパスがあれば、処理をステップS103に進める。また移行制御部170は、未使用のパスがなければ、パスの空きが生じるまで、ステップS102の処理を繰り返す。
[Step S101] The management
[Step S102] The
[ステップS103]移行制御部170は、移行先管理テーブル152と移行元管理テーブル153とのそれぞれを、ソートする。例えば移行制御部170は、移行先管理テーブル152と移行元管理テーブル153とのディスクを、USING数によって昇順にソートすることもできる。また移行制御部170は、移行先管理テーブル152と移行元管理テーブル153とのディスクを、READY数によって降順にソートする。
[Step S103] The
さらに移行制御部170は、USING数とREADY数とを組み合わせてソートすることもできる。例えば移行制御部170は、USING数によってディスクをソートし、USING数が同じディスク同士を、READY数によってソートする。なお、第2の実施の形態では、USING数とREADY数とを組み合わせたソートが行われるものとする。
Further, the
[ステップS104]移行順決定部160は、移行ペア決定処理を行う。移行ペア決定処理は、データ移行を開始する移行ペアを決定する処理である。例えば移行先管理テーブル152と移行元管理テーブル153とのソートを終了した移行制御部170が、移行順決定部160に対して、移行ペア決定要求を送信する。移行順決定部160は、移行制御部170からの移行ペア決定要求に応じて、移行開始対象の移行ペアを決定する。移行ペア決定処理の詳細は後述する(図19参照)。
[Step S104] The transfer
[ステップS105]移行制御部170は、データ移行を実行していないデータ移行部に対して、移行開始対象の移行ペアを指定したデータ移行開始指示を送信する。データ移行開始指示を受けたデータ移行部は、指定された移行ペア間のデータ移行処理を開始する。指定された移行ペア間のデータ移行処理の詳細は後述する(図23参照)。
[Step S105] The
[ステップS106]移行制御部170は、すべての移行ペアの移行開始指示が完了したか否かを判断する。例えば移行制御部170は、状態管理テーブル151に登録された移行ペアの状態が、すべて「USING」と「FINISHED」とのいずれかになった場合、すべての移行ペアの移行開始指示が完了したものと判断する。移行制御部170は、すべての移行ペアの移行開始指示が完了した場合、処理を終了する。また移行制御部170は、移行開始指示を出していない移行ペアがある場合、処理をステップS102に進める。
[Step S106] The
このようにして移行開始指示が行われる。次に、管理テーブル作成処理を詳細に説明する。
図16は、管理テーブル作成処理の手順を示すフローチャートである。以下、図16に示す処理をステップ番号に沿って説明する。
In this way, a transition start instruction is issued. Next, the management table creation process will be described in detail.
FIG. 16 is a flowchart showing the procedure of the management table creation process. In the following, the process illustrated in FIG. 16 will be described in order of step number.
[ステップS111]管理テーブル作成部140は、移行情報を取得する。例えば管理テーブル作成部140は、移行指示から、移行情報を取得する。
[ステップS112]管理テーブル作成部140は、状態管理テーブル151を作成する。例えば管理テーブル作成部140は、移行情報に対して状態の欄を追加し、各移行ペアに「READY」の状態を設定する。管理テーブル作成部140は、作成した状態管理テーブル151を、管理テーブル記憶部150に格納する。
[Step S111] The management
[Step S112] The management
[ステップS113]管理テーブル作成部140は、移行先のストレージ装置100内のディスクごとに、移行先となるLUの数をカウントする。例えば管理テーブル作成部140は、取得した移行情報の移行先の欄からIDを抽出し、IDごとに、同一IDの抽出数をカウントする。
[Step S113] The management
[ステップS114]管理テーブル作成部140は、移行先管理テーブル152を作成する。例えば管理テーブル作成部140は、移行情報の移行先の欄に設定されているIDを移行先管理テーブル152のIDの欄に設定する。次に、管理テーブル作成部140は、ステップS113でカウントしたディスクごとの移行先のLU数を、移行先管理テーブル152における、そのディスクのIDに対応するTOTAL数の欄に設定する。さらに管理テーブル作成部140は、各レコードのTOTAL数と同じ値を、移行先管理テーブル152における、そのレコードのREADY数の欄に設定する。次に、管理テーブル作成部140は、移行先管理テーブル152のすべてのレコードのUSING数の欄に「0」を設定する。そして、管理テーブル作成部140は、作成した移行先管理テーブル152を、管理テーブル記憶部150に格納する。
[Step S114] The management
[ステップS115]管理テーブル作成部140は、移行元のストレージ装置200内のディスクごとに、移行元となるLUの数をカウントする。例えば管理テーブル作成部140は、取得した移行情報の移行元の欄からIDを抽出し、IDごとに、同一IDの抽出数をカウントする。
[Step S115] The management
[ステップS116]管理テーブル作成部140は、移行元管理テーブル153を作成する。例えば管理テーブル作成部140は、移行情報の移行元の欄に設定されているIDを移行元管理テーブル153のIDの欄に設定する。次に、管理テーブル作成部140は、ステップS115でカウントしたディスクごとの移行元のLU数を、移行元管理テーブル153における、そのディスクのIDに対応するTOTAL数の欄に設定する。さらに管理テーブル作成部140は、各レコードのTOTAL数と同じ値を、移行元管理テーブル153における、そのレコードのREADY数の欄に設定する。次に、管理テーブル作成部140は、移行元管理テーブル153のすべてのレコードのUSING数の欄に「0」を設定する。そして管理テーブル作成部140は、作成した移行元管理テーブル153を、管理テーブル記憶部150に格納する。
[Step S116] The management
このようにして、管理テーブル記憶部150内に、状態管理テーブル151、移行先管理テーブル152、および移行元管理テーブル153が格納される。
作成された移行先管理テーブル152と移行元管理テーブル153とは、移行制御部170によってソートされる。
In this way, the state management table 151, the migration destination management table 152, and the migration source management table 153 are stored in the management table storage unit 150.
The created migration destination management table 152 and migration source management table 153 are sorted by the
図17は、移行先管理テーブルの第1のソート例を示す図である。図17には、初期状態の移行先管理テーブル152のソート例を示している。
初期状態の移行先管理テーブル152では、すべてのディスクのUSING数は「0」である。そのためUSING数によるソートは意味を成さない。そこで、READY数によるソートが行われる。図17の例では、READY数が多い順に、各レコードがソートされている。ソート後の各レコードには、優先順位が高い順に、昇順の行番号が設定されている。
FIG. 17 is a diagram illustrating a first sorting example of the migration destination management table. FIG. 17 shows a sort example of the migration destination management table 152 in the initial state.
In the migration destination management table 152 in the initial state, the number of USINGs of all the disks is “0”. Therefore, sorting by USING number does not make sense. Therefore, sorting by the number of READY is performed. In the example of FIG. 17, the records are sorted in descending order of the READY number. Ascending line numbers are set to the sorted records in descending order of priority.
図18は、移行先管理テーブルの第2のソート例を示す図である。図18の例は、データ移行処理の途中段階におけるソート処理を示している。
データ移行処理の途中段階では、移行途中の移行ペアが存在する。移行途中の移行ペアそれぞれの移行先のLUが属するディスクのIDには、USING数として「1」が設定されている。そこで、まずUSING数によって移行先管理テーブル152内の各レコードが昇順にソートされている。次に、同じUSING数のレコード間で、READY数によって降順にソートされている。
FIG. 18 is a diagram illustrating a second sort example of the migration destination management table. The example of FIG. 18 shows the sort process in the middle of the data migration process.
In the middle of the data migration process, there are migration pairs in the middle of migration. “1” is set as the number of USING in the ID of the disk to which the migration destination LU of each migration pair in the middle of migration belongs. Therefore, first, the records in the migration destination management table 152 are sorted in ascending order according to the number of USING. Next, the records having the same USING number are sorted in descending order by the READY number.
なお図17、図18の例では、移行先管理テーブル152のソート例を示したが、移行元管理テーブル153も同様の処理によってソートされる。
このようにソート処理を行うことで、USING数(つまりはディスク競合)が少ないもの、かつ、READY数が多いものに高い優先順位を付与できる。
In the example of FIGS. 17 and 18, the sorting example of the migration destination management table 152 is shown, but the migration source management table 153 is also sorted by the same processing.
By performing the sort process in this way, it is possible to give a high priority to those having a small number of USINGs (that is, disk contention) and a large number of READYs.
すなわち、図18に示したように、移行先管理テーブル152内のレコードが、まずUSING数によって昇順にソートされる。そして、移行ペアを決定する際には、移行先管理テーブル152の上位から順に、データ移行の開始の有無が判定される。これにより、移行中のLU数が少ないディスク内のLUを含む移行ペアが、優先的にデータ移行開始対象として決定される。その結果、特定のディスクに対して重複してデータ移行が行われることが抑止される。 That is, as shown in FIG. 18, the records in the migration destination management table 152 are first sorted in ascending order by the number of USING. Then, when determining a migration pair, it is determined whether or not data migration is started in order from the top of the migration destination management table 152. As a result, a migration pair including LUs in a disk with a small number of LUs being migrated is preferentially determined as a data migration start target. As a result, duplicate data migration to a specific disk is suppressed.
また図17,図18に示した様に、移行待ちのLU数が多いディスクのレコードほど、移行先管理テーブルの上位に設定される。これにより、移行待ちのLU数が多いディスク内のLUを含む移行ペアが、優先的にデータ移行開始対象として決定される。その結果、移行待ちのLUを多く含んでいるディスク内のLUのデータ移行が優先して実行され、データ移行処理の終盤において、移行待ちLUが属するディスクが、特定のディスクに集中することが抑止される。 As shown in FIGS. 17 and 18, a record of a disk having a larger number of LUs waiting for migration is set higher in the migration destination management table. As a result, a migration pair including LUs in a disk with a large number of LUs waiting for migration is preferentially determined as a data migration start target. As a result, data migration of LUs in a disk that contains many LUs that are waiting for migration is executed with priority, and at the end of the data migration process, the disk to which the migration-waiting LU belongs is not concentrated on a specific disk. Is done.
例えば、ディスクそれぞれに対して均等にデータ移行を行うと、データ移行処理の終盤では、TOTAL数が多いディスクに属するLUが、移行待ちとして残る。例えば図17の例では、ID「F」、「G」のディスク内のLUが、移行待ちとして最後に残ってしまう。ここで例えばパス数が3だとすると、すべてのパスを使用した場合、ID「F」、「G」のいずれかのディスクにおいて、移行先の競合が発生する。逆に、移行先の競合を完全に禁止した場合、データ移行処理の終盤では一部のパスが未使用となり、処理効率が悪化する。 For example, if data is evenly transferred to each disk, at the end of the data transfer process, LUs belonging to disks with a large number of TOTALs remain waiting for transfer. For example, in the example of FIG. 17, the LUs in the disks with IDs “F” and “G” remain at the end as waiting for migration. Here, for example, if the number of paths is 3, when all the paths are used, a migration destination conflict occurs in any of the disks with IDs “F” and “G”. Conversely, when the migration destination competition is completely prohibited, some paths are unused at the end of the data migration process, and the processing efficiency deteriorates.
第2の実施の形態では、図17、図18に示すソート処理により、各ディスクのデータ移行の終了時期の差が小さくなる。そのため、データ移行処理の終盤で、特定のディスクへのアクセス集中が発生したり、活用されないパスが生じたりすることが抑止される。 In the second embodiment, the sort process shown in FIGS. 17 and 18 reduces the difference in the end time of data migration of each disk. Therefore, it is possible to prevent the concentration of access to a specific disk or the occurrence of an unused path at the end of the data migration process.
次に移行ペア決定処理の手順について説明する。
図19は、移行ペア決定処理の手順を示すフローチャートである。以下、図19に示す処理をステップ番号に沿って説明する。
Next, the procedure of migration pair determination processing will be described.
FIG. 19 is a flowchart showing the procedure of the migration pair determination process. In the following, the process illustrated in FIG. 19 will be described in order of step number.
[ステップS121]移行順決定部160は、競合許容数を初期化する。例えば移行順決定部160は、競合許容数を示す変数を内部に保持しており、その変数に「0」を設定する。なお競合許容数を示す変数は、例えばRAM122内の移行順決定部160が管理する記憶領域に格納される。
[Step S121] The transfer
[ステップS122]移行順決定部160は、移行先と移行元それぞれの、ディスクごとの移行待ちLU数のばらつきを計算する。移行待ちLU数のばらつきは、判断対象行移動処理(ステップS128)において使用される。
[Step S122] The migration
すなわち、ステップS123以降の処理では、移行先管理テーブル152と移行元管理テーブル153とのそれぞれから1つずつ行が、判断対象として特定される。そして、判断対象の2つの行それぞれに示されるIDに対応するディスク間でのデータ移行を開始するか否かが判断される。ここでデータ移行を開始しないと判断された場合、移行先管理テーブル152と移行元管理テーブル153との少なくとも一方の判断対象の行が、別の行に移動される。このとき、データ移行元とデータ移行先のどちらか一方を常に基準としてループ処理させると、他方でのREADY数(移行待ちのLU数)に偏りが生じる可能性が大きい。そこで、第2の実施の形態では、移行先管理テーブル152と移行元管理テーブル153とのどちらの行を移動させるかは、移行先と移行元との、ディスクごとのREADY数のばらつきの大小で決定する。 That is, in the processing after step S123, one row from each of the migration destination management table 152 and the migration source management table 153 is specified as a determination target. Then, it is determined whether or not to start data migration between disks corresponding to the IDs indicated in each of the two rows to be determined. If it is determined that the data migration is not started, at least one of the determination target rows in the migration destination management table 152 and the migration source management table 153 is moved to another row. At this time, if the loop processing is always performed using either one of the data migration source and the data migration destination as a reference, there is a high possibility that the READY number (number of LUs waiting for migration) on the other side is biased. Therefore, in the second embodiment, which row of the migration destination management table 152 or the migration source management table 153 is to be moved depends on the variation in the READY count for each disk between the migration destination and the migration source. decide.
[ステップS123]移行順決定部160は、移行先管理テーブル152と移行元管理テーブル153それぞれの、移行開始対象とするか否かの判断を行う行(判断行)の行番号を初期化する。例えば移行順決定部160は、移行先管理テーブル152の判断行の行番号を示す変数tAに、「1」を設定する。また移行順決定部160は、移行元管理テーブル153の判断行の行番号を示す変数tBに、「1」を設定する。
[Step S123] The migration
[ステップS124]移行順決定部160は、移行先管理テーブル152のtA行目のディスク番号を取得する。移行順決定部160は、取得したディスク番号を、変数dstDiskに設定する。
[Step S124] The transfer
[ステップS125]移行順決定部160は、移行元管理テーブル153のtB行目のディスク番号を取得する。移行順決定部160は、取得したディスク番号を、変数srcDiskに設定する。
[Step S125] The migration
[ステップS126]移行順決定部160は、変数dstDiskと変数srcDiskとで示されるディスクの組に該当する移行ペアが、状態管理テーブル151に登録されているか否かを判断する。移行順決定部160は、該当する移行ペアが登録されていれば、処理をステップS127に進める。また移行順決定部160は、該当する移行ペアが登録されていなければ、処理をステップS131に進める。
[Step S126] The migration
[ステップS127]移行順決定部160は、ステップS126において、変数dstDiskと変数srcDiskとで示されるディスクの組に該当する移行ペアの情報を、状態管理テーブル151から抽出する。そして移行順決定部160は、抽出した移行ペアの中に移行待ち状態(READY)の移行ペアがあるか否かを判断する。移行順決定部160は、抽出した移行ペアの中に移行待ちの移行ペアがあれば、処理をステップS128に進める。また移行順決定部160は、抽出した移行ペアの中に移行待ちの移行ペアがなければ、処理をステップS131に進める。
[Step S127] In step S126, the transfer
[ステップS128]移行順決定部160は、変数dstDiskで示される、移行先のディスクにおける競合数が競合許容数以下か否かを判断する。移行先となるディスクの競合数は、移行先管理テーブル152内の該当ディスクのUSING数である。移行順決定部160は、移行先のディスクの競合数が競合許容数以下であれば、処理をステップS129に進める。また移行順決定部160は、移行先のディスクの競合数が競合許容数より大きければ、処理をステップS131に進める。
[Step S128] The transfer
[ステップS129]移行順決定部160は、変数srcDiskで示される、移行元のディスクにおける競合数が競合許容数以下か否かを判断する。移行元となるディスクの競合数は、移行元管理テーブル153内の該当ディスクのUSING数である。移行順決定部160は、移行元のディスクの競合数が競合許容数以下であれば、処理をステップS130に進める。また移行順決定部160は、移行元のディスクの競合数が競合許容数より大きければ、処理をステップS131に進める。
[Step S129] The transfer
[ステップS130]移行順決定部160は、変数dstDiskと変数srcDiskとで示されるディスクの組に該当する移行ペアのうちの、移行待ち状態の移行ペアの1つを選択し、移行開始対象の移行ペアに決定する。その後、移行ペア決定処理が終了する。
[Step S130] The transfer
一方、変数dstDiskと変数srcDiskとで示されるディスクの組に該当する移行ペアを移行開始対象とすることができない場合、以下の処理が行われる。
[ステップS131]移行順決定部160は、変数dstDiskと変数srcDiskとのそれぞれに設定されている行番号に該当する行が、それぞれ移行先管理テーブル152の最後の行と移行元管理テーブル153の最後の行であるか否かを判断する。移行順決定部160は、共に最後の行であれば、処理をステップS133に進める。また移行順決定部160は、少なくとも一方が最後の行でなければ、処理をステップS132に進める。
On the other hand, when the migration pair corresponding to the set of disks indicated by the variable dstDisk and the variable srcDisk cannot be set as the migration start target, the following processing is performed.
[Step S131] The migration
[ステップS132]移行順決定部160は、判断行移動処理を行う。判断行移行処理は、移行先管理テーブル152と移行元管理テーブル153とのいずれか一方の判断行を、次の行に移動する処理である。判断行移動処理の詳細は後述する(図21参照)。移行順決定部160は、その後、処理をステップS124に進める。
[Step S132] The transition
[ステップS133]移行順決定部160は、変数dstDiskと変数srcDiskとのそれぞれに設定されている行番号に該当する行が、それぞれ移行先管理テーブル152の最後の行と移行元管理テーブル153の最後の行であれば、競合許容数に「1」を加算する。そして、移行順決定部160は、処理をステップS123に進める。
[Step S133] The migration
このような手順で、移行開始対象の移行ペアが決定される。
次に、ステップS122で実行される、ディスクごとのREADY数のばらつきの計算例について説明する。
With this procedure, the migration pair to be migrated is determined.
Next, a calculation example of the variation in the READY number for each disk, which is executed in step S122, will be described.
ばらつきは、例えば標準偏差σ、もしくは範囲Rで表される。以下のようにして計算される。
標準偏差σは、以下の式(1)で算出できる。
The variation is expressed by, for example, standard deviation σ or range R. It is calculated as follows.
The standard deviation σ can be calculated by the following equation (1).
式(1)において、Nは、ストレージ装置100またはストレージ装置200内のディスク数である(Nは1以上の整数)。ストレージ装置100またはストレージ装置200内でRAIDグループが作成されていれば、1つのRAIDグループが1つのディスクに換算される。i(1以上の整数)は、ディスクに1から順に番号を振ったときのディスクの番号である)。xiは、i番目のディスクのREADY数である。Aveは、ディスクごとのREADY数の平均値である。なお、式(1)の平方根の中の値は、分散と呼ばれる。
In Expression (1), N is the number of disks in the
図20は、ばらつきの計算例を示す図である。図20の例では、移行先の5台のディスク(ID:A,B,C,D,E)のREADY数は、それぞれ「3」、「2」、「3」、「2」、「5」である。これらの平均値は、(3+2+3+2+5)/5=3である。分散は、{(3−3)2+(2−3)2+(3−3)2+(2−3)2+(5−3)2}/5=1.2となる。分散の正の平方根である標準偏差は、約1.1となる。 FIG. 20 is a diagram illustrating a calculation example of variation. In the example of FIG. 20, the READY numbers of the five migration destination disks (ID: A, B, C, D, E) are “3”, “2”, “3”, “2”, “5”, respectively. Is. Their average value is (3 + 2 + 3 + 2 + 5) / 5 = 3. The dispersion is {(3-3) 2 + (2-3) 2 + (3-3) 2 + (2-3) 2 + (5-3) 2 } /5=1.2. The standard deviation, which is the positive square root of the variance, is about 1.1.
他方、移行元の5台のディスク(ID:a,b,c,d,e)のREADY数は、それぞれ「1」、「5」、「3」、「2」、「4」である。これらの平均値は、(1+5+3+2+4)/5=3である。分散は、{(1−3)2+(5−3)2+(3−3)2+(2−3)2+(4−3)2}/5=2となる。分散の正の平方根である標準偏差は、約1.4となる。 On the other hand, the READY numbers of the five migration source disks (ID: a, b, c, d, e) are “1”, “5”, “3”, “2”, and “4”, respectively. Their average value is (1 + 5 + 3 + 2 + 4) / 5 = 3. The dispersion is {(1-3) 2 + (5-3) 2 + (3-3) 2 + (2-3) 2 + (4-3) 2 } / 5 = 2. The standard deviation, which is the positive square root of the variance, is about 1.4.
図20の例では、移行先よりも移行元の方が標準偏差の値が大きい。すなわち移行元の方がばらつきが大きい。
また、範囲Rは、各ディスクのREADY数の最大値をMAX、最小値をMINとすると、以下の式(2)で算出できる。
範囲(R)=MAX−MIN ・・・(2)
以上の式(1)または式(2)で計算された、移行先と移行元それぞれのばらつきの値を用いて、判断行移動処理が行われる。
In the example of FIG. 20, the standard deviation value is larger at the migration source than at the migration destination. That is, the migration source has a larger variation.
The range R can be calculated by the following equation (2), where MAX is the maximum number of READY numbers of each disk and MIN is the minimum value.
Range (R) = MAX-MIN (2)
Judgment line movement processing is performed using the values of variation of the migration destination and the migration source calculated by the above formula (1) or formula (2).
図21は、判断行移動処理の手順を示すフローチャートである。以下、図21に示す処理をステップ番号に沿って説明する。
[ステップS141]移行順決定部160は、移行先と移行元との、ディスクごとのREADY数のばらつきを比較し、移行先が移行元以上か否かを判断する。移行順決定部160は、移行先のばらつきが、移行元のばらつき以上であれば、処理をステップS146に進める。また移行順決定部160は、移行先のばらつきが、移行元のばらつき未満であれば、処理をステップS142に進める。
FIG. 21 is a flowchart showing the procedure of the judgment line moving process. In the following, the process illustrated in FIG. 21 will be described in order of step number.
[Step S141] The transfer
[ステップS142]移行順決定部160は、移行先のばらつきが移行元のばらつき未満の場合、移行先管理テーブル152の現在の判断行(tA行目)が、移行先管理テーブル152の最後の行か否かを判断する。移行順決定部160は、tA行目が最後の行であれば、処理をステップS144に進める。また移行順決定部160は、tA行目が最後の行でなければ、処理をステップS143に進める。
[Step S <b> 142] When the migration destination variation is less than the migration source variation, the migration
[ステップS143]移行順決定部160は、現在の判断行が移行先管理テーブル152の最後の行でなければ、移行先管理テーブル152の判断行を、次の行に移動する。例えば移行順決定部160は、変数tAの値に1を加算する。その後、判断行移動処理が終了する。
[Step S143] If the current determination row is not the last row in the migration destination management table 152, the migration
[ステップS144]移行順決定部160は、現在の判断行が移行先管理テーブル152の最後の行であれば、移行先管理テーブル152の判断行を、移行先管理テーブル152の先頭に移動する。例えば移行順決定部160は、変数tAの値を「1」に変更する。
[Step S144] If the current determination line is the last line of the migration destination management table 152, the migration
[ステップS145]移行順決定部160は、移行元管理テーブル153の判断行を、次の行に移動する。例えば移行順決定部160は、変数tBの値に1を加算する。その後、判断行移動処理が終了する。
[Step S145] The migration
[ステップS146]移行順決定部160は、移行先のばらつきが移行元のばらつき以上の場合、移行元管理テーブル153の現在の判断行(tB行目)が、移行元管理テーブル153の最後の行か否かを判断する。移行順決定部160は、tB行目が最後の行であれば、処理をステップS148に進める。また移行順決定部160は、tB行目が最後の行でなければ、処理をステップS147に進める。
[Step S146] When the migration destination variation is greater than or equal to the migration source variation, the migration
[ステップS147]移行順決定部160は、現在の判断行が移行元管理テーブル153の最後の行でなければ、移行元管理テーブル153の判断行を、次の行に移動する。例えば移行順決定部160は、変数tBの値に1を加算する。その後、判断行移動処理が終了する。
[Step S147] If the current determination line is not the last line of the transfer source management table 153, the transfer
[ステップS148]移行順決定部160は、現在の判断行が移行元管理テーブル153の最後の行であれば、移行元管理テーブル153の判断行を、移行元管理テーブル153の先頭に移動する。例えば移行順決定部160は、変数tBの値を「1」に変更する。
[Step S <b> 148] If the current determination row is the last row of the migration source management table 153, the migration
[ステップS149]移行順決定部160は、移行先管理テーブル152の判断行を、次の行に移動する。例えば移行順決定部160は、変数tAの値に1を加算する。その後、判断行移動処理が終了する。
[Step S149] The migration
このように、移行先と移行元とのうち、ばらつきが大きい方はできるだけ判断行を動かさず、ばらつきが少ない方の判断行を移動させていくことで、移行開始対象となる移行ペアが調査される。 In this way, the migration pair that is the migration start target is investigated by moving the judgment row with the least variation between the migration destination and the migration source as much as possible without moving the decision row with the least variation. The
図22は、移行開始対象となる移行ペアの決定例を示す図である。図22の例は、移行先の方が、移行元よりもREADY数のばらつきが大きい場合である。また図22では、移行先の判断行と移行元の判断行との組み合わせを線で接続し、その線の上に、移行開始対象となる移行ペアがあるか否かの判断の順番を括弧書きで示している。 FIG. 22 is a diagram illustrating an example of determining a migration pair to be a migration start target. The example of FIG. 22 is a case where the migration destination has a larger variation in the number of READYs than the migration source. In FIG. 22, the combination of the migration destination judgment line and the migration source judgment line is connected by a line, and the order of judgment as to whether or not there is a migration pair to be migrated on the line is written in parentheses. Is shown.
1番目に判断される判断行の組み合わせ(図中[01])は、移行先管理テーブル152の1行目と、移行元管理テーブル153の1行目である。もし、1番目に判断される判断行の組み合わせに対応するディスク間で、データ移行を開始する移行ペアが見つからない場合、判断行が移動される。 The first judgment line combination ([01] in the figure) is the first line of the migration destination management table 152 and the first line of the migration source management table 153. If a migration pair for starting data migration is not found between the disks corresponding to the combination of the judgment rows determined first, the judgment row is moved.
この例では、移行先の方がREADY数のばらつきが大きいことから、移行先管理テーブル152の判断行が固定され、移行元管理テーブル153の判断行が移動される。その結果、2番目に判断される判断行の組み合わせ(図中[02])は、移行先管理テーブル152の1行目と、移行元管理テーブル153の2行目となる。同様に、3番目に判断される判断行の組み合わせ(図中[03])は、移行先管理テーブル152の1行目と、移行元管理テーブル153の3行目となる。 In this example, since the migration destination has a larger variation in the number of READYs, the judgment row in the migration destination management table 152 is fixed, and the judgment row in the migration source management table 153 is moved. As a result, the combination of the judgment lines determined second ([02] in the figure) is the first line of the migration destination management table 152 and the second line of the migration source management table 153. Similarly, the third judgment line combination ([03] in the figure) is the first line of the migration destination management table 152 and the third line of the migration source management table 153.
その後、データ移行を開始する移行ペアが見つかるまで、移行元の判断行が順次移動される。例えば7番目に判断される判断行の組み合わせ(図中[07])は、移行先管理テーブル152の1行目と、移行元管理テーブル153の7行目となる。 Thereafter, the migration source judgment lines are sequentially moved until a migration pair for starting data migration is found. For example, the judgment line combination ([07] in the figure) that is judged seventh is the first line of the migration destination management table 152 and the seventh line of the migration source management table 153.
移行元管理テーブル153の7行目は、移行元管理テーブル153の最後の行である。そこで、8番目に判断される判断行の組み合わせ(図中[08])では、移行先と移行元との両方の判断行が移動され、移行先管理テーブル152の2行目と、移行元管理テーブル153の1行目とが判断行となる。 The seventh line of the migration source management table 153 is the last line of the migration source management table 153. Therefore, in the combination of the judgment lines determined in the eighth ([08] in the figure), both judgment lines of the migration destination and the migration source are moved, and the second line of the migration destination management table 152 and the migration source management. The first line of the table 153 is a judgment line.
このように、移行先と移行元とのうち、統計的にみてREADY数のバラツキが大きい方を基準にすることで、データ移行処理の進行に伴って、ディスクごとのREADY数が等しくなるようにスケジューリングできる。 In this way, by using, as a reference, the larger of the READY count variations statistically between the transfer destination and the transfer source, the READY count for each disk becomes equal as the data transfer processing progresses. Can be scheduled.
データの移行開始対象として決定された移行ペアは、データ移行部によって、移行ペアの移行元のLUから移行先のLUへデータがコピーされる。このようなデータ移行処理の過程で、管理テーブル記憶部150内の情報が適宜更新される。 In the migration pair determined as the data migration start target, the data migration unit copies the data from the migration source LU of the migration pair to the migration destination LU. In the course of such data migration processing, information in the management table storage unit 150 is updated as appropriate.
以下、移行ペア間のデータ移行処理の手順について説明する。
図23は、移行ペア間データ移行処理の手順の一例を示すフローチャートである。以下、図23に示す処理をステップ番号に沿って説明する。以下の説明では、データ移行部181が移行ペア間のデータ移行を行うものとする。
Hereinafter, the procedure of data migration processing between migration pairs will be described.
FIG. 23 is a flowchart illustrating an example of the procedure of the data transfer process between transfer pairs. In the following, the process illustrated in FIG. 23 will be described in order of step number. In the following description, it is assumed that the
[ステップS161]データ移行部181は、移行制御部170から移行開始指示を取得する。移行開始指示には、移行開始が決定された移行ペアの情報が含まれている。
[ステップS162]データ移行部181は、状態管理テーブル151における、移行開始が決定された移行ペアの状態を、USINGに変更する。
[Step S161] The
[Step S162] The
[ステップS163]データ移行部181は、移行先管理テーブル152内の、移行開始が決定された移行ペアの移行先のディスクのREADY数を1だけカウントダウンし、USING数を1だけカウントアップする。
[Step S163] The
[ステップS164]データ移行部181は、移行元管理テーブル153内の、移行開始が決定された移行ペアの移行元のディスクのREADY数を1だけカウントダウンし、USING数を1だけカウントアップする。
[Step S164] The
[ステップS165]データ移行部181は、移行開始が決定された移行ペアの移行元から移行先へ、データをコピーする。例えばデータ移行部181は、未使用のパスを介して、ストレージ装置200に対して、移行元のLU内のデータリード要求を送信する。ストレージ装置200は、データリード要求に応じてLU内のデータを読み出し、ストレージ装置100に送信する。ストレージ装置100では、データリード要求を送信したCAが、ストレージ装置200から送られたデータを受信し、CM120に転送する。CM120内で機能するデータ移行部181は、ストレージ装置200から送られたデータを、DIを介して、移行先のLUに書き込む。
[Step S165] The
[ステップS166]データコピーが完了すると、データ移行部181は、状態管理テーブル151における、移行開始が決定された移行ペアの状態を、FINISHEDに変更する。
[Step S166] When the data copy is completed, the
[ステップS167]データ移行部181は、移行先管理テーブル152内の、移行開始が決定された移行ペアの移行先のディスクのUSING数を、1だけカウントダウンする。
[Step S167] The
[ステップS168]データ移行部181は、移行元管理テーブル153内の、移行開始が決定された移行ペアの移行元のディスクのUSING数を、1だけカウントダウンする。
[Step S168] The
このようにして、移行ペア間のデータ移行の進捗状況に合わせて、管理テーブル記憶部150内の情報が更新される。
以下、データ移行例について説明する。
In this way, the information in the management table storage unit 150 is updated according to the progress status of data migration between migration pairs.
Hereinafter, an example of data migration will be described.
図24は、データ移行例を示す図である。図24の例では、データの移行元となるストレージ装置200に3つのディスク41〜43が設けられている。また、データの移行先となるストレージ装置100にも3つのディスク51〜53が設けられている。各ディスク41〜43,51〜53は、それぞれ、例えばRAID技術によって形成されたRAIDグループである。ディスク41〜43,51〜53内には、それぞれ3つずつのLUが設けられている。各LUには、識別番号(LUN)が付与されている。
FIG. 24 is a diagram illustrating an example of data migration. In the example of FIG. 24, three
また2つのストレージ装置100,200の間は、データ移行用に3つのパス61〜63が設けられている。図24では、移行ペアを構成するLU間を、矢印で接続している。各矢印の上の数字は、その矢印に対応する移行ペアのレコードの状態管理テーブル(図25〜図30参照)内で行の番号を示している。
Between the two
ディスク41のLUN「0x00」のLU内のデータの移行先は、ディスク51のLUN「0x00」のLUである。ディスク41のLUN「0x01」のLU内のデータの移行先は、ディスク52のLUN「0x00」のLUである。ディスク41のLUN「0x02」のLU内のデータの移行先は、ディスク53のLUN「0x00」のLUである。ディスク42のLUN「0x00」のLU内のデータの移行先は、ディスク51のLUN「0x01」のLUである。ディスク42のLUN「0x01」のLU内のデータの移行先は、ディスク52のLUN「0x01」のLUである。ディスク42のLUN「0x02」のLU内のデータの移行先は、ディスク53のLUN「0x01」のLUである。ディスク43のLUN「0x00」のLU内のデータの移行先は、ディスク51のLUN「0x02」のLUである。ディスク43のLUN「0x01」のLU内のデータの移行先は、ディスク52のLUN「0x02」のLUである。ディスク43のLUN「0x02」のLU内のデータの移行先は、ディスク53のLUN「0x02」のLUである。
The migration destination of the data in the LU with the LUN “0x00” of the
次に、図24に示すようなデータ移行を実行した場合のデータ移行状況の遷移を、図25〜図30を参照して説明する。なお図25〜図30の移行先管理テーブルと移行元管理テーブルでは、TOTAL数の欄が省略されている。また以下の例では、移行先管理テーブルと移行元管理テーブルとのレコードのソートに際し、READY数とUSING数とが共に同じレコード同士については、IDに設定されたアルファベットによりソートされるものとする。 Next, the transition of the data migration status when the data migration as shown in FIG. 24 is executed will be described with reference to FIGS. Note that the total number column is omitted in the migration destination management table and the migration source management table of FIGS. In the following example, when the records in the migration destination management table and the migration source management table are sorted, records having the same READY number and USING number are sorted according to the alphabet set in the ID.
図25は、データ移行時の情報の遷移を示す第1の図である。図25には、図24に示すデータ移行を行う際の状態管理テーブル151a、移行先管理テーブル152a、および移行元管理テーブル153aが示されている。 FIG. 25 is a first diagram illustrating information transition during data migration. FIG. 25 shows a state management table 151a, a migration destination management table 152a, and a migration source management table 153a when performing the data migration shown in FIG.
[第1の状態]
第1の状態は、各管理テーブルの初期状態である。初期状態では、状態管理テーブル151aに設定された各移行ペアの状態は、すべて「READY」である。移行先管理テーブル152aに設定された各ディスクのREADY数はすべて「3」であり、USING数はすべて「0」である。移行元管理テーブル153aに設定された各ディスクのREADY数はすべて「3」であり、USING数はすべて「0」である。また、移行先と移行元との標準偏差は、共に「0.0」である。
[First state]
The first state is an initial state of each management table. In the initial state, the states of the migration pairs set in the state management table 151a are all “READY”. The READY count of each disk set in the migration destination management table 152a is all “3”, and the USING count is all “0”. The READY count of each disk set in the migration source management table 153a is all “3”, and the USING count is all “0”. Also, the standard deviation between the migration destination and the migration source is both “0.0”.
第1の状態でデータ移行処理が開始されると、移行先管理テーブル152aと移行元管理テーブル153aそれぞれの最上位の行のディスク間でデータ移行を行う移行ペアが、移行開始対象として決定される。図25の例では、状態管理テーブル151aの1行目に設定されている移行ペアが移行開始対象に決定される。移行開始対象に決定された移行ペアの移行が開始されると、各管理テーブルの内容が更新され、第2の状態に遷移する。 When data migration processing is started in the first state, a migration pair that performs data migration between the disks in the uppermost row of each of the migration destination management table 152a and the migration source management table 153a is determined as a migration start target. . In the example of FIG. 25, the migration pair set in the first row of the state management table 151a is determined as the migration start target. When the migration of the migration pair determined as the migration start target is started, the contents of each management table are updated, and the state transitions to the second state.
[第2の状態]
第2の状態では、状態管理テーブル151aの1行目に設定されている移行ペアの状態が、「USING」に変更されている。
[Second state]
In the second state, the state of the migration pair set in the first row of the state management table 151a is changed to “USING”.
移行先管理テーブル152aにおけるID「A」のディスクのREADY数が「2」に変更され、USING数が「1」に変更されている。その結果、READY数の標準偏差は「0.6」となる。また移行先管理テーブル152a内のレコードがUSING数とREADY数でソートされ、上位からID「B」、「C」、「A」の順となっている。 The READY count of the disk with ID “A” in the migration destination management table 152a is changed to “2”, and the USING count is changed to “1”. As a result, the standard deviation of the READY number is “0.6”. The records in the migration destination management table 152a are sorted by the number of USING and the number of READY, and the IDs “B”, “C”, and “A” are in order from the top.
移行元管理テーブル153aにおけるID「a」のディスクのREADY数が「2」に変更され、USING数が「1」に変更されている。その結果、READY数の標準偏差は「0.6」となる。また移行元管理テーブル153a内のレコードがUSING数とREADY数でソートされ、上位からID「b」、「c」、「a」の順となっている。 The READY count of the disk with ID “a” in the migration source management table 153a is changed to “2”, and the USING count is changed to “1”. As a result, the standard deviation of the READY number is “0.6”. The records in the migration source management table 153a are sorted by the number of USING and the number of READY, and the IDs are “b”, “c”, and “a” in order from the top.
第2の状態から、移行先管理テーブル152aと移行元管理テーブル153aそれぞれの最上位の行のディスク間でデータ移行を行う移行ペアが、移行開始対象として決定される。図25の例では、状態管理テーブル151aの5行目に設定されている移行ペアが移行開始対象に決定される。移行開始対象に決定された移行ペアの移行が開始されると、各管理テーブルの内容が更新され、第3の状態に遷移する。 From the second state, a migration pair that performs data migration between the disks in the uppermost row of each of the migration destination management table 152a and the migration source management table 153a is determined as a migration start target. In the example of FIG. 25, the migration pair set in the fifth row of the state management table 151a is determined as the migration start target. When the migration of the migration pair determined as the migration start target is started, the contents of each management table are updated, and the state transitions to the third state.
[第3の状態]
第3の状態では、状態管理テーブル151aの5行目に設定されている移行ペアの状態が、「USING」に変更されている。
[Third state]
In the third state, the state of the migration pair set in the fifth row of the state management table 151a is changed to “USING”.
移行先管理テーブル152aにおけるID「B」のディスクのREADY数が「2」に変更され、USING数が「1」に変更されている。READY数の標準偏差は「0.6」のままである。また移行先管理テーブル152a内のレコードがUSING数とREADY数でソートされ、上位からID「C」、「A」、「B」の順となっている。 The READY count of the disk with ID “B” in the migration destination management table 152a is changed to “2”, and the USING count is changed to “1”. The standard deviation of the READY number remains “0.6”. The records in the migration destination management table 152a are sorted by the number of USING and the number of READY, and the IDs “C”, “A”, and “B” are in order from the top.
移行元管理テーブル153aにおけるID「b」のディスクのREADY数が「2」に変更され、USING数が「1」に変更されている。READY数の標準偏差は「0.6」のままである。また移行元管理テーブル153a内のレコードがUSING数とREADY数でソートされ、上位からID「c」、「a」、「b」の順となっている。 The READY count of the disk with ID “b” in the migration source management table 153a is changed to “2”, and the USING count is changed to “1”. The standard deviation of the READY number remains “0.6”. The records in the migration source management table 153a are sorted by the number of USING and the number of READY, and the IDs are “c”, “a”, and “b” in order from the top.
第3の状態から、移行先管理テーブル152aと移行元管理テーブル153aそれぞれの最上位の行のディスク間でデータ移行を行う移行ペアが、移行開始対象として決定される。図25の例では、状態管理テーブル151aの9行目に設定されている移行ペアが移行開始対象に決定される。移行開始対象に決定された移行ペアの移行が開始されると、各管理テーブルの内容が更新され、第4の状態(図26参照)に遷移する。 From the third state, a migration pair that performs data migration between the disks in the uppermost row of each of the migration destination management table 152a and the migration source management table 153a is determined as a migration start target. In the example of FIG. 25, the migration pair set in the ninth row of the state management table 151a is determined as the migration start target. When the migration of the migration pair determined as the migration start target is started, the contents of each management table are updated, and the state transitions to the fourth state (see FIG. 26).
図26は、データ移行時の情報の遷移を示す第2の図である。
[第4の状態]
第4の状態では、状態管理テーブル151aの9行目に設定されている移行ペアの状態が、「USING」に変更されている。
FIG. 26 is a second diagram illustrating information transition at the time of data migration.
[Fourth state]
In the fourth state, the state of the migration pair set in the ninth line of the state management table 151a is changed to “USING”.
移行先管理テーブル152aにおけるID「C」のディスクのREADY数が「2」に変更され、USING数が「1」に変更されている。その結果、READY数の標準偏差は「0.0」となる。また移行先管理テーブル152a内のレコードがUSING数とREADY数でソートされ、上位からID「A」、「B」、「C」の順となっている。 The READY count of the disk with ID “C” in the migration destination management table 152a is changed to “2”, and the USING count is changed to “1”. As a result, the standard deviation of the READY number is “0.0”. The records in the migration destination management table 152a are sorted by the number of USING and the number of READY, and the IDs “A”, “B”, and “C” are in order from the top.
移行元管理テーブル153aにおけるID「c」のディスクのREADY数が「2」に変更され、USING数が「1」に変更されている。その結果、READY数の標準偏差は「0.0」となる。また移行元管理テーブル153a内のレコードがUSING数とREADY数でソートされ、上位からID「a」、「b」、「c」の順となっている。 The READY count of the disk with ID “c” in the migration source management table 153a is changed to “2”, and the USING count is changed to “1”. As a result, the standard deviation of the READY number is “0.0”. The records in the migration source management table 153a are sorted by the number of USING and the number of READY, and the IDs “a”, “b”, and “c” are in order from the top.
第4の状態では、3つのパスがすべて使用されており、未使用のパスがない。そこで、データ移行処理を実行中の移行ペアのいずれかで、データ移行が完了するまで、移行開始対象の移行ペアの決定は行われない。データ移行処理のいずれかが完了すると、各管理テーブルの内容が更新され、第5の状態に遷移する。 In the fourth state, all three paths are used and there are no unused paths. Therefore, the migration pair to be migrated is not determined until the data migration is completed in any of the migration pairs that are executing the data migration process. When one of the data migration processes is completed, the contents of each management table are updated, and the state transitions to the fifth state.
[第5の状態]
第5の状態では、状態管理テーブル151aの1行目に設定されている移行ペアの状態が、「FINISHED」に変更されている。
[Fifth state]
In the fifth state, the state of the migration pair set in the first row of the state management table 151a is changed to “FINISHED”.
移行先管理テーブル152aにおけるID「A」のディスクのUSING数が「0」に変更されている。READY数の標準偏差は「0.0」のままである。
移行元管理テーブル153aにおけるID「a」のディスクのUSING数が「0」に変更されている。READY数の標準偏差は「0.0」のままである。
The USING number of the disk with ID “A” in the migration destination management table 152a is changed to “0”. The standard deviation of the READY number remains “0.0”.
The number of USING of the disk with ID “a” in the migration source management table 153a is changed to “0”. The standard deviation of the READY number remains “0.0”.
第5の状態において、移行先管理テーブル152aと移行元管理テーブル153aそれぞれの最上位の行のディスク間でデータ移行を行う、状態が「READY」の移行ペアが探索される。しかし該当する移行ペアがない。そこで判断行移動処理が行われる。第5の状態では、移行先と移行元とのREADY数の標準偏差が同じである。このような場合、第2の実施の形態では、移行元管理テーブル153aの判断行を基準として固定し、移行先管理テーブル152aの判断行を移動する。その結果、状態管理テーブル151aの4行目に設定されている移行ペアが移行開始対象に決定される。移行開始対象に決定された移行ペアの移行が開始されると、各管理テーブルの内容が更新され、第6の状態に遷移する。 In the fifth state, a migration pair whose state is “READY” that performs data migration between the disks in the uppermost row of each of the migration destination management table 152a and the migration source management table 153a is searched. However, there is no corresponding migration pair. Therefore, a decision line moving process is performed. In the fifth state, the standard deviation of the READY numbers at the transfer destination and the transfer source is the same. In such a case, in the second embodiment, the determination line of the migration source management table 153a is fixed as a reference, and the determination line of the migration destination management table 152a is moved. As a result, the migration pair set in the fourth row of the state management table 151a is determined as the migration start target. When the migration of the migration pair determined as the migration start target is started, the contents of each management table are updated, and the state transitions to the sixth state.
[第6の状態]
第6の状態では、状態管理テーブル151aの4行目に設定されている移行ペアの状態が、「USING」に変更されている。
[Sixth state]
In the sixth state, the state of the migration pair set in the fourth row of the state management table 151a is changed to “USING”.
移行先管理テーブル152aにおけるID「B」のディスクのREADY数が「1」に変更され、USING数が「2」に変更されている。その結果、READY数の標準偏差は「0.6」となる。また移行先管理テーブル152a内のレコードがUSING数とREADY数でソートされ、上位からID「A」、「C」、「B」の順となっている。 The READY count of the disk with ID “B” in the migration destination management table 152a is changed to “1”, and the USING count is changed to “2”. As a result, the standard deviation of the READY number is “0.6”. The records in the migration destination management table 152a are sorted by the number of USING and the number of READY, and the IDs “A”, “C”, and “B” are in order from the top.
移行元管理テーブル153aにおけるID「a」のディスクのREADY数が「1」に変更され、USING数が「1」に変更されている。その結果、READY数の標準偏差は「0.6」となる。また移行元管理テーブル153a内のレコードがUSING数とREADY数でソートされ、上位からID「b」、「c」、「a」の順となっている。 The READY count of the disk with ID “a” in the migration source management table 153a is changed to “1”, and the USING count is changed to “1”. As a result, the standard deviation of the READY number is “0.6”. The records in the migration source management table 153a are sorted by the number of USING and the number of READY, and the IDs are “b”, “c”, and “a” in order from the top.
第6の状態において、実行中のデータ移行処理のいずれかが完了すると、各管理テーブルの内容が更新され、第7の状態(図27参照)に遷移する。
図27は、データ移行時の情報の遷移を示す第3の図である。
In the sixth state, when any of the data migration processes being executed is completed, the contents of each management table are updated, and a transition is made to the seventh state (see FIG. 27).
FIG. 27 is a third diagram illustrating information transition during data migration.
[第7の状態]
第7の状態では、状態管理テーブル151aの5行目に設定されている移行ペアの状態が、「FINISHED」に変更されている。
[Seventh state]
In the seventh state, the state of the migration pair set in the fifth row of the state management table 151a is changed to “FINISHED”.
移行先管理テーブル152aにおけるID「B」のディスクのUSING数が「1」に変更されている。READY数の標準偏差は「0.6」のままである。
移行元管理テーブル153aにおけるID「b」のディスクのUSING数が「0」に変更されている。READY数の標準偏差は「0.6」のままである。
The USING number of the disk with ID “B” in the migration destination management table 152a is changed to “1”. The standard deviation of the READY number remains “0.6”.
The USING number of the disk with ID “b” in the migration source management table 153a is changed to “0”. The standard deviation of the READY number remains “0.6”.
第7の状態において、移行先管理テーブル152aと移行元管理テーブル153aそれぞれの最上位の行のディスク間でデータ移行を行う、状態が「READY」の移行ペアが探索される。その結果、状態管理テーブル151aの2行目に設定されている移行ペアが移行開始対象に決定される。移行開始対象に決定された移行ペアの移行が開始されると、各管理テーブルの内容が更新され、第8の状態に遷移する。 In the seventh state, a migration pair whose state is “READY” that performs data migration between the disks in the uppermost row of each of the migration destination management table 152a and the migration source management table 153a is searched. As a result, the migration pair set in the second row of the state management table 151a is determined as the migration start target. When the migration of the migration pair determined as the migration start target is started, the contents of each management table are updated, and the state transitions to the eighth state.
[第8の状態]
第8の状態では、状態管理テーブル151aの2行目に設定されている移行ペアの状態が、「USING」に変更されている。
[Eighth state]
In the eighth state, the state of the migration pair set in the second row of the state management table 151a is changed to “USING”.
移行先管理テーブル152aにおけるID「A」のディスクのREADY数が「1」に変更され、USING数が「1」に変更されている。READY数の標準偏差は「0.6」のままである。また移行先管理テーブル152a内のレコードがUSING数とREADY数でソートされ、上位からID「C」、「A」、「B」の順となっている。 The READY count of the disk with ID “A” in the migration destination management table 152a is changed to “1”, and the USING count is changed to “1”. The standard deviation of the READY number remains “0.6”. The records in the migration destination management table 152a are sorted by the number of USING and the number of READY, and the IDs “C”, “A”, and “B” are in order from the top.
移行元管理テーブル153aにおけるID「b」のディスクのREADY数が「1」に変更され、USING数が「1」に変更されている。READY数の標準偏差は「0.6」のままである。また移行元管理テーブル153a内のレコードがUSING数とREADY数でソートされ、上位からID「c」、「a」、「b」の順となっている。 The READY count of the disk with ID “b” in the migration source management table 153a is changed to “1”, and the USING count is changed to “1”. The standard deviation of the READY number remains “0.6”. The records in the migration source management table 153a are sorted by the number of USING and the number of READY, and the IDs are “c”, “a”, and “b” in order from the top.
第8の状態において、実行中のデータ移行処理のいずれかが完了すると、各管理テーブルの内容が更新され、第9の状態に遷移する。
[第9の状態]
第9の状態では、状態管理テーブル151aの9行目に設定されている移行ペアの状態が、「FINISHED」に変更されている。
In the eighth state, when any of the data migration processes being executed is completed, the contents of each management table are updated, and the state transitions to the ninth state.
[Ninth state]
In the ninth state, the state of the migration pair set in the ninth row of the state management table 151a is changed to “FINISHED”.
移行先管理テーブル152aにおけるID「C」のディスクのUSING数が「0」に変更されている。READY数の標準偏差は「0.6」のままである。
移行元管理テーブル153aにおけるID「c」のディスクのUSING数が「0」に変更されている。READY数の標準偏差は「0.6」のままである。
The number of USINGs of the disk with ID “C” in the migration destination management table 152a is changed to “0”. The standard deviation of the READY number remains “0.6”.
The USING number of the disk with ID “c” in the migration source management table 153a is changed to “0”. The standard deviation of the READY number remains “0.6”.
第9の状態において、移行先管理テーブル152aと移行元管理テーブル153aそれぞれの最上位の行のディスク間でデータ移行を行う、状態が「READY」の移行ペアが探索される。しかし該当する移行ペアがない。そこで判断行移動処理が行われる。第9の状態では、移行先と移行元とのREADY数の標準偏差が同じである。そこで移行先管理テーブル152aの判断行が次の行に変更される。その結果、状態管理テーブル151aの3行目に設定されている移行ペアが移行開始対象に決定される。移行開始対象に決定された移行ペアの移行が開始されると、各管理テーブルの内容が更新され、第10の状態(図28参照)に遷移する。 In the ninth state, a migration pair whose state is “READY” that performs data migration between the disks in the uppermost row of each of the migration destination management table 152a and the migration source management table 153a is searched. However, there is no corresponding migration pair. Therefore, a decision line moving process is performed. In the ninth state, the standard deviation of the READY numbers at the transfer destination and the transfer source is the same. Therefore, the determination line in the migration destination management table 152a is changed to the next line. As a result, the migration pair set in the third row of the state management table 151a is determined as the migration start target. When the migration of the migration pair determined as the migration start target is started, the contents of each management table are updated, and the state transitions to the tenth state (see FIG. 28).
図28は、データ移行時の情報の遷移を示す第4の図である。
[第10の状態]
第10の状態では、状態管理テーブル151aの3行目に設定されている移行ペアの状態が、「USING」に変更されている。
FIG. 28 is a fourth diagram illustrating information transition during data migration.
[Tenth state]
In the tenth state, the state of the migration pair set in the third row of the state management table 151a is changed to “USING”.
移行先管理テーブル152aにおけるID「A」のディスクのREADY数が「0」に変更され、USING数が「2」に変更されている。その結果、READY数の標準偏差は「1.0」となる。また移行先管理テーブル152a内のレコードがUSING数とREADY数でソートされ、上位からID「C」、「B」、「A」の順となっている。 The READY count of the disk with ID “A” in the migration destination management table 152a is changed to “0”, and the USING count is changed to “2”. As a result, the standard deviation of the READY number is “1.0”. The records in the migration destination management table 152a are sorted by the number of USING and the number of READY, and the IDs “C”, “B”, and “A” are in order from the top.
移行元管理テーブル153aにおけるID「c」のディスクのREADY数が「1」に変更され、USING数が「1」に変更されている。その結果、READY数の標準偏差は「0.0」となる。また移行元管理テーブル153a内のレコードがUSING数とREADY数でソートされ、上位からID「a」、「b」、「c」の順となっている。 The READY count of the disk with ID “c” in the migration source management table 153a is changed to “1”, and the USING count is changed to “1”. As a result, the standard deviation of the READY number is “0.0”. The records in the migration source management table 153a are sorted by the number of USING and the number of READY, and the IDs “a”, “b”, and “c” are in order from the top.
第10の状態において、実行中のデータ移行処理のいずれかが完了すると、各管理テーブルの内容が更新され、第11の状態に遷移する。
[第11の状態]
第11の状態では、状態管理テーブル151aの4行目に設定されている移行ペアの状態が、「FINISHED」に変更されている。
In the tenth state, when any of the data migration processes being executed is completed, the contents of each management table are updated, and the state transitions to the eleventh state.
[Eleventh state]
In the eleventh state, the state of the migration pair set in the fourth row of the state management table 151a is changed to “FINISHED”.
移行先管理テーブル152aにおけるID「B」のディスクのUSING数が「0」に変更されている。READY数の標準偏差は「1.0」のままである。
移行元管理テーブル153aにおけるID「a」のディスクのUSING数が「0」に変更されている。READY数の標準偏差は「0.0」のままである。
The USING count of the disk with ID “B” in the migration destination management table 152a is changed to “0”. The standard deviation of the READY number remains “1.0”.
The number of USING of the disk with ID “a” in the migration source management table 153a is changed to “0”. The standard deviation of the READY number remains “0.0”.
第11の状態において、移行先管理テーブル152aと移行元管理テーブル153aそれぞれの最上位の行のディスク間でデータ移行を行う、状態が「READY」の移行ペアが探索される。その結果、状態管理テーブル151aの7行目に設定されている移行ペアが移行開始対象に決定される。移行開始対象に決定された移行ペアの移行が開始されると、各管理テーブルの内容が更新され、第12の状態に遷移する。 In the eleventh state, a migration pair whose state is “READY” that performs data migration between the disks in the uppermost row of each of the migration destination management table 152a and the migration source management table 153a is searched. As a result, the migration pair set in the seventh row of the state management table 151a is determined as the migration start target. When the migration of the migration pair determined as the migration start target is started, the contents of each management table are updated, and the state transitions to the twelfth state.
なお第11の状態では、移行先のREADY数の標準偏差が「1.0」であり、移行元のREADY数の標準偏差が「0.0」である。図28の例では、第11の状態において、移行先管理テーブル152aと移行元管理テーブル153aそれぞれの最上位の行のディスク間でデータ移行を行う、状態が「READY」の移行ペアが存在する。そのため判断行移動処理は行われていない。もし、最上位の行のディスク間でデータ移行を行う、状態が「READY」の移行ペアが存在しなかった場合、標準偏差が大きい移行先を基準とし、移行元管理テーブル153aの判断行の移動が行われる。 In the eleventh state, the standard deviation of the READY number at the migration destination is “1.0”, and the standard deviation of the READY number at the migration source is “0.0”. In the example of FIG. 28, in the eleventh state, there is a migration pair whose status is “READY” in which data migration is performed between the disks in the top row of the migration destination management table 152a and the migration source management table 153a. Therefore, the judgment line moving process is not performed. If there is no migration pair whose status is “READY” to perform data migration between the disks in the top row, the judgment row of the migration source management table 153a is moved based on the migration destination having a large standard deviation. Is done.
[第12の状態]
第12の状態では、状態管理テーブル151aの7行目に設定されている移行ペアの状態が、「USING」に変更されている。
[Twelfth state]
In the twelfth state, the state of the migration pair set in the seventh row of the state management table 151a is changed to “USING”.
移行先管理テーブル152aにおけるID「C」のディスクのREADY数が「1」に変更され、USING数が「1」に変更されている。その結果、READY数の標準偏差は「0.6」となる。また移行先管理テーブル152a内のレコードがUSING数とREADY数でソートされ、上位からID「B」、「C」、「A」の順となっている。 The READY count of the disk with ID “C” in the migration destination management table 152a is changed to “1”, and the USING count is changed to “1”. As a result, the standard deviation of the READY number is “0.6”. The records in the migration destination management table 152a are sorted by the number of USING and the number of READY, and the IDs “B”, “C”, and “A” are in order from the top.
移行元管理テーブル153aにおけるID「a」のディスクのREADY数が「0」に変更され、USING数が「1」に変更されている。その結果、READY数の標準偏差は「0.6」となる。また移行元管理テーブル153a内のレコードがUSING数とREADY数でソートされ、上位からID「b」、「c」、「a」の順となっている。 The READY count of the disk with ID “a” in the migration source management table 153a is changed to “0”, and the USING count is changed to “1”. As a result, the standard deviation of the READY number is “0.6”. The records in the migration source management table 153a are sorted by the number of USING and the number of READY, and the IDs are “b”, “c”, and “a” in order from the top.
第12の状態において、実行中のデータ移行処理のいずれかが完了すると、各管理テーブルの内容が更新され、第13の状態(図29参照)に遷移する。
図29は、データ移行時の情報の遷移を示す第5の図である。
In the twelfth state, when any of the data migration processes being executed is completed, the contents of each management table are updated, and the state transitions to the thirteenth state (see FIG. 29).
FIG. 29 is a fifth diagram illustrating information transition at the time of data migration.
[第13の状態]
第13の状態では、状態管理テーブル151aの2行目に設定されている移行ペアの状態が、「FINISHED」に変更されている。
[13th state]
In the thirteenth state, the state of the migration pair set in the second row of the state management table 151a is changed to “FINISHED”.
移行先管理テーブル152aにおけるID「A」のディスクのUSING数が「1」に変更されている。READY数の標準偏差は「0.6」のままである。
移行元管理テーブル153aにおけるID「b」のディスクのUSING数が「0」に変更されている。READY数の標準偏差は「0.6」のままである。
The USING number of the disk with ID “A” in the migration destination management table 152a is changed to “1”. The standard deviation of the READY number remains “0.6”.
The USING number of the disk with ID “b” in the migration source management table 153a is changed to “0”. The standard deviation of the READY number remains “0.6”.
第13の状態において、移行先管理テーブル152aと移行元管理テーブル153aそれぞれの最上位の行のディスク間でデータ移行を行う、状態が「READY」の移行ペアが探索される。しかし該当する移行ペアがない。そこで判断行移動処理が行われる。第13の状態では、移行先と移行元とのREADY数の標準偏差が同じである。そこで移行先管理テーブル152aの判断行が次の行に変更される。その結果、状態管理テーブル151aの8行目に設定されている移行ペアが移行開始対象に決定される。移行開始対象に決定された移行ペアの移行が開始されると、各管理テーブルの内容が更新され、第14の状態に遷移する。 In the thirteenth state, a search is made for a migration pair whose status is “READY” that performs data migration between the disks in the uppermost row of each of the migration destination management table 152a and the migration source management table 153a. However, there is no corresponding migration pair. Therefore, a decision line moving process is performed. In the thirteenth state, the standard deviation of the READY numbers at the transfer destination and the transfer source is the same. Therefore, the determination line in the migration destination management table 152a is changed to the next line. As a result, the migration pair set in the eighth row of the state management table 151a is determined as the migration start target. When the migration of the migration pair determined as the migration start target is started, the contents of each management table are updated, and the state changes to the fourteenth state.
[第14の状態]
第14の状態では、状態管理テーブル151aの8行目に設定されている移行ペアの状態が、「USING」に変更されている。
[14th state]
In the fourteenth state, the state of the migration pair set in the eighth row of the state management table 151a is changed to “USING”.
移行先管理テーブル152aにおけるID「C」のディスクのREADY数が「0」に変更され、USING数が「2」に変更されている。READY数の標準偏差は「0.6」のままである。また移行先管理テーブル152a内のレコードがUSING数とREADY数でソートされ、上位からID「B」、「A」、「C」の順となっている。 The READY count of the disk with ID “C” in the migration destination management table 152a is changed to “0”, and the USING count is changed to “2”. The standard deviation of the READY number remains “0.6”. The records in the migration destination management table 152a are sorted by the number of USING and the number of READY, and the IDs “B”, “A”, and “C” are in order from the top.
移行元管理テーブル153aにおけるID「b」のディスクのREADY数が「0」に変更され、USING数が「1」に変更されている。READY数の標準偏差は「0.6」のままである。また移行元管理テーブル153a内のレコードがUSING数とREADY数でソートされ、上位からID「c」、「a」、「b」の順となっている。 The READY count of the disk with ID “b” in the migration source management table 153a is changed to “0”, and the USING count is changed to “1”. The standard deviation of the READY number remains “0.6”. The records in the migration source management table 153a are sorted by the number of USING and the number of READY, and the IDs are “c”, “a”, and “b” in order from the top.
第14の状態において、実行中のデータ移行処理のいずれかが完了すると、各管理テーブルの内容が更新され、第15の状態に遷移する。
[第15の状態]
第15の状態では、状態管理テーブル151aの3行目に設定されている移行ペアの状態が、「FINISHED」に変更されている。
In the fourteenth state, when any of the data migration processes being executed is completed, the contents of each management table are updated, and the state transitions to the fifteenth state.
[15th state]
In the fifteenth state, the state of the migration pair set in the third row of the state management table 151a is changed to “FINISHED”.
移行先管理テーブル152aにおけるID「A」のディスクのUSING数が「0」に変更されている。READY数の標準偏差は「0.6」のままである。
移行元管理テーブル153aにおけるID「c」のディスクのUSING数が「0」に変更されている。READY数の標準偏差は「0.6」のままである。
The USING number of the disk with ID “A” in the migration destination management table 152a is changed to “0”. The standard deviation of the READY number remains “0.6”.
The USING number of the disk with ID “c” in the migration source management table 153a is changed to “0”. The standard deviation of the READY number remains “0.6”.
第15の状態において、移行先管理テーブル152aと移行元管理テーブル153aそれぞれの最上位の行のディスク間でデータ移行を行う、状態が「READY」の移行ペアが探索される。その結果、状態管理テーブル151aの6行目に設定されている移行ペアが移行開始対象に決定される。移行開始対象に決定された移行ペアの移行が開始されると、各管理テーブルの内容が更新され、第16の状態(図30参照)に遷移する。 In the fifteenth state, a search is made for a migration pair whose status is “READY” that performs data migration between the disks in the uppermost row of each of the migration destination management table 152a and the migration source management table 153a. As a result, the migration pair set in the sixth row of the state management table 151a is determined as the migration start target. When the migration of the migration pair determined as the migration start target is started, the contents of each management table are updated, and the state transitions to the 16th state (see FIG. 30).
図30は、データ移行時の情報の遷移を示す第6の図である。
[第16の状態]
第16の状態では、状態管理テーブル151aの6行目に設定されている移行ペアの状態が、「USING」に変更されている。
FIG. 30 is a sixth diagram illustrating information transition during data migration.
[Sixteenth state]
In the sixteenth state, the state of the migration pair set in the sixth line of the state management table 151a is changed to “USING”.
移行先管理テーブル152aにおけるID「B」のディスクのREADY数が「0」に変更され、USING数が「1」に変更されている。その結果、READY数の標準偏差は「0.0」となる。 The READY count of the disk with ID “B” in the migration destination management table 152a is changed to “0”, and the USING count is changed to “1”. As a result, the standard deviation of the READY number is “0.0”.
移行元管理テーブル153aにおけるID「c」のディスクのREADY数が「0」に変更され、USING数が「1」に変更されている。READY数の標準偏差は「0.0」となる。 The READY count of the disk with ID “c” in the migration source management table 153a is changed to “0”, and the USING count is changed to “1”. The standard deviation of the READY number is “0.0”.
第16の状態において、すべての移行ペアに対する移行開始指示が完了する。その後、実行中のデータ移行処理が終わるごとに、各管理テーブルの内容が更新される。すべての移行ペアに関するデータ移行処理が完了すると、第17の状態に遷移する。 In the sixteenth state, the migration start instruction for all migration pairs is completed. Thereafter, each time the data migration process being executed is completed, the contents of each management table are updated. When the data migration processing for all migration pairs is completed, the state transits to the 17th state.
[第17の状態]
第17の状態では、状態管理テーブル151aの6,7,8行目に設定されている移行ペアの状態が、「FINISHED」に変更されている。
[17th state]
In the seventeenth state, the state of the migration pair set in the sixth, seventh, and eighth lines of the state management table 151a is changed to “FINISHED”.
移行先管理テーブル152aにおけるID「B」のディスクのUSING数が「0」に変更されている。移行先管理テーブル152aにおけるID「C」のディスクのUSING数が「0」に変更されている。 The USING count of the disk with ID “B” in the migration destination management table 152a is changed to “0”. The number of USINGs of the disk with ID “C” in the migration destination management table 152a is changed to “0”.
移行元管理テーブル153aにおけるID「a」のディスクのUSING数が「0」に変更されている。移行元管理テーブル153aにおけるID「b」のディスクのUSING数が「0」に変更されている。移行元管理テーブル153aにおけるID「c」のディスクのUSING数が「0」に変更されている。 The number of USING of the disk with ID “a” in the migration source management table 153a is changed to “0”. The USING number of the disk with ID “b” in the migration source management table 153a is changed to “0”. The USING number of the disk with ID “c” in the migration source management table 153a is changed to “0”.
以上のようにして、ストレージ装置200からストレージ装置100へのデータ移行が完了する。
第2の実施の形態では、以下の効果が得られる。
As described above, data migration from the
In the second embodiment, the following effects can be obtained.
第2の実施の形態では、各ディスクのデータ移行中ボリューム数(USING数)、データ移行待ちボリューム数(READY数)、およびデータ移行元とデータ移行先のREADY数のバラツキを考慮している。これにより、データ移行の開始から終了までを通して、ディスク競合がなるべく少なくなるように移行ペアを決定することができる。その結果、効率的なデータ移行が自動で行われるようになり、データ移行にかかる時間を短縮できる。 In the second embodiment, consideration is given to variations in the number of volumes in data migration (the number of USING), the number of volumes waiting for data migration (the number of READYs), and the number of READYs at the data migration source and the data migration destination. As a result, the migration pair can be determined so as to minimize the disk contention from the start to the end of the data migration. As a result, efficient data migration is automatically performed, and the time required for data migration can be shortened.
また、データ移行を行う際の作業者は、移行情報を含む移行指示をストレージ装置100に入力するだけでよい。そのため、データ移行の実行順を決定する作業が不要となり、人的負担や時間的負担が軽減される。特に大規模装置間のデータ移行においては大幅に負担が軽減される。
Further, an operator who performs data migration only needs to input a migration instruction including migration information to the
さらに、データ移行中に実行順を動的に決定するため、例えばデータ移行中にパス切れなどが発生した場合にも、ディスク競合がなるべく少なくなるように移行ペアを決定することができる。その結果、パスが切れるといった障害発生時であっても、効率的なデータ移行が可能である。 Further, since the execution order is dynamically determined during data migration, for example, when a path breakage occurs during data migration, a migration pair can be determined so that disk contention is minimized. As a result, even when a failure such as a path cut occurs, efficient data migration is possible.
〔その他の実施の形態〕
第2の実施の形態では、CM120がデータ移行順を制御しているが、他の要素がデータ移行を制御することもできる。例えばストレージ装置100に搭載されている複数のCAのうちの1つがデータ移行順を制御してもよい。その場合、データ移行順を制御するCAは、CM120を介して、他のCAへ、移行ペアを指定したデータの移行開始指示を送信する。
[Other Embodiments]
In the second embodiment, the
また、第2の実施の形態では、データ移行先のストレージ装置100がデータ移行順を制御しているが、他の装置がデータ移行順を制御してもよい。例えばデータ移行元のストレージ装置200が、データ移行順を制御することもできる。その場合、ストレージ装置200のCAは、データの移行開始指示を受け取ると、ストレージ装置200内の移行元のLUからデータを読み出し、読み出したデータの移行先のLUへの書き込み要求をストレージ装置100に送信する。
Further, in the second embodiment, the data migration
また端末装置300が、データ移行順を制御することもできる。例えば端末装置300が移行情報に基づいて、データ移行開始対象の移行ペアを決定し、ストレージ装置100に対して、移行ペアに属するLU間でのデータ移行を指示する。
The
また第2の実施の形態では、ディスクごとの移行待ち状態のLU数(READY数)の標準偏差をREADY数のばらつきを示す値としたが、例えば、標準偏差の算出過程で得られる分散を、ばらつきを示す値として用いることもできる。 In the second embodiment, the standard deviation of the number of LUs waiting for migration (READY number) for each disk is a value indicating the variation in the READY number. For example, the dispersion obtained in the process of calculating the standard deviation is It can also be used as a value indicating variation.
なお、上記の各実施の形態に示した処理機能は、コンピュータによって実現することができる。その場合、ストレージ装置が有するデータ移行処理の手順を記述したプログラムが提供される。そのプログラムをコンピュータで実行することにより、上記処理機能がコンピュータ上で実現される。処理内容を記述したプログラムは、コンピュータで読み取り可能な記録媒体に記録しておくことができる。コンピュータで読み取り可能な記録媒体としては、磁気記憶装置、光ディスク、光磁気記録媒体、半導体メモリなどがある。磁気記憶装置には、ハードディスク装置(HDD)、フレキシブルディスク、磁気テープなどがある。光ディスクには、DVD、DVD−RAM、CD−ROM/RWなどがある。光磁気記録媒体には、MO(Magneto-Optical disc)などがある。 The processing functions shown in the above embodiments can be realized by a computer. In that case, a program describing a procedure of data migration processing that the storage apparatus has is provided. By executing the program on a computer, the above processing functions are realized on the computer. The program describing the processing contents can be recorded on a computer-readable recording medium. Examples of the computer-readable recording medium include a magnetic storage device, an optical disk, a magneto-optical recording medium, and a semiconductor memory. Magnetic storage devices include hard disk devices (HDD), flexible disks, magnetic tapes, and the like. Optical discs include DVD, DVD-RAM, CD-ROM / RW, and the like. Magneto-optical recording media include MO (Magneto-Optical disc).
プログラムを流通させる場合には、例えば、そのプログラムが記録されたDVD、CD−ROMなどの可搬型記録媒体が販売される。また、プログラムをサーバコンピュータの記憶装置に格納しておき、ネットワークを介して、サーバコンピュータから他のコンピュータにそのプログラムを転送することもできる。 When distributing the program, for example, a portable recording medium such as a DVD or a CD-ROM in which the program is recorded is sold. It is also possible to store the program in a storage device of a server computer and transfer the program from the server computer to another computer via a network.
プログラムを実行するコンピュータは、例えば、可搬型記録媒体に記録されたプログラムもしくはサーバコンピュータから転送されたプログラムを、自己の記憶装置に格納する。そして、コンピュータは、自己の記憶装置からプログラムを読み取り、プログラムに従った処理を実行する。なお、コンピュータは、可搬型記録媒体から直接プログラムを読み取り、そのプログラムに従った処理を実行することもできる。また、コンピュータは、サーバコンピュータからプログラムが転送されるごとに、逐次、受け取ったプログラムに従った処理を実行することもできる。 The computer that executes the program stores, for example, the program recorded on the portable recording medium or the program transferred from the server computer in its own storage device. Then, the computer reads the program from its own storage device and executes processing according to the program. The computer can also read the program directly from the portable recording medium and execute processing according to the program. Further, each time the program is transferred from the server computer, the computer can sequentially execute processing according to the received program.
また、上記の処理機能の少なくとも一部を、DSP(Digital Signal Processor)、ASIC(Application Specific Integrated Circuit)、PLD(Programmable Logic Device)などの電子回路で実現することもできる。 In addition, at least a part of the above processing functions can be realized by an electronic circuit such as a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), or a PLD (Programmable Logic Device).
以上、実施の形態を例示したが、実施の形態で示した各部の構成は同様の機能を有する他のものに置換することができる。また、他の任意の構成物や工程が付加されてもよい。さらに、前述した実施の形態のうちの任意の2以上の構成(特徴)を組み合わせたものであってもよい。 As mentioned above, although embodiment was illustrated, the structure of each part shown by embodiment can be substituted by the other thing which has the same function. Moreover, other arbitrary structures and processes may be added. Further, any two or more configurations (features) of the above-described embodiments may be combined.
1,2 ストレージ装置
1−1 制御装置
1−1a 取得部
1−1b 決定部
1−1c コピー部
1−2,1−3,1−4,・・・,2−1,2−2,2−3,・・・ 記憶装置
1−2a,1−2b,・・・,1−3a,1−3b,・・・,1−4a,1−4b,・・・,2−1a,2−1b,・・・,2−2a,2−2b,・・・,2−3a,2−3b,・・・ 論理ボリューム
DESCRIPTION OF
Claims (8)
外部のストレージ装置内の複数の記憶装置それぞれに設けられた論理ボリュームをコピー元とし、内蔵する複数の記憶装置それぞれに設けられた論理ボリュームをコピー先とする論理ボリューム対が複数示されたコピー要求を取得する取得部と、
前記コピー要求に基づき、コピー未実行の論理ボリューム対に属する論理ボリュームが同一ストレージ装置内の他の記憶装置よりも多く含まれる記憶装置を、前記外部のストレージ装置内の複数の記憶装置と、内蔵する複数の記憶装置とのそれぞれから優先的に選択し、選択した2つの記憶装置の一方に設けられた論理ボリュームをコピー元、他方に設けられた論理ボリュームをコピー先とするコピー未実行の論理ボリューム対を、コピー実行対象に決定する決定部と、
コピー実行対象に決定された論理ボリューム対に属するコピー元の論理ボリュームに格納されたデータを、該論理ボリューム対に属するコピー先の論理ボリュームにコピーするコピー部と、
を有するストレージ装置。 In a storage device incorporating a plurality of storage devices,
Copy request that shows multiple logical volume pairs with the logical volume provided in each of the multiple storage devices in the external storage device as the copy source and the logical volume provided in each of the multiple internal storage devices as the copy destination An acquisition unit for acquiring
Based on the copy request, a storage device including a larger number of logical volumes belonging to a copy-unexecuted logical volume pair than other storage devices in the same storage device and a plurality of storage devices in the external storage device are built in A logical volume that has not been copied and is preferentially selected from each of a plurality of storage devices to be executed, and a logical volume provided in one of the selected two storage devices is a copy source and a logical volume provided in the other is a copy destination A determination unit that determines a volume pair as a copy execution target;
A copy unit for copying data stored in a copy source logical volume belonging to a logical volume pair determined as a copy execution target to a copy destination logical volume belonging to the logical volume pair;
A storage device.
ことを特徴とする請求項1記載のストレージ装置。 If there is no unexecuted logical volume pair in which one of the selected two storage devices is a copy source and the other is a copy destination, the determination unit does not execute copy of each of the plurality of storage devices in the external storage device Between the plurality of storage devices with respect to the number of logical volumes belonging to the logical volume pair of the plurality of storage devices and the number of logical volumes belonging to the copy-unexecuted logical volume pair of each of the plurality of built-in storage devices The storage device selected from the plurality of storage devices with small variations is canceled, and a storage device different from the storage device from which the selection is canceled is selected from the plurality of storage devices. select,
The storage apparatus according to claim 1.
ことを特徴とする請求項1乃至5のいずれかに記載のストレージ装置。
When the determination unit selects two storage devices, the number of logical volumes that are copy sources or copy destinations in the copy process being executed among the logical volumes in the same storage device is different from the other storage devices. A logical volume that belongs to an unexecuted logical volume pair when the number of storage devices that are smaller than the storage device is selected preferentially and the number of logical volumes that are the copy source or copy destination in the copy process being executed is the same. Preferentially select storage devices that are included in the storage device more than other storage devices in the same storage device,
The storage apparatus according to claim 1, wherein the storage apparatus is a storage apparatus.
前記コピー要求に基づき、コピー未実行の論理ボリューム対に属する論理ボリュームを同一ストレージ装置内の他の記憶装置よりも多く含む記憶装置を、前記第1のストレージ装置内の複数の記憶装置と前記第2のストレージ装置内の複数の記憶装置とのそれぞれから優先的に選択し、選択した2つの記憶装置の一方に設けられた論理ボリュームをコピー元、他方に設けられた論理ボリュームをコピー先とするコピー未実行の論理ボリューム対を、コピー実行対象に決定する決定部と、
コピー実行対象に決定された論理ボリューム対に属するコピー元の論理ボリュームに格納されたデータを、該論理ボリューム対に属するコピー先の論理ボリュームにコピーするコピー部と、
を有する制御装置。 A logical volume pair in which a logical volume provided in each of a plurality of storage devices in the first storage device is a copy source and a logical volume provided in each of the plurality of storage devices in the second storage device is a copy destination An acquisition unit for acquiring a plurality of copy requests;
Based on the copy request, a storage device including a larger number of logical volumes belonging to an unexecuted logical volume pair than other storage devices in the same storage device, and a plurality of storage devices in the first storage device and the first storage device Preferentially selecting from each of the plurality of storage devices in the two storage devices, the logical volume provided in one of the two selected storage devices is the copy source, and the logical volume provided in the other is the copy destination A determination unit that determines a copy-unexecuted logical volume pair as a copy execution target;
A copy unit for copying data stored in a copy source logical volume belonging to a logical volume pair determined as a copy execution target to a copy destination logical volume belonging to the logical volume pair;
Control device.
前記コピー要求に基づき、コピー未実行の論理ボリューム対に属する論理ボリュームを同一ストレージ装置内の他の記憶装置よりも多く含む記憶装置を、前記第1のストレージ装置内の複数の記憶装置と前記第2のストレージ装置内の複数の記憶装置とのそれぞれから優先的に選択し、
選択した2つの記憶装置の一方に設けられた論理ボリュームをコピー元、他方に設けられた論理ボリュームをコピー先とするコピー未実行の論理ボリューム対を、コピー実行対象に決定し、
コピー実行対象に決定された論理ボリューム対に属するコピー元の論理ボリュームに格納されたデータを、該論理ボリューム対に属するコピー先の論理ボリュームにコピーする、
ことを特徴とするデータコピー方法。 A logical volume pair in which a logical volume provided in each of a plurality of storage devices in the first storage device is a copy source and a logical volume provided in each of the plurality of storage devices in the second storage device is a copy destination Get multiple copy requests
Based on the copy request, a storage device including a larger number of logical volumes belonging to an unexecuted logical volume pair than other storage devices in the same storage device, and a plurality of storage devices in the first storage device and the first storage device Preferentially select from each of a plurality of storage devices in the storage device of 2,
A copy-unexecuted logical volume pair whose copy source is the logical volume provided in one of the two selected storage devices and whose copy destination is the logical volume provided in the other is determined as the copy execution target,
Copying the data stored in the copy source logical volume belonging to the logical volume pair determined as the copy execution target to the copy destination logical volume belonging to the logical volume pair;
A data copy method characterized by the above.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011179504A JP5760843B2 (en) | 2011-08-19 | 2011-08-19 | Storage device, control device, and data copy method |
US13/571,676 US9262082B2 (en) | 2011-08-19 | 2012-08-10 | Storage apparatus, control apparatus, and data copying method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011179504A JP5760843B2 (en) | 2011-08-19 | 2011-08-19 | Storage device, control device, and data copy method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2013041528A JP2013041528A (en) | 2013-02-28 |
JP5760843B2 true JP5760843B2 (en) | 2015-08-12 |
Family
ID=47713497
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011179504A Expired - Fee Related JP5760843B2 (en) | 2011-08-19 | 2011-08-19 | Storage device, control device, and data copy method |
Country Status (2)
Country | Link |
---|---|
US (1) | US9262082B2 (en) |
JP (1) | JP5760843B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10229004B2 (en) | 2015-07-31 | 2019-03-12 | International Business Machines Corporation | Data transfer priority levels |
US10565061B1 (en) | 2017-09-28 | 2020-02-18 | EMC IP Holding Company LLC | System and method for analyzing application maximum parallel clone sessions for storage devices |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6055433A (en) * | 1996-09-20 | 2000-04-25 | Northern Telecom Limited | Data processing system and method for balancing a load in a communications network |
US6711649B1 (en) * | 1997-10-06 | 2004-03-23 | Emc Corporation | Load balancing on disk array storage device |
US6061761A (en) * | 1997-10-06 | 2000-05-09 | Emc Corporation | Method for exchanging logical volumes in a disk array storage device in response to statistical analyses and preliminary testing |
JP4835249B2 (en) * | 2006-04-26 | 2011-12-14 | 株式会社日立製作所 | Storage system, remote copy, and management method |
JP4235220B2 (en) | 2006-10-25 | 2009-03-11 | 株式会社日立製作所 | Computer system and data migration method |
JP2008217216A (en) * | 2007-03-01 | 2008-09-18 | Hitachi Ltd | Load distribution method and computer system |
US8086596B2 (en) * | 2008-05-15 | 2011-12-27 | International Business Machines Corporation | Healthcheck of information technology infrastructure based on log data |
JP5233733B2 (en) | 2009-02-20 | 2013-07-10 | 富士通株式会社 | Storage device, storage control device, and storage control program |
CN101931609B (en) * | 2009-06-22 | 2014-07-30 | Sap股份公司 | Layout abiding service-level agreement for multiple-tenant database |
WO2011043114A1 (en) * | 2009-10-07 | 2011-04-14 | インターナショナル・ビジネス・マシーンズ・コーポレーション | Storage system, method, and program, comprising a plurality of storage devices |
-
2011
- 2011-08-19 JP JP2011179504A patent/JP5760843B2/en not_active Expired - Fee Related
-
2012
- 2012-08-10 US US13/571,676 patent/US9262082B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
US9262082B2 (en) | 2016-02-16 |
US20130046946A1 (en) | 2013-02-21 |
JP2013041528A (en) | 2013-02-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5661921B2 (en) | Computer system and management system | |
JP4555703B2 (en) | Area set setting method and network system | |
JP4183443B2 (en) | Data relocation method and apparatus | |
US8151013B2 (en) | Storage system | |
JP5341184B2 (en) | Storage system and storage system operation method | |
JP4235220B2 (en) | Computer system and data migration method | |
JP5668151B2 (en) | Computer system management apparatus and management method | |
US20110320754A1 (en) | Management system for storage system and method for managing storage system | |
US20070011361A1 (en) | Storage management system | |
US20080082748A1 (en) | Data migration method and information processing system | |
WO2013018128A1 (en) | Storage apparatus and method for allocating an internal logical volume associated with an external logical volume to an internal tiered pool by assessing or inferring, the performance of said external logical volume | |
JP2008203937A (en) | Computer system, storage management server, and data migration method | |
JP2011118712A (en) | Program, device and method for managing data | |
WO2014155555A1 (en) | Management system and management program | |
JP2010039986A (en) | Computer system and method for managing backup of data | |
US20100082897A1 (en) | Load sharing method and system for computer system | |
US8650576B2 (en) | Storage apparatus and storage apparatus management method | |
JP2007128293A (en) | Computer system and management computer | |
US9047247B2 (en) | Storage system and data processing method | |
JP6617461B2 (en) | Control device, control program, and control method | |
US20180341423A1 (en) | Storage control device and information processing system | |
JP5760843B2 (en) | Storage device, control device, and data copy method | |
US20120151138A1 (en) | Data arrangement method and data management system | |
CN102754090A (en) | Storage system comprising multiple microprocessors and method for sharing processing in this storage system | |
WO2015121998A1 (en) | Storage system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20140508 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20150216 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20150224 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20150414 |
|
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: 20150512 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20150525 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5760843 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |