Advertisement
amartin

Storage Cluster CIB

Oct 11th, 2012
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. node storage0
  2. node storage1 \
  3. attributes standby="off"
  4. node storagequorum \
  5. attributes standby="on"
  6. primitive p_daemon_nfs-kernel-server lsb:nfs-kernel-server \
  7. op monitor interval="30s"
  8. primitive p_daemon_nmbd upstart:nmbd \
  9. op monitor interval="30s"
  10. primitive p_daemon_smbd upstart:smbd \
  11. op monitor interval="30s" \
  12. meta target-role="Started"
  13. primitive p_drbd_drives ocf:linbit:drbd \
  14. params drbd_resource="drives" \
  15. op start interval="0" timeout="240" \
  16. op stop interval="0" timeout="100" \
  17. op monitor interval="10" role="Master" timeout="30" \
  18. op monitor interval="20" role="Slave" timeout="30"
  19. primitive p_exportfs_storage_home ocf:heartbeat:exportfs \
  20. 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" \
  21. op start interval="0" timeout="40s" \
  22. op monitor interval="30s"
  23. ...other exportfs resources omitted to be concise...
  24. primitive p_fs_drives ocf:heartbeat:Filesystem \
  25. params device="/dev/drbd0" directory="/mnt/storage" fstype="ext4" options="noatime" \
  26. op start interval="0" timeout="60" \
  27. op stop interval="0" timeout="60" \
  28. op monitor interval="20" timeout="40"
  29. primitive p_ip_storage ocf:heartbeat:IPaddr2 \
  30. params ip="xxx.xxx.xxx.xxx" cidr_netmask="16" nic="eth3" \
  31. op monitor interval="30s"
  32. ...other IPaddr2 resources omitted to be concise...
  33. primitive p_ping ocf:pacemaker:ping \
  34. XXXXXX
  35. primitive p_sysadmin_notify ocf:heartbeat:MailTo \
  36. XXXXXX
  37. primitive stonithstorage0 stonith:external/webpowerswitch \
  38. XXXXXX
  39. primitive stonithstorage1 stonith:external/webpowerswitch \
  40. XXXXXX
  41. primitive stonithstoragequorum stonith:external/webpowerswitch \
  42. XXXXXX
  43. 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
  44. ms ms_drbd_drives p_drbd_drives \
  45. meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" is-managed="true" target-role="Started"
  46. clone cl_ping p_ping \
  47. meta interleave="true"
  48. clone cl_sysadmin_notify p_sysadmin_notify
  49. location drbd-fence-by-handler-ms_drbd_drives ms_drbd_drives \
  50. rule $id="drbd-fence-by-handler-rule-ms_drbd_drives" $role="Master" -inf: #uname ne storage0
  51. location loc_run_on_most_connected g_store \
  52. rule $id="loc_run_on_most_connected-rule" -inf: not_defined p_ping or p_ping lte 0
  53. location loc_st_storage0 stonithstorage0 -inf: storage0
  54. location loc_st_storage1 stonithstorage1 -inf: storage1
  55. location loc_st_storagequorum stonithstoragequorum -inf: storagequorum
  56. colocation c_drbd_fs_services inf: g_store ms_drbd_drives:Master
  57. order o_drbd_fs_services inf: ms_drbd_drives:promote g_store:start
  58. property $id="cib-bootstrap-options" \
  59. dc-version="1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c" \
  60. cluster-infrastructure="openais" \
  61. expected-quorum-votes="3" \
  62. stonith-enabled="true" \
  63. no-quorum-policy="freeze" \
  64. last-lrm-refresh="1349493449" \
  65. maintenance-mode="false"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement