Advertisement
Guest User

Untitled

a guest
Sep 19th, 2016
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. #global_common.conf:
  2. global {
  3. usage-count no;
  4. }
  5. common {
  6. startup {
  7. degr-wfc-timeout 0;
  8. }
  9. net {
  10. protocol C;
  11. cram-hmac-alg sha1;
  12. shared-secret secret;
  13. after-sb-0pri discard-zero-changes;
  14. after-sb-1pri discard-secondary;
  15. after-sb-2pri disconnect;
  16. }
  17. disk {
  18. on-io-error detach;
  19. fencing resource-only;
  20. }
  21. handlers {
  22. pri-on-incon-degr "/usr/lib/drbd/notify-pri-on-incon-degr.sh; /usr/lib/drbd/notify-emergency-reboot.sh; echo b > /proc/sysrq-trigger ; reboot -f";
  23. pri-lost-after-sb "/usr/lib/drbd/notify-pri-lost-after-sb.sh; /usr/lib/drbd/notify-emergency-reboot.sh; echo b > /proc/sysrq-trigger ; reboot -f";
  24. local-io-error "/usr/lib/drbd/notify-io-error.sh; /usr/lib/drbd/notify-emergency-shutdown.sh; echo o > /proc/sysrq-trigger ; halt -f";
  25.  
  26. fence-peer "/usr/lib/drbd/crm-fence-peer.sh";
  27. after-resync-target "/usr/lib/drbd/crm-unfence-peer.sh";
  28. }
  29. }
  30. #r0.res
  31. resource r0 {
  32. net {
  33. max-buffers 18000;
  34. max-epoch-size 18000;
  35. sndbuf-size 1M;
  36. }
  37. disk {
  38. c-plan-ahead 10;
  39. c-max-rate 330M;
  40. c-min-rate 0;
  41. c-fill-target 10M;
  42. no-disk-flushes;
  43. no-md-flushes;
  44. }
  45.  
  46. on iscsi1.example.org {
  47. volume 0 {
  48. device /dev/drbd0;
  49. disk /dev/disk/by-id/scsi-36003048010fc8b001d993185466f1b08;
  50. meta-disk internal;
  51. }
  52. address 10.100.0.1:7788;
  53. }
  54. on iscsi2.example.org {
  55. volume 0 {
  56. device /dev/drbd0;
  57. disk /dev/disk/by-id/scsi-36003048010fc41001d96797a715ee308;
  58. meta-disk internal;
  59. }
  60. address 10.100.0.2:7788;
  61. }
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement