Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- resource admin {
- protocol C;
- on hypatia.nevis.columbia.edu {
- device /dev/drbd0;
- disk /dev/md2;
- flexible-meta-disk internal;
- address 192.168.100.7:7788;
- }
- on orestes.nevis.columbia.edu {
- device /dev/drbd0;
- disk /dev/md2;
- flexible-meta-disk internal;
- address 192.168.100.6:7788;
- }
- startup {
- }
- net {
- allow-two-primaries yes;
- # The following three commands tell DRBD how to react should
- # more about these options by reading the drbd.conf man page.
- # NOTE! It is not possible to safely recover from a split brain
- # where both nodes were primary. This care requires human
- # intervention, so 'disconnect' is the only safe policy.
- after-sb-0pri discard-zero-changes;
- after-sb-1pri discard-secondary;
- after-sb-2pri disconnect;
- # Allow DRBD to auto-tune this parameter.
- sndbuf-size 0;
- }
- disk {
- resync-rate 100M;
- c-max-rate 100M;
- al-extents 3389;
- # 01-Sep-2011 WGS: Let's use resource-level fencing in coordination with
- # corosync <http://www.drbd.org/users-guide/s-pacemaker-fencing.html>
- fencing resource-and-stonith;
- }
- 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";
- # If the two disks fall out of sync due to a network interruption,
- # and the automatic recovery options given above don't solve the
- # problem, notify the systems administrator.
- split-brain "/usr/lib/drbd/notify-split-brain.sh sysadmin@nevis.columbia.edu";
- # 01-Sep-2011 WGS: Let's use resource-level fencing in coordination with
- # corosync <http://www.drbd.org/users-guide/s-pacemaker-fencing.html>
- fence-peer "/home/bin/stonith_admin-fence-peer.sh";
- #fence-peer "/home/bin/rhcs_fence";
- #fence-peer "/home/bin/obliterate-peer.sh";
- #fence-peer "/usr/lib/drbd/crm-fence-peer.sh";
- #after-resync-target "/usr/lib/drbd/crm-unfence-peer.sh";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement