Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- node $id="16777343" localhost
- node $id="2852205578" vcs0
- node $id="2868982794" vcs1
- node $id="755053578" vcsquorum \
- attributes standby="on"
- primitive p_daemon_git-daemon lsb:git-daemon \
- op monitor interval="30s"
- primitive p_daemon_svn lsb:svn \
- op monitor interval="30s"
- primitive p_drbd_vcs ocf:linbit:drbd \
- params drbd_resource="vcs" \
- op start interval="0" timeout="240" \
- op stop interval="0" timeout="100" \
- op monitor interval="10" role="Master" timeout="90" \
- op monitor interval="20" role="Slave" timeout="60"
- primitive p_fs_vcs 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_vcs ocf:heartbeat:IPaddr2 \
- params ip="10.0.0.22" cidr_netmask="16" nic="bond0" \
- op monitor interval="30s"
- primitive p_ping ocf:pacemaker:ping \
- params name="p_ping" host_list="10.0.0.128 10.0.0.129 10.0.0.33 10.0.0.1 10.0.0.127" 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="sysadmin-alert@xes-inc.com" \
- params subject="VCS Pacemaker Change" \
- op start interval="0" timeout="30" \
- op stop interval="0" timeout="30" \
- op monitor interval="10" timeout="30"
- primitive stonithvcs0 stonith:external/webpowerswitch \
- params wps_ipaddr="192.168.7.100" wps_port="2" wps_username="xxx" wps_password="xxx" hostname_to_stonith="vcs0"
- primitive stonithvcs1 stonith:external/webpowerswitch \
- params wps_ipaddr="192.168.7.200" wps_port="2" wps_username="xxx" wps_password="xxx" hostname_to_stonith="vcs1"
- primitive stonithvcsquorum stonith:external/webpowerswitch \
- params wps_ipaddr="192.168.7.101" wps_port="2" wps_username="xxx" wps_password="xxx" hostname_to_stonith="vcsquorum"
- group g_vcs p_fs_vcs p_daemon_svn p_daemon_git-daemon p_ip_vcs \
- meta target-role="Started"
- ms ms_drbd_vcs p_drbd_vcs \
- meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" target-role="Started"
- clone cl_ping p_ping \
- meta interleave="true"
- clone cl_sysadmin_notify p_sysadmin_notify
- location loc_run_on_most_connected g_vcs \
- rule $id="loc_run_on_most_connected-rule" -inf: not_defined p_ping or p_ping lte 0
- location loc_st_vcs0 stonithvcs0 -inf: vcs0
- location loc_st_vcs1 stonithvcs1 -inf: vcs1
- location loc_st_vcsquorum stonithvcsquorum -inf: vcsquorum
- colocation c_drbd_fs_services inf: g_vcs ms_drbd_vcs:Master
- order o_drbd_fs_services inf: ms_drbd_vcs:promote g_vcs: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="1356032822"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement