Hi,<br>I use combination Pacemaker 1-1-9971ebba4494 with corosync 1.4.2 (build from source) in two node setup and it looks like everything works great. <br>My cluster contain two DRBD resources in Master-Slave configuration. On each of DRBD resources are placed some virtual disk images for KVM virtual machines. <br>
The idea of this cluster is to run 3 KVM virtual machines on node1 and 5 KVM virtual machines on node2. In case of failure of node1, node2 should start DRBD resource dedicated to node1 and after that,it should start all 3 KVM virtual machines which were on node1. Of course it works in my setup, which is attached at the end.<br>
I configured virtual machines to starts sequentially in group with their DRBD resource (e.g. group group_node1 srv_drbd0 kvm1 kvm2 kvm3), as a result I get sequence of actions:<br>1. srv_drbd0 starts and in case of success kvm1 can start <br>
2. kvm1 starts and in case of success kvm2 can start <br>3. kvm2 starts and in case of success kvm3 can start <br>4. kvm3 starts<br><br>My problem is that starting cluster takes long time and I need concurrent start of KVM virtual machines after DRBD resource is available, just like in this scenario:<br>
1. srv_drbd0 starts and in case of success kvm1, kvm2, kvm3 can start <br>2. kvm1, kvm2, kvm3 start concurrently<br>Is it possible to configure pacemaker cluster in that way? <br><br>My cluster configuration (stonith is off during tests):<br>
<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">node node1<br>node node2<br>primitive kvm1 ocf:heartbeat:VirtualDomain \<br>        params config=&quot;/etc/libvirt/qemu/kvm1.xml&quot; hypervisor=&quot;qemu:///system&quot; \<br>
        op start interval=&quot;0&quot; timeout=&quot;90s&quot; \<br>        op stop interval=&quot;0&quot; timeout=&quot;90s&quot; \<br>        op monitor interval=&quot;10&quot; timeout=&quot;30&quot; \<br>        utilization cpu=&quot;2&quot; hv_memory=&quot;2048&quot;<br>
primitive kvm2 ocf:heartbeat:VirtualDomain \<br>        params config=&quot;/etc/libvirt/qemu/kvm2.xml&quot; hypervisor=&quot;qemu:///system&quot; \<br>        op start interval=&quot;0&quot; timeout=&quot;90s&quot; \<br>
        op stop interval=&quot;0&quot; timeout=&quot;90s&quot; \<br>        op monitor interval=&quot;10&quot; timeout=&quot;30&quot; \<br>        utilization cpu=&quot;2&quot; hv_memory=&quot;512&quot;<br>primitive kvm3 ocf:heartbeat:VirtualDomain \<br>
        params config=&quot;/etc/libvirt/qemu/kvm3.xml&quot; hypervisor=&quot;qemu:///system&quot; \<br>        op start interval=&quot;0&quot; timeout=&quot;90s&quot; \<br>        op stop interval=&quot;0&quot; timeout=&quot;90s&quot; \<br>
        op monitor interval=&quot;10&quot; timeout=&quot;30&quot; \<br>        utilization cpu=&quot;2&quot; hv_memory=&quot;512&quot;<br>primitive drbd_r0 ocf:linbit:drbd \<br>        params drbd_resource=&quot;r0&quot; \<br>
        op monitor interval=&quot;29s&quot; role=&quot;Master&quot; \<br>        op monitor interval=&quot;31s&quot; role=&quot;Slave&quot; \<br>        op start interval=&quot;0&quot; timeout=&quot;240&quot; \<br>        op stop interval=&quot;0&quot; timeout=&quot;100&quot;<br>
primitive drbd_r1 ocf:linbit:drbd \<br>        params drbd_resource=&quot;r1&quot; \<br>        op monitor interval=&quot;29s&quot; role=&quot;Master&quot; \<br>        op monitor interval=&quot;31s&quot; role=&quot;Slave&quot; \<br>
        op start interval=&quot;0&quot; timeout=&quot;240&quot; \<br>        op stop interval=&quot;0&quot; timeout=&quot;100&quot;<br>primitive kvm4 ocf:heartbeat:VirtualDomain \<br>        params config=&quot;/etc/libvirt/qemu/kvm4.xml&quot; hypervisor=&quot;qemu:///system&quot; \<br>
        op start interval=&quot;0&quot; timeout=&quot;90s&quot; \<br>        op stop interval=&quot;0&quot; timeout=&quot;90s&quot; \<br>        op monitor interval=&quot;10&quot; timeout=&quot;30&quot; \<br>        utilization cpu=&quot;2&quot; hv_memory=&quot;512&quot;<br>
primitive kvm5 ocf:heartbeat:VirtualDomain \<br>        params config=&quot;/etc/libvirt/qemu/kvm5.xml&quot; hypervisor=&quot;qemu:///system&quot; \<br>        op start interval=&quot;0&quot; timeout=&quot;90s&quot; \<br>
        op stop interval=&quot;0&quot; timeout=&quot;90s&quot; \<br>        op monitor interval=&quot;10&quot; timeout=&quot;30&quot; \<br>        utilization cpu=&quot;2&quot; hv_memory=&quot;2048&quot;<br>primitive kvm6 ocf:heartbeat:VirtualDomain \<br>
        params config=&quot;/etc/libvirt/qemu/kvm6.xml&quot; hypervisor=&quot;qemu:///system&quot; \<br>        op start interval=&quot;0&quot; timeout=&quot;90s&quot; \<br>        op stop interval=&quot;0&quot; timeout=&quot;90s&quot; \<br>
        op monitor interval=&quot;10&quot; timeout=&quot;30&quot; \<br>        utilization cpu=&quot;2&quot; hv_memory=&quot;512&quot;<br>primitive kvm7 ocf:heartbeat:VirtualDomain \<br>        params config=&quot;/etc/libvirt/qemu/kvm7.xml&quot; hypervisor=&quot;qemu:///system&quot; \<br>
        op start interval=&quot;0&quot; timeout=&quot;90s&quot; \<br>        op stop interval=&quot;0&quot; timeout=&quot;90s&quot; \<br>        op monitor interval=&quot;10&quot; timeout=&quot;30&quot; \<br>        utilization cpu=&quot;2&quot; hv_memory=&quot;512&quot;<br>
primitive kvm8 ocf:heartbeat:VirtualDomain \<br>        params config=&quot;/etc/libvirt/qemu/kvm8.xml&quot; hypervisor=&quot;qemu:///system&quot; \<br>        op start interval=&quot;0&quot; timeout=&quot;90s&quot; \<br>
        op stop interval=&quot;0&quot; timeout=&quot;90s&quot; \<br>        op monitor interval=&quot;10&quot; timeout=&quot;30&quot; \<br>        utilization cpu=&quot;2&quot; hv_memory=&quot;2048&quot;<br>primitive srv_drbd0 ocf:heartbeat:Filesystem \<br>
        params device=&quot;/dev/drbd0&quot; directory=&quot;/srv/drbd0&quot; fstype=&quot;ext4&quot;<br>primitive srv_drbd1 ocf:heartbeat:Filesystem \<br>        params device=&quot;/dev/drbd1&quot; directory=&quot;/srv/drbd1&quot; fstype=&quot;ext4&quot;<br>
group group_node1 srv_drbd0 kvm1 kvm2 kvm3<br>group group_node2 srv_drbd1 kvm4 kvm5 kvm6 kvm7 kvm8<br>ms ms_drbd_r0 drbd_r0 \<br>        meta clone-max=&quot;2&quot; notify=&quot;true&quot; master-max=&quot;1&quot; master-node-max=&quot;1&quot; clone-node-max=&quot;1&quot;<br>
ms ms_drbd_r1 drbd_r1 \<br>        meta clone-max=&quot;2&quot; notify=&quot;true&quot; master-max=&quot;1&quot; master-node-max=&quot;1&quot; clone-node-max=&quot;1&quot;<br>location cli-prefer-group_node1 group_node1 \<br>
        rule $id=&quot;cli-prefer-rule-group_node1&quot; inf: #uname eq node1<br>location cli-prefer-group_node2 group_node2 \<br>        rule $id=&quot;cli-prefer-rule-group_node2&quot; inf: #uname eq node2<br>colocation colocation_node1 inf: group_node1 ms_drbd_r0:Master<br>
colocation colocation_node2 inf: group_node2 ms_drbd_r1:Master<br>order order_node1 inf: ms_drbd_r0:promote group_node1:start<br>order order_node2 inf: ms_drbd_r1:promote group_node2:start<br>property $id=&quot;cib-bootstrap-options&quot; \<br>
        dc-version=&quot;1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c&quot; \<br>        cluster-infrastructure=&quot;openais&quot; \<br>        expected-quorum-votes=&quot;2&quot; \<br>        stonith-enabled=&quot;false&quot; \<br>
        no-quorum-policy=&quot;ignore&quot; \<br>        last-lrm-refresh=&quot;1352497364&quot;<br></blockquote><div> </div><br>