hi list
I have 3-node HA cluster. each node is xen domU on separate physical
server. I created fencing devices as described by Russell Coker
(http://etbe.coker.com.au/2007/06/24/xen-and-heartbeat/). so, I'm really
sure that stonith devices itself works, because:
1. monitor and start operations always success
2. "stonith -t external/xen -p 'domU sshacc' -T host" works perfect,
but. but when I'm imitate failure (ifconfig eth0 down) on resource
(ipaddr) owner, nothing occurs. I can see in logs on DC:
info: client tengine [pid: 25914] want a STONITH operation RESET to node
netsrv0.office.sigmatrans.ru.
info: Broadcasting the message succeeded: require others to stonith node
netsrv0.office.sigmatrans.ru.
info: te_fence_node:actions.c Executing reboot fencing operation (19) on
netsrv0.office.sigmatrans.ru (timeout=2500)
this three messages is repeating, until myhost.mydomain.ru will not
reboot. fencing config is in attach. will appreciate any help.
alexander
#!/bin/bash
cibadmin --obj_type resources $CIB_ACTION -p << END
<primitive id="XenStonith0" class="stonith" type="external/xen">
<operations>
<op name="monitor" interval="20s" timeout="40s" prereq="nothing"/>
<op name="start" timeout="40s" prereq="nothing"/>
</operations>
<instance_attributes>
<attributes>
<nvpair name="hostlist" value="netsrv0"/>
<nvpair name="sshaccount" value="[EMAIL PROTECTED]"/>
</attributes>
</instance_attributes>
</primitive>
END
cibadmin --obj_type resources $CIB_ACTION -p << END
<primitive id="XenStonith1" class="stonith" type="external/xen">
<operations>
<op name="monitor" interval="20s" timeout="40s" prereq="nothing"/>
<op name="start" timeout="40s" prereq="nothing"/>
</operations>
<instance_attributes>
<attributes>
<nvpair name="hostlist" value="netsrv1"/>
<nvpair name="sshaccount" value="[EMAIL PROTECTED]"/>
</attributes>
</instance_attributes>
</primitive>
END
cibadmin --obj_type resources $CIB_ACTION -p << END
<primitive id="XenStonith2" class="stonith" type="external/xen">
<operations>
<op name="monitor" interval="20s" timeout="40s" prereq="nothing"/>
<op name="start" timeout="40s" prereq="nothing"/>
</operations>
<instance_attributes>
<attributes>
<nvpair name="hostlist" value="mysql2"/>
<nvpair name="sshaccount" value="[EMAIL PROTECTED]"/>
</attributes>
</instance_attributes>
</primitive>
END
cibadmin --obj_type constraints $CIB_ACTION -p << END
<rsc_location id="XenStonithNode0" rsc="XenStonith0">
<rule id="XenStonithRuleNode0-0" score="100">
<expression id="XenStonithExpressionNode0-0" attribute="#uname"
operation="eq" value="netsrv1.office.sigmatrans.ru"/>
</rule>
<rule id="XenStonithRuleNode0-1" score="10">
<expression id="XenStonithExpressionNode0-1" attribute="#uname"
operation="eq" value="mysql2.office.sigmatrans.ru"/>
</rule>
<rule id="XenStonithRuleNode0-2" score="-INFINITY">
<expression id="XenStonithExpressionNode0-2" attribute="#uname"
operation="eq" value="netsrv0.office.sigmatrans.ru"/>
</rule>
</rsc_location>
END
cibadmin --obj_type constraints $CIB_ACTION -p << END
<rsc_location id="XenStonithNode1" rsc="XenStonith1">
<rule id="XenStonithRuleNode1-0" score="100">
<expression id="XenStonithExpressionNode1-0" attribute="#uname"
operation="eq" value="mysql2.office.sigmatrans.ru"/>
</rule>
<rule id="XenStonithRuleNode1-1" score="10">
<expression id="XenStonithExpressionNode1-1" attribute="#uname"
operation="eq" value="netsrv0.office.sigmatrans.ru"/>
</rule>
<rule id="XenStonithRuleNode1-2" score="-INFINITY">
<expression id="XenStonithExpressionNode1-2" attribute="#uname"
operation="eq" value="netsrv1.office.sigmatrans.ru"/>
</rule>
</rsc_location>
END
cibadmin --obj_type constraints $CIB_ACTION -p << END
<rsc_location id="XenStonithNode2" rsc="XenStonith2">
<rule id="XenStonithRuleNode2-0" score="100">
<expression id="XenStonithExpressionNode2-0" attribute="#uname"
operation="eq" value="netsrv0.office.sigmatrans.ru"/>
</rule>
<rule id="XenStonithRuleNode2-1" score="10">
<expression id="XenStonithExpressionNode2-1" attribute="#uname"
operation="eq" value="netsrv1.office.sigmatrans.ru"/>
</rule>
<rule id="XenStonithRuleNode2-2" score="-INFINITY">
<expression id="XenStonithExpressionNode2-2" attribute="#uname"
operation="eq" value="mysql2.office.sigmatrans.ru"/>
</rule>
</rsc_location>
END
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems