ページ ツリー
メタデータの末尾にスキップ
メタデータの先頭に移動

このページの古いバージョンを表示しています。現在のバージョンを表示します。

現在のバージョンとの相違点 ページ履歴を表示

バージョン 1 次のバージョン »

MegaRAIDでR5なディスクをR6に拡張する方法のメモです。Megacliは適当にrpmを入手してばらしてDebian上で使ってます。
まずディスク3本で組まれたRAID5を6本に拡張し、その際にRAID6にするという手順です。個人のメモなのでこの通りにやってうまく行かなかったとしてもデータロストなどの一切の責任は取りません。

確認環境

# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.3 (stretch)
Release:        9.3

# MegaCli -v


      MegaCLI SAS RAID Management Tool  Ver 8.07.10 May 28, 2013

    (c)Copyright 2013, LSI Corporation, All Rights Reserved.

Exit Code: 0x00
# lspci|grep Mega
01:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2208 [Thunderbolt] (rev 01)

# MegaCli -AdpAllInfo -a0

Adapter #0

==============================================================================
                    Versions
                ================
Product Name    : LSI MegaRAID SAS 9267-8i
Serial No       : ****
FW Package Build: 23.1.1-0024

設定手順

前提条件

以下のコマンドでまずRAID5の論理ディスクを作成します。

MegaCli -cfgldadd -r5[15:0,15:1,15:2] wb ra direct cachedbadbbu -a0

その後、ディスクが正常に認識されていることを確認します。

root@debian:~# MegaCli ldinfo lall aall


Adapter 0 -- Virtual Drive Information:
Virtual Drive: 0 (Target Id: 0)
Name                :
RAID Level          : Primary-5, Secondary-0, RAID Level Qualifier-3
Size                : 3.637 TB
Sector Size         : 512
Parity Size         : 1.818 TB
State               : Optimal
Strip Size          : 64 KB
Number Of Drives    : 3
Span Depth          : 1
Default Cache Policy: WriteBack, ReadAhead, Direct, Write Cache OK if Bad BBU
Current Cache Policy: WriteBack, ReadAhead, Direct, Write Cache OK if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy   : Enabled
Encryption Type     : None
Default Power Savings Policy: Controller Defined
Current Power Savings Policy: None
Can spin up in 1 minute: Yes
LD has drives that support T10 power conditions: No
LD's IO profile supports MAX power savings with cached writes: No
Bad Blocks Exist: No
Is VD Cached: No



~~~
root@debian:~# Megacli ldpdinfo a0|grep -E "^(Raw|Enclosure Device ID|Slot)"
Enclosure Device ID: 15
Slot Number: 0
Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Enclosure Device ID: 15
Slot Number: 1
Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Enclosure Device ID: 15
Slot Number: 2
Raw Size: 1.819 TB [0xe8e088b0 Sectors]
#構成されているディスクが3本であることを確認する

ディスクの物理追加

その後、ドライブを物理ドライブに追加(ホット/コールドどちらでも)して、正しくドライブが認識できていることを確認します。

root@debian:~# MegaCli pdlist aall |grep -E "^(Raw|Enclosure Device ID|Slot)"
Enclosure Device ID: 15
Slot Number: 0
Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Enclosure Device ID: 15
Slot Number: 1
Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Enclosure Device ID: 15
Slot Number: 2
Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Enclosure Device ID: 15
Slot Number: 3
Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Enclosure Device ID: 15
Slot Number: 4
Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Enclosure Device ID: 15
Slot Number: 5
Raw Size: 1.819 TB [0xe8e088b0 Sectors]
#合計6本のディスクが認識されていることを確認する。Enclosure Device IDは機種やRAIDカードによって変わります。

RAID5 から RAID6 へマイグレーション

ディスクのエンクロージャIDとスロットナンバーを確認したら、Reconstruction(再構築)を始めます。今回はエンクロージャIDが15固定、既存ドライブのスロットが0,1,2で構成されているので、そこに3,4,5を追加します。

root@debian:~# MegaCli -LDRecon -Start -r6 Add PhysDrv[15:3,15:4,15:5] -L0 -a0

Start Reconstruction of Virtual Drive Success.

Exit Code: 0x00

進捗確認方法

再構築の進捗はLDrecon showprogで確認できます。

root@debian:~# MegaCli -LDRecon showprog -l0 -a0

Reconstruction on VD #0 (target id #0) Completed 0% in 7 Minutes.

Exit Code: 0x00

ずっと進捗を見たい場合はprogdsplyで確認できます。ESCで終了します。

root@debian:~# MegaCli -LDRecon -ProgDsply -l0 -a0

 Progress of Virtual Drives...

  Virtual Drive #              Percent Complete                       Time Elps
          0         ***********************00 %*********************** 00:10:01

    Press <ESC> key to quit...


以上


ESXiでもWindowsでもMegaCliを使う限りは同じです。StorCLIは未確認

  • ラベルがありません