1497 文字
7 分
Raid1のディスクを抜いて挿してみる
結論
- 抜いたドライブは**Unconfigured Bad (UBad)**になる。同じディスクを同じスロットに挿し直しても自動的には元に戻らない
set good→foreign importの手順でリビルドが開始される
検証環境
- RAIDコントローラ: RAID Ctrl SAS 6G 5/6 512MB (D2616)
- 管理ツール: storcli64
- 構成: DG0 = RAID5 (SAS × 4)、DG1 = RAID1 (SATA × 2)
- 検証対象: DG1のRAID1ミラーの片方 (slot 5)
手順
1. ディスクを抜いて挿した後の状態確認
抜いて挿したドライブは、Unconfigured Badになっている。同じディスクが挿されたとしても、もとには戻らない。
root@dell ~# /opt/MegaRAID/storcli/storcli64 /c0 showGenerating detailed summary of the adapter, it may take a while to complete.
Controller = 0Status = SuccessDescription = None
Product Name = RAID Ctrl SAS 6G 5/6 512MB (D2616)Serial Number =SAS Address = 50030057013af4c0PCI Address = 00:08:00:00System Time = 12/21/2019 23:37:35Mfg. Date = 00/00/00Controller Time = 12/21/2019 14:37:35FW Package Build = 12.12.0-0174FW Version = 2.130.353-2727BIOS Version = 3.29.00_4.14.05.00_0x06000500Driver Name = megaraid_sasDriver Version = 07.707.50.00-rc1Vendor Id = 0x1000Device Id = 0x79SubVendor Id = 0x1734SubDevice Id = 0x1176Host Interface = PCIEDevice Interface = SAS-6GBus Number = 8Device Number = 0Function Number = 0Drive Groups = 2
TOPOLOGY :========
--------------------------------------------------------------------------DG Arr Row EID:Slot DID Type State BT Size PDC PI SED DS3 FSpace-------------------------------------------------------------------------- 0 - - - - RAID5 Optl N 836.625 GB dsbl N N none N 0 0 - - - RAID5 Optl N 836.625 GB dsbl N N none N 0 0 0 252:0 6 DRIVE Onln N 278.875 GB dsbl N N none - 0 0 1 252:1 5 DRIVE Onln N 278.875 GB dsbl N N none - 0 0 2 252:2 7 DRIVE Onln N 278.875 GB dsbl N N none - 0 0 3 252:3 4 DRIVE Onln N 278.875 GB dsbl N N none - 1 - - - - RAID1 Dgrd N 1.818 TB dflt N N none N 1 0 - - - RAID1 Dgrd N 1.818 TB dflt N N none N 1 0 0 252:4 8 DRIVE Onln N 1.818 TB dflt N N none - 1 0 1 - - DRIVE Msng - 1.818 TB - - - - ---------------------------------------------------------------------------
DG=Disk Group Index|Arr=Array Index|Row=Row Index|EID=Enclosure Device IDDID=Device ID|Type=Drive Type|Onln=Online|Rbld=Rebuild|Dgrd=DegradedPdgd=Partially degraded|Offln=Offline|BT=Background Task ActivePDC=PD Cache|PI=Protection Info|SED=Self Encrypting Drive|Frgn=ForeignDS3=Dimmer Switch 3|dflt=Default|Msng=Missing|FSpace=Free Space Present
Missing Drives Count = 1
Missing Drives :==============
-------------------Array Row Size------------------- 1 1 1.818 TB-------------------
Virtual Drives = 2
VD LIST :=======
-----------------------------------------------------------DG/VD TYPE State Access Consist Cache sCC Size Name-----------------------------------------------------------0/0 RAID5 Optl RW Yes NRWTD - 836.625 GB1/1 RAID1 Dgrd RW No RWTD - 1.818 TB-----------------------------------------------------------
Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|dgrd=DegradedOptl=Optimal|RO=Read Only|RW=Read Write|HD=Hidden|B=Blocked|Consist=Consistent|R=Read Ahead Always|NR=No Read Ahead|WB=WriteBack|AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=ScheduledCheck Consistency
Physical Drives = 6
PD LIST :=======
-----------------------------------------------------------------------------EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp-----------------------------------------------------------------------------252:0 6 Onln 0 278.875 GB SAS HDD N N 512B HUS156030VLS600 U252:1 5 Onln 0 278.875 GB SAS HDD N N 512B HUS156030VLS600 U252:2 7 Onln 0 278.875 GB SAS HDD N N 512B HUS156030VLS600 U252:3 4 Onln 0 278.875 GB SAS HDD N N 512B HUS156030VLS600 U252:4 8 Onln 1 1.818 TB SATA HDD N N 512B WDC WD20EZRX-00DC0B0 U252:5 9 UBad F 1.818 TB SATA HDD N N 512B WDC WD20EARX-00PASB0 U-----------------------------------------------------------------------------
EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroupDHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global HotspareUBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-InterfaceMed-Media Type|SED-Self Encryptive Drive|PI-Protection InfoSeSz-Sector Size|Sp-Spun|U-Up|D-Down|T-Transition|F-ForeignUGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shieldedCFShld-Configured shielded|Cpybck-CopyBack|CBShld-Copyback Shielded2. UBadをUGoodに変更する
ドライブの状態をUnconfigured Goodに変更する。
root@dell ~# /opt/MegaRAID/storcli/storcli64 /c0/e252/s5 set goodController = 0Status = SuccessDescription = Set Drive Good Succeeded.3. UGoodになったことを確認する
root@dell ~# /opt/MegaRAID/storcli/storcli64 /c0 showGenerating detailed summary of the adapter, it may take a while to complete.
Controller = 0Status = SuccessDescription = None
Product Name = RAID Ctrl SAS 6G 5/6 512MB (D2616)Serial Number =SAS Address = 50030057013af4c0PCI Address = 00:08:00:00System Time = 12/21/2019 23:40:50Mfg. Date = 00/00/00Controller Time = 12/21/2019 14:40:50FW Package Build = 12.12.0-0174FW Version = 2.130.353-2727BIOS Version = 3.29.00_4.14.05.00_0x06000500Driver Name = megaraid_sasDriver Version = 07.707.50.00-rc1Vendor Id = 0x1000Device Id = 0x79SubVendor Id = 0x1734SubDevice Id = 0x1176Host Interface = PCIEDevice Interface = SAS-6GBus Number = 8Device Number = 0Function Number = 0
FOREIGN CONFIGURATION :=====================
---------------------------------------DG EID:Slot Type State Size NoVDs--------------------------------------- 0 - RAID1 Frgn 1.818 TB 1---------------------------------------
NoVDs - Number of VDs in disk group|DG - DiskgroupTotal foreign drive groups = 1Drive Groups = 2
TOPOLOGY :========
--------------------------------------------------------------------------DG Arr Row EID:Slot DID Type State BT Size PDC PI SED DS3 FSpace-------------------------------------------------------------------------- 0 - - - - RAID5 Optl N 836.625 GB dsbl N N none N 0 0 - - - RAID5 Optl N 836.625 GB dsbl N N none N 0 0 0 252:0 6 DRIVE Onln N 278.875 GB dsbl N N none - 0 0 1 252:1 5 DRIVE Onln N 278.875 GB dsbl N N none - 0 0 2 252:2 7 DRIVE Onln N 278.875 GB dsbl N N none - 0 0 3 252:3 4 DRIVE Onln N 278.875 GB dsbl N N none - 1 - - - - RAID1 Dgrd N 1.818 TB dflt N N none N 1 0 - - - RAID1 Dgrd N 1.818 TB dflt N N none N 1 0 0 252:4 8 DRIVE Onln N 1.818 TB dflt N N none - 1 0 1 - - DRIVE Msng - 1.818 TB - - - - ---------------------------------------------------------------------------
DG=Disk Group Index|Arr=Array Index|Row=Row Index|EID=Enclosure Device IDDID=Device ID|Type=Drive Type|Onln=Online|Rbld=Rebuild|Dgrd=DegradedPdgd=Partially degraded|Offln=Offline|BT=Background Task ActivePDC=PD Cache|PI=Protection Info|SED=Self Encrypting Drive|Frgn=ForeignDS3=Dimmer Switch 3|dflt=Default|Msng=Missing|FSpace=Free Space Present
Missing Drives Count = 1
Missing Drives :==============
-------------------Array Row Size------------------- 1 1 1.818 TB-------------------
Virtual Drives = 2
VD LIST :=======
-----------------------------------------------------------DG/VD TYPE State Access Consist Cache sCC Size Name-----------------------------------------------------------0/0 RAID5 Optl RW Yes NRWTD - 836.625 GB1/1 RAID1 Dgrd RW No RWTD - 1.818 TB-----------------------------------------------------------
Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|dgrd=DegradedOptl=Optimal|RO=Read Only|RW=Read Write|HD=Hidden|B=Blocked|Consist=Consistent|R=Read Ahead Always|NR=No Read Ahead|WB=WriteBack|AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=ScheduledCheck Consistency
Physical Drives = 6
PD LIST :=======
-----------------------------------------------------------------------------EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp-----------------------------------------------------------------------------252:0 6 Onln 0 278.875 GB SAS HDD N N 512B HUS156030VLS600 U252:1 5 Onln 0 278.875 GB SAS HDD N N 512B HUS156030VLS600 U252:2 7 Onln 0 278.875 GB SAS HDD N N 512B HUS156030VLS600 U252:3 4 Onln 0 278.875 GB SAS HDD N N 512B HUS156030VLS600 U252:4 8 Onln 1 1.818 TB SATA HDD N N 512B WDC WD20EZRX-00DC0B0 U252:5 9 UGood F 1.818 TB SATA HDD N N 512B WDC WD20EARX-00PASB0 U-----------------------------------------------------------------------------
EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroupDHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global HotspareUBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-InterfaceMed-Media Type|SED-Self Encryptive Drive|PI-Protection InfoSeSz-Sector Size|Sp-Spun|U-Up|D-Down|T-Transition|F-ForeignUGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shieldedCFShld-Configured shielded|Cpybck-CopyBack|CBShld-Copyback Shielded4. Foreign Configurationをインポートする
同じスロットに同じHDDを挿し直しただけなので、同じRAIDのボリュームに再度構成し直すだけ。RAID自体には変更を加えずに元に戻すコマンドを送る。
root@dell ~# /opt/MegaRAID/storcli/storcli64 /c0 /fall importController = 0Status = SuccessDescription = Successfully imported foreign configuration5. リビルド状態を確認する
Rebuildになっているかステータスを確認。予想完了時間は表示されなかった。
root@dell ~# /opt/MegaRAID/storcli/storcli64 /c0 /e252 /s5 show rebuildController = 0Status = SuccessDescription = Show Drive Rebuild Status Succeeded.
------------------------------------------------------Drive-ID Progress% Status Estimated Time Left------------------------------------------------------/c0/e252/s5 4 In progress -------------------------------------------------------まとめ
MegaRAID環境でRAID1のディスクをホットリムーブ→ホットアドした場合の復旧手順:
storcli64 /c0/e252/s5 set good— UBad → UGoodに変更storcli64 /c0 /fall import— Foreign Configurationをインポートstorcli64 /c0/e252/s5 show rebuild— リビルド進捗を確認
同じディスクを同じスロットに戻しても自動復旧はしないので、手動での操作が必要。
Raid1のディスクを抜いて挿してみる
https://blog.teraren.com/posts/raid1-hot-remove-add/ 関連記事
この記事が役に立ったら
GitHub Sponsorsで応援できます