JP4788492B2 - Storage device capacity expansion method, program, and storage device - Google Patents
Storage device capacity expansion method, program, and storage device Download PDFInfo
- Publication number
- JP4788492B2 JP4788492B2 JP2006172919A JP2006172919A JP4788492B2 JP 4788492 B2 JP4788492 B2 JP 4788492B2 JP 2006172919 A JP2006172919 A JP 2006172919A JP 2006172919 A JP2006172919 A JP 2006172919A JP 4788492 B2 JP4788492 B2 JP 4788492B2
- Authority
- JP
- Japan
- Prior art keywords
- capacity expansion
- lba
- logical volume
- order
- capacity
- 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
Images
Description
本発明はストレージ装置の容量拡張を行う方法、プログラム、およびストレージ装置に関し、特に、複数の物理ディスクで構成したRAID(Redundent Arrays of Inexpensive Disks)グループ上に複数の論理ボリュームが設定されているストレージ装置の運用中であっても、物理ディスク追加による論理ボリュームの活性容量拡張(Logical Device Expansion、LDE)を可能としたストレージ装置の容量拡張方法、プログラム、およびストレージ装置に関する。 The present invention relates to a storage apparatus capacity expansion method, program, and storage apparatus, and in particular, a storage apparatus in which a plurality of logical volumes are set on a RAID (Redundant Arrays of Inexpensive Disks) group composed of a plurality of physical disks. The present invention relates to a capacity expansion method, a program, and a storage apparatus for a storage apparatus capable of expanding the active capacity (Logical Device Expansion, LDE) of a logical volume by adding a physical disk.
従来、活性状態であっても、物理的にディスクを追加することによりストレージの容量を拡張する方法が開示されている。(特許文献1、2参照)
図12は、特許文献2に記載の、容量拡張前のディスク(ディスク0、1、および2)上の(物理的な)ディスク上のデータ・ブロック、およびパリティ・ブロックの様子(従来例2)、図13は、従来例2における容量拡張後の(物理的な)ディスク上のデータ・ブロック、およびパリティ・ブロックの様子、図14は、従来例2における制約条件を示す。
FIG. 12 shows the state of data blocks and parity blocks on a (physical) disk on a disk (
従来例2においては、レベル5RAIDアレイの記憶容量拡張が、A)アレイの行に、追加された組のディスク(ディスク3、および4)上に存在するパリティ・ブロックなしの新しいデータ・ブロック(D10からD19)を追加するステップと、B)図14に示すごとく、新しいデータ・ブロックを、アレイの各行におけるそれらの内容の排他的論理和が、0になるように初期化するステップとによって行われる。
In Conventional Example 2, the storage capacity expansion of the
RAID構成のストレージ装置では一般に、図15に示す容量拡張例(均等拡張)の左側(LDE前のRAIDグループ)のごとく、物理ディスクP#0、P#1、P#2、P#3上に、複数の論理ボリューム、例えば容量がm0GB(ギガバイト)の論理ボリュームL#0、容量がm1GBの論理ボリュームL#1、容量がm2GBの論理ボリュームL#2、を設定して運用する。
In a RAID storage apparatus, generally, on the physical
このような運用において、物理ディスク#P4を追加することで容量を拡張することが可能である。図15の右側(LDE後のRAIDグループ)の例は、各論理ボリュームの容量を均等に拡張する例を示す。 In such an operation, the capacity can be expanded by adding the physical disk # P4. The example on the right side of FIG. 15 (RAID group after LDE) shows an example of expanding the capacity of each logical volume equally.
一方、図16は、各論理ボリュームの容量は変えずに、新たな論理ボリュームL#3を追加する、容量拡張例(論理ボリューム追加)を、図17は、最後の論理ボリュームのみ(図17の例では論理ボリュームL#2のみ)容量拡張する、容量拡張例(最後の論理ボリューム容量拡張)を示す。
On the other hand, FIG. 16 shows a capacity expansion example (logical volume addition) in which a new logical
図15に示す均等拡張の例では、容量拡張前の各論理ボリュームに割当てられた物理ディスクP#0〜P#3上のロジカルブロックアドレス(LBA)に追加して、各論理ボリュームに物理ディスクP#4のLBAを均等に配分して再配置すれば、データの再配置は各論理ボリュームの領域内で発生するため、各論理ボリュームデータが格納されていても、他の論理ボリュームのデータと干渉することはない。
In the example of the equal expansion shown in FIG. 15, the physical disk P is added to each logical volume by adding to the logical block address (LBA) on the physical
図16に示す論理ボリューム追加の例では、論理ボリュームL#0の処理については図15に示す例の処理と同様である。論理ボリュームL#1の処理では、先頭LBAが、容量拡張前の論理ボリュームL#0の領域に上書きする形で配置されるが、論理ボリュームL#0のデータは既に再配置されているため、データ破壊とはならない。論理ボリュームL#2の処理についても同様である。
In the example of adding a logical volume shown in FIG. 16, the processing of the logical
図17に示す、最後の論理ボリューム容量拡張の例は、途中経過は図16に示す例と同様で、物理ディスクP#4追加によって拡張された容量は、すべて最後の論理ボリュームL#2に追加されるため、データ破壊とはならない。
The example of the last logical volume capacity expansion shown in FIG. 17 is the same as the example shown in FIG. 16 in the middle, and all the capacity expanded by adding the physical
しかし実際の運用においては、図18に示すごとく、物理ディスク上の前側に配置された論理ボリューム、例えば先頭の論理ボリュームの容量を拡張する、あるいは図19に示すごとく、複数の論理ボリュームの容量を拡張する等、様々な要求がある。このような場合においても、各論理ボリュームに格納されているデータを破壊することなく再配置して容量拡張を行う必要がある。 However, in actual operation, as shown in FIG. 18, the capacity of the logical volume arranged on the front side of the physical disk, for example, the capacity of the first logical volume is expanded, or the capacity of a plurality of logical volumes is increased as shown in FIG. There are various requirements such as expansion. Even in such a case, it is necessary to perform capacity expansion by rearranging the data stored in each logical volume without destroying it.
図18に示す例の場合、容量拡張後の容量指定にしたがって単純にLBA順に再配置すると、図20に示すごとく、再配置前の論理ボリュームL#2の領域に、論理ボリュームL#1のデータを上書きする為、論理ボリュームL#2のデータが破壊されてしまう。
In the case of the example shown in FIG. 18, when data is simply rearranged in the LBA order according to the capacity designation after capacity expansion, the data of the logical
特許文献1に記載の方法では、物理的なディスク上のデータ・ブロック、およびパリティ・ブロックを再配置するにあたり、新たなパリティを計算して拡張アレイに書き込むが、物理的なディスク上に設定された論理ボリュームについては考慮されていない。
In the method described in
また、特許文献2に記載の方法では、例えば、A)アレイの行に、追加された組のディスク(ディスク3、および4)上に存在するパリティ・ブロックなしの新しいデータ・ブロック(D10からD19)を追加することで、最初の組のディスク上の元のデータ・ブロック、およびパリティ・ブロックの再書き込みを不要とするが、物理的なディスク上に設定された論理ボリュームについては考慮されていない。
In the method described in
本発明は、複数の物理ディスクで構成したRAIDグループ上に複数の論理ボリュームが設定されたストレージ装置に物理ディスク追加による容量拡張を行う場合に、格納されたデータを破壊することなく、ストレージ装置の容量拡張を行う方法、プログラム、およびストレージ装置を提供することを目的とする。 In the present invention, when capacity expansion is performed by adding a physical disk to a storage apparatus in which a plurality of logical volumes are set on a RAID group configured with a plurality of physical disks, the stored data is not destroyed. It is an object of the present invention to provide a method, a program, and a storage device that perform capacity expansion.
第一の発明は、複数の物理ディスクで構成したRAIDグループ上に複数の論理ボリュームが設定されたストレージ装置に、容量拡張後の各論理ボリュームの容量を指定して物理ディスクを追加し、論理ボリュームの容量を拡張する方法であって、容量拡張後の各論理ボリュームの容量指定を受け付け、先頭のLBAに設定された論理ボリュームから順に容量拡張前後の各論理ボリュームの先頭、および末尾LBAを求めて容量拡張管理テーブルに登録し、容量拡張後に先頭LBA、および末尾LBAが後に移動しない論理ボリュームは順序を「正順」として容量拡張管理テーブルに登録し、容量拡張後に先頭LBAが後に移動せず、末尾LBAが後に移動する論理ボリュームは、容量拡張前後でLBAが変化しない位置で該論理ボリュームを分割し、前半の順序を「正順」、後半の順序を「逆順」として容量拡張管理テーブルに登録し、容量拡張後に先頭LBA、および末尾LBAが後に移動する論理ボリュームは順序を「逆順」として容量拡張管理テーブルに登録し、容量拡張後に先頭LBAが後に移動し、末尾LBAが後に移動しない論理ボリュームは、容量拡張前後でLBAが変化しない位置で該論理ボリュームを分割し、前半を「逆順」、後半を「正順」として容量拡張管理テーブルに登録し、物理ディスクが追加された場合、容量拡張管理テーブルに登録された先頭論理ボリュームの順序を読み取り、順序が「正順」の場合は、該論理ボリュームの容量拡張前の先頭LBAから順に容量拡張後のLBAに移動し、順序が「逆順」の場合はさらに、次の論理ボリュームから「逆順」の論理ボリュームの連続の最後を検索し、該最後の論理ボリュームの容量拡張前末尾LBAから逆順に容量拡張後のLBAに移動し、前記論理ボリュームの移動処理を繰り返して全論理ボリュームについて容量拡張前のLBAから容量拡張後のLBAに移動することを特徴とする。 The first invention adds a physical disk by specifying the capacity of each logical volume after capacity expansion to a storage device in which a plurality of logical volumes are set on a RAID group composed of a plurality of physical disks. The capacity of each logical volume after capacity expansion is received, and the beginning and end LBA of each logical volume before and after capacity expansion are obtained in order from the logical volume set to the top LBA. The logical volume that is registered in the capacity expansion management table and the first LBA and the last LBA after the capacity expansion are not moved later is registered in the capacity expansion management table with the order as “normal order”, and the first LBA does not move after the capacity expansion, The logical volume to which the last LBA moves later is the logical volume at a position where the LBA does not change before and after capacity expansion. Divide and register the first half order as “normal order” and the second half order as “reverse order” in the capacity expansion management table. After the capacity expansion, the logical volume to which the first LBA and the last LBA move later is designated as “reverse order” For logical volumes that are registered in the capacity expansion management table, the first LBA moves backward after capacity expansion, and the last LBA does not move later, the logical volume is divided at a position where the LBA does not change before and after capacity expansion, and the first half is “reverse order”. If the second half is registered in the capacity expansion management table as “normal order” and a physical disk is added, the order of the first logical volume registered in the capacity expansion management table is read. If the order is “normal order”, If the logical volume moves from the first LBA before capacity expansion to the LBA after capacity expansion in order, and the order is “reverse order”, then the logical volume Retrieving the last consecutive logical volume in “reverse order”, moving from the last LBA before capacity expansion of the last logical volume to the LBA after capacity expansion in reverse order, and repeating the logical volume movement process for all logical volumes It is characterized by moving from LBA before capacity expansion to LBA after capacity expansion.
第二の発明は、複数の物理ディスクで構成したRAIDグループ上に複数の論理ボリュームが設定されたストレージ装置を制御するコンピュータに、ストレージ装置の容量拡張後の各論理ボリュームの容量を指定して物理ディスクを追加し、論理ボリュームの容量拡張を実行させるプログラムであって、容量拡張後の各論理ボリュームの容量指定を受け付けるステップと、先頭のLBAに設定された論理ボリュームから順に容量拡張前後の各論理ボリュームの先頭、および末尾LBAを求めて容量拡張管理テーブルに登録するステップと、容量拡張後に先頭LBA、および末尾LBAが後に移動しない論理ボリュームは順序を「正順」として容量拡張管理テーブルに登録するステップと、容量拡張後に先頭LBAが後に移動せず、末尾LBAが後に移動する論理ボリュームは、容量拡張前後でLBAが変化しない位置で該論理ボリュームを分割し、前半の順序を「正順」、後半の順序を「逆順」として容量拡張管理テーブルに登録するステップと、容量拡張後に先頭LBA、および末尾LBAが後に移動する論理ボリュームは順序を「逆順」として容量拡張管理テーブルに登録するステップと、容量拡張後に先頭LBAが後に移動し、末尾LBAが後に移動しない論理ボリュームは、容量拡張前後でLBAが変化しない位置で該論理ボリュームを分割し、前半を「逆順」、後半を「正順」として容量拡張管理テーブルに登録するステップと、物理ディスクが追加された場合、容量拡張管理テーブルに登録された先頭論理ボリュームの順序を読み取るステップと、順序が「正順」の場合は、該論理ボリュームの容量拡張前の先頭LBAから順に容量拡張後のLBAに移動させるステップと、順序が「逆順」の場合はさらに、次の論理ボリュームから「逆順」の論理ボリュームの連続の最後を検索し、該最後の論理ボリュームの容量拡張前末尾LBAから逆順に容量拡張後のLBAに移動させるステップと、前記論理ボリュームの移動処理を繰り返して全論理ボリュームについて容量拡張前のLBAから容量拡張後のLBAに移動させるステップとを有することを特徴とする特徴とする。 According to a second aspect of the invention, a computer that controls a storage apparatus in which a plurality of logical volumes are set on a RAID group composed of a plurality of physical disks is designated by specifying the capacity of each logical volume after the capacity expansion of the storage apparatus. A program for adding a disk and executing capacity expansion of a logical volume, the step of accepting the capacity specification of each logical volume after capacity expansion, and the logical volumes before and after capacity expansion in order from the logical volume set in the first LBA The step of obtaining the head and tail LBAs of the volume and registering them in the capacity expansion management table, and the logical volumes to which the head LBA and tail LBA do not move after capacity expansion are registered in the capacity expansion management table as “normal order”. Step and the first LBA does not move after capacity expansion, the last LBA A logical volume to be moved later is divided into logical volumes at positions where the LBA does not change before and after capacity expansion, and is registered in the capacity expansion management table with the first order as “normal” and the second order as “reverse”. The logical volume to which the first LBA and the last LBA move after the capacity expansion is registered in the capacity expansion management table as “reverse order”, and the logical volume in which the first LBA moves later and the last LBA does not move after capacity expansion. When a volume is added to the volume expansion management table by dividing the logical volume at a position where the LBA does not change before and after capacity expansion, registering the first half as "reverse order" and the second half as "normal order", and a physical disk Read the order of the first logical volume registered in the capacity expansion management table, and if the order is “Normal” Is the step of moving from the first LBA before capacity expansion of the logical volume to the LBA after capacity expansion, and if the order is “reverse order”, the logical volume from the next logical volume to the end of the “reverse order” logical volume And the process of moving the last logical volume from the last LBA before capacity expansion to the LBA after capacity expansion in reverse order, and repeating the logical volume movement processing to expand the capacity from the LBA before capacity expansion for all logical volumes And a step of moving to a later LBA.
第三の発明は、CPUと、メモリと、RAIDグループを構成する物理ディスク群と、追加する物理ディスクを収容する領域を備えたストレージ装置であって、メモリには、少なくともCPUに容量拡張管理テーブル作成を実行させるプログラムと、CPUに容量拡張処理を実行させるプログラムと、容量拡張管理テーブルとを保持し、容量拡張管理テーブル作成プログラムは、容量拡張後の各論理ボリュームの容量指定を受け付けるステップと、先頭のLBAに設定された論理ボリュームから順に容量拡張前後の各論理ボリュームの先頭、および末尾LBAを求めて容量拡張管理テーブルに登録するステップと、容量拡張後に先頭LBA、および末尾LBAが後に移動しない論理ボリュームは順序を「正順」として容量拡張管理テーブルに登録するステップと、容量拡張後に先頭LBAが後に移動せず、末尾LBAが後に移動する論理ボリュームは、容量拡張前後でLBAが変化しない位置で該論理ボリュームを分割し、前半の順序を「正順」、後半の順序を「逆順」として容量拡張管理テーブルに登録するステップと、容量拡張後に先頭LBA、および末尾LBAが後に移動する論理ボリュームは順序を「逆順」として容量拡張管理テーブルに登録するステップと、容量拡張後に先頭LBAが後に移動し、末尾LBAが後に移動しない論理ボリュームは、容量拡張前後でLBAが変化しない位置で該論理ボリュームを分割し、前半を「逆順」、後半を「正順」として容量拡張管理テーブルに登録するステップとを有し、容量拡張処理プログラムは、物理ディスクが追加された場合、容量拡張管理テーブルに登録された先頭論理ボリュームの順序を読み取るステップと、順序が「正順」の場合は、該論理ボリュームの容量拡張前の先頭LBAから順に容量拡張後のLBAに移動させるステップと、順序が「逆順」の場合はさらに、次の論理ボリュームから「逆順」の論理ボリュームの連続の最後を検索し、該最後の論理ボリュームの容量拡張前末尾LBAから逆順に容量拡張後のLBAに移動させるステップと、前記論理ボリュームの移動処理を繰り返して全論理ボリュームについて容量拡張前のLBAから容量拡張後のLBAに移動させるステップとを有することを特徴とする。 A third invention is a storage apparatus comprising a CPU, a memory, a physical disk group constituting a RAID group, and an area for accommodating a physical disk to be added. The memory has at least a capacity expansion management table in the CPU. A program for executing creation, a program for causing the CPU to execute capacity expansion processing, and a capacity expansion management table, wherein the capacity expansion management table creation program receives a capacity designation of each logical volume after capacity expansion; Obtaining the beginning and end LBA of each logical volume before and after capacity expansion and registering them in the capacity expansion management table in order from the logical volume set as the first LBA, and the beginning LBA and end LBA do not move after capacity expansion The logical volume is placed in the capacity expansion management table with the order of "normal order". For the logical volume in which the first LBA does not move after the capacity expansion and the last LBA moves after the capacity expansion, the logical volume is divided at a position where the LBA does not change before and after the capacity expansion. ”, A step of registering the latter half of the order in the capacity expansion management table as“ reverse order ”, and a step of registering the first LBA and the logical volume to which the end LBA moves after the capacity expansion as“ reverse order ”in the capacity expansion management table. For the logical volume in which the first LBA moves after the capacity expansion and the last LBA does not move later, the logical volume is divided at a position where the LBA does not change before and after the capacity expansion, and the first half is “reverse order” and the second half is “normal order”. To the capacity expansion management table, and the capacity expansion processing program A step of reading the order of the first logical volume registered in the capacity expansion management table; and a step of moving to the LBA after capacity expansion in order from the first LBA before capacity expansion of the logical volume if the order is “normal order”. If the order is "reverse order", the last of the consecutive logical volumes in the "reverse order" is searched from the next logical volume, and the LBA after capacity expansion in reverse order from the last LBA before capacity expansion of the last logical volume. And moving the logical volume to the LBA after capacity expansion from the LBA before capacity expansion for all logical volumes.
本発明により、複数の物理ディスクで構成したRAIDグループ上に複数の論理ボリュームが設定されたストレージ装置の運用中であっても、ストレージ装置に物理ディスクの追加による容量拡張を行うことが可能となる。 According to the present invention, even when a storage apparatus in which a plurality of logical volumes are set on a RAID group composed of a plurality of physical disks is in operation, the capacity can be expanded by adding a physical disk to the storage apparatus. .
図1に、容量拡張に先立ち指定される、容量拡張後の各論理ボリュームの容量を基に容量拡張管理テーブルを作成するフロー例を示す。 FIG. 1 shows an example of a flow for creating a capacity expansion management table based on the capacity of each logical volume after capacity expansion designated prior to capacity expansion.
ストレージ装置は、図1のステップS1で、LDE後の各論理ボリュームの容量指定を受け付ける。 In step S1 of FIG. 1, the storage apparatus accepts capacity designation of each logical volume after LDE.
ステップS2で、RAIDグループ上の論理ボリュームに容量拡張管理テーブル未作成のボリュームがあるか確認し、未作成のボリュームが無い場合は処理を終了し、未作成のボリュームがある場合はステップS3に進む。 In step S2, it is confirmed whether or not there is a volume that has not been created in the capacity expansion management table in the logical volume on the RAID group. If there is no volume that has not been created, the process is terminated. .
ステップS3で当該論理ボリュームの容量拡張前後の構成での先頭、および末尾LBAを計算し、ステップS4で容量拡張後に先頭LBAが後に移動するか確認し、後に移動する場合はステップS8に進み、後に移動しない場合はステップS5に進む。 In step S3, the beginning and end LBAs of the logical volume before and after capacity expansion are calculated. In step S4, it is confirmed whether the head LBA moves later after capacity expansion. If it moves later, the process proceeds to step S8. When not moving, it progresses to step S5.
ステップS5で容量拡張後にデータ末尾LBAが後に移動するか確認し、後に移動しない場合は順序を「正順」とし、ステップS11に進み、後に移動する場合はステップS7に進み、容量拡張前後でLBAが変化しない位置を求め、当該論理ボリュームを当該位置で分割し、前半の順序を「正順」とし、後半の順序を「逆順」としステップS11に進む。 In step S5, it is confirmed whether the data end LBA moves after capacity expansion. If not, the order is set to “normal order”. The process proceeds to step S11, and if it moves later, the process proceeds to step S7. Is obtained, the logical volume is divided at the position, the first half order is “normal order”, and the second half order is “reverse order”, and the process proceeds to step S11.
ステップS8で容量拡張後にデータ末尾LBAが後に移動するか確認し、後に移動する場合は順序を「逆順」とし、ステップS11に進み、後に移動しない場合はステップS10に進み、容量拡張前後でLBAが変化しない位置を求め、当該論理ボリュームを当該位置で分割し、前半の順序を「逆順」とし、後半の順序を「正順」としステップS11に進む。 In step S8, it is confirmed whether or not the data end LBA moves later after capacity expansion. If it moves later, the order is "reverse order", and the process proceeds to step S11. If it does not move later, the process proceeds to step S10. A position that does not change is obtained, the logical volume is divided at the position, the first order is set to “reverse order”, and the second order is set to “normal order”, and the process proceeds to step S11.
ステップS11では、当該論理ボリュームの先頭LBA、データ末尾LBA、および順序を容量拡張管理テーブルに登録し、ステップS2に戻る。 In step S11, the beginning LBA, data end LBA, and order of the logical volume are registered in the capacity expansion management table, and the process returns to step S2.
図2は、作成された容量拡張管理テーブルに従って容量拡張処理を行うフロー例を示す。ステップS21で物理ディスクの追加を確認するとステップS22に進み、容量拡張管理テーブルに未処理の論理ボリュームがあるかを確認し、未処理の論理ボリュームが無い場合には終了し、未処理の論理ボリュームがある場合はステップS23に進む。 FIG. 2 shows an example of a flow for performing capacity expansion processing according to the generated capacity expansion management table. If the addition of the physical disk is confirmed in step S21, the process proceeds to step S22, where it is confirmed whether there is an unprocessed logical volume in the capacity expansion management table. If there is no unprocessed logical volume, the process ends. If there is, the process proceeds to step S23.
ステップS23で、容量拡張管理テーブル上の未処理論理ボリュームのうち、先頭にある論理ボリュームの順序を確認し、順序が「正順」でない場合はステップS25に進み、順序が「正順」の場合はステップS24に進み、当該論理ボリュームを先頭から順に容量拡張前のLBAから容量拡張後のLBAに再配置し、ステップS22に戻る。 In step S23, the order of the first logical volume among the unprocessed logical volumes on the capacity expansion management table is confirmed. If the order is not “normal order”, the process proceeds to step S25, and if the order is “normal order”. Advances to step S24, the logical volumes are rearranged in order from the LBA before capacity expansion to the LBA after capacity expansion from the top, and the process returns to step S22.
ステップS25では、次の論理ボリュームの順序を確認し、「逆順」の場合は更に次の論理ボリュームの順序を確認し、「逆順」でない場合は、ステップS26に進み、当該論理ボリュームから「逆順」の先頭論理ボリュームまで、末尾から逆順に容量拡張前のLBAから容量拡張後のLBAに再配置し、ステップS22にもどる。 In step S25, the order of the next logical volume is confirmed. If it is “reverse order”, the order of the next logical volume is further confirmed. If it is not “reverse order”, the process proceeds to step S26. Are rearranged from the LBA before capacity expansion to the LBA after capacity expansion up to the first logical volume in reverse order from the end, and the process returns to step S22.
本発明によるストレージ装置例を図3に示す。本発明によるストレージ装置は、少なくともストレージ装置の制御を行うCPU1と、メモリ2と、RAIDグループを構成する物理ディスク群6〜9と、追加する物理ディスクを収容する領域10を備え、メモリ2には、少なくともCPU1に容量拡張管理テーブルの作成を実行させるプログラム3、CPU1に容量拡張処理を実行させるプログラム4、容量拡張管理テーブル5を保持する。
An example of a storage apparatus according to the present invention is shown in FIG. The storage apparatus according to the present invention includes at least a
図4は、各ディスクの容量が、LBA単位で1800(16進708)の物理ディスクP#0、P#1、P#2、P#3で構成するRAIDグループ上に、各論理ボリュームの容量が、LBA単位で2400(16進960)の論理ボリュームL#0、L#1、L#2が設定されているストレージ装置に、物理ディスク#0と容量が等しい物理ディスクP#4を追加し、論理ボリュームL#1、および論理ボリュームL#2の容量を拡張する実施例1を示す。
FIG. 4 shows the capacity of each logical volume on a RAID group composed of physical
ストレージ装置が、図5に示す容量拡張管理テーブルの容量拡張後の各倫理ボリュームの容量指定を受け付けると、図1に示す容量拡張管理テーブル作成を開始する。 When the storage apparatus accepts the capacity designation of each ethical volume after capacity expansion in the capacity expansion management table shown in FIG. 5, creation of the capacity expansion management table shown in FIG. 1 is started.
実施例1の場合、論理ボリュームL#0は容量が変わらないため、P#4の追加によりデータ末尾LBAは599(16進257)から479(16進1DF)となり、処理の順序は「正順」となる。
In the case of the first embodiment, since the capacity of the logical
論理ボリュームL#1は、先頭のLBAが480(16進1E0)、データ末尾のLBAが959(16進3BF)となり、処理の順序は「正順」となる。
In the logical
しかし、論理ボリュームL#1は容量が拡張され、末尾のLBAが1259(16進4EB)となる。
However, the capacity of the logical
このため、論理ボリュームL#2は、容量拡張後の先頭LBAが1260(16進4EC)、データ末尾LBAが1739(16進6CB)となる。すなわち、論理ボリュームL#2は、容量拡張前後で先頭LBAが後に移動し、データ末尾のLBAが前に移動するため、容量拡張前後でLBAが移動しない位置、この場合はLBAが1500(16進5DB)で分割し、前半を「L#2−1」とし、「逆順」後半を「L#2−2」とし、「正順」として容量拡張管理テーブルに登録する。
Therefore, in the logical
容量拡張管理テーブルが完成すると、ストレージ装置は図2に示す容量拡張処理フローを開始する。物理ディスクが追加されると、図5に示す容量拡張管理テーブルの処理順序にしたがってデータの再配置を行う。 When the capacity expansion management table is completed, the storage apparatus starts the capacity expansion process flow shown in FIG. When a physical disk is added, data rearrangement is performed according to the processing order of the capacity expansion management table shown in FIG.
図6は、実施例1の活性容量拡張結果を示し、容量拡張前後での各物理ディスクと、各論理ボリュームの配置、および処理の順序を示す。 FIG. 6 shows the active capacity expansion result of the first embodiment, and shows the arrangement of each physical disk, each logical volume, and the order of processing before and after capacity expansion.
図7は、実施例1で用いた容量拡張前のストレージ装置に本発明を適用し、図18、図20に示したデータ破壊を起こす例(先頭論理ボリュームの容量拡張例)を処理した例を示し、実施例2で作成される容量拡張管理テーブルを図8に示す。 FIG. 7 shows an example in which the present invention is applied to the storage device before capacity expansion used in the first embodiment and the example of causing data corruption (capacity expansion example of the first logical volume) shown in FIGS. 18 and 20 is processed. A capacity expansion management table created in the second embodiment is shown in FIG.
この場合、論理ボリュームL#0のデータ末尾LBAは、図5に示す容量拡張管理テーブルと同様で、599(16進257)から480(16進1DF)となり、処理の順序は「正順」となる。
In this case, the data end LBA of the logical
論理ボリュームL#1は、先頭のLBAが840(16進348)、データ末尾のLBAが1319(16進527)となり、処理の順序は「逆順」となる。
In the logical
論理ボリュームL#2は、先頭のLBAが1320(16進528)、データ末尾のLBAが1800(16進707)となり、処理の順序は「逆順」となる。
In logical
この例では、論理ボリュームの分割は起こらない。 In this example, the logical volume is not divided.
容量拡張管理テーブルが完成すると、ストレージ装置は図2に示す容量拡張処理フローを開始する。物理ディスクが追加されると、図8に示す容量拡張管理テーブルの処理順序にしたがってデータの再配置を行う。 When the capacity expansion management table is completed, the storage apparatus starts the capacity expansion process flow shown in FIG. When a physical disk is added, data rearrangement is performed according to the processing order of the capacity expansion management table shown in FIG.
図9は、実施例2の容量拡張結果を示し、容量拡張前後での各物理ディスクと、各論理ボリュームの配置、および処理の順序を示す。 FIG. 9 shows the capacity expansion result of the second embodiment, and shows the arrangement of each physical disk, each logical volume, and the processing order before and after capacity expansion.
1 CPU
2 メモリ
3 容量拡張管理テーブル作成プログラム
4 容量拡張処理プログラム
5 容量拡張管理テーブル
6、7、8、9 RAIDグループを構成するディスク群
10 追加する物理ディスクを収容する領域
1 CPU
2
Claims (3)
容量拡張後の各論理ボリュームの容量指定を受け付け、
先頭のLBAに設定された論理ボリュームから順に容量拡張前後の各論理ボリュームの先頭、および末尾LBAを求めて容量拡張管理テーブルに登録し、
容量拡張後に先頭LBA、および末尾LBAが後に移動しない論理ボリュームは順序を「正順」として容量拡張管理テーブルに登録し、
容量拡張後に先頭LBAが後に移動せず、末尾LBAが後に移動する論理ボリュームは、容量拡張前後でLBAが変化しない位置で該論理ボリュームを分割し、前半の順序を「正順」、後半の順序を「逆順」として容量拡張管理テーブルに登録し、
容量拡張後に先頭LBA、および末尾LBAが後に移動する論理ボリュームは順序を「逆順」として容量拡張管理テーブルに登録し、
容量拡張後に先頭LBAが後に移動し、末尾LBAが後に移動しない論理ボリュームは、容量拡張前後でLBAが変化しない位置で該論理ボリュームを分割し、前半を「逆順」、後半を「正順」として容量拡張管理テーブルに登録し、
物理ディスクが追加された場合、容量拡張管理テーブルに登録された先頭論理ボリュームの順序を読み取り、
順序が「正順」の場合は、該論理ボリュームの容量拡張前の先頭LBAから順に容量拡張後のLBAに移動し、
順序が「逆順」の場合はさらに、次の論理ボリュームから「逆順」の論理ボリュームの連続の最後を検索し、該最後の論理ボリュームの容量拡張前末尾LBAから逆順に容量拡張後のLBAに移動し、
前記論理ボリュームの移動処理を繰り返して全論理ボリュームについて容量拡張前のLBAから容量拡張後のLBAに移動することを特徴とする、論理ボリューム容量拡張方法。 A method for expanding the capacity of a logical volume by specifying the capacity of each logical volume after capacity expansion and adding a physical disk to a storage device in which a plurality of logical volumes are set on a RAID group composed of a plurality of physical disks Because
Accept capacity specification of each logical volume after capacity expansion,
Obtain the beginning and end LBA of each logical volume before and after capacity expansion in order from the logical volume set in the first LBA, and register it in the capacity expansion management table.
For the logical volume whose first LBA and last LBA do not move after capacity expansion, register the order as “normal” in the capacity expansion management table.
For logical volumes to which the first LBA does not move after capacity expansion and the last LBA move later, the logical volume is divided at a position where the LBA does not change before and after capacity expansion, and the first half order is “normal order” and the second half order. Is registered in the capacity expansion management table as "reverse order"
The logical volume to which the first LBA and the last LBA move later after capacity expansion is registered in the capacity expansion management table as “reverse order”.
For logical volumes where the first LBA moves after capacity expansion and the last LBA does not move later, the logical volume is divided at a position where the LBA does not change before and after capacity expansion, with the first half as “reverse order” and the second half as “normal order”. Register in the capacity expansion management table,
When a physical disk is added, read the order of the first logical volume registered in the capacity expansion management table,
When the order is “normal order”, the logical volume is moved from the first LBA before capacity expansion to the LBA after capacity expansion in order,
When the order is “reverse order”, the end of the consecutive logical volumes in the “reverse order” is searched from the next logical volume and moved to the LBA after capacity expansion in reverse order from the last LBA before capacity expansion of the last logical volume. And
A logical volume capacity expansion method, wherein the logical volume movement process is repeated to move all logical volumes from an LBA before capacity expansion to an LBA after capacity expansion.
容量拡張後の各論理ボリュームの容量指定を受け付けるステップと、
先頭のLBAに設定された論理ボリュームから順に容量拡張前後の各論理ボリュームの先頭、および末尾LBAを求めて容量拡張管理テーブルに登録するステップと、
容量拡張後に先頭LBA、および末尾LBAが後に移動しない論理ボリュームは順序を「正順」として容量拡張管理テーブルに登録するステップと、
容量拡張後に先頭LBAが後に移動せず、末尾LBAが後に移動する論理ボリュームは、容量拡張前後でLBAが変化しない位置で該論理ボリュームを分割し、前半の順序を「正順」、後半の順序を「逆順」として容量拡張管理テーブルに登録するステップと、
容量拡張後に先頭LBA、および末尾LBAが後に移動する論理ボリュームは順序を「逆順」として容量拡張管理テーブルに登録するステップと、
容量拡張後に先頭LBAが後に移動し、末尾LBAが後に移動しない論理ボリュームは、容量拡張前後でLBAが変化しない位置で該論理ボリュームを分割し、前半を「逆順」、後半を「正順」として容量拡張管理テーブルに登録するステップと、
物理ディスクが追加された場合、容量拡張管理テーブルに登録された先頭論理ボリュームの順序を読み取るステップと、
順序が「正順」の場合は、該論理ボリュームの容量拡張前の先頭LBAから順に容量拡張後のLBAに移動させるステップと、
順序が「逆順」の場合はさらに、次の論理ボリュームから「逆順」の論理ボリュームの連続の最後を検索し、該最後の論理ボリュームの容量拡張前末尾LBAから逆順に容量拡張後のLBAに移動させるステップと、
前記論理ボリュームの移動処理を繰り返して全論理ボリュームについて容量拡張前のLBAから容量拡張後のLBAに移動させるステップとを有することを特徴とする、論理ボリューム容量拡張プログラム。 Add a physical disk by specifying the capacity of each logical volume after expanding the capacity of the storage device to a computer that controls a storage device in which multiple logical volumes are set on a RAID group consisting of multiple physical disks. A program for expanding the capacity of a volume,
Receiving a capacity specification of each logical volume after capacity expansion;
Obtaining the head and tail LBA of each logical volume before and after capacity expansion in order from the logical volume set in the head LBA and registering it in the capacity expansion management table;
A logical volume in which the first LBA and the last LBA are not moved after the capacity expansion is registered in the capacity expansion management table in the order of “normal order”;
For logical volumes to which the first LBA does not move after capacity expansion and the last LBA move later, the logical volume is divided at a position where the LBA does not change before and after capacity expansion, and the first half order is “normal order” and the second half order. Registering in the capacity expansion management table as "reverse order",
A logical volume to which the first LBA and the last LBA move later after capacity expansion is registered in the capacity expansion management table as “reverse order”;
For logical volumes where the first LBA moves after capacity expansion and the last LBA does not move later, the logical volume is divided at a position where the LBA does not change before and after capacity expansion, with the first half as “reverse order” and the second half as “normal order”. A step of registering in the capacity expansion management table;
A step of reading the order of the first logical volume registered in the capacity expansion management table when a physical disk is added;
When the order is “normal order”, the logical volume is moved from the first LBA before capacity expansion to the LBA after capacity expansion in order,
When the order is “reverse order”, the end of the consecutive logical volumes in the “reverse order” is searched from the next logical volume and moved to the LBA after capacity expansion in reverse order from the last LBA before capacity expansion of the last logical volume. Step to
A logical volume capacity expansion program comprising: repeating the logical volume movement process to move all logical volumes from an LBA before capacity expansion to an LBA after capacity expansion.
メモリには、少なくともCPUに容量拡張管理テーブル作成を実行させるプログラムと、CPUに容量拡張処理を実行させるプログラムと、容量拡張管理テーブルとを保持し、
容量拡張管理テーブル作成プログラムは、
容量拡張後の各論理ボリュームの容量指定を受け付けるステップと、
先頭のLBAに設定された論理ボリュームから順に容量拡張前後の各論理ボリュームの先頭、および末尾LBAを求めて容量拡張管理テーブルに登録するステップと、
容量拡張後に先頭LBA、および末尾LBAが後に移動しない論理ボリュームは順序を「正順」として容量拡張管理テーブルに登録するステップと、
容量拡張後に先頭LBAが後に移動せず、末尾LBAが後に移動する論理ボリュームは、容量拡張前後でLBAが変化しない位置で該論理ボリュームを分割し、前半の順序を「正順」、後半の順序を「逆順」として容量拡張管理テーブルに登録するステップと、
容量拡張後に先頭LBA、および末尾LBAが後に移動する論理ボリュームは順序を「逆順」として容量拡張管理テーブルに登録するステップと、
容量拡張後に先頭LBAが後に移動し、末尾LBAが後に移動しない論理ボリュームは、容量拡張前後でLBAが変化しない位置で該論理ボリュームを分割し、前半を「逆順」、後半を「正順」として容量拡張管理テーブルに登録するステップとを有し、
容量拡張処理プログラムは、
物理ディスクが追加された場合、容量拡張管理テーブルに登録された先頭論理ボリュームの順序を読み取るステップと、
順序が「正順」の場合は、該論理ボリュームの容量拡張前の先頭LBAから順に容量拡張後のLBAに移動させるステップと、
順序が「逆順」の場合はさらに、次の論理ボリュームから「逆順」の論理ボリュームの連続の最後を検索し、該最後の論理ボリュームの容量拡張前末尾LBAから逆順に容量拡張後のLBAに移動させるステップと、
前記論理ボリュームの移動処理を繰り返して全論理ボリュームについて容量拡張前のLBAから容量拡張後のLBAに移動させるステップとを有することを特徴とする、ストレージ装置。 A storage device comprising a CPU, memory, a group of physical disks constituting a RAID group, and an area for accommodating additional physical disks,
The memory holds at least a program for causing the CPU to create a capacity expansion management table, a program for causing the CPU to perform capacity expansion processing, and a capacity expansion management table.
Capacity expansion management table creation program
Receiving a capacity specification of each logical volume after capacity expansion;
Obtaining the head and tail LBA of each logical volume before and after capacity expansion in order from the logical volume set in the head LBA and registering it in the capacity expansion management table;
A logical volume in which the first LBA and the last LBA are not moved after the capacity expansion is registered in the capacity expansion management table in the order of “normal order”;
For logical volumes to which the first LBA does not move after capacity expansion and the last LBA move later, the logical volume is divided at a position where the LBA does not change before and after capacity expansion, and the first half order is “normal order” and the second half order. Registering in the capacity expansion management table as "reverse order",
A logical volume to which the first LBA and the last LBA move later after capacity expansion is registered in the capacity expansion management table as “reverse order”;
For logical volumes where the first LBA moves after capacity expansion and the last LBA does not move later, the logical volume is divided at a position where the LBA does not change before and after capacity expansion, with the first half as “reverse order” and the second half as “normal order”. Registering in the capacity expansion management table,
Capacity expansion processing program
A step of reading the order of the first logical volume registered in the capacity expansion management table when a physical disk is added;
When the order is “normal order”, the logical volume is moved from the first LBA before capacity expansion to the LBA after capacity expansion in order,
When the order is “reverse order”, the end of the consecutive logical volumes in the “reverse order” is searched from the next logical volume and moved to the LBA after capacity expansion in reverse order from the last LBA before capacity expansion of the last logical volume. Step to
And a step of repeating the logical volume migration processing to migrate all logical volumes from an LBA before capacity expansion to an LBA after capacity expansion.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006172919A JP4788492B2 (en) | 2006-06-22 | 2006-06-22 | Storage device capacity expansion method, program, and storage device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006172919A JP4788492B2 (en) | 2006-06-22 | 2006-06-22 | Storage device capacity expansion method, program, and storage device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2008003857A JP2008003857A (en) | 2008-01-10 |
| JP4788492B2 true JP4788492B2 (en) | 2011-10-05 |
Family
ID=39008181
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2006172919A Expired - Fee Related JP4788492B2 (en) | 2006-06-22 | 2006-06-22 | Storage device capacity expansion method, program, and storage device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4788492B2 (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4792490B2 (en) | 2008-09-08 | 2011-10-12 | 株式会社日立製作所 | Storage controller and RAID group expansion method |
| JP5640463B2 (en) * | 2010-05-31 | 2014-12-17 | 富士通株式会社 | Storage device, storage device control program, and storage device control method |
| CN107203329B (en) * | 2016-03-17 | 2020-12-01 | 伊姆西Ip控股有限责任公司 | Storage management method and equipment |
| CN108037894B (en) * | 2017-12-05 | 2021-07-20 | 浙江大华技术股份有限公司 | Disk space management method and device |
| JP7054001B2 (en) | 2018-06-29 | 2022-04-13 | 富士通株式会社 | Information processing system, management device and control method |
| CN115599313B (en) * | 2022-12-05 | 2023-03-17 | 苏州浪潮智能科技有限公司 | Disk array capacity expansion method, system, storage medium and equipment |
-
2006
- 2006-06-22 JP JP2006172919A patent/JP4788492B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2008003857A (en) | 2008-01-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5301670B2 (en) | Consolidating write traffic to the data store | |
| JP5923964B2 (en) | Disk array device, control device, and program | |
| US20100293348A1 (en) | Apparatus and method of rearranging data and nonvolitile data storage apparatus | |
| CN102880428A (en) | Distributed RAID (redundant array of independent disks) establishing method and device | |
| KR20130030640A (en) | Method of storing data to storage media, and data storage device including the same | |
| TWI601148B (en) | Method for selecting bad columns and data storage device with? bad column summary table | |
| KR20110093035A (en) | Flash address translation device and method | |
| JP2020038649A (en) | Block device interface using nonvolatile pinned memory | |
| JP4460967B2 (en) | MEMORY CARD, NONVOLATILE SEMICONDUCTOR MEMORY, AND SEMICONDUCTOR MEMORY CONTROL METHOD | |
| CN112435157A (en) | Graphics processing system including different types of memory devices and method of operating the same | |
| CN102567214A (en) | Method for quickly initializing bitmap page management by RAID5 | |
| JP4441929B2 (en) | Disk device and hot swap method | |
| JP4788492B2 (en) | Storage device capacity expansion method, program, and storage device | |
| JP6841074B2 (en) | Information processing equipment, data compression method and data compression program | |
| US8145839B2 (en) | Raid—5 controller and accessing method with data stream distribution and aggregation operations based on the primitive data access block of storage devices | |
| CN106155572A (en) | Data storage device and data access method | |
| JP6052288B2 (en) | Disk array control device, disk array control method, and disk array control program | |
| CN100367181C (en) | Hard disk re-identification system in redundant array of inexpensive disks and method thereof | |
| JP7407230B2 (en) | ecc parity bias for key value data storage devices | |
| JP4040797B2 (en) | Disk control device and recording medium | |
| US11544005B2 (en) | Storage system and processing method | |
| JP4838054B2 (en) | Disk array device and load balancing method thereof | |
| JP6556980B2 (en) | Storage control device, storage control method, and storage control program | |
| JP2006252165A (en) | Disk array device and computer system | |
| JP4794357B2 (en) | RAID level conversion method and RAID apparatus in RAID apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090309 |
|
| 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: 20110621 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110704 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140729 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4788492 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |