[Pacemaker] IP Range Failover with IPaddr2 and clone / globally-unique="true"
Dejan Muhamedagic
dejanmm at fastmail.fm
Wed Jan 25 16:43:57 UTC 2012
On Wed, Jan 25, 2012 at 04:40:38PM +0100, Anton Melser wrote:
> >> # primitive ClusterIP.144.1 ocf:heartbeat:IPaddr2 params
> >> ip="10.144.1.1" cidr_netmask="32" clusterip_hash="sourceip" op monitor
> >> interval="120s"
> >> # clone CloneIP ClusterIP.144.1 meta globally-unique="true" clone-max="8"
> >
> > You have just two nodes so with this configuration you get two
> > clones. You can add meta clone-node-max=8 (or whatever fits your
> > needs) to have more clones running per node.
> >
> > Thanks,
> >
> > Dejan
> Thank you! I just can't understand what I'm doing wrong here then - I
> am only getting one actual IP, whatever I'm putting in. I stopped FW2
> to make sure I have a coherent setup.
>
> crm(live)# configure show
> node FW1
> node FW2
> primitive ClusterIP.144.1 ocf:heartbeat:IPaddr2 \
> params ip="10.144.1.1" cidr_netmask="32" clusterip_hash="sourceip" \
cidr_netmask is not correct (it should be 8). And you need to set
unique_clone_address to true as already mentioned.
Thanks,
Dejan
[...]
> [root at FW1 ~]# ip addr show
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> inet 127.0.0.1/8 scope host lo
> inet6 ::1/128 scope host
> valid_lft forever preferred_lft forever
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
> state UNKNOWN qlen 1000
> link/ether 00:15:5d:43:e9:55 brd ff:ff:ff:ff:ff:ff
> inet 10.140.0.1/8 brd 10.255.255.255 scope global eth0
> inet 10.144.1.1/32 brd 10.144.1.1 scope global eth0
> inet6 fe80::215:5dff:fe43:e955/64 scope link
> valid_lft forever preferred_lft forever
>
> Is this NOT what I should have configured?
> Cheers
> Anton
>
> _______________________________________________
> 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://bugs.clusterlabs.org
More information about the Pacemaker
mailing list