Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #global_common.conf:
- global {
- usage-count no;
- }
- common {
- startup {
- degr-wfc-timeout 0;
- }
- net {
- protocol C;
- cram-hmac-alg sha1;
- shared-secret secret;
- after-sb-0pri discard-zero-changes;
- after-sb-1pri discard-secondary;
- after-sb-2pri disconnect;
- }
- disk {
- on-io-error detach;
- fencing resource-only;
- }
- handlers {
- 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";
- 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";
- local-io-error "/usr/lib/drbd/notify-io-error.sh; /usr/lib/drbd/notify-emergency-shutdown.sh; echo o > /proc/sysrq-trigger ; halt -f";
- fence-peer "/usr/lib/drbd/crm-fence-peer.sh";
- after-resync-target "/usr/lib/drbd/crm-unfence-peer.sh";
- }
- }
- #r0.res
- resource r0 {
- net {
- max-buffers 18000;
- max-epoch-size 18000;
- sndbuf-size 1M;
- }
- disk {
- c-plan-ahead 10;
- c-max-rate 330M;
- c-min-rate 0;
- c-fill-target 10M;
- no-disk-flushes;
- no-md-flushes;
- }
- on iscsi1.example.org {
- volume 0 {
- device /dev/drbd0;
- disk /dev/disk/by-id/scsi-36003048010fc8b001d993185466f1b08;
- meta-disk internal;
- }
- address 10.100.0.1:7788;
- }
- on iscsi2.example.org {
- volume 0 {
- device /dev/drbd0;
- disk /dev/disk/by-id/scsi-36003048010fc41001d96797a715ee308;
- meta-disk internal;
- }
- address 10.100.0.2:7788;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement