<div dir="ltr">Yes... you are right... but If I migrate vm manually by &quot;virsh migrate&quot; is expected the cluster to monitorize where guests are running on...<div><br></div><div>What happens If I stop pacemaker and corosync services in all nodes and I start them again... ¿will I have all guests running twice?</div><div><br></div><div>Thanks a lot</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-17 15:52 GMT+01:00 Ulrich Windl <span dir="ltr">&lt;<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de" target="_blank">Ulrich.Windl@rz.uni-regensburg.de</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">&gt;&gt;&gt; Oscar Segarra &lt;<a href="mailto:oscar.segarra@gmail.com">oscar.segarra@gmail.com</a>&gt; schrieb am 17.01.2017 um 10:15 in<br>
Nachricht<br>
&lt;<a href="mailto:CAJq8taG8VhX5J1xQpqMRQ-9omFNXKHQs54mBzz491_6df9akzA@mail.gmail.com">CAJq8taG8VhX5J1xQpqMRQ-<wbr>9omFNXKHQs54mBzz491_6df9akzA@<wbr>mail.gmail.com</a>&gt;:<br>
<span class="">&gt; Hi,<br>
&gt;<br>
&gt; Yes, I will try to explain myself better.<br>
&gt;<br>
</span>&gt; *Initially*<br>
<span class="">&gt; On node1 (vdicnode01-priv)<br>
&gt;&gt;virsh list<br>
&gt; ==============<br>
&gt; vdicdb01     started<br>
&gt;<br>
&gt; On node2 (vdicnode02-priv)<br>
&gt;&gt;virsh list<br>
&gt; ==============<br>
&gt; vdicdb02     started<br>
&gt;<br>
&gt; --&gt; Now, I execute the migrate command (outside the cluster &lt;-- not using<br>
&gt; pcs resource move)<br>
&gt; virsh migrate --live vdicdb01 qemu:/// qemu+ssh://vdicnode02-priv<br>
&gt; tcp://vdicnode02-priv<br>
<br>
</span>One of the rules of successful clustering is: If resurces are managed by the cluster, they are managed by the cluster only! ;-)<br>
<br>
I guess one node is trying to restart the VM once it vanished, and the other node might try to shut down the VM while it&#39;s being migrated.<br>
Or any other undesired combination...<br>
<br>
&gt;<br>
&gt; *Finally*<br>
<span class="">&gt; On node1 (vdicnode01-priv)<br>
&gt;&gt;virsh list<br>
&gt; ==============<br>
</span>&gt; *vdicdb01     started*<br>
<div class="HOEnZb"><div class="h5">&gt;<br>
&gt; On node2 (vdicnode02-priv)<br>
&gt;&gt;virsh list<br>
&gt; ==============<br>
&gt; vdicdb02     started<br>
&gt; vdicdb01     started<br>
&gt;<br>
&gt; If I query cluster pcs status, cluster thinks resource vm-vdicdb01 is only<br>
&gt; started on node vdicnode01-priv.<br>
&gt;<br>
&gt; Thanks a lot.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 2017-01-17 10:03 GMT+01:00 emmanuel segura &lt;<a href="mailto:emi2fast@gmail.com">emi2fast@gmail.com</a>&gt;:<br>
&gt;<br>
&gt;&gt; sorry,<br>
&gt;&gt;<br>
&gt;&gt; But do you mean, when you say, you migrated the vm outside of the<br>
&gt;&gt; cluster? one server out side of you cluster?<br>
&gt;&gt;<br>
&gt;&gt; 2017-01-17 9:27 GMT+01:00 Oscar Segarra &lt;<a href="mailto:oscar.segarra@gmail.com">oscar.segarra@gmail.com</a>&gt;:<br>
&gt;&gt; &gt; Hi,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I have configured a two node cluster whewe run 4 kvm guests on.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; The hosts are:<br>
&gt;&gt; &gt; vdicnode01<br>
&gt;&gt; &gt; vdicnode02<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; And I have created a dedicated network card for cluster management. I<br>
&gt;&gt; have<br>
&gt;&gt; &gt; created required entries in /etc/hosts:<br>
&gt;&gt; &gt; vdicnode01-priv<br>
&gt;&gt; &gt; vdicnode02-priv<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; The four guests have collocation rules in order to make them distribute<br>
&gt;&gt; &gt; proportionally between my two nodes.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; The problem I have is that if I migrate a guest outside the cluster, I<br>
&gt;&gt; mean<br>
&gt;&gt; &gt; using the virsh migrate - - live...  Cluster,  instead of moving back the<br>
&gt;&gt; &gt; guest to its original node (following collocation sets),  Cluster starts<br>
&gt;&gt; &gt; again the guest and suddenly I have the same guest running on both nodes<br>
&gt;&gt; &gt; causing xfs corruption in guest.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Is there any configuration applicable to avoid this unwanted behavior?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks a lot<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ______________________________<wbr>_________________<br>
&gt;&gt; &gt; Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
&gt;&gt; &gt; <a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
&gt;&gt; &gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/<wbr>doc/Cluster_from_Scratch.pdf</a><br>
&gt;&gt; &gt; Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt;   .~.<br>
&gt;&gt;   /V\<br>
&gt;&gt;  //  \\<br>
&gt;&gt; /(   )\<br>
&gt;&gt; ^`~&#39;^<br>
&gt;&gt;<br>
&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt; Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
&gt;&gt; <a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
&gt;&gt;<br>
&gt;&gt; Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
&gt;&gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/<wbr>doc/Cluster_from_Scratch.pdf</a><br>
&gt;&gt; Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
&gt;&gt;<br>
<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/<wbr>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br></div>