<br><br><div class="gmail_quote">On Thu, Jun 16, 2011 at 5:03 PM, Dejan Muhamedagic <span dir="ltr"><<a href="mailto:dejanmm@fastmail.fm">dejanmm@fastmail.fm</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Thu, Jun 16, 2011 at 03:21:47PM +0300, Aleksey Mykhailov wrote:<br>
> Hello!<br>
><br>
> I've two node cluster created from two xenserver guests<br>
> each node located on the different dom0<br>
> node0 on dom0-0<br>
> node1 on dom0-1<br>
><br>
> for stonith I'm going use this <a href="http://code.google.com/p/fence-xenserver/" target="_blank">http://code.google.com/p/fence-xenserver/</a><br>
><br>
> but questions probably not related to this details , it mostly theoretical<br>
> so,<br>
> I tried to block network connections with iptables on node0:<br>
> iptables -A OUTPUT -d node1 -j REJECT<br>
> iptables -A INPUT -s node1 -j REJECT<br>
><br>
> and as result - all cluster resources was started on the both nodes<br>
> drbd was switched to the Primary/Unknown state on both nodes too and so on<br>
> ...<br>
><br>
> and as far as I understood if I will have stonith enabled pacemaker kill one<br>
> of the cluster node (am I right?)<br>
> but how pacemaker decide which node to kill ?<br>
> in my case node0 and node1 is up and running, which of them will be killed ?<br>
> how pacemaker know that another node is up and it is only network issue?<br>
<br>
They'll try to shoot each other. The faster wins. See<br>
<a href="http://ourobengr.com/ha" target="_blank">http://ourobengr.com/ha</a><br><br></blockquote><div><br></div><div>and configuration should be like this</div><div><br></div><div>primitive st-node1 stonith:foo \</div><div>
params hostlist="node1"</div><div>primitive st-node2 stonith:foo \</div><div>params hostlist="node2"</div><div>location l-st-node1 st-node1 -inf: node1</div><div>location l-st-node2 st-node2 -inf: node2</div>
<div> </div><div>?</div><div><br></div><div><br></div></div>