elif [ "$ARGV" = "$Status" ];then
http=`ps -A |grep httpd |wc -l`
two=2
let "http=http-two"
if [ $http -gt 0 ];then
echo "OK."
else
echo "stopped"
fi
else
echo " can not accept the input parameter......"
fi
primitive资源本来就不能同时启动,只能Failover。
如果有crm命令的话,贴一下crm configure show的结果,xml看起来麻烦。
不过多半不是资源配置的问题,你那lsb脚本....作者: applegump 时间: 2012-08-22 09:35
Pacemaker will try and determine what resources are active on a machine when it starts. To do this, it sends what we call a probe which uses the monitor operation of your ResourceAgent.
There are two common reasons for seeing this message:
Your resource really is active on more than one node
Check you are _not_ starting it on boot
Did Pacemaker suffer an internal failure? If so, please check the Help:Contents page and report it
Your resource doesn't implement the monitor operation correctly
Make sure your Resource Agent conforms to the OCF-spec by using the ocf-tester script