Pacemaker with DRBD
# crm configure show
node server1
node server2
primitive drbd-work ocf:heartbeat:Filesystem \
params device="/dev/drbd0" directory="/work" fstype="ext3"
primitive drbd0 ocf:linbit:drbd \
params drbd_resource="r0" \
op monitor interval="29s" role="Master" \
op monitor interval="31s" role="Slave"
primitive failover-ip ocf:heartbeat:IPaddr2 \
params ip="10.0.0.10" nic="bond0" iflabel="VIP" \
op monitor interval="10s"
group server-cluster drbd-work failover-ip
ms ms-drbd drbd0 \
meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
colocation work-on-drbd inf: server-cluster ms-drbd:Master
order drbd-before-server-cluster inf: ms-drbd:promote server-cluster:start
property $id="cib-bootstrap-options" \
dc-version="1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
stonith-enabled="false" \
no-quorum-policy="ignore" \
last-lrm-refresh="1345630051"