[Pacemaker] Help with Pacemaker 2-node Router Setup

Michael Schwartzkopff misch at multinet.de
Sat Dec 26 16:58:43 UTC 2009


Am Samstag, 26. Dezember 2009 08:12:49 schrieb Eric Renfro:
> Hello,
>
> I'm trying to setup 2 nodes that'll run pacemaker with openais as the
> communication layer. Ideally what I want is for router1 to be the master
> node and take over for router2 if it comes back up fully functional
> again. In my setup, the routers are both internet-facing servers that
> toggle the external internet IP to whichever controls it at the time,
> and also handles the internal IP for the gateway for internal systems to
> route via.
>
> My problem is with Route in my setup, so far, and later getting
> shorewall to start/stop per whichever nodes active.
>
> Route, in my case in the setup I will show below, is failing to start
> initially because I presume the internet IP address is not fully
> initialized at the time it's trying to enable the route. If I do a crm
> resource cleanup failover-gw, it brings it up just fine. If I try to
> move the router_cluster resource to router2 from router1 after it's
> fully up, it fails because of failover-gw on router2.
>
> Here's my setup at present. For the moment, until I figure out how to do
> it, shorewall is started manually, I want to automate this once the
> setup is working, though, perhaps you guys could help me with that as well.
>
> primitive failover-int-ip ocf:heartbeat:IPaddr2 \
>         params ip="192.168.0.1" \
>         op monitor interval="2s"
> primitive failover-ext-ip ocf:heartbeat:IPaddr2 \
>         params ip="24.227.124.158" cidr_netmask="30"
> broadcast="24.227.124.159" nic="net0" \
>         op monitor interval="2s" \
>         meta target-role="Started"
> primitive failover-gw ocf:heartbeat:Route \
>         params destination="0.0.0.0/0" gateway="24.227.124.157"
> device="net0" \
>         meta target-role="Started" \
>         op monitor interval="2s"
> group router_cluster failover-int-ip failover-ext-ip failover-gw
> location router-master router_cluster \
>         rule $id="router-master-rule" $role="master" 100: #uname eq router1
>
> I would appreciate as much help as possible. I am fairly new to
> pacemaker, but so far all but the Route part of this works well.
>
> Thank you,
> Eric Renfro
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker

hi,

works for me here without problems. Setup:

opensuse-11.1, pacemaker-1.0.6 from www.clusterlabs.org/rpm

Configuration
primitive extIP ocf:heartbeat:IPaddr2 \
	params ip="192.168.87.50" cidr_netmask="24" nic="eth0"
primitive intIP ocf:heartbeat:IPaddr2 \
	params ip="172.29.56.1" cidr_netmask="24" nic="eth1"
primitive resRoute ocf:heartbeat:Route \
	params destination="0.0.0.0/0" gateway="192.168.87.1"
group groupRouting intIP extIP resRoute
property $id="cib-bootstrap-options" \
	dc-version="1.0.6-cebe2b6ff49b36b29a3bd7ada1c4701c7470febe" \
	cluster-infrastructure="openais" \
	expected-quorum-votes="2" \
	no-quorum-policy="ignore" \
	stonith-enabled="false"

OK, I do not have an external IP address configured in my system, only a 
internal. But this should not make any difference.

-- 
Dr. Michael Schwartzkopff
MultiNET Services GmbH
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
Tel: +49 - 89 - 45 69 11 0
Fax: +49 - 89 - 45 69 11 21
mob: +49 - 174 - 343 28 75

mail: misch at multinet.de
web: www.multinet.de

Sitz der Gesellschaft: 85630 Grasbrunn
Registergericht: Amtsgericht München HRB 114375
Geschäftsführer: Günter Jurgeneit, Hubert Martens

---

PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
Skype: misch42




More information about the Pacemaker mailing list