[Pacemaker] Default gateway issues

Albéric de Pertat alberic.depertat at adelux.fr
Fri Aug 5 09:57:53 EDT 2011


I'm beginning to use pacemaker and I have come across the 
following problem :

I have two nodes with ips and routed 
via I have declared an IPaddr resource for So far so good.

primitive ip ocf:heartbeat:IPaddr \
        params ip="" cidr_netmask="24" nic="eth0" \

Then I added a Route resource like so :

primitive gw ocf:heartbeat:Route \
        params destination="" gateway=""

This also works fine. The problems come if I try to move the 
resources. If I standby the node where ip is running, the 
resources ip and gw will move fine but the first node will be 
left without a default gateway as the Route RA simply deletes it 
when it stops, whether it's been added by the cluster or not.

I have tried several pacemaker configurations, none of which 
worked, and I am beginning to think I should not have my 
"passive" gateway in the cluster at all. Is there a way to do 
this or should I modify the Route RA so that it saves the gateway 
before replacing it ?

Thanks for your help
Albéric de Pertat
ADELUX: http://www.adelux.fr
Tel: 01 40 86 45 81
GPG: http://www.adelux.fr/societe/gpg/alberic.asc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110805/b00515b4/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110805/b00515b4/attachment-0002.sig>

More information about the Pacemaker mailing list