How to Find Hardware RAID Information on Linux

If you want dont know, How to Find Hardware RAID Information on Linux, Then you have come to the right place.

This post will help you to Identify your server has physical raid controller or not, if not they may be using software raid. Lets check for physical raid controller.

If you are interested in learning, Request you to go through the below recommended tutorial.

How to Find Hardware RAID Information on Linux

In order to get any hardware information or specification about the server. you can use lspci command. This command will give us a very long output with all hardware details in low level format. So better use grep command to filter the specific information.


But We want only raid information from the server, use grep command to search for the word raid.

[root@selva ~]# lspci -vv | grep -i raid
01:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2208 [Thunderbolt] (rev 01)
Kernel driver in use: megaraid_sas
Kernel modules: megaraid_sas

The above example output shows exact raid controller specifications we are looking for. but we are not sure whether the raid has been configured or not. From the above output, it is confirmed that we have raid controller available in server.

Lets find any raid been configured or not.

In every linux, we have a file called /proc/scsi/scsi where all information about scsi device or disk will be mentioned by the kernel.

So, use cat command and open the file /proc/scsi/scsi

[root@selva ~]#  cat /proc/scsi/scsi
Attached devices:
Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: MegaRAID Model: LD 0 RAID5 699G Rev: 513O
Type: Direct-Access ANSI SCSI revision: 02

If your server configured with any raid, here you can find the details. In the above example it shows as RAID 5.

Nowadays all raid controller manufacturers provide you cmd based utility and web-based utility. This will make you to easily identify much more information.

For HP systems, this helps narrow down to a particular model or part number.

HP setups are fairly easy. You can cat /proc/driver/cciss/cciss* and receive an output like,
cciss1: HP Smart Array P800 Controller
Board ID: 0x3223103c
Firmware Version: 4.12
IRQ: 122
Logical drives: 2
Current Q depth: 0
Current # commands on controller: 0
Max Q depth since init: 217
Max # commands on controller since init: 386
Max SG entries since init: 31
Sequential access devices: 0


cciss/c1d0:      587.12GB       RAID 1(1+0)
cciss/c1d1:     1000.17GB       RAID 1(1+0)

Related Content on Linux might be useful to you to improve your Linux Skills.


Keep practicing and have fun. Leave your comments if any.

Support Us: Share with your friends and groups.

Stay connected with us on social networking sites, Thank you.
n

Post a Comment

0 Comments