DRBD - Pacemaker KVM Setup

Set up /dev/drdb0 device mounting on /mnt/drdb0, define master and slave and start KVM VM ‘fortivm’:

crm configure edit
node 1: azkaban
node 2: peppapig
primitive drbd_res ocf:linbit:drbd \
        params drbd_resource=r0 \
        op monitor interval=29s role=Master \
        op monitor interval=31s role=Slave
primitive fortivm VirtualDomain \
        params hypervisor="qemu:///system" config="/mnt/drbd0/fortivm.xml" \
        op stop timeout=120s interval=0 \
        op start timeout=120s interval=0 \
        op monitor interval=30s timeout=30s \
        utilization cpu=1 hv_memory=1024
primitive fs_res Filesystem \
        params device="/dev/drbd0" directory="/mnt/drbd0/" fstype=ext4
ms drbd_master_slave drbd_res \
        meta master-max=1 master-node-max=1 clone-max=2 clone-node-max=1 notify=true
order fs_after_drbd Mandatory: drbd_master_slave:promote fs_res:start fortivm:start
colocation fs_drbd_colo inf: fs_res fortivm drbd_master_slave:Master
property cib-bootstrap-options: \
        have-watchdog=false \
        dc-version=1.1.14-70404b0 \
        cluster-infrastructure=corosync \
        cluster-name=debian \
        stonith-enabled=false \
        no-quorum-policy=ignore