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


_______________________________________________
Pacemaker mailing list: Pacemaker@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://bugs.clusterlabs.org

Reply via email to