[Pacemaker] emergency pppoe connection
James Harper
james.harper at bendigoit.com.au
Sun Sep 30 05:52:58 UTC 2012
>
> rule ping_gw eq 0 and (#uname eq bitvs5 or #uname eq bitvs6)
>
> and it tells me it doesn't like "and" and "or" in the same expression (or I think
> that's what it's telling me)
>
> any suggestions?
>
I think I've figured it out, I need to do it like:
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?
Thanks
James
More information about the Pacemaker
mailing list