Linux Check Model, Serial, Size and Raid type of Disk behind MegaRAID Controller with Storcli

Published by shyam jos on

Storcli is a command line utility to manage MegaRAID Controllers, You can also check Disk Serial number, Model, Disk Size and Raid Mode/Type with this utility.

Download and Install Storcli

Download Link: This zip contains Storcli for Redhat, Centos, and Ubuntu 

By default in centos, RPM package installs the utility to the location /opt/megaraid

To check Disk Speed (RPM), Link Speed, Size, Serial and Manufacturer / Model Number

./storcli64 /c0/eALL/sALL show all | egrep 'Device attributes|SN|Manufacturer|Model Number|Raw size|Speed'

Output

Drive /c0/e252/s0 Device attributes :
SN = 000000000000000
Manufacturer Id = SEAGATE 
Model Number = ST600MM0088     
Raw size = 558.911 GB [0x45dd2fb0 Sectors]
Device Speed = 12.0Gb/s
Link Speed = 12.0Gb/s
Drive /c0/e252/s1 Device attributes :
SN =         03GW1W8B
Manufacturer Id = HGST    
Model Number = HUC101860CSS200 
Raw size = 558.911 GB [0x45dd2fb0 Sectors]
Device Speed = 12.0Gb/s
Link Speed = 12.0Gb/s
Drive /c0/e252/s2 Device attributes :
SN = 000000000000000000000
Manufacturer Id = SEAGATE 
Model Number = ST600MM0088     
Raw size = 558.911 GB [0x45dd2fb0 Sectors]
Device Speed = 12.0Gb/s
Link Speed = 12.0Gb/s
Drive /c0/e252/s3 Device attributes :
SN =         0000000000000000000000000
Manufacturer Id = HGST    
Model Number = HUC101860CSS200 
Raw size = 558.911 GB [0x45dd2fb0 Sectors]
Device Speed = 12.0Gb/s
Link Speed = 12.0Gb/s

To Check Raid Mode/Type

 ./storcli64 /c0 show 

Look for the “VD LIST Section”


VD LIST :
=======

---------------------------------------------------------------
DG/VD TYPE   State Access Consist Cache Cac sCC     Size Name  
---------------------------------------------------------------
0/0   RAID10 Optl  RW     Yes     RWBD  -   ON  1.088 TB webserver 
---------------------------------------------------------------


shyam jos

My name is Shyam Jos, I am a passionate Linux system administrator from Kochi, India. I am a strong advocate of using Linux and Open-Source software.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.