# /etc/drbd.conf common { protocol C; net { cram-hmac-alg sha1; shared-secret "Umau4cui Olohfie7 aivaeH4e"; data-integrity-alg md5; } disk { on-io-error pass_on; fencing resource-only; } syncer { rate 50M; al-extents 257; verify-alg sha1; } startup { wfc-timeout 15; degr-wfc-timeout 15; outdated-wfc-timeout 2; } 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; } } # resource mail on c02n01: not ignored, not stacked resource mail { on c02n01 { device /dev/drbd2 minor 2; disk /dev/md8; address ipv4 192.168.100.50:7790; meta-disk internal; } on c02n02 { device /dev/drbd2 minor 2; disk /dev/md8; address ipv4 192.168.100.51:7790; meta-disk internal; } } # resource mysql on c02n01: not ignored, not stacked resource mysql { on c02n01 { device /dev/drbd1 minor 1; disk /dev/md7; address ipv4 192.168.100.50:7789; meta-disk internal; } on c02n02 { device /dev/drbd1 minor 1; disk /dev/md7; address ipv4 192.168.100.51:7789; meta-disk internal; } } # resource www on c02n01: not ignored, not stacked resource www { on c02n01 { device /dev/drbd0 minor 0; disk /dev/md6; address ipv4 192.168.100.50:7788; meta-disk internal; } on c02n02 { device /dev/drbd0 minor 0; disk /dev/md6; address ipv4 192.168.100.51:7788; meta-disk internal; } }