Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- node $id="16777343" localhost
- node $id="2483106826" storage0
- node $id="2499884042" storage1
- node $id="402732042" storagequorum \
- attributes standby="on"
- primitive p_daemon_nfs-kernel-server lsb:nfs-kernel-server \
- op monitor interval="30s"
- primitive p_daemon_nmbd upstart:nmbd \
- op monitor interval="30s"
- primitive p_daemon_smbd upstart:smbd \
- op monitor interval="30s" \
- meta target-role="Started"
- primitive p_drbd_drives ocf:linbit:drbd \
- params drbd_resource="drives" \
- op start interval="0" timeout="240" \
- op stop interval="0" timeout="100" \
- op monitor interval="10" role="Master" timeout="30" \
- op monitor interval="20" role="Slave" timeout="30"
- primitive p_exportfs_storage ocf:heartbeat:exportfs \
- params fsid="1" directory="/mnt/storage" options="rw,no_root_squash,no_all_squash,sync,no_subtree_check" clientspec="10.0.0.0/255.0.0.0" wait_for_leasetime_on_stop="false" \
- op start interval="0" timeout="40s" \
- op monitor interval="30s" \
- meta target-role="Started"
- primitive p_fs_bind_opt ocf:heartbeat:Filesystem \
- params device="/mnt/storage/opt" directory="/opt" fstype="none" options="bind" \
- op start interval="0" timeout="60" \
- op stop interval="0" timeout="60" \
- op monitor interval="20" timeout="40"
- primitive p_fs_drives ocf:heartbeat:Filesystem \
- params device="/dev/drbd0" directory="/mnt/storage" fstype="ext4" options="noatime" \
- op start interval="0" timeout="60" \
- op stop interval="0" timeout="60" \
- op monitor interval="20" timeout="40"
- primitive p_ip_drives0 ocf:heartbeat:IPaddr2 \
- params ip="10.xxx.xxx.xxx" cidr_netmask="16" nic="eth3" \
- op monitor interval="30s"
- primitive p_ip_drives1 ocf:heartbeat:IPaddr2 \
- params ip="10.xxx.xxx.xxx" cidr_netmask="16" nic="eth3" \
- op monitor interval="30s"
- primitive p_ip_drives2 ocf:heartbeat:IPaddr2 \
- params ip="10.xxx.xxx.xxx" cidr_netmask="16" nic="eth3" \
- op monitor interval="30s"
- primitive p_ip_drives3 ocf:heartbeat:IPaddr2 \
- params ip="10.xxx.xxx.xxx" cidr_netmask="16" nic="eth3" \
- op monitor interval="30s"
- primitive p_ip_storage ocf:heartbeat:IPaddr2 \
- params ip="10.xxx.xxx.xxx" cidr_netmask="16" nic="eth3" \
- op monitor interval="30s"
- primitive p_ping ocf:pacemaker:ping \
- params name="p_ping" host_list="10.xxx.xxx.xxx 10.xxx.xxx.xxx" dampen="25s" multiplier="1000" \
- op start interval="0" timeout="60" \
- op monitor interval="10s" timeout="60"
- primitive p_sysadmin_notify ocf:heartbeat:MailTo \
- params email="me@example.com" \
- params subject="Storage Pacemaker Change" \
- op start interval="0" timeout="10" \
- op stop interval="0" timeout="10" \
- op monitor interval="10" timeout="20"
- primitive stonithstorage0 stonith:external/webpowerswitch \
- ...
- primitive stonithstorage1 stonith:external/webpowerswitch \
- ...
- primitive stonithstoragequorum stonith:external/webpowerswitch \
- ...
- group g_store p_fs_drives p_fs_bind_opt p_exportfs_storage p_daemon_smbd p_daemon_nmbd p_ip_storage p_ip_drives0 p_ip_drives1 p_ip_drives2 p_ip_drives3
- ms ms_drbd_drives p_drbd_drives \
- meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
- clone cl_daemon_nfs-kernel-server p_daemon_nfs-kernel-server
- clone cl_ping p_ping \
- meta interleave="true"
- clone cl_sysadmin_notify p_sysadmin_notify
- location drbd-fence-by-handler-ms_drbd_drives ms_drbd_drives \
- rule $id="drbd-fence-by-handler-rule-ms_drbd_drives" $role="Master" -inf: #uname ne storage0
- location loc_run_on_most_connected g_store \
- rule $id="loc_run_on_most_connected-rule" -inf: not_defined p_ping or p_ping lte 0
- location loc_st_storage0 stonithstorage0 -inf: storage0
- location loc_st_storage1 stonithstorage1 -inf: storage1
- location loc_st_storagequorum stonithstoragequorum -inf: storagequorum
- colocation c_drbd_fs_services inf: g_store ms_drbd_drives:Master
- order o_drbd_fs_services inf: ms_drbd_drives:promote g_store:start
- property $id="cib-bootstrap-options" \
- dc-version="1.1.8-1f8858c" \
- cluster-infrastructure="corosync" \
- stonith-enabled="true" \
- no-quorum-policy="freeze" \
- last-lrm-refresh="1351654492"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement