Advertisement
Guest User

Untitled

a guest
Jun 8th, 2012
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. drbd.conf:
  2.  
  3. # You can find an example in /usr/share/doc/drbd.../drbd.conf.example
  4.  
  5. include "drbd.d/global_common.conf";
  6. include "drbd.d/*.res";
  7.  
  8. global_common.conf:
  9.  
  10. global {
  11. usage-count yes;
  12. # minor-count dialog-refresh disable-ip-verification
  13. }
  14.  
  15. common {
  16. protocol C;
  17.  
  18. handlers {
  19. pri-on-incon-degr "/usr/lib/drbd/notify-pri-on-incon-degr.sh; /usr/lib/drbd/notify-emergency-reboot.sh";
  20. pri-lost-after-sb "/usr/lib/drbd/notify-pri-lost-after-sb.sh; /usr/lib/drbd/notify-emergency-reboot.sh";
  21. local-io-error "/usr/lib/drbd/notify-io-error.sh; /usr/lib/drbd/notify-emergency-shutdown.sh";
  22. split-brain "/usr/lib/drbd/notify-split-brain.sh root";
  23. fence-peer "/usr/sbin/rhcs_fence";
  24. }
  25.  
  26. startup {
  27. become-primary-on both;
  28. wfc-timeout 600;
  29. degr-wfc-timeout 120;
  30. }
  31.  
  32. disk {
  33. on-io-error detach;
  34. }
  35.  
  36. net {
  37. allow-two-primaries;
  38. after-sb-0pri discard-zero-changes;
  39. after-sb-1pri discard-secondary;
  40. after-sb-2pri disconnect;
  41. shared-secret "semo739omih36";
  42. }
  43. syncer {
  44. rate 300M;
  45. al-extents 257;
  46. verify-alg md5;
  47. }
  48. }
  49.  
  50. OpenNMS.res
  51.  
  52. # This resource is used for the VMs of Node1
  53.  
  54. resource OpenNMS {
  55. device /dev/drbd2;
  56. meta-disk internal;
  57.  
  58. on pclus1cent6-01.cl3m.sccon.de {
  59. disk /dev/sda7;
  60. address 172.19.38.31:7790;
  61. }
  62.  
  63. on pclus1cent6-02.cl3m.sccon.de {
  64. disk /dev/sda7;
  65. address 172.19.38.32:7790;
  66. }
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement