SMART HDD
yum install smartmontools
apt-get install smartmontools snmp-mibs-downloader
# check_smart.sh sat+megaraid,0 /dev/sda Reallocated_Sector_Ct
echo `smartctl -A -d $1 $2 | awk -v ATTRIBUTE_NAME=$3 '$0 ~ ATTRIBUTE_NAME {print $10}'`
http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/8.04.07_MegaCLI.zip
http://it.bmc.uu.se/andlov/docs/linux/raid/files/megacli-8.04.07-2.x86_64.rpm
rpm -ihv megacli-8.04.07-2.x86_64.rpm
Show physical disks from first controller:
megacli -PDList -a0
http://artipc10.vub.ac.be/wordpress/2011/09/12/megacli-useful-commands
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll | grep 'Device Id'
megacli -pdlist -a0 | grep 'Device Id'
smartctl -d sat+megaraid,4 -a /dev/sda
smartctl -d megaraid,4 -a /dev/sda