Wednesday 27 March 2019

How to make online of unconfigure good disk in Megaraid CLI


MegaRAID - unconfigure good disk in MegaCLI



List the available disk and find out the firmware state.


[07:23:12] test:~ # /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL

Adapter #0

Enclosure Device ID: 252
Slot Number: 0
Enclosure position: 0
Device Id: 12
WWN: 500000E118589901
Sequence Number: 1
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SAS
Raw Size: 136.731 GB [0x11176d60 Sectors]
Non Coerced Size: 136.231 GB [0x11076d60 Sectors]
Coerced Size: 135.972 GB [0x10ff2000 Sectors]
Firmware state: Unconfigured(good), Spun Up
Device Firmware Level: SC17
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x500000e118589902
SAS Address(1): 0x0
Connected Port Number: 1(path0)
Inquiry Data: IBM-ESXSMBE2147RC       SC17D300G6K5SC17SC17SC17
IBM FRU/CRU: 42D0668
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: Foreign
Foreign Secure: Drive is not secured by a foreign lock key
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive Temperature :28C (82.40 F)
PI Eligibility:  No
Drive is formatted for PI information:  No
PI: No PI
Drive's write cache : Disabled
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Port-1 :
Port status: Active
Port's Linkspeed: Unknown
Drive has flagged a S.M.A.R.T alert : No

Enclosure Device ID: 252
Slot Number: 1
Drive's postion: DiskGroup: 0, Span: 0, Arm: 1
Enclosure position: 0
Device Id: 9
WWN: 500003950809D34D
Sequence Number: 2
Media Error Count: 132
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SAS
Raw Size: 136.731 GB [0x11176d60 Sectors]
Non Coerced Size: 136.231 GB [0x11076d60 Sectors]
Coerced Size: 135.972 GB [0x10ff2000 Sectors]
Firmware state: Online, Spun Up
Device Firmware Level: SC29
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x500003950809d34e
SAS Address(1): 0x0
Connected Port Number: 0(path0)
Inquiry Data: IBM-ESXSMK1401GRRB      SC2993706J93SC29SC29SC29
IBM FRU/CRU: 42D0678
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive Temperature :27C (80.60 F)
PI Eligibility:  No
Drive is formatted for PI information:  No
PI: No PI
Drive's write cache : Disabled
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Port-1 :
Port status: Active
Port's Linkspeed: Unknown
Drive has flagged a S.M.A.R.T alert : No
Exit Code: 0x00


-- Then List if any foreign configuration.


[07:26:46] test:/opt/MegaRAID/MegaCli # ./MegaCli64 -CfgForeign -Scan -a0
There are 1 foreign configuration(s) on controller 0.
Exit Code: 0x00

-- Clear the foreign configuration.

[07:27:43] test:/opt/MegaRAID/MegaCli # ./MegaCli64 -CfgForeign -Clear -a0
Foreign configuration 0 is cleared on controller 0.
Exit Code: 0x00



-- Confirm the configuration is successfully cleared.


[07:27:45] test:/opt/MegaRAID/MegaCli # ./MegaCli64 -CfgForeign -Scan -a0
There is no foreign configuration on controller 0.
Exit Code: 0x00


-- Display the current configuration

[07:35:22] test:/opt/MegaRAID/MegaCli # ./MegaCli64 -CfgDsply -a0

==============================================================================
Adapter: 0
Product Name: ServeRAID M5014 SAS/SATA Controller
Memory: 256MB
BBU: Absent
Serial No: SV33021667
==============================================================================
Number of DISK GROUPS: 1

DISK GROUP: 0
Number of Spans: 1
SPAN: 0
Span Reference: 0x00
Number of PDs: 2
Number of VDs: 1
Number of dedicated Hotspares: 0
Virtual Drive Information:
Virtual Drive: 0 (Target Id: 0)
Name                :
RAID Level          : Primary-1, Secondary-0, RAID Level Qualifier-0
Size                : 135.972 GB
Mirror Data         : 135.972 GB
State               : Degraded
Strip Size          : 128 KB
Number Of Drives    : 2
Span Depth          : 1
Default Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy   : Disabled
Encryption Type     : None
Is VD Cached: No
Physical Disk Information:
Physical Disk: 0



Physical Disk: 1
Enclosure Device ID: 252
Slot Number: 1
Drive's postion: DiskGroup: 0, Span: 0, Arm: 1
Enclosure position: 0
Device Id: 9
WWN: 500003950809D34D
Sequence Number: 2
Media Error Count: 132
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SAS
Raw Size: 136.731 GB [0x11176d60 Sectors]
Non Coerced Size: 136.231 GB [0x11076d60 Sectors]
Coerced Size: 135.972 GB [0x10ff2000 Sectors]
Firmware state: Online, Spun Up
Device Firmware Level: SC29
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x500003950809d34e
SAS Address(1): 0x0
Connected Port Number: 0(path0)
Inquiry Data: IBM-ESXSMK1401GRRB      SC2993706J93SC29SC29SC29
IBM FRU/CRU: 42D0678
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive Temperature :27C (80.60 F)
PI Eligibility:  No
Drive is formatted for PI information:  No
PI: No PI
Drive's write cache : Disabled
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Port-1 :
Port status: Active
Port's Linkspeed: Unknown
Drive has flagged a S.M.A.R.T alert : No
Exit Code: 0x00



-- Then replace the missing PD.

[07:42:20] test:/opt/MegaRAID/MegaCli # ./MegaCli64 -PdReplaceMissing -PhysDrv[252:0]] -array0 -row0 -a0
Adapter: 0: Missing PD at Array 0, Row 0 is replaced.
Exit Code: 0x00

-- Once the PD replaced, start the rebuild

[07:43:01] test:/opt/MegaRAID/MegaCli # ./MegaCli64 -PDRbld -Start -PhysDrv[252:0] -a0
Started rebuild progress on device(Encl-252 Slot-0)
Exit Code: 0x00

--To check the progress

[08:43:01] test:/opt/MegaRAID/MegaCli # ./MegaCli64 -PDRbld -ShowProg -PhysDrv[252:0] -aALL

Rebuild Progress on Device at Enclosure 252, Slot 0 Completed 44% in 60 Minutes.


Exit Code: 0x00


--The disk will be online once rebuild is complete.

[08:45:37] cse-cds2n2:/opt/MegaRAID/MegaCli # ./MegaCli64 -CfgDsply -a0

==============================================================================
Adapter: 0
Product Name: ServeRAID M5014 SAS/SATA Controller
Memory: 256MB
BBU: Absent
Serial No: SV33021667
==============================================================================
Number of DISK GROUPS: 1

DISK GROUP: 0
Number of Spans: 1
SPAN: 0
Span Reference: 0x00
Number of PDs: 2
Number of VDs: 1
Number of dedicated Hotspares: 0
Virtual Drive Information:
Virtual Drive: 0 (Target Id: 0)
Name                :
RAID Level          : Primary-1, Secondary-0, RAID Level Qualifier-0
Size                : 135.972 GB
Mirror Data         : 135.972 GB
State               : Optimal
Strip Size          : 128 KB
Number Of Drives    : 2
Span Depth          : 1
Default Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy   : Disabled
Encryption Type     : None
Is VD Cached: No
Physical Disk Information:
Physical Disk: 0
Enclosure Device ID: 252
Slot Number: 0
Drive's postion: DiskGroup: 0, Span: 0, Arm: 0
Enclosure position: 0
Device Id: 12
WWN: 500000E118589901
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SAS
Raw Size: 136.731 GB [0x11176d60 Sectors]
Non Coerced Size: 136.231 GB [0x11076d60 Sectors]
Coerced Size: 135.972 GB [0x10ff2000 Sectors]
Firmware state: Online, Spun Up
Device Firmware Level: SC17
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x500000e118589902
SAS Address(1): 0x0
Connected Port Number: 1(path0)
Inquiry Data: IBM-ESXSMBE2147RC       SC17D300G6K5SC17SC17SC17
IBM FRU/CRU: 42D0668
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive Temperature :29C (84.20 F)
PI Eligibility:  No
Drive is formatted for PI information:  No
PI: No PI
Drive's write cache : Disabled
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Port-1 :
Port status: Active
Port's Linkspeed: Unknown
Drive has flagged a S.M.A.R.T alert : No



Physical Disk: 1
Enclosure Device ID: 252
Slot Number: 1
Drive's postion: DiskGroup: 0, Span: 0, Arm: 1
Enclosure position: 0
Device Id: 9
WWN: 500003950809D34D
Sequence Number: 2
Media Error Count: 24
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SAS
Raw Size: 136.731 GB [0x11176d60 Sectors]
Non Coerced Size: 136.231 GB [0x11076d60 Sectors]
Coerced Size: 135.972 GB [0x10ff2000 Sectors]
Firmware state: Online, Spun Up
Device Firmware Level: SC29
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x500003950809d34e
SAS Address(1): 0x0
Connected Port Number: 0(path0)
Inquiry Data: IBM-ESXSMK1401GRRB      SC2993706J93SC29SC29SC29
IBM FRU/CRU: 42D0678
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive Temperature :28C (82.40 F)
PI Eligibility:  No
Drive is formatted for PI information:  No
PI: No PI
Drive's write cache : Disabled
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Port-1 :
Port status: Active
Port's Linkspeed: Unknown
Drive has flagged a S.M.A.R.T alert : No




No comments:

Post a Comment