[Pacemaker] emergency pppoe connection

James Harper james.harper at bendigoit.com.au
Sun Sep 30 05:30:17 UTC 2012


My main router is a Xen VM managed by pacemaker. This causes problems when working from home - just lately the Xen resource agent has been a bit temperamental (see other post) and also a new node I'm adding causes clvm to freeze and the network connection is subsequently dropped requiring a drive into the office.

The main router makes some pppoe connections to the ISP, and I'd like for the physical cluster nodes to be able to do that so I can at least get in and manage them. I think my requirements are:

1. a PPP or ifup resource agent (if one doesn't exist I can write one)
2. a way to specify a rule that says only start this resource if  router VM is not answering pings for the last 120 seconds

I think I can do #2 with a ping resource that pings the gateway, and then create a location rule that says the resource can run only on the two nodes (asymmetric cluster) with access to the pppoe vlans if the ping is 0. I don't know how to express that boolean expression though. I try this with CRM:

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?

Thanks

James





More information about the Pacemaker mailing list