Entries filed under Linux

View SMART data of disks for Dell PERC and LSI MegaRAID

Posted on August 8, 2014 Comments

Dell’s PERC 6/i is really just an LSI MegaRAID controller rebranded. Because of this, you can use the megaraid parameter in smartmontools to view hard disk health status. All of this information is accessable via Dell OpenManage, but if you prefer to just look it up yourself from time to time without having to use the GUI, this is how.

The syntax for checking a disk within a MegaRAID based controller is as follows via CLI:

smartctl -a -d megaraid,n /dev/sdx

Replace “n” with the disk number in the array you are trying to read, and x with the value. Not sure? Find the array on your system. In this example we’ll check a RAID 1 instances (2x500GB drives).

fdisk -l

Disk /dev/sda: 499.6 GB, 499558383616 bytes

The fdisk results show a single 499.6GB drive, this is our RAID 1 array. We can’t To check the first disk in the array, replace “n” with zero. (This is because in computing we always start with “0”, so the “first” drive is technically drive zero).

smartctl -a -d megaraid,0 /dev/sda

And this returns the health of HDD #1, or the “second” disk in the array:

smartctl -a -d megaraid,1 /dev/sda

Depending on your array you will need to adjust the number.