Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- node storage0
- node storage1 \
- attributes standby="off"
- node 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_home ocf:heartbeat:exportfs \
- params fsid="2" directory="/mnt/storage/home" 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="true" \
- op start interval="0" timeout="40s" \
- op monitor interval="30s"
- ...other exportfs resources omitted to be concise...
- 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_storage ocf:heartbeat:IPaddr2 \
- params ip="xxx.xxx.xxx.xxx" cidr_netmask="16" nic="eth3" \
- op monitor interval="30s"
- ...other IPaddr2 resources omitted to be concise...
- primitive p_ping ocf:pacemaker:ping \
- XXXXXX
- primitive p_sysadmin_notify ocf:heartbeat:MailTo \
- XXXXXX
- primitive stonithstorage0 stonith:external/webpowerswitch \
- XXXXXX
- primitive stonithstorage1 stonith:external/webpowerswitch \
- XXXXXX
- primitive stonithstoragequorum stonith:external/webpowerswitch \
- XXXXXX
- group g_store p_fs_drives p_fs_bind_home p_fs_bind_opt p_daemon_nfs-kernel-server p_exportfs_storage_home p_daemon_smbd p_daemon_nmbd p_ip_storage
- ms ms_drbd_drives p_drbd_drives \
- meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" is-managed="true" target-role="Started"
- 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.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c" \
- cluster-infrastructure="openais" \
- expected-quorum-votes="3" \
- stonith-enabled="true" \
- no-quorum-policy="freeze" \
- last-lrm-refresh="1349493449" \
- maintenance-mode="false"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement