node Cluster-Server-1
node Cluster-Server-2
primitive ExportFS_nfs2 ocf:nas:exportfs \
	params fsid="2fbaecfe-fb4b-11e1-a319-000c290247c7" directory="/volumes/nfs2" options="rw,insecure,async,no_subtree_check,root_squash,no_all_squash,anonuid=1000,anongid=100" clientspec="*" \
	op start interval="0" timeout="40" \
	op stop interval="0" timeout="10" \
	op monitor interval="10" timeout="20" \
	meta resource-stickiness="0" target-role="Started"
primitive FS_nfs2 ocf:nas:Filesystem \
	params device="/dev/drive-CSD/nfs2_NFS" directory="/volumes/nfs2" fstype="xfs" force_clones="false" \
	op start interval="0" timeout="60" \
	op stop interval="0" timeout="60" \
	op monitor interval="20" timeout="40" \
	meta resource-stickiness="0" target-role="Started"
primitive LVM_drive ocf:nas:LVM2 \
	params vg_name="drive-CSD" activation_mode="auto" \
	meta resource-stickiness="0"
primitive Lun_iscsi2 ocf:nas:SCSTLun \
	params target_iqn="iqn.2005-07.com.example:vdisk.iscsi2" lun="0" path="/dev/drive-CSD/iscsi2_iSCSI" device_name="iscsi2" handler="vdisk_blockio" \
	op monitor interval="10" \
	op start interval="0" timeout="60" \
	op stop interval="0" timeout="240" \
	meta target-role="Started"
primitive Target_iscsi2 ocf:nas:SCSTTarget \
	params iqn="iqn.2005-07.com.example:vdisk.iscsi2" \
	op monitor interval="10" timeout="60" \
	op start interval="0" timeout="240" \
	op stop interval="0" timeout="240" \
	meta target-role="Started"
primitive p_Device_drive ocf:linbit:drbd \
	params drbd_resource="drive" \
	op start interval="0" timeout="90" \
	op stop interval="0" timeout="100" \
	op promote interval="0" timeout="90" \
	op demote interval="0" timeout="90" \
	op monitor interval="10" role="Master" timeout="20" \
	op monitor interval="20" role="Slave" timeout="20" \
	meta resource-stickiness="0"
primitive p_NFS_Server lsb:nfs-kernel-server \
	op monitor interval="30s"
primitive p_PingD ocf:pacemaker:ping \
	params host_list="192.168.1.1" multiplier="100" \
	op monitor interval="10s" timeout="5s"
primitive p_iSCSI_Daemon lsb:iscsi-scst \
	op monitor interval="30s"
group NFS_nfs2 FS_nfs2 ExportFS_nfs2
group iSCSI_iscsi2 Target_iscsi2 Lun_iscsi2
ms Device_drive p_Device_drive \
	meta notify="true" master-max="1" master-node-max="1" clone-node-max="1" clone-max="2" interleave="true" resource-stickiness="0" target-role="Started"
clone NFS_Server p_NFS_Server \
	meta interleave="true" resource-stickiness="0" target-role="Started"
clone PingD p_PingD \
	meta interleave="true" resource-sticikness="0" target-role="Started"
clone iSCSI_Daemon p_iSCSI_Daemon \
	meta interleave="true" resource-stickiness="0" target-role="Started"
location Device_drive_on_Connected_Node Device_drive \
	rule $id="Device_drive_on_Connected_Node-rule" $role="master" pingd: defined pingd
location Device_drive_prefer_Node Device_drive \
	rule $id="Device_drive_prefer_Node-rule" $role="master" 50: #uname eq Cluster-Server-1
colocation LVM_drive_with_Device_drive inf: LVM_drive Device_drive:Master
colocation NFS_nfs2_with_LVM_drive inf: NFS_nfs2 LVM_drive
colocation NFS_nfs2_with_NFS_Server inf: NFS_nfs2 NFS_Server
colocation iSCSI_iscsi2_with_LVM_drive inf: iSCSI_iscsi2 LVM_drive
colocation iSCSI_iscsi2_with_iSCSI_Daemon inf: iSCSI_iscsi2 iSCSI_Daemon
order LVM_drive_after_Device_drive inf: Device_drive:promote LVM_drive:start
order NFS_nfs2_after_LVM_drive inf: LVM_drive NFS_nfs2
order NFS_nfs2_after_NFS_Server inf: NFS_Server NFS_nfs2
order iSCSI_iscsi2_after_LVM_drive inf: LVM_drive iSCSI_iscsi2
order iSCSI_iscsi2_after_iSCSI_Daemon inf: iSCSI_Daemon iSCSI_iscsi2
property $id="cib-bootstrap-options" \
	dc-version="1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff" \
	cluster-infrastructure="cman" \
	stonith-enabled="false" \
	no-quorum-policy="ignore" \
	pe-warn-series-max="1000" \
	pe-error-series-max="2000" \
	pe-input-series-max="1000" \
	last-lrm-refresh="1347283668"
