[Pacemaker] IP Range Failover with IPaddr2 and clone / globally-unique="true"
Anton Melser
melser.anton at gmail.com
Wed Jan 25 15:40:38 UTC 2012
>> # 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" \
op monitor interval="120s"
clone CloneIP ClusterIP.144.1 \
meta globally-unique="true" clone-node-max="8" clone-max="8"
unique_clone_address="true"
property $id="cib-bootstrap-options" \
dc-version="1.1.6-3.el6-a02c0f19a00c1eb2527ad38f146ebc0834814558" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
last-lrm-refresh="1327508661" \
stonith-enabled="false"
crm(live)# status
============
Last updated: Wed Jan 25 17:36:38 2012
Last change: Wed Jan 25 17:29:07 2012 via cibadmin on FW1
Stack: openais
Current DC: FW1 - partition with quorum
Version: 1.1.6-3.el6-a02c0f19a00c1eb2527ad38f146ebc0834814558
2 Nodes configured, 2 expected votes
8 Resources configured.
============
Online: [ FW1 ]
OFFLINE: [ FW2 ]
Clone Set: CloneIP [ClusterIP.144.1] (unique)
ClusterIP.144.1:0 (ocf::heartbeat:IPaddr2): Started FW1
ClusterIP.144.1:1 (ocf::heartbeat:IPaddr2): Started FW1
ClusterIP.144.1:2 (ocf::heartbeat:IPaddr2): Started FW1
ClusterIP.144.1:3 (ocf::heartbeat:IPaddr2): Started FW1
ClusterIP.144.1:4 (ocf::heartbeat:IPaddr2): Started FW1
ClusterIP.144.1:5 (ocf::heartbeat:IPaddr2): Started FW1
ClusterIP.144.1:6 (ocf::heartbeat:IPaddr2): Started FW1
ClusterIP.144.1:7 (ocf::heartbeat:IPaddr2): Started FW1
[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
More information about the Pacemaker
mailing list