Advertisement
amartin

vcs cib

Feb 11th, 2013
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. node $id="2852205578" vcs0
  2. node $id="2868982794" vcs1
  3. node $id="755053578" vcsquorum \
  4. attributes standby="on"
  5. primitive p_daemon_git-daemon lsb:git-daemon \
  6. op monitor interval="30s"
  7. primitive p_daemon_svn lsb:svn \
  8. op monitor interval="30s"
  9. primitive p_drbd_vcs ocf:linbit:drbd \
  10. params drbd_resource="vcs" \
  11. op start interval="0" timeout="240" \
  12. op stop interval="0" timeout="100" \
  13. op monitor interval="10" role="Master" timeout="90" \
  14. op monitor interval="20" role="Slave" timeout="60"
  15. primitive p_fs_vcs ocf:heartbeat:Filesystem \
  16. params device="/dev/drbd0" directory="/mnt/storage" fstype="ext4" options="noatime" \
  17. op start interval="0" timeout="60" \
  18. op stop interval="0" timeout="60" \
  19. op monitor interval="20" timeout="40"
  20. primitive p_ip_vcs ocf:heartbeat:IPaddr2 \
  21. params ip="192.168.1.22" cidr_netmask="16" nic="eth1" \
  22. op monitor interval="30s"
  23. primitive p_ping ocf:pacemaker:ping \
  24. params name="p_ping" host_list="192.168.0.128 192.168.0.129 192.168.0.33 192.168.0.1 192.168.0.127" dampen="25s" multiplier="1000" \
  25. op start interval="0" timeout="60" \
  26. op monitor interval="10s" timeout="60"
  27. primitive p_sysadmin_notify ocf:heartbeat:MailTo \
  28. params email="sysadmin-alert@xes-inc.com" \
  29. params subject="VCS Pacemaker Change" \
  30. op start interval="0" timeout="30" \
  31. op stop interval="0" timeout="30" \
  32. op monitor interval="10" timeout="30"
  33. primitive stonithvcs0 stonith:external/webpowerswitch \
  34. params wps_ipaddr="192.168.7.100" wps_port="2" wps_username="xxx" wps_password="xxx" hostname_to_stonith="vcs0"
  35. primitive stonithvcs1 stonith:external/webpowerswitch \
  36. params wps_ipaddr="192.168.7.200" wps_port="2" wps_username="xxx" wps_password="xxx" hostname_to_stonith="vcs1"
  37. primitive stonithvcsquorum stonith:external/webpowerswitch \
  38. params wps_ipaddr="192.168.7.101" wps_port="2" wps_username="xxx" wps_password="xxx" hostname_to_stonith="vcsquorum"
  39. group g_vcs p_fs_vcs p_daemon_svn p_daemon_git-daemon p_ip_vcs
  40. ms ms_drbd_vcs p_drbd_vcs \
  41. meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
  42. clone cl_ping p_ping \
  43. meta interleave="true"
  44. clone cl_sysadmin_notify p_sysadmin_notify
  45. location loc_run_on_most_connected g_vcs \
  46. rule $id="loc_run_on_most_connected-rule" -inf: not_defined p_ping or p_ping lte 0
  47. location loc_st_vcs0 stonithvcs0 -inf: vcs0
  48. location loc_st_vcs1 stonithvcs1 -inf: vcs1
  49. location loc_st_vcsquorum stonithvcsquorum -inf: vcsquorum
  50. colocation c_drbd_fs_services inf: g_vcs ms_drbd_vcs:Master
  51. order o_drbd_fs_services inf: ms_drbd_vcs:promote g_vcs:start
  52. property $id="cib-bootstrap-options" \
  53. dc-version="1.1.8-1f8858c" \
  54. cluster-infrastructure="corosync" \
  55. stonith-enabled="true" \
  56. no-quorum-policy="freeze"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement