[Pacemaker] CloneIP problem

Marcio Ribeiro mribeiro at gmail.com
Mon Nov 23 15:31:40 UTC 2009


Oh, got it.

Something is still wrong, I am getting DUPs when pinging the virtual IP...

Look:
mmr at fox:~$ sudo crm status
[sudo] password for mmr:


============
Last updated: Mon Nov 23 13:27:33 2009
Stack: openais
Current DC: fox - partition with quorum
Version: 1.0.5-3840e6b5a305ccb803d29b468556739e75532d56
2 Nodes configured, 2 expected votes
1 Resources configured.
============

Online: [ hawk fox ]

Clone Set: WebIP (unique)
    ClusterIP:0	(ocf::heartbeat:IPaddr2):	Started hawk
    ClusterIP:1	(ocf::heartbeat:IPaddr2):	Started fox

---

mmr at maya:~$ ping 192.168.255.125
PING 192.168.255.125 (192.168.255.125) 56(84) bytes of data.
64 bytes from 192.168.255.125: icmp_seq=1 ttl=64 time=0.368 ms
64 bytes from 192.168.255.125: icmp_seq=1 ttl=60 time=1.83 ms (DUP!)
64 bytes from 192.168.255.125: icmp_seq=2 ttl=64 time=0.419 ms
64 bytes from 192.168.255.125: icmp_seq=2 ttl=60 time=1.71 ms (DUP!)
^C
--- 192.168.255.125 ping statistics ---
2 packets transmitted, 2 received, +2 duplicates, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.368/1.082/1.830/0.690 ms



On Mon, Nov 23, 2009 at 12:55 PM, Marcio Ribeiro <mribeiro at gmail.com> wrote:
> It worked!
> But I had to reboot the nodes (prolly just restarting corosync would do also).
>
> Thanks
>
> On Mon, Nov 23, 2009 at 9:28 AM, Michael Schwartzkopff
> <misch at multinet.de> wrote:
>> Am Montag, 23. November 2009 11:27:18 schrieb Marcio Ribeiro:
>>> I have a two node cluster running Pacemaker 1.0.5 on Ubuntu 9.10.
>>>
>>> The nodes are:
>>> fox: 192.168.255.123
>>> hawk: 192.168.255.124
>>>
>>> I have just one IPaddr2 RA configured with a virtual IP
>>> 192.168.255.125 configured.
>>> It works fine but as soon as I clone it (for load balancing) the IP
>>> stops respoding...
>>>
>>> The situation is demonstrated below:
>>>
>>> root at fox:~# crm configure show
>>> node fox \
>>>       attributes standby="off"
>>> node hawk \
>>>       attributes standby="off"
>>> primitive ClusterIP ocf:heartbeat:IPaddr2 \
>>>       params ip="192.168.255.125" cidr_netmask="32" \
>>>       op monitor interval="30s" \
>>>       meta target-role="Started"
>>> property $id="cib-bootstrap-options" \
>>>       dc-version="1.0.5-3840e6b5a305ccb803d29b468556739e75532d56" \
>>>       cluster-infrastructure="openais" \
>>>       expected-quorum-votes="2" \
>>>       no-quorum-policy="ignore" \
>>>       stonith-enabled="false"
>>> rsc_defaults $id="rsc-options" \
>>>       resource-stickiness="100"
>>>
>>> ----
>>>
>>> root at fox:~# crm status
>>>
>>>
>>> ============
>>> Last updated: Thu Nov 12 19:22:30 2009
>>> Stack: openais
>>> Current DC: fox - partition with quorum
>>> Version: 1.0.5-3840e6b5a305ccb803d29b468556739e75532d56
>>> 2 Nodes configured, 2 expected votes
>>> 1 Resources configured.
>>> ============
>>>
>>> Online: [ hawk fox ]
>>>
>>> ClusterIP     (ocf::heartbeat:IPaddr2):       Started hawk
>>>
>>> Failed actions:
>>>     ClusterIP:0_monitor_0 (node=(null), call=2, rc=2,
>>> status=complete): invalid parameter
>>>     ClusterIP:1_monitor_0 (node=(null), call=2, rc=2,
>>> status=complete): invalid parameter
>>>
>>> ----
>>>
>>> root at fox:~# ping 192.168.255.125
>>> PING 192.168.255.125 (192.168.255.125) 56(84) bytes of data.
>>> 64 bytes from 192.168.255.125: icmp_seq=1 ttl=64 time=30.4 ms
>>> 64 bytes from 192.168.255.125: icmp_seq=2 ttl=64 time=0.264 ms
>>> ^C
>>> --- 192.168.255.125 ping statistics ---
>>> 2 packets transmitted, 2 received, 0% packet loss, time 1028ms
>>> rtt min/avg/max/mdev = 0.264/15.373/30.483/15.110 ms
>>>
>>> ----
>>>
>>> root at fox:~# crm configure clone WebIP ClusterIP meta
>>> globally-unique="true" clone-max="2" clone-node-max="2"
>>>
>>> ----
>>>
>>> root at fox:~# crm status
>>>
>>>
>>> ============
>>> Last updated: Thu Nov 12 19:24:45 2009
>>> Stack: openais
>>> Current DC: fox - partition with quorum
>>> Version: 1.0.5-3840e6b5a305ccb803d29b468556739e75532d56
>>> 2 Nodes configured, 2 expected votes
>>> 1 Resources configured.
>>> ============
>>>
>>> Online: [ hawk fox ]
>>>
>>>
>>> Failed actions:
>>>     ClusterIP:0_monitor_0 (node=(null), call=2, rc=2,
>>> status=complete): invalid parameter
>>>     ClusterIP:1_monitor_0 (node=(null), call=7, rc=2,
>>> status=complete): invalid parameter
>>>     ClusterIP:1_monitor_0 (node=(null), call=2, rc=2,
>>> status=complete): invalid parameter
>>>     ClusterIP:0_monitor_0 (node=(null), call=4, rc=2,
>>> status=complete): invalid parameter
>>>
>>>
>>> ----
>>>
>>> root at fox:~# ping 192.168.255.125
>>> PING 192.168.255.125 (192.168.255.125) 56(84) bytes of data.
>>> ^C
>>> --- 192.168.255.125 ping statistics ---
>>> 5 packets transmitted, 0 received, 100% packet loss, time 4032ms
>>>
>>>
>>> ---
>>>
>>> I looked up the logs (/var/log/messages and /var/log/syslog) and
>>> crm_verify -L -V and got nothing but "invalid parameter". I tried
>>> reading the RA script source (IPaddr2) searching where it might return
>>> this 'invalid parameter' error and found nothing...
>>>
>>> Any ideas? What am I missing?
>>> Thank you
>>
>> Also search for "lrm.*ClusterIP" in your system log file.
>>
>> Greetings,
>>
>> --
>> 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
>>
>> _______________________________________________
>> Pacemaker mailing list
>> Pacemaker at oss.clusterlabs.org
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>
>
>
>
> --
> Marcio Ribeiro
>



-- 
Marcio Ribeiro




More information about the Pacemaker mailing list