Monitoring Physical Disk with SMART under LSI 2108

This is a very short post. You may find it useful or consider it as piece of crap post, it depends on how you interpret it. I post this for my personal note. So please don’t complain .. lol.
Basically this post is about how to monitor physical disk using SMART under hardware RAID LSI 2108. It may applies to other controller supported by SMART (list of supported controller can be found here)

Server specs :

  • Supermicro 2U Twin2
  • Type : 2026TT-H6RF
  • SAS Controller : LSI 6Gbps SAS 2108
  • OS : Parallels Cloud Server 6 (pretty much similar to Centos 6)
  • Disk 1: Seagate SAS 146GB (ST9146803SS)
  • Disk 2 : Intel SSD 520 120GB
  • Disk 3 – 6 : Toshiba SAS 600GB (AL13SEB600)
  • RAID configuration : all as single disk, registered as RAID0 under onboard LSI2108

Install MegaCLI Tools

cd /usr/local/src/
cd MegaCli_All_OS/
cd Linux/
rpm -ivh MegaCli-8.07.06-1.noarch.rpm

Testing MegaCLI Tools

It should return with a long information about your adapter :

/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALL

Getting Physical Disk ID on RAID Controller

./MegaCli64 -pdlist -a0 | grep Id
On my server, it returs :
Device Id: 18
Device Id: 24
Device Id: 25
Device Id: 26
Device Id: 27
Device Id: 28

Getting Physical Disk Attributes

lsscsi -g
On my server, it shows :
[0:2:0:0] disk SMC SMC2108 2.13 /dev/sda
[0:2:1:0] disk SMC SMC2108 2.13 /dev/sdb
[0:2:2:0] disk SMC SMC2108 2.13 /dev/sdc
[0:2:3:0] disk SMC SMC2108 2.13 /dev/sdd
[0:2:4:0] disk SMC SMC2108 2.13 /dev/sde
[0:2:5:0] disk SMC SMC2108 2.13 /dev/sdf

Combine this result with previous physical ID query :
/dev/sda has physical disk ID 18
/dev/sdb has physical disk ID 24
and so on…

Insert Disk Parameter to /etc/smartd.conf

Edit /etc/smartd.conf and add comment to this line :
#DEVICESCAN -H -m root
and then add this line :

/dev/sda -d megaraid,18 -a -s (S/../.././02|L/../../6/03)
#Specific for Intel SSD you should add sat+megaraid
/dev/sdb -d sat+megaraid,24 -a -s (S/../.././02|L/../../6/03)
/dev/sdc -d megaraid,25 -a -s (S/../.././02|L/../../6/03)
/dev/sdd -d megaraid,26 -a -s (S/../.././02|L/../../6/03)
/dev/sde -d megaraid,27 -a -s (S/../.././02|L/../../6/03)
/dev/sdf -d megaraid,28 -a -s (S/../.././02|L/../../6/03)

*Adjust to match your hardware and scheduled long / short test

Final step is to run smartd :
/etc/init.d/smartd start
Watch for any error on /var/log/messages. It should say “Adding to “monitor” list” for all the physical disks.
Don’t forget to add smartd to your start up.


About piyecarane

Bla bla bla about me
This entry was posted in Linux and tagged , , , , . Bookmark the permalink.

One Response to Monitoring Physical Disk with SMART under LSI 2108

  1. aprogrammer says:

    Thanks. But you can just add repos if you are using debian system as described here . And it’s better to use megacli -LdPdInfo -aAll to get list of ID’s for each virtual drive. Regards.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s