Sometimes you need to find out RAID controller type and model on Linux servers, and this can become a tricky situation if you don’t know the right commands. On this post we will explore exactly that, how to get your Raid type and Model.
Linux Command to find out Raid Controller Type and Model
lshw and lspci are commands that we will be using to get the needed RAID information.
On Ubuntu and Debian systems:
Install lshw and lspci
apt-get install lshw pciutils
For CentOS / RHEL users:
yum install lshw pciutils
The output should be something like this:
[email@example.com:~]yum install lshw pciutils Loaded plugins: fastestmirror, security, universal-hooks Setting up Install Process Loading mirror speeds from cached hostfile * EA4: 184.108.40.206 * base: mirror.tzulo.com * epel: mirror.steadfast.net * extras: mirror.tzulo.com * updates: mirror.sesp.northwestern.edu Package pciutils-3.1.10-4.el6.x86_64 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package lshw.x86_64 0:B.02.17-4.el6 will be installed
Then type this command to get RAID controller information:
lshw | grep raid -i
This is the output on my system:
[firstname.lastname@example.org:~]lshw | grep raid -i description: RAID bus controller product: MegaRAID SAS 2208 [Thunderbolt] configuration: driver=megaraid_sas latency=0
Now let’s find out the RAID type using lspci command.
lspci | grep -i raid
In my case, it displays the RAID controller type and model exactly as I needed:
[email@example.com:~]lspci | grep -i raid 03:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2208 [Thunderbolt] (rev 03)
Getting advanced information from your Raid configuration
lshw can be used to get more information about Raid type and configuration, use this command:
lshw -class disk
[firstname.lastname@example.org:~]lshw -class disk *-disk description: SCSI Disk product: MR9266-4i vendor: LSI physical id: 2.0.0 bus info: scsi@0:2.0.0 logical name: /dev/sda version: 3.46 serial: 0068684307277e0e201022b706b00506 size: 446GiB (479GB) capabilities: partitioned partitioned:dos configuration: ansiversion=5 logicalsectorsize=512 sectorsize=4096 signature=000e2c21
Get the exact Hardware RAID Level
The RAID hardware controller isolates the OS from the raw disks. And the only way to know the exact RAID level is by first installing the raid card utilities provided by the manufacturer.
Yo can also get Hardware RAID Level information from your system startup, you can check out on your bios for detected hardware, and also there is usually a Raid startup application that check/print/monitor/control things.
Get the exact Software RAID Level
You can use dmraid command if you built your Raid using software.
This will list and discover all raid devices, along with format and RAID level used
Now you know how to detect if you have RAID controller on your system or not, and also a way to find out RAID Controller Type, Model, and also to know the RAID level type.