[ClusterLabs] ip clustering strange behaviour

Gabriele Bulfon gbulfon at sonicle.com
Mon Aug 29 15:18:54 UTC 2016


Hi,
now that I have IPaddr work, I have a strange behaviour on my test setup of 2 nodes, here is my configuration:
===STONITH/FENCING===
primitive xstorage1-stonith stonith:external/ssh-sonicle op monitor interval="25" timeout="25" start-delay="25" params hostlist="xstorage1"
primitive xstorage2-stonith stonith:external/ssh-sonicle op monitor interval="25" timeout="25" start-delay="25" params hostlist="xstorage2"
location xstorage1-stonith-pref xstorage1-stonith -inf: xstorage1
location xstorage2-stonith-pref xstorage2-stonith -inf: xstorage2
property stonith-action=poweroff
===IP RESOURCES===
primitive xstorage1_wan1_IP ocf:heartbeat:IPaddr params ip="1.2.3.4" cidr_netmask="255.255.255.0" nic="e1000g1"
primitive xstorage2_wan2_IP ocf:heartbeat:IPaddr params ip="1.2.3.5" cidr_netmask="255.255.255.0" nic="e1000g1"
location xstorage1_wan1_IP_pref xstorage1_wan1_IP 100: xstorage1
location xstorage2_wan2_IP_pref xstorage2_wan2_IP 100: xstorage2
===================
So I plumbed e1000g1 with unconfigured IP on both machines and started corosync/pacemaker, and after some time I got all nodes online and started, with IP configured as virtual interfaces (e1000g1:1 and e1000g1:2) one in host1 and one in host2.
Then I halted host2, and I expected to have host1 started with both IPs configured on host1.
Instead, I got host1 started with the IP stopped and removed (only e1000g1 unconfigured), host2 stopped saying IP started (!?).
Not exactly what I expected...
What's wrong?
Here is the crm status after I stopped host 2:
2 nodes and 4 resources configured
Node xstorage2: UNCLEAN (offline)
Online: [ xstorage1 ]
Full list of resources:
xstorage1-stonith   (stonith:external/ssh-sonicle): Started xstorage2 (UNCLEAN)
xstorage2-stonith   (stonith:external/ssh-sonicle): Stopped
xstorage1_wan1_IP   (ocf::heartbeat:IPaddr):        Stopped
xstorage2_wan2_IP   (ocf::heartbeat:IPaddr):        Started xstorage2 (UNCLEAN)
Gabriele
----------------------------------------------------------------------------------------
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20160829/4fed415a/attachment-0003.html>


More information about the Users mailing list