Advertisement
amartin

vcs cib

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