<div style="font-family: Arial; font-size: 13;">Ok, got it, I hadn&#39;t gracefully shut pacemaker on node2.<br>Now I restarted, everything was up, stopped pacemaker service on host2 and I got host1 with both IPs configured. ;)<br><br>But, though I understand that if I halt host2 with no grace shut of pacemaker, it will not move the IP2 to Host1, I don&#39;t expect host1 to loose its own IP! Why?<br><br>Gabriele<br><br><div id="wt-mailcard"><div style="font-family: Arial;">----------------------------------------------------------------------------------------<br></div><div style="font-family: Arial;"><b>Sonicle S.r.l. </b>: <a href="http://www.sonicle.com/" target="_new">http://www.sonicle.com</a></div><div style="font-family: Arial;"><b>Music: </b><a href="http://www.gabrielebulfon.com/" target="_new">http://www.gabrielebulfon.com</a></div><div style="font-family: Arial;"><b>Quantum Mechanics : </b><a href="http://www.cdbaby.com/cd/gabrielebulfon" target="_new">http://www.cdbaby.com/cd/gabrielebulfon</a></div></div><tt><br><br><br>----------------------------------------------------------------------------------<br><br>Da: Klaus Wenninger &lt;kwenning@redhat.com&gt;<br>A: users@clusterlabs.org <br>Data: 29 agosto 2016 17.26.49 CEST<br>Oggetto: Re: [ClusterLabs] ip clustering strange behaviour<br><br></tt><blockquote style="BORDER-LEFT: #000080 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: 5px"><tt>On 08/29/2016 05:18 PM, Gabriele Bulfon wrote:<br>&gt; Hi,<br>&gt;<br>&gt; now that I have IPaddr work, I have a strange behaviour on my test<br>&gt; setup of 2 nodes, here is my configuration:<br>&gt;<br>&gt; ===STONITH/FENCING===<br>&gt;<br>&gt; primitive xstorage1-stonith stonith:external/ssh-sonicle op monitor<br>&gt; interval=&quot;25&quot; timeout=&quot;25&quot; start-delay=&quot;25&quot; params hostlist=&quot;xstorage1&quot;<br>&gt;<br>&gt; primitive xstorage2-stonith stonith:external/ssh-sonicle op monitor<br>&gt; interval=&quot;25&quot; timeout=&quot;25&quot; start-delay=&quot;25&quot; params hostlist=&quot;xstorage2&quot;<br>&gt;<br>&gt; location xstorage1-stonith-pref xstorage1-stonith -inf: xstorage1<br>&gt; location xstorage2-stonith-pref xstorage2-stonith -inf: xstorage2<br>&gt;<br>&gt; property stonith-action=poweroff<br>&gt;<br>&gt;<br>&gt;<br>&gt; ===IP RESOURCES===<br>&gt;<br>&gt;<br>&gt; primitive xstorage1_wan1_IP ocf:heartbeat:IPaddr params ip=&quot;1.2.3.4&quot;<br>&gt; cidr_netmask=&quot;255.255.255.0&quot; nic=&quot;e1000g1&quot;<br>&gt; primitive xstorage2_wan2_IP ocf:heartbeat:IPaddr params ip=&quot;1.2.3.5&quot;<br>&gt; cidr_netmask=&quot;255.255.255.0&quot; nic=&quot;e1000g1&quot;<br>&gt;<br>&gt; location xstorage1_wan1_IP_pref xstorage1_wan1_IP 100: xstorage1<br>&gt; location xstorage2_wan2_IP_pref xstorage2_wan2_IP 100: xstorage2<br>&gt;<br>&gt; ===================<br>&gt;<br>&gt; So I plumbed e1000g1 with unconfigured IP on both machines and started<br>&gt; corosync/pacemaker, and after some time I got all nodes online and<br>&gt; started, with IP configured as virtual interfaces (e1000g1:1 and<br>&gt; e1000g1:2) one in host1 and one in host2.<br>&gt;<br>&gt; Then I halted host2, and I expected to have host1 started with both<br>&gt; IPs configured on host1.<br>&gt; Instead, I got host1 started with the IP stopped and removed (only<br>&gt; e1000g1 unconfigured), host2 stopped saying IP started (!?).<br>&gt; Not exactly what I expected...<br>&gt; What&#39;s wrong?<br><br>How did you stop host2? Graceful shutdown of pacemaker? If not ...<br>Anyway ssh-fencing is just working if the machine is still running ...<br>So it will stay unclean and thus pacemaker is thinking that<br>the IP might still be running on it. So this is actually the expected<br>behavior.<br>You might add a watchdog via sbd if you don&#39;t have other fencing<br>hardware at hand ...<br>&gt;<br>&gt; Here is the crm status after I stopped host 2:<br>&gt;<br>&gt; 2 nodes and 4 resources configured<br>&gt;<br>&gt; Node xstorage2: UNCLEAN (offline)<br>&gt; Online: [ xstorage1 ]<br>&gt;<br>&gt; Full list of resources:<br>&gt;<br>&gt; xstorage1-stonith (stonith:external/ssh-sonicle): Started xstorage2<br>&gt; (UNCLEAN)<br>&gt; xstorage2-stonith (stonith:external/ssh-sonicle): Stopped<br>&gt; xstorage1_wan1_IP (ocf::heartbeat:IPaddr): Stopped<br>&gt; xstorage2_wan2_IP (ocf::heartbeat:IPaddr): Started xstorage2 (UNCLEAN)<br>&gt;<br>&gt;<br>&gt; Gabriele<br>&gt;<br>&gt; ----------------------------------------------------------------------------------------<br>&gt; *Sonicle S.r.l. *: http://www.sonicle.com &lt;http://www.sonicle.com/&gt;<br>&gt; *Music: *http://www.gabrielebulfon.com &lt;http://www.gabrielebulfon.com/&gt;<br>&gt; *Quantum Mechanics : *http://www.cdbaby.com/cd/gabrielebulfon<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Users mailing list: Users@clusterlabs.org<br>&gt; http://clusterlabs.org/mailman/listinfo/users<br>&gt;<br>&gt; Project Home: http://www.clusterlabs.org<br>&gt; Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf<br>&gt; Bugs: http://bugs.clusterlabs.org<br><br><br>_______________________________________________<br>Users mailing list: Users@clusterlabs.org<br>http://clusterlabs.org/mailman/listinfo/users<br><br>Project Home: http://www.clusterlabs.org<br>Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf<br>Bugs: http://bugs.clusterlabs.org<br><br><br></tt></blockquote></div>