[Pacemaker] Default gateway issues
Andreas Kurz
andreas.kurz at linbit.com
Mon Aug 8 10:01:06 UTC 2011
On 2011-08-05 15:57, Albéric de Pertat wrote:
> Hi,
>
>
> I'm beginning to use pacemaker and I have come across the following
> problem :
>
>
> I have two nodes with ips 10.0.9.11/24 and 10.0.9.12/24 routed via
> 10.0.9.254. I have declared an IPaddr resource for 10.0.10.10/24. So far
> so good.
>
>
> primitive ip ocf:heartbeat:IPaddr \
>
> params ip="10.0.10.10" cidr_netmask="24" nic="eth0" \
>
> broadcast="10.0.10.255"
>
>
> Then I added a Route resource like so :
>
>
> primitive gw ocf:heartbeat:Route \
>
> params destination="0.0.0.0/0" gateway="10.0.10.1"
>
>
> 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 ?
use two routing tables, one including the default gateway w/o cluster
and one where the Route RA can add the "cluster-gateway" (table with
higher priority, empty if cluster not running/resource not startet)
Regards,
Andreas
>
>
>
> 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
>
>
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
--
: Andreas Kurz
: LINBIT | Your Way to High Availability
: Tel +43-1-8178292-64, Fax +43-1-8178292-82
:
: http://www.linbit.com
DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
This e-mail is solely for use by the intended recipient(s). Information
contained in this e-mail and its attachments may be confidential,
privileged or copyrighted. If you are not the intended recipient you are
hereby formally notified that any use, copying, disclosure or
distribution of the contents of this e-mail, in whole or in part, is
prohibited. Also please notify immediately the sender by return e-mail
and delete this e-mail from your system. Thank you for your co-operation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 294 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110808/9ceefb7b/attachment-0004.sig>
More information about the Pacemaker
mailing list