JP4799277B2 - Capacity expansion method in RAID device and RAID device - Google Patents

Capacity expansion method in RAID device and RAID device Download PDF

Info

Publication number
JP4799277B2
JP4799277B2 JP2006151176A JP2006151176A JP4799277B2 JP 4799277 B2 JP4799277 B2 JP 4799277B2 JP 2006151176 A JP2006151176 A JP 2006151176A JP 2006151176 A JP2006151176 A JP 2006151176A JP 4799277 B2 JP4799277 B2 JP 4799277B2
Authority
JP
Japan
Prior art keywords
disk
group
raid
disks
groups
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.)
Active
Application number
JP2006151176A
Other languages
Japanese (ja)
Other versions
JP2007323251A (en
Inventor
秀治郎 大黒谷
実希夫 伊藤
和彦 池内
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2006151176A priority Critical patent/JP4799277B2/en
Publication of JP2007323251A publication Critical patent/JP2007323251A/en
Application granted granted Critical
Publication of JP4799277B2 publication Critical patent/JP4799277B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は複数台の記憶装置を用いてデータを冗長管理するディスクアレイ装置[以下、RAID(Redundant Arrays of Inexpensive Disks )装置という]における容量拡張方法および容量拡張手段を備えたRAID装置に関する。   The present invention relates to a capacity expansion method and a RAID apparatus provided with capacity expansion means in a disk array apparatus [hereinafter referred to as a RAID (Redundant Array of Inexpensive Disks) apparatus) that manages data redundantly using a plurality of storage devices.

RAID装置は、保存データの信頼性や、装置の信頼性を高めるため冗長構成を採用しており、RAID0、RAID1、RAID0+1、RAID2、RAID3、RAID4、RAID5などが知られている。
例えばRAID0はデータをブロック単位で分散して格納するストライピング構成を用いたものであり、RAID1は複数のディスクに同一のデータを格納するミラーリング構成を用いたものである。このストライピング構成とミラーリング構成を併用し、ストライピング構成のディスク群からなるプライマリディスク群とセカンダリディスク群の間にミラーリング関係を持たせたRAIDグループを、ここではRAID0+1という。
上記冗長度はユーザのシステム構成等に基づき設定するが、システム運用開始後、冗長度や容量、RAIDレベルを変更したいと場合も生ずる。
システムを停止すれば上記冗長度等の変更は容易に行うことが可能であるが、システムを停止することなく、活性状態(ホストからのI/Oを受け付けながら)で、冗長度や容量、RAIDレベルを変更する技術が従来から種々提案されている(例えば特許文献1、特許文献2等参照)。
A RAID device employs a redundant configuration in order to increase the reliability of stored data and the reliability of the device, and RAID0, RAID1, RAID0 + 1, RAID2, RAID3, RAID4, RAID5, and the like are known.
For example, RAID 0 uses a striping configuration in which data is distributed and stored in units of blocks, and RAID 1 uses a mirroring configuration in which the same data is stored on a plurality of disks. A RAID group that uses both the striping configuration and the mirroring configuration and has a mirroring relationship between the primary disk group and the secondary disk group that are formed of the striped configuration disk group is referred to herein as RAID 0 + 1.
The redundancy is set based on the user's system configuration and the like. However, there are cases where it is desired to change the redundancy, capacity, and RAID level after the system operation is started.
If the system is stopped, it is possible to easily change the redundancy and the like. However, without stopping the system, the redundancy, capacity, and RAID can be maintained in an active state (while receiving I / O from the host). Various techniques for changing the level have been proposed in the past (see, for example, Patent Document 1 and Patent Document 2).

上記のように、主に活性状態で既に存在するRAIDグループにディスクを追加することで、RAIDグループとしての容量を拡張したり、RAIDレベルを変換する機能を、LDE(Logical Device Expansion)といい、一般的にはRAIDグループの拡張された部分に新たにボリュームを追加作成するという利用の仕方をする。
特開2004−213064号公報 特開2005−107841号公報
As described above, the function of expanding the capacity of a RAID group or converting the RAID level by adding a disk to an already existing RAID group in an active state is called LDE (Logical Device Expansion), In general, a new volume is created in the expanded part of the RAID group.
Japanese Patent Laid-Open No. 2004-213064 JP 2005-107841 A

上述したLDEでは、新構成(LDE後のRAIDグループ)と旧構成(LDE前のRAIDグループ)でのボリュームが重なっている場合がある。処理としては、旧構成としてReadを行い、そのデータを一時的にバッファ上に格納してから、新構成としてWriteを行うという方法で実行するが、上記処理過程において、一時的にもバッファ上にしかデータが存在しない瞬間が発生する。
より詳細にいうと、まさにWrite中の間は、実際のディスクにどこまで書き込まれたかが判らないため、ディスク上のWriteを要求した領域のデータは信用できないものになっているということである。やむおえない事情で、上記バッファが、停電時にバッテリーバックアップされない場合やハード的なメモリ故障の場合に、上述のディスクへのWriteが失敗すると上記バッファ内のデータが失われる恐れがある。
本発明は上述した従来の問題点を解決するためになされたものであって、本発明の目的は、RAID1あるいはRAID0+1といったミラーリングを行うRAIDグループから、偶数本のディスクを追加し、より容量の大きいRAID0+1への拡張を行うに際し、一時的にもディスク上にデータが存在しない状態をなくしてLDEを実行できるようにすることである。
In the above-described LDE, there are cases where volumes in the new configuration (RAID group after LDE) and the old configuration (RAID group before LDE) overlap. The processing is performed by performing Read as the old configuration, storing the data temporarily in the buffer, and then performing Write as the new configuration. However, in the above process, the data is temporarily stored in the buffer. There are moments when there is only data.
More specifically, since it is not known how much data has been written to the actual disk during Write, the data in the area that requested Write on the disk is unreliable. For unavoidable reasons, if the buffer is not backed up at the time of a power failure or if a hardware memory failure occurs, the data in the buffer may be lost if the write to the disk fails.
The present invention has been made to solve the above-described conventional problems, and the object of the present invention is to add an even number of disks from a RAID group that performs mirroring such as RAID 1 or RAID 0 + 1, thereby increasing the capacity. When performing expansion to RAID 0 + 1, it is possible to execute LDE while temporarily eliminating the state in which no data exists on the disk.

本発明においては、上記課題を次のように解決する。
(1)RAID1あるいはRAID0+1のRAIDグループである、2m本(mは自然数)のディスク群から構成され、m本のディスク群と他のm本のディスク群がミラーリング関係にあり、各m本のディスク群がストライピングされているディスク群からなるRAIDグループを有するRAID装置において、上記2m本のディスク群に2n本(nは自然数)のディスク群を以下のように追加し容量を拡張する。
旧構成のRAIDグループで、プライマリディスク群である上記m本のディスク群に、n本のディスクを追加して、新構成のRAIDグループでミラーリングの関係をもつディスク群の一方になるように処理を実施し、この処理完了後に、上述で処理を実施しなかったセカンダリディスク群であるその他のm本のディスクに、残りのn本のディスク群を追加し、上記プライマリディスク群に対してミラーリング関係を持つようにする。
RAID1あるいはRAID0+1では、ミラーリングしているので、ミラーの一方のデータが無くなってもRAIDグループとしては冗長性を失うだけで、ディスク上データは残っていることになる。
本発明ではこれを利用して、LDE処理全体の中間状態として、ディスク上のデータが、ミラーの一方を旧構成で、ミラーの一方を新構成で格納されている状態を作りあげることで、常にディスク上にデータが存在する状況を実現可能としている。
(2)上記(1)の容量拡張に際し、上記プライマリディスク群と、セカンダリディスク群が、同時に同一の論理ブロックアドレスについて拡張を行わないようにする。
(3)上記(2)において、プライマリディスク群の拡張を追いかけるように、セカンダリディスク群の拡張を行う。
(4)上記(2)において、プライマリディスク群を論理ブロックアドレスの小さい方もしくは大きい方から拡張し、セカンダリディスク群の拡張を、上記とは逆の論理ブロックアドレスが大きい方もしくは小さい方から行う。
In the present invention, the above problem is solved as follows.
(1) A RAID group of RAID 1 or RAID 0 + 1, which is composed of 2m (m is a natural number) disk group, and m disk groups and other m disk groups are in a mirroring relationship, and each of m disks In a RAID device having a RAID group consisting of disk groups in which the group is striped, 2n (n is a natural number) disk groups are added to the 2m disk group as follows to expand the capacity.
In the old RAID group, add n disks to the m disk group, which is the primary disk group, so that the new RAID group becomes one of the disk groups that have a mirroring relationship. After the completion of this process, the remaining n disk groups are added to the other m disks that are the secondary disk groups that have not been processed as described above, and a mirroring relationship is established with respect to the primary disk group. Have it.
Since RAID 1 or RAID 0 + 1 is mirrored, even if one of the mirror data is lost, the RAID group only loses redundancy and data on the disk remains.
In the present invention, this is utilized to create a state in which data on the disk is stored as an intermediate state of the entire LDE process, with one of the mirrors stored in the old configuration and one of the mirrors in the new configuration. It is possible to realize a situation in which data exists above.
(2) When expanding the capacity in (1), the primary disk group and the secondary disk group are not expanded at the same time for the same logical block address.
(3) In the above (2), the secondary disk group is expanded so as to follow the expansion of the primary disk group.
(4) In the above (2), the primary disk group is expanded from the smaller or larger logical block address, and the secondary disk group is expanded from the larger or smaller logical block address.

本発明においては、以下の効果を得ることができる。
(1)容量拡張に際し、LDE処理全体の中間状態として、ディスク上のデータが、ミラーの一方を旧構成で、ミラーの一方を新構成で格納されている状態を作りあげ、常にディスク上にデータが存在する状況を実現可能としているので、停電時にバッテリーバックアップされない場合やハード的なメモリ故障の場合、ディスクへのライトが失敗しても、データが失われることがない。
(2)上記容量拡張に際し、プライマリディスク群と、セカンダリディスク群が、同時に同一の論理ブロックアドレスについて拡張を行わないように、例えばプライマリディスク群の拡張を追いかけるようにセカンダリディスク群の拡張を行うことで、プライマリディスク群とセカンダリディスク群の拡張処理を同時に行うことができ、処理時間を短縮することができる。
In the present invention, the following effects can be obtained.
(1) During capacity expansion, as an intermediate state of the entire LDE process, the data on the disk is stored with one of the mirrors in the old configuration and one of the mirrors in the new configuration. Since the existing situation can be realized, even if the battery backup is not performed at the time of a power failure or when a hardware memory failure occurs, data is not lost even if writing to the disk fails.
(2) During the above capacity expansion, the secondary disk group is expanded so as to follow the expansion of the primary disk group, for example, so that the primary disk group and the secondary disk group do not expand the same logical block address at the same time. Thus, the expansion process of the primary disk group and the secondary disk group can be performed at the same time, and the processing time can be shortened.

図1は本発明の実施例のRAID装置の概略構成を示す図である。
同図において、1はRAIDコントローラ、2−1〜2−nはデータなどを記憶するディスクであり、RAIDコントローラ1は直接もしくはネットワーク機器を介してホスト3に接続され、ホスト3からのリード、ライト要求に応じて、大量のデータを高速かつランダムに上記ディスクに読み書きする。
RAIDコントローラ1は、データを読み書きする際に一時的にデータを格納するバッファ1aと、容量拡張時、容量拡張処理を行う容量拡張手段1bを備え、また、RAIDグループの構成情報1cの定義を保持する。なお、図1では本発明に係わる機能構成のみを示しているが、RAIDコントローラのハードウェア構成の詳細については、例えば前記特許文献1などを参照されたい。
FIG. 1 is a diagram showing a schematic configuration of a RAID apparatus according to an embodiment of the present invention.
In the figure, 1 is a RAID controller, 2-1 to 2-n are disks for storing data, and the RAID controller 1 is connected to the host 3 directly or via a network device. A large amount of data is read from and written to the disk at high speed and randomly as required.
The RAID controller 1 includes a buffer 1a for temporarily storing data when data is read and written, and capacity expansion means 1b for performing capacity expansion processing at the time of capacity expansion, and holds the definition of RAID group configuration information 1c. To do. FIG. 1 shows only the functional configuration according to the present invention. For details of the hardware configuration of the RAID controller, refer to, for example, the above-mentioned Patent Document 1.

上記ディスク2−1〜2−nは、前述したように2m本(mは自然数)のディスク群から構成され、m本のディスク群と他のm本のディスク群がミラーリング関係にあり、各m本のディスク群がストライピングされているディスク群からなるRAID1あるいはRAID0+1のRAIDグループに構成されており、本発明では、ディスク容量を拡張する際、このディスク群に2n本のディスクを追加して、2(m+n)本のディスクから構成されるRAID0+1のRAIDグループを構成する。
例えば、図2(a)に示すように、ミラーリングされた一対のディスク2−1,2−2に2本のディスク2−3,2−4を追加して、がミラーリングされ、ストライピングされた各2本のディスク2−1,2−3および2−2,2−4からなるRAID0+1のRAIDグループを構成する。
あるいは、図2(b)に示すように、RAID0+1のRAIDグループに2本のディスク2−9,2−10を追加して、RAID0+1のRAIDグループを構成する。
The disks 2-1 to 2-n are composed of 2m (m is a natural number) disk groups as described above, and the m disk groups and the other m disk groups are in a mirroring relationship. The disk group is configured as a RAID 1 or RAID 0 + 1 RAID group consisting of striped disk groups. In the present invention, when the disk capacity is expanded, 2n disks are added to the disk group, A RAID group of RAID 0 + 1 composed of (m + n) disks is configured.
For example, as shown in FIG. 2 (a), two disks 2-3 and 2-4 are added to a pair of mirrored disks 2-1 and 2-2, and mirrored and striped. A RAID 0 + 1 RAID group comprising two disks 2-1, 2-3 and 2-2, 2-4 is constructed.
Alternatively, as shown in FIG. 2B, two disks 2-9 and 2-10 are added to the RAID 0 + 1 RAID group to form a RAID 0 + 1 RAID group.

以下、上記のように2m本のディスクから構成されるRAID0+1のRAIDグループに2n本のディスクを追加してディスク容量を拡張する際の、前記容量拡張手段1bにおける処理について説明する。
図3は本発明の実施例のLDE処理を説明する図である。
図3(a)は、LDE前の状態を示し、プライマリのディスク群2−1〜2−4、およびセカンダリのディスク群2−5〜2−8がそれぞれストライピングされ、ディスク群2−1〜2−4とディスク群2−5〜2−8がミラーリング構成となっている。
この状態から図3(b)に示すように、追加ディスク2本の内、1本のディスク2−10を使って、セカンダリのディスク群2−5〜2−8を拡張する(この状態を中間状態という)。ここで、この段階では、プライマリのディスク群2−1〜2−4は変更がなく、追加されたディスク2−10はミラーリングの関係にない。
次に、図3(c)に示すように、2本の追加ディスクの内の残りの一本のディスク2−9を追加してプライマリのディスク群2−1〜2−4を拡張し、追加したディスクをミラーリングさせる。
Hereinafter, the processing in the capacity expansion unit 1b when the disk capacity is expanded by adding 2n disks to a RAID group of RAID 0 + 1 composed of 2m disks as described above will be described.
FIG. 3 is a diagram illustrating the LDE process according to the embodiment of this invention.
FIG. 3A shows a state before LDE, in which the primary disk groups 2-1 to 2-4 and the secondary disk groups 2-5 to 2-8 are striped, respectively. -4 and disk groups 2-5 to 2-8 have a mirroring configuration.
From this state, as shown in FIG. 3B, one of the two additional disks, one disk 2-10 is used to expand the secondary disk group 2-5 to 2-8 (this state is intermediate). Called state). At this stage, the primary disk groups 2-1 to 2-4 are not changed, and the added disk 2-10 is not in a mirroring relationship.
Next, as shown in FIG. 3C, the remaining one of the two additional disks is added to expand the primary disk group 2-1 to 2-4. Mirror the created disk.

図4は上記処理手順を示すフローチャートである。
まず、構成定義をセカンダリ拡張中の状態に変更する(ステップS1)。ついで、進捗を確認し(ステップS2)、拡張前の領域があれば、プライマリのディスク群2−1〜2−4から旧構成のマッピングでリードし、セカンダリのディスク群2−5〜2−8へ新構成のマッピングでライトする(ステップS3,S4)。
ついで進捗を更新し(ステップS5)、ステップS2に戻り、拡張前の領域がなくなるまでこの処理を繰り返す。
上記処理が最後まで終了したら、ステップS6に行き、構成定義をプライマリ拡張中の状態に変更する。ついで、進捗を確認し(ステップS7)、拡張前の領域があれば、セカンダリのディスク群2−5〜2−8から新構成のマッピングでリードし、プライマリのディスク群2−1〜2−4へ新構成のマッピングでライトする(ステップS8,S9)。ついで進捗を更新し(ステップS10)、ステップS7に戻り、拡張前の領域がなくなるまでこの処理を繰り返す。最後まで終了したら、構成定義を拡張語の状態に変更し、処理を終わる。
FIG. 4 is a flowchart showing the processing procedure.
First, the configuration definition is changed to a state during secondary extension (step S1). Next, the progress is confirmed (step S2), and if there is an area before expansion, the primary disk group 2-1 to 2-4 is read with the old configuration mapping, and the secondary disk group 2-5 to 2-8. The new configuration is written (steps S3 and S4).
Next, the progress is updated (step S5), the process returns to step S2, and this process is repeated until there is no area before expansion.
When the above processing is completed to the end, the process goes to step S6, and the configuration definition is changed to a state of primary extension. Next, the progress is confirmed (step S7), and if there is an area before expansion, the secondary disk group 2-5 to 2-8 is read by mapping of the new configuration, and the primary disk group 2-1 to 2-4 is read. The new configuration mapping is performed (steps S8 and S9). Next, the progress is updated (step S10), and the process returns to step S7, and this process is repeated until the area before expansion disappears. When the process is completed to the end, the configuration definition is changed to the extended word state, and the process ends.

以上の実施例では、ミラーリングの関係をもつディスクの一方だけについて拡張を行った後で、他方を拡張する場合について説明したが、次に、常にディスク上にデータが存在するように管理しながらも、処理時間を短縮することが可能な改善された上記実施例の改善例について説明する。
この実施例の概要は、ミラーリングの関係をもつディスク群の一方と他方が、同時に同一LBA(論理ブロックアドレス)について拡張を行わないように管理しながら、両ディスク群共、平行して拡張していくという方式である。
以下では、「後追い方式」と「前後方式」の二つを述べる。
In the above embodiment, a case has been described in which only one of the disks having a mirroring relationship is expanded and then the other is expanded. Next, while managing so that data always exists on the disk, An improved example of the above embodiment that can shorten the processing time will be described.
The outline of this embodiment is that both the disk groups are expanded in parallel while managing so that one and the other of the disk groups having a mirroring relationship are not expanded at the same time for the same LBA (logical block address). It is a method of going.
In the following, “follow-up method” and “front-back method” will be described.

(1)後追い方式
プライマリのディスク群の拡張を追いかけるようにセカンダリのディスク群の拡張を行うようにし、これら両者が同一のLBA領域を処理しないように管理する方式である。図5に後追い方式による拡張処理の概要を示す。図5では、ミラーリング構成のディスク2−1,2−2からなるRAID1に2本のディスク2−3,2−4を追加してRAID0+1を構成する場合について示している。
まず、図5(a)に示すように追加ディスク2本の内、1本のディスク2−4を追加し領域R1を拡張する(領域R1は中間状態)。この段階では、ディスク2−1は変更がない。
(1) Follow-up method In this method, the secondary disk group is expanded so as to follow the expansion of the primary disk group, and both are managed so as not to process the same LBA area. FIG. 5 shows an outline of the extension processing by the follow-up method. FIG. 5 shows a case where RAID0 + 1 is configured by adding two disks 2-3 and 2-4 to RAID1 composed of mirroring disks 2-1 and 2-2.
First, as shown in FIG. 5A, one of the two additional disks, one disk 2-4, is added to expand the area R1 (the area R1 is in an intermediate state). At this stage, the disk 2-1 is not changed.

次に、図5(b)に示すように、2本の追加ディスクの内の残りの一本のディスク2−3を追加して、上記拡張された領域R1と、追加したディスク2−3の領域R1’をミラーリングさせる(領域R1,R1’は最終状態)。また、これと同時に、追加されたディスク2−4について領域R2を拡張する(領域R2は中間状態)。
さらに、上記と同様、図5(c)に示すように、追加されたディスク2−4の上記拡張された領域R2と、追加したディスク2−3の領域R2’をミラーリングさせる(領域R2,R2’は最終状態)。また、これと同時に、追加されたディスク2−4ついて領域R3を拡張する(領域R3は中間状態)。
以下、全ての領域の拡張処理が終わるまで、同様の処理を行う。
Next, as shown in FIG. 5B, the remaining one of the two additional disks 2-3 is added, and the expanded area R1 and the added disk 2-3 are added. The region R1 ′ is mirrored (regions R1 and R1 ′ are in the final state). At the same time, the area R2 is expanded for the added disk 2-4 (the area R2 is in an intermediate state).
Further, similarly to the above, as shown in FIG. 5C, the expanded area R2 of the added disk 2-4 and the area R2 ′ of the added disk 2-3 are mirrored (areas R2, R2). 'Is the final state). At the same time, the area R3 is expanded for the added disk 2-4 (the area R3 is in an intermediate state).
Thereafter, the same processing is performed until the expansion processing for all areas is completed.

ここで、上記後追い方式では、具体的には以下の2つの方式が考えられる。
一つ目の方式は、あるLBA範囲についてプライマリのディスク群の拡張が終了した後で、プライマリとして、次のLBA範囲に処理を移るのと同時に、プライマリのディスク群で拡張が終了したのと同じLBA範囲についてセカンダリの拡張を開始させる方式である。
二つ目の方式は、プライマリのディスク群の拡張とセカンダリのディスク群の拡張についてそれぞれが進捗を独自に管理して平行に拡張を行っておくが、プライマリが拡張中のLBA領域についてセカンダリでも拡張を開始しようとした時に、セカンダリの処理開始を一定時間待ち合わせるという方式である。
この場合、待ち合わせた後で、また、該当するLBA領域がプライマリのディスク群で拡張中のかどうかを調べ、処理中であれば一定時間の待ち合わせを行い、処理中でなければセカンダリのディスク群の処理を開始させる。
Here, in the follow-up method, specifically, the following two methods can be considered.
The first method is the same as when the expansion of the primary disk group is completed at the same time the primary disk group is moved to the next LBA range as the primary after the expansion of the primary disk group is completed for a certain LBA range. In this method, secondary expansion is started for the LBA range.
In the second method, the expansion of the primary disk group and the expansion of the secondary disk group are individually managed in parallel, and the expansion is performed in parallel. This is a method of waiting for a certain period of time for the secondary process to start.
In this case, after waiting, it is checked whether the corresponding LBA area is being expanded in the primary disk group. If the process is in progress, the process waits for a fixed time. If not, the secondary disk group is processed. To start.

(2)前後方式
プライマリのディスク群の拡張をLBAの小さい方から大きい方へ行い、セカンダリのディスク群の拡張をこの逆でLBAの大きい方から小さい方へ行う方式である。
図6に前後方式による拡張処理の概要を示す。図6では、図5と同様、ミラーリング構成のディスク2−1,2−2からなるRAID1に2本のディスク2−3,2−4を追加してRAID0+1を構成する場合について示している。
まず、図6(a)に示すように追加ディスク2本の内、1本のディスク2−4を追加し、LBAの大きな方から領域R1を拡張する(領域R1は中間状態)。この段階では、ディスク2−1は変更がない。
(2) Front-rear system
In this method, the primary disk group is expanded from the smaller LBA to the larger one, and the secondary disk group is expanded from the larger LBA to the smaller LBA.
FIG. 6 shows an overview of the expansion process using the front-rear system. FIG. 6 shows a case where RAID 0 + 1 is configured by adding two disks 2-3 and 2-4 to RAID1 composed of mirrors 2-1 and 2-2, as in FIG.
First, as shown in FIG. 6A, one of the two additional disks, one disk 2-4, is added, and the area R1 is expanded from the larger LBA (area R1 is in an intermediate state). At this stage, the disk 2-1 is not changed.

次に、図6(b)に示すように、2本の追加ディスクの内の残りの一本のディスク2−3を追加して、上記拡張された領域R1と、追加したディスク2−3の領域R1’をミラーリングさせる(領域R1,R1’は最終状態)。またこれと同時に、追加されたディスク2−3についてLBAの小さな方から領域R2を拡張する(領域R2は中間状態)。
さらに、上記と同様、図6(c)に示すように、追加されたディスク2−3の上記拡張された領域R2と、追加したディスク2−4の領域R2’をミラーリングさせる(領域R2,R2’は最終状態)。また、これと同時に、追加されたディスク2−3について、LBAの大きな方から領域R3を拡張する(領域R3は中間状態)。
以下、全ての領域の拡張処理が終わるまで、同様の処理を行う。
なお、この場合、RAIDグループの中点付近でプライマリとセカンダリのディスク群が同一LBA範囲を処理しようとすることがあるので、プライマリとセカンダリのどちらかが処理しようとしているLBA範囲が、もう一方で拡張中であった場合には、それが終わるまで待ち合わせるという処理が必要となる。
Next, as shown in FIG. 6B, the remaining one of the two additional disks 2-3 is added, and the expanded area R1 and the added disk 2-3 are added. The region R1 ′ is mirrored (regions R1 and R1 ′ are in the final state). At the same time, the area R2 of the added disk 2-3 is expanded from the smallest LBA (the area R2 is in an intermediate state).
Further, similarly to the above, as shown in FIG. 6C, the expanded area R2 of the added disk 2-3 and the area R2 ′ of the added disk 2-4 are mirrored (areas R2, R2). 'Is the final state). At the same time, the area R3 of the added disk 2-3 is expanded from the larger LBA (area R3 is in an intermediate state).
Thereafter, the same processing is performed until the expansion processing for all areas is completed.
In this case, since the primary and secondary disk groups may try to process the same LBA range near the midpoint of the RAID group, the LBA range that either the primary or secondary is trying to process is the other. If the expansion is in progress, it is necessary to wait until it is finished.

本発明の実施例のRAID装置の概略構成を示す図である。It is a figure which shows schematic structure of the RAID apparatus of the Example of this invention. RAID1またはRAID0+1にディスクを追加して容量を拡張する場合を説明する図である。It is a figure explaining the case where a disk is added to RAID1 or RAID0 + 1 and capacity is expanded. 本発明の実施例のLDE処理を説明する図である。It is a figure explaining the LDE process of the Example of this invention. 本発明の実施例のLDE処理手順を示すフローチャートである。It is a flowchart which shows the LDE processing procedure of the Example of this invention. 本発明の実施例における後追い方式を説明する図である。It is a figure explaining the follow-up system in the Example of this invention. 本発明の実施例における前後方式を説明する図である。It is a figure explaining the back-and-forth system in the Example of this invention.

符号の説明Explanation of symbols

1 RAIDコントローラ
1a バッファ
1b 容量拡張手段
1c 構成情報
2−1〜2−n ディスク
3 ホスト


DESCRIPTION OF SYMBOLS 1 RAID controller 1a Buffer 1b Capacity expansion means 1c Configuration information 2-1 to 2-n Disk 3 Host


Claims (5)

2m本(mは自然数)のディスク群から構成され、m本のディスク群と他のm本のディスク群がミラーリング関係にあり、各m本のディスク群がストライピングされているディスク群からなるRAIDグループに、2n(nは自然数)のディスク群を追加して、2(m+n)本のディスクから構成され、m+n本のディスク群と他のm+n本のディスク群がミラーリング関係にあり、各m+n本のディスク群がストライピングされているディスク群からなるRAIDグループに変換するRAID装置における容量拡張方法であって、
上記2m本のディスク群のうちのm本のディスク群にn本のディスクを追加し、n本のディスクにより容量を拡張する第1のステップと、
上記2m本の内の残りのm本のディスク群に、残りのn本のディスクを追加し、上記容量が拡張されたディスク群とミラーリング関係を持つようにする第2のステップを有することを特徴とするRAID装置における容量の拡張方法。
A RAID group consisting of 2m (m is a natural number) disk groups, where m disk groups and other m disk groups are in a mirroring relationship, and each m disk group is striped. In addition, 2n (n is a natural number) disk groups are added to form 2 (m + n) disks, and m + n disk groups and other m + n disk groups are in a mirroring relationship, and each m + n disk group A capacity expansion method in a RAID device that converts a disk group into a RAID group consisting of striped disk groups,
A first step of adding n disks to the m disk group of the 2m disk group and expanding the capacity by the n disks;
The second step of adding the remaining n disks to the remaining m disk groups out of the 2m disks to have a mirroring relationship with the disk group whose capacity has been expanded is provided. A capacity expansion method in the RAID device.
2m本(mは自然数)のディスク群から構成され、m本のディスク群と他のm本のディスク群がミラーリング関係にあり、各m本のディスク群がストライピングされているディスク群からなるRAIDグループを有するRAID装置であって、
上記RAID装置は、ディスク容量を拡張するための容量拡張手段を備え、
上記容量拡張手段は、上記2m本のディスク群に2n本(nは自然数)のディスク群を追加する際、まず、プライマリディスク群である上記m本のディスク群に、n本のディスクを追加してプライマリディスク群のディスク容量を拡張し、
セカンダリディスク群であるその他のm本のディスクに、残りのn本のディスク群を追加し、上記プライマリディスク群に対してミラーリング関係を持つようにする
ことを特徴とするRAID装置。
A RAID group consisting of 2m (m is a natural number) disk groups, where m disk groups and other m disk groups are in a mirroring relationship, and each m disk group is striped. A RAID device comprising:
The RAID device includes capacity expansion means for expanding the disk capacity,
When adding 2n (n is a natural number) disk group to the 2m disk group, the capacity expansion means first adds n disks to the m disk group as the primary disk group. Expand the disk capacity of the primary disk group,
A RAID apparatus, wherein the remaining n disk groups are added to the other m disks, which are secondary disk groups, so as to have a mirroring relationship with the primary disk group.
上記容量拡張手段は、上記プライマリディスク群と、セカンダリディスク群が、同時に同一の論理ブロックアドレスについて拡張を行わないようにした
ことを特徴とする請求項2のRAID装置。
3. The RAID device according to claim 2, wherein the capacity expanding means prevents the primary disk group and the secondary disk group from expanding simultaneously for the same logical block address.
プライマリディスク群の拡張を追いかけるように、セカンダリディスク群の拡張を行う
ことを特徴とする請求項3のRAID装置。
4. The RAID device according to claim 3, wherein the secondary disk group is expanded so as to follow the expansion of the primary disk group.
プライマリディスク群を論理ブロックアドレスの小さい方もしくは大きい方から拡張し、セカンダリディスク群の拡張を、上記とは逆の論理ブロックアドレスが大きい方もしくは小さい方から行う
ことを特徴とする請求項3のRAID装置。


4. The RAID according to claim 3, wherein the primary disk group is expanded from the smaller or larger logical block address, and the secondary disk group is expanded from the larger or smaller logical block address opposite to the above. apparatus.


JP2006151176A 2006-05-31 2006-05-31 Capacity expansion method in RAID device and RAID device Active JP4799277B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006151176A JP4799277B2 (en) 2006-05-31 2006-05-31 Capacity expansion method in RAID device and RAID device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006151176A JP4799277B2 (en) 2006-05-31 2006-05-31 Capacity expansion method in RAID device and RAID device

Publications (2)

Publication Number Publication Date
JP2007323251A JP2007323251A (en) 2007-12-13
JP4799277B2 true JP4799277B2 (en) 2011-10-26

Family

ID=38856019

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006151176A Active JP4799277B2 (en) 2006-05-31 2006-05-31 Capacity expansion method in RAID device and RAID device

Country Status (1)

Country Link
JP (1) JP4799277B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI346944B (en) * 2007-12-31 2011-08-11 Qnap Systems Inc Method of raid level migration and system for the same
JP4792490B2 (en) 2008-09-08 2011-10-12 株式会社日立製作所 Storage controller and RAID group expansion method
JP4719802B2 (en) * 2009-03-09 2011-07-06 富士通株式会社 Storage management device, storage management method and storage system
WO2010109537A1 (en) * 2009-03-27 2010-09-30 富士通株式会社 Information processing apparatus, memory control method, and memory control apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004213064A (en) * 2002-12-26 2004-07-29 Fujitsu Ltd Raid device and logic device expansion method therefor
JP2005107841A (en) * 2003-09-30 2005-04-21 Toshiba Corp Disk controller and capacity extending method

Also Published As

Publication number Publication date
JP2007323251A (en) 2007-12-13

Similar Documents

Publication Publication Date Title
JP3316500B2 (en) Increase the number of drives in a RAID set while maintaining the integrity of the moved data
US7127557B2 (en) RAID apparatus and logical device expansion method thereof
KR100255847B1 (en) Method for performing a raid stripe write operation using a drive xor command set
JP5031341B2 (en) Storage system and data management method
JP3742494B2 (en) Mass storage device
US20090327603A1 (en) System including solid state drives paired with hard disk drives in a RAID 1 configuration and a method for providing/implementing said system
US20100079885A1 (en) System and method for providing performance-enhanced rebuild of a solid-state drive (SSD) in a solid-state drive hard disk drive (SSD HDD) redundant array of inexpensive disks 1 (RAID 1) pair
JPH04205519A (en) Writing method of data under restoration
JP2006252126A (en) Disk array device and its reconstruction method
WO2001040925A1 (en) Disk array system and method of expanding storage capacity
US10095585B1 (en) Rebuilding data on flash memory in response to a storage device failure regardless of the type of storage device that fails
US20080091916A1 (en) Methods for data capacity expansion and data storage systems
WO2014190501A1 (en) Data recovery method, storage device, and storage system
JP3573032B2 (en) Disk array device
JP4799277B2 (en) Capacity expansion method in RAID device and RAID device
JP2004348723A (en) System and method for sparing in raid-1 system
US7024585B2 (en) Method, apparatus, and program for data mirroring with striped hotspare
JP4794357B2 (en) RAID level conversion method and RAID apparatus in RAID apparatus
JP6052288B2 (en) Disk array control device, disk array control method, and disk array control program
US8775735B2 (en) Storage system and operation method of a storage system
JP2005107839A (en) Array controller and disk array rebuilding method
JP5181795B2 (en) RAID system and error sector repair method
JP5505329B2 (en) Disk array device and control method thereof
JP2005107675A (en) Disk array controller and method for duplicating disk drive
JP2003108316A (en) Disk array device and hot spare control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090108

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: 20110802

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: 20110802

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140812

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4799277

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150