node $id="101" sher
node $id="102" lock
primitive fence_lock stonith:external/ipmi \
	params hostname="lock" ipaddr="10.105.4.114" userid="test2" passwd="passwd1" interface="lan" \
	op start interval="0" timeout="60" start-delay="90" \
	op stop interval="0" timeout="60" \
	op monitor interval="60" timeout="60" start-delay="90"
primitive fence_sher stonith:external/ipmi \
	params hostname="sher" ipaddr="10.105.4.113" userid="test2" passwd="passwd2" interface="lan" \
	op start interval="0" timeout="60" start-delay="90" \
	op stop interval="0" timeout="60" \
	op monitor interval="60" timeout="60" start-delay="90"
primitive res_drbd_export ocf:linbit:drbd \
	params drbd_resource="r0" \
	op start interval="0" timeout="150" \
	op stop interval="0" timeout="100" \
	op monitor role="Master" interval="9" timeout="30" \
	op monitor role="Slave" interval="10" timeout="30"
primitive res_exportfs_export1 ocf:heartbeat:exportfs \
	params fsid="1" directory="/mnt/vms/export1" options="rw,mountpoint,no_root_squash" clientspec="10.105.0.0/255.255.0.0" wait_for_leasetime_on_stop="true" \
	op monitor interval="10s"
primitive res_exportfs_root ocf:heartbeat:exportfs \
	params fsid="0" directory="/mnt/vms" options="rw,crossmnt,no_root_squash" clientspec="10.105.0.0/255.255.0.0" \
	op monitor interval="10s"
primitive res_fs ocf:heartbeat:Filesystem \
	params device="/dev/drbd0" directory="/mnt/vms" fstype="ext4" \
	op monitor interval="10s" \
	meta target-role="Started"
primitive res_ip ocf:heartbeat:IPaddr2 \
	params ip="10.105.0.23" cidr_netmask="16" nic="eth1" \
	meta target-role="Started"
primitive res_nfsserver lsb:nfs-kernel-server \
	op monitor interval="10s"
group rg_export res_fs res_ip res_exportfs_export1
ms ms_drbd_export res_drbd_export \
	meta notify="true" master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" target-role="Started"
clone cl_exportfs_root res_exportfs_root \
	meta target-role="Started"
clone cl_nfsserver res_nfsserver \
	meta target-role="Started"
location l_fence_lock fence_lock -inf: lock
location l_fence_sher fence_sher -inf: sher
colocation c_export_on_drbd inf: rg_export ms_drbd_export:Master
colocation c_nfs_on_root inf: rg_export cl_exportfs_root
order o_drbd_before_nfs inf: ms_drbd_export:promote rg_export:start
order o_root_before_nfs inf: cl_exportfs_root rg_export:start
property $id="cib-bootstrap-options" \
	dc-version="1.1.10-42f2063" \
	cluster-infrastructure="corosync" \
	stonith-enabled="true" \
	no-quorum-policy="ignore" \
	migration-threshold="1" \
	last-lrm-refresh="1441374526"