Ahoi,
Via the pacemaker config virtual machines are automatically started either when the machine's booted up or when one machine fails and the other takes over, then upon failover the other machine starts all VMs.
However I've noticed that when I now manually switch off a machine, it'll be started automatically again.
is there a way to prevent that?
Current pacemaker config for the machine:
Code:
node node1
node node2
primitive ClusterIP ocf:heartbeat:IPaddr2 \
params ip="10.110.110.200" \
op monitor interval="30s"
primitive vm1 ocf:heartbeat:VirtualDomain \
params config="/var/lib/vm_images/libvirt/qemu/vm1.xml" \
op monitor interval="10s" timeout="100s" depth="0" \
op start interval="0" timeout="120s" \
op stop interval="0" timeout="120s" \
meta is-managed="true" allow-migrate="false"
primitive kvm_fs ocf:heartbeat:Filesystem \
params device="/dev/drbd1" directory="/var/lib/vm_images" fstype="ext3"
group kvm kvm_fs ClusterIP vm1 vm2 vm3\
meta target-role="Started"
ms ms_drbd_kvm drbd_kvm \
meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
colocation vm1_on_drbd inf: kvm ms_drbd_kvm:Master
order vm1_after_drbd inf: ms_drbd_kvm:promote kvm:start
property $id="cib-bootstrap-options" \
dc-version="1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
no-quorum-policy="ignore" \
stonith-enabled="false" \
default-resource-stickiness="1000"
(have removed vm2 and vm3 from the config display)