Skip to content

Instantly share code, notes, and snippets.

@dincosman
Last active October 7, 2023 06:26
Check Physical disk Status
[root@exacel10 ~]# /opt/MegaRAID/storcli/storcli64 -Pdlist -aAll | grep "Slot\|Firmware"
Slot Number: 0
Firmware state: Online, Spun Up
Device Firmware Level: A8C0
Slot Number: 1
Firmware state: Online, Spun Up
Device Firmware Level: A8C0
Slot Number: 2
Firmware state: Online, Spun Up
Device Firmware Level: 0B25
Slot Number: 3
Firmware state: Online, Spun Up
Device Firmware Level: 0B25
Slot Number: 4
Firmware state: Online, Spun Up
Device Firmware Level: 0B25
Slot Number: 5
Firmware state: Online, Spun Up
Device Firmware Level: 0B25
Slot Number: 6
FIRMWARE STATE: UNCONFIGURED(BAD) ------
Device Firmware Level: 0B25
Slot Number: 7
Firmware state: Online, Spun Up
Device Firmware Level: 0B25
Slot Number: 8
Firmware state: Online, Spun Up
Device Firmware Level: 0B25
Slot Number: 9
Firmware state: Online, Spun Up
Device Firmware Level: 0B25
Slot Number: 10
Firmware state: Online, Spun Up
Device Firmware Level: 0B25
Slot Number: 11
Firmware state: Online, Spun Up
Device Firmware Level: 0B25
[root@exacel10 ~]# /opt/MegaRAID/storcli/storcli64 -PDMakeGood -PhysDrv[20:6] -a0
Adapter: 0: EnclId-20 SlotId-6 state changed to Unconfigured-Good.
Exit Code: 0x00
[root@exacel10 ~]# /opt/MegaRAID/storcli/storcli64 -Pdlist -aAll | grep "Slot\|Firmware"
...
Slot Number: 6
Firmware state: Unconfigured(good), Spun Up
Device Firmware Level: 0B25
...
[root@exacel10 ~]# /opt/MegaRAID/storcli/storcli64 /c0/e20/sall show
CLI Version = 007.0530.0000.0000 Sep 21, 2018
Operating system = Linux 4.1.12-124.30.1.el7uek.x86_64
Controller = 0
Status = Success
Description = Show Drive Information Succeeded.
Drive Information :
=================
------------------------------------------------------------------------------
EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp Type
------------------------------------------------------------------------------
20:0 28 Onln 0 557.861 GB SAS HDD N N 512B HUS1560SCSUN600G U -
20:1 30 Onln 10 557.861 GB SAS HDD N N 512B HUS1560SCSUN600G U -
20:2 25 Onln 1 557.861 GB SAS HDD N N 512B ST360057SSUN600G U -
20:3 16 Onln 2 557.861 GB SAS HDD N N 512B ST360057SSUN600G U -
20:4 29 Onln 3 557.861 GB SAS HDD N N 512B ST360057SSUN600G U -
20:5 24 Onln 4 557.861 GB SAS HDD N N 512B ST360057SSUN600G U -
20:6 13 UGood - 557.861 GB SAS HDD N N 512B ST360057SSUN600G U - -------->
20:7 27 Onln 5 557.861 GB SAS HDD N N 512B ST360057SSUN600G U -
20:8 23 Onln 6 557.861 GB SAS HDD N N 512B ST360057SSUN600G U -
20:9 22 Onln 7 557.861 GB SAS HDD N N 512B ST360057SSUN600G U -
20:10 9 Onln 8 557.861 GB SAS HDD N N 512B ST360057SSUN600G U -
20:11 8 Onln 9 557.861 GB SAS HDD N N 512B ST360057SSUN600G 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/PowerSave|T-Transition|F-Foreign
UGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shielded
CFShld-Configured shielded|Cpybck-CopyBack|CBShld-Copyback Shielded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment