Hello list,
I have setup two nodes cluster on vmware workstation (windows)
and configured two virtual network interfaces for heartbeat
communication.
I want to reboot the node if any one of its virtual NIC is made down
(equivalent to n/w cable disconnect).
I tried this by configuring ssh stonith but every time this stonith
script will try to use ip address corresponding to the hostname (uname
-n), if the NIC corresponding to that address is down then node can't be
stonithed.
Can someone please explain how to configure ssh stonith script, so that
it can make use of either of NICs (links) for stonith.
/etc/hosts entries:
192.168.214.128 node1
192.168.214.129 node2
192.168.61.101 node11
192.168.61.102 node21
uname -n :
node1 & node2
My current stonith configuration is as follows :
<clone id="stonith">
<instance_attributes id="stonith_instance_attrs">
<attributes>
<nvpair id="stonith_clone_max" name="clone_max" value="2"/>
<nvpair id="stonith_clone_node_max" name="clone_node_max"
value="1"/>
<nvpair id="stonith_target_role" name="target_role"
value="started"/>
</attributes>
</instance_attributes>
<primitive id="resource_stonith" class="stonith" type="ssh"
provider="heartbeat">
<instance_attributes id="resource_stonith_instance_attrs">
<attributes>
<nvpair id="resource_stonith_target_role"
name="target_role" value="started"/>
<nvpair id="c8801da9-1997-4012-97a7-190a1a6bcaf6"
name="hostlist" value="node1 node2"/>
</attributes>
</instance_attributes>
</primitive>
</clone>
Thanks,
Arun.
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems