[Pacemaker] emergency pppoe connection
James Harper
james.harper at bendigoit.com.au
Thu Oct 4 01:00:59 UTC 2012
> > > > rule 0: ping_gw eq 0
> > > > rule -inf: #uname ne node1 and #name ne node2
> > > >
> > > > so the first rule says the resource can run on any location if the
> > > > gateway
> > > can't be pinged, and the second rule says it can't run on any node
> > > except
> > > node1 and node2. It's an asymmetric cluster.
> > > >
> > > > Is there a better way to do it?
> > >
> > > If you want the resource to run only if the gateway cannot be
> > > reached I think that it should be:
> > >
> > > rule -inf: ping_gw gt 0 \
> > > rule -inf: #uname ne node1 and #name ne node2
> > >
> >
> > Isn't my way correct for the asymmetric cluster case?
>
> Yes, missed that part :) Though in that case I'd still put a positive score. Can't
> recall if the score is actually required to be positive for assymetric clusters.
>
0 works just fine. The mistake I made was that I needed the ping to be a clone resource as the 'ping_gw' value is node specific so the ping needs to run on all nodes, or at least the nodes that the pppoe resource itself should run on
James
More information about the Pacemaker
mailing list