# # please have a a look at the example configuration file in # /usr/share/doc/drbd82/drbd.conf # # # Wichtige Links: # * DRBD Setup http://dev.mysql.com/doc/mysql-ha-scalability/en/ha-drbd-install-drbd-primary.html # * Alle Parameter http://www.drbd.org/users-guide/re-drbdconf.html # * Troubleshooting and error recovery http://www.drbd.org/users-guide/ch-troubleshooting.html # global { usage-count no; } common { protocol C; startup { wfc-timeout 0; degr-wfc-timeout 60; } disk { on-io-error detach; # http://www.drbd.org/users-guide/s-disk-flush-support.html # http://www.drbd.org/users-guide/s-disable-flushes.html #no-disk-flushes; #no-md-flushes; # dopd #fencing resource-only; } net { cram-hmac-alg "sha1"; shared-secret "4mxk4mkkkdsdd4412Jm3kjhdn"; } syncer { # http://www.drbd.org/users-guide/s-configure-syncer-rate.html # rate gilt nur fuer die Synchronisation und nicht fuer die normale Replikation rate 80M; # http://www.drbd.org/users-guide/s-use-online-verify.html #verify-alg "sha1" } handlers { split-brain "/usr/lib/drbd/notify-split-brain.sh ah@mynet.at"; pri-on-incon-degr "/usr/lib/drbd/notify-pri-on-incon-degr.sh ah@mynet.at ; echo o > /proc/sysrq-trigger ; halt -f"; pri-lost-after-sb "/usr/lib/drbd/notify-pri-lost-after-sb.sh ah@mynet.at ; echo o > /proc/sysrq-trigger ; halt -f"; local-io-error "/usr/lib/drbd/notify-io-error.sh ah@mynet.at ; echo o > /proc/sysrq-trigger ; halt -f"; #outdate-peer "/usr/lib/heartbeat/drbd-peer-outdater"; } } resource home { on mail1.example.com { device /dev/drbd0; disk /dev/vg0/home; address 10.10.10.1:7789; meta-disk internal; } on mail2.example.com { device /dev/drbd0; disk /dev/vg0/home; address 10.10.10.2:7789; meta-disk internal; } }