[Pacemaker] Default gateway issues

Devin Reade gdr at gno.org
Fri Aug 5 16:54:32 EDT 2011

--On Friday, August 05, 2011 03:57:53 PM +0200 Albéric de Pertat
<alberic.depertat at adelux.fr> wrote:

> 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" \
>         broadcast=""
> Then I added a Route resource like so :
> primitive gw ocf:heartbeat:Route \
>         params destination="" gateway=""

It's not clear from the above what is the role of
and if is on your cluster or elsewhere.

If is the IP of your normal default gateway and 
is not part of the cluster, you should be able to get rid of 
the Route resource and just use the normal non-cluster
mechanisms for setting up your default route.

> 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.

Routes aren't "stacked", so the fact that the cluster has to 
remove it when the resource is moved is reasonable.  If you had
it set up independent of the cluster with the same parameters,
then I would consider that a config error.  OTOH, if moving the
gw resource gets rid of a default route that points to a 
second gateway, I would consider that a problem with either 
the cluster software or network stack.


More information about the Pacemaker mailing list