1291 文字
6 分
Raid1のディスクを抜いて挿してみる
抜いて挿したドライブは、Unconfigured Badになっています。同じDiskが刺されたとしても、もとには戻らないでことを確認しました。。。
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 Shieldedroot@dell ~# /opt/MegaRAID/storcli/storcli64 /c0/e252/s5 set goodController = 0Status = SuccessDescription = Set Drive Good Succeeded.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 Shielded同じスロットに、同じHDDを挿し直しただけなので、同じRaidのボリュームに再度構成し直すだけなのでRaid自体には変更を加えずにもとに戻すコマンドを送ります。
root@dell ~# /opt/MegaRAID/storcli/storcli64 /c0 /fall importController = 0Status = SuccessDescription = Successfully imported foreign configurationそして、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 ------------------------------------------------------- Raid1のディスクを抜いて挿してみる
https://blog.teraren.com/posts/raid1-hot-remove-add/