[Pacemaker] stonith xenU
Aleksey Mykhailov
aleksey at myinvisible.net
Thu Jun 16 14:55:08 UTC 2011
On Thu, Jun 16, 2011 at 5:03 PM, Dejan Muhamedagic <dejanmm at fastmail.fm>wrote:
> On Thu, Jun 16, 2011 at 03:21:47PM +0300, Aleksey Mykhailov wrote:
> > Hello!
> >
> > I've two node cluster created from two xenserver guests
> > each node located on the different dom0
> > node0 on dom0-0
> > node1 on dom0-1
> >
> > for stonith I'm going use this http://code.google.com/p/fence-xenserver/
> >
> > but questions probably not related to this details , it mostly
> theoretical
> > so,
> > I tried to block network connections with iptables on node0:
> > iptables -A OUTPUT -d node1 -j REJECT
> > iptables -A INPUT -s node1 -j REJECT
> >
> > and as result - all cluster resources was started on the both nodes
> > drbd was switched to the Primary/Unknown state on both nodes too and so
> on
> > ...
> >
> > and as far as I understood if I will have stonith enabled pacemaker kill
> one
> > of the cluster node (am I right?)
> > but how pacemaker decide which node to kill ?
> > in my case node0 and node1 is up and running, which of them will be
> killed ?
> > how pacemaker know that another node is up and it is only network issue?
>
> They'll try to shoot each other. The faster wins. See
> http://ourobengr.com/ha
>
>
and configuration should be like this
primitive st-node1 stonith:foo \
params hostlist="node1"
primitive st-node2 stonith:foo \
params hostlist="node2"
location l-st-node1 st-node1 -inf: node1
location l-st-node2 st-node2 -inf: node2
?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110616/9f8334ab/attachment.htm>
More information about the Pacemaker
mailing list