One. Installation:
#安装源
Wget-q-o-http://linux.dell.com/repo/hardware/omsa_7.1.1/bootstrap.cgi | Bash
#如果出现软件冲突, the execution
Yum Remove Tog-pegasus tog-pegasus-libs-y
RPM-E Lib_utils-1.00-08.noarch megacli-8.00.29-1.i386
RPM-E Lib_utils-1.00-09.noarch Megacli-8.02.21-1.noarch
#安装全部程序
Yum Install Srvadmin-all-y
#启动程序
Cd/opt/dell/srvadmin/sbin
./srvadmin-services.sh Start
Two. Deployment
#自启动
Writes/opt/dell/srvadmin/sbin/srvadmin-services.sh start to Rc.local
Make sure Mount 192.168.0.71:/vol/vol2/share is already mounted
#部署脚本
Add the following script location in sh/share/yunwei/shell/system/dellraid2_check_01.sh
The script reads as follows:
#--------------------------------------------------Start
#!/bin/bash
Count= '/opt/dell/srvadmin/sbin/omreport storage pdisk controller=0 |grep ^id |wc-l '
Let count= ($count)
Count1= '/opt/dell/srvadmin/sbin/omreport Storage pdisk controller=0 | Egrep "(^status|^state)" | awk ' {if ($3~/ok/) {print $3}else if ($3~/online/) {print $}} ' |wc-l '
if (($count = = $count 1))
Then
Echo OK
Sh/share/yunwei/shell/commonapi/mms_api_01.sh ' hostname ' disk-is-normal_status ' hostname ' 1 0 0
Else
echo Error
Sh/share/yunwei/shell/commonapi/mms_api_01.sh ' hostname ' DISK-IS-ERROR ' hostname ' 1 2 1 6
Fi
#----------------------------------------------------End
#部署计划任务
Additional planning tasks are as follows:
* * * (sh/share/yunwei/shell/system/dellraid2_check_01.sh &)
DELL sas6i Disk Monitoring deployment