Dell r710 raid监控(MegaCli)

说明:安装的操作系统: CentOS 5.5 x86_64
1、使用命令lspci(查看主板所有硬件槽信息)查看raid卡的型号
RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 1078 (rev 04)这行可以看出我们raid卡的型号

2、选择
MegaRAID SAS 8708ELP 的原因:LSI SAS 1078管理软家包称为 MegaRAID storage Manager,这里采用LSI官方网站 MegaRAID SAS 8708ELP RAID卡提供的管理软件包(同样采用LSI SAS 1078控制芯片)。

3、到http://www.lsi.com/storage_home/products_home/internal_raid/megaraid_sas/megaraid_sas_8708elp/index.html下载

http://www.lsi.com/DistributionSystem/User/AssetMgr.aspx?asset=56270(megaraid_sas_8708elp)(wget "http://www.lsi.com/DistributionSystem/User/AssetMgr.aspx?asset=56270" -O 8.00.40_Linux_MegaCLI.zip)

4、unzip 8[1].00.40_Linux_MegaCLI.zip,安装解压出来的2个rpm包

5、rpm -ivh Lib_Utils-1.00-08.noarch.rpm

6、rpm -ivh MegaCli-8.00.40-1.i386.rpm

7、脚本:(『MegaRAID安装目录/MegaCli/check_megaraid.sh』)

 
CONT="a0 a1"
STATUS=0
echo -n "Checking RAID status on "
hostname
for a in $CONT
do
NAME=`MegaRAID安装目录/MegaCli/MegaCli64 -AdpAllInfo -$a |grep "Product Name" | cut -d: -f2`
echo "Controller $a: $NAME"
noonline=`MegaCli/MegaCli64 PDList -$a | grep Online | wc -l`
echo "No of Physical disks online : $noonline"
DEGRADED=`MegaRAID安装目录/MegaCli/MegaCli64 -AdpAllInfo -a0 |grep "Degrade"`
echo $DEGRADED
NUM_DEGRADED=`echo $DEGRADED |cut -d" " -f3`
[ "$NUM_DEGRADED" -ne 0 ] && STATUS=1
FAILED=`MegaRAID安装目录/MegaCli/MegaCli64 -AdpAllInfo -a0 |grep "Failed Disks"`
echo $FAILED
NUM_FAILED=`echo $FAILED |cut -d" " -f4`
[ "$NUM_FAILED" -ne 0 ] && STATUS=1
done
exit $STATUS

你可能感兴趣的:(raid,监控,dell,休闲,r710)