Raid1のディスクを抜いて挿してみる

Linux

抜いて挿したドライブは、Unconfigured Badになっています。同じDiskが刺されたとしても、もとには戻らないでことを確認しました。。。

root@dell ~# /opt/MegaRAID/storcli/storcli64 /c0 show
Generating detailed summary of the adapter, it may take a while to complete.

Controller = 0
Status = Success
Description = None

Product Name = RAID Ctrl SAS 6G 5/6 512MB (D2616)
Serial Number =
SAS Address =  50030057013af4c0
PCI Address = 00:08:00:00
System Time = 12/21/2019 23:37:35
Mfg. Date = 00/00/00
Controller Time = 12/21/2019 14:37:35
FW Package Build = 12.12.0-0174
FW Version = 2.130.353-2727
BIOS Version = 3.29.00_4.14.05.00_0x06000500
Driver Name = megaraid_sas
Driver Version = 07.707.50.00-rc1
Vendor Id = 0x1000
Device Id = 0x79
SubVendor Id = 0x1734
SubDevice Id = 0x1176
Host Interface = PCIE
Device Interface = SAS-6G
Bus Number = 8
Device Number = 0
Function Number = 0
Drive 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 ID
DID=Device ID|Type=Drive Type|Onln=Online|Rbld=Rebuild|Dgrd=Degraded
Pdgd=Partially degraded|Offln=Offline|BT=Background Task Active
PDC=PD Cache|PI=Protection Info|SED=Self Encrypting Drive|Frgn=Foreign
DS3=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 GB
1/1   RAID1 Dgrd  RW     No      RWTD  -     1.818 TB
-----------------------------------------------------------

Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|dgrd=Degraded
Optl=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=Scheduled
Check 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      U
252:1     5 Onln   0 278.875 GB SAS  HDD N   N  512B HUS156030VLS600      U
252:2     7 Onln   0 278.875 GB SAS  HDD N   N  512B HUS156030VLS600      U
252:3     4 Onln   0 278.875 GB SAS  HDD N   N  512B HUS156030VLS600      U
252:4     8 Onln   1   1.818 TB SATA HDD N   N  512B WDC WD20EZRX-00DC0B0 U
252: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-DriveGroup
DHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global Hotspare
UBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-Interface
Med-Media Type|SED-Self Encryptive Drive|PI-Protection Info
SeSz-Sector Size|Sp-Spun|U-Up|D-Down|T-Transition|F-Foreign
UGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shielded
CFShld-Configured shielded|Cpybck-CopyBack|CBShld-Copyback Shielded


root@dell ~# /opt/MegaRAID/storcli/storcli64 /c0/e252/s5 set good
Controller = 0
Status = Success
Description = Set Drive Good Succeeded.
root@dell ~# 

UGoodになったことを確認します。

root@dell ~# /opt/MegaRAID/storcli/storcli64 /c0 show
Generating detailed summary of the adapter, it may take a while to complete.

Controller = 0
Status = Success
Description = None

Product Name = RAID Ctrl SAS 6G 5/6 512MB (D2616)
Serial Number =
SAS Address =  50030057013af4c0
PCI Address = 00:08:00:00
System Time = 12/21/2019 23:40:50
Mfg. Date = 00/00/00
Controller Time = 12/21/2019 14:40:50
FW Package Build = 12.12.0-0174
FW Version = 2.130.353-2727
BIOS Version = 3.29.00_4.14.05.00_0x06000500
Driver Name = megaraid_sas
Driver Version = 07.707.50.00-rc1
Vendor Id = 0x1000
Device Id = 0x79
SubVendor Id = 0x1734
SubDevice Id = 0x1176
Host Interface = PCIE
Device Interface = SAS-6G
Bus Number = 8
Device Number = 0
Function 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 - Diskgroup
Total foreign drive groups = 1
Drive 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 ID
DID=Device ID|Type=Drive Type|Onln=Online|Rbld=Rebuild|Dgrd=Degraded
Pdgd=Partially degraded|Offln=Offline|BT=Background Task Active
PDC=PD Cache|PI=Protection Info|SED=Self Encrypting Drive|Frgn=Foreign
DS3=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 GB
1/1   RAID1 Dgrd  RW     No      RWTD  -     1.818 TB
-----------------------------------------------------------

Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|dgrd=Degraded
Optl=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=Scheduled
Check 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      U
252:1     5 Onln   0 278.875 GB SAS  HDD N   N  512B HUS156030VLS600      U
252:2     7 Onln   0 278.875 GB SAS  HDD N   N  512B HUS156030VLS600      U
252:3     4 Onln   0 278.875 GB SAS  HDD N   N  512B HUS156030VLS600      U
252:4     8 Onln   1   1.818 TB SATA HDD N   N  512B WDC WD20EZRX-00DC0B0 U
252: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-DriveGroup
DHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global Hotspare
UBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-Interface
Med-Media Type|SED-Self Encryptive Drive|PI-Protection Info
SeSz-Sector Size|Sp-Spun|U-Up|D-Down|T-Transition|F-Foreign
UGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shielded
CFShld-Configured shielded|Cpybck-CopyBack|CBShld-Copyback Shielded

同じスロットに、同じHDDを挿し直しただけなので、同じRaidのボリュームに再度構成し直すだけなのでRaid自体には変更を加えずにもとに戻すコマンドを送ります。

root@dell ~# /opt/MegaRAID/storcli/storcli64 /c0 /fall import
Controller = 0
Status = Success
Description = Successfully imported foreign configuration

そして、Rebuildになっているかステータスを確認します。予想完了時間は表示されませんね。。。

root@dell ~# /opt/MegaRAID/storcli/storcli64 /c0 /e252 /s5 show rebuild
Controller = 0
Status = Success
Description = Show Drive Rebuild Status Succeeded.


------------------------------------------------------
Drive-ID    Progress% Status      Estimated Time Left
------------------------------------------------------
/c0/e252/s5         4 In progress -
------------------------------------------------------

コメント