<div dir="ltr"><div><div><div><div><div><div>Hello all,<br><br></div>I have brought up a test Pacemaker cluster with,<br><br></div>Pacemaker 1.1.8-7.el6 (Build: 394e906)<br></div>DRBD 8.4.4<br></div>CMAN 3.0.12<br><br></div>
I am trying to make KVM guests highly available using 2 server hosts. KVM guests are not included in pacemaker cluster. It is only KVM hosts that are included in pacemaker cluster.<br><br></div>Dummy service, and DRBD seem to migrate cleanly, when i shutdown the service on one of the physical nodes. However, the same thing does not happen for VirtualDomain Resource.<br>
<br>I am using ocf:hearbeat:VirtualDomain resource to manage kvm guest (rsc_lvpvm01), and tried to include the colocation and order constraints with DRBD block device (VmData2Clone) - as below :<br><br> <br><pre>pcs -f fs_cfg constraint colocation add rsc_lvpvm01 VmData2Clone INFINITY with-rsc-role=Master<br>
</pre><pre>pcs -f fs_cfg constraint order promote VmData2Clone then start rsc_lvpvm01<br><br><br></pre><pre>I have created the VirtualDomain resource as below : <br><br>pcs -f kvm_cfg resource create rsc_lvpvm01 ocf:heartbeat:VirtualDomain hypervisor=&quot;qemu:///system&quot; config=&quot;/etc/libvirt/qemu/lvpvm01.xml&quot; meta allow-migrate=&quot;true&quot; op monitor timeout=&quot;30&quot; interval=&quot;10&quot; op start timeout=&quot;120s&quot; op stop timeout=&quot;120s&quot;<br>
<br><br></pre><pre>I have just included IMM fencing, for the two physical nodes.<br></pre><pre><br></pre><pre>These are the steps that i observed :<br><br></pre><pre>1. When i shutdown pacemaker service on physical node, it indefinetely waits at <br>
 &quot; waiting for managed resources to shutdown....&quot;<br><br></pre><pre>2. As soon as, I try to stop the resource using : &quot; pcs resource rsc_lvpvm01 stop &quot; , the above shutdown service<br></pre><pre>   cleanly shutsdown and i see that my services are migrated, but VirtualDomain resource does not start in other<br>
</pre><pre>   physical node, unless i manually start it in other node using : &quot;pcs resouce rsc_lvpvm01 start&quot;.<br><br></pre><pre>3. If i forcefully shutdown my kvm physical host, I wont be able to start VirtualDomain in other node as expected.<br>
<br></pre><pre>4. I would be able to start VirtualDomain in other node, only if i manually stop the resource as in step 2, instead<br></pre><pre>   of abruptly powering off the physical host.<br><br><br></pre><pre>It might be that i need to add better constraints,delay and fencing for VirtualDomain, but i do not understand where <br>
exactly the problem is.<br><br>May i please ask for some help on this issue.<br><br>Please find my CIB dump as attached.<br><br>Thanks,<br><br></pre><pre>Lohit<br></pre></div>