Corosync+pacemaker cluster with DRBD, NFS services

node db1-m1
node db1-m2
primitive drbd ocf:linbit:drbd
params drbd_resource=”shared”
op monitor interval=”29s” role=”Master”
op monitor interval=”31s” role=”Slave”
primitive fs_drbd ocf:heartbeat:Filesystem
params device=”/dev/drbd0″ directory=”/mnt/shared” fstype=”ext3″
primitive nfs lsb:nfs
primitive nfslock lsb:nfslock
primitive vip ocf:heartbeat:IPaddr2
params ip=”10.4.30.200″ cidr_netmask=”24″ nic=”bond0″
op monitor interval=”2s”
group g_drbd fs_drbd vip nfs nfslock
ms ms_drbd drbd
meta master-max=”1″ master-node-max=”1″ clone-max=”2″ clone-node-max=”1″ notify=”true”
colocation nfs_on_drbd inf: g_drbd ms_drbd:Master
order nfs_after_drbd inf: ms_drbd:promote g_drbd:start
property $id=”cib-bootstrap-options”
dc-version=”1.0.12-unknown”
cluster-infrastructure=”openais”
expected-quorum-votes=”2″
stonith-enabled=”false”
no-quorum-policy=”ignore”
last-lrm-refresh=”1334768339″
rsc_defaults $id=”rsc-options”
resource-stickiness=”100″

Author: GergunD

Leave a Reply