[Pacemaker] stonith xenU

Dejan Muhamedagic dejanmm at fastmail.fm
Fri Jun 24 07:54:06 UTC 2011


On Thu, Jun 16, 2011 at 05:55:08PM +0300, Aleksey Mykhailov wrote:
> 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
> 
> ?

Right. There's more documentation on fencing at
clusterlabs.org/doc.

Thanks,

Dejan

> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker





More information about the Pacemaker mailing list