[DRBD-user] First timer

David Hoskinson dhoskinson at eng.uiowa.edu
Tue Nov 18 12:04:24 CET 2008

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


I am testing a replicated mail server system for use in our group.  I have
two boxes with identical 20 GB partions on /dev/mapper/VolGroup01-LogVol00
on each machine.  I have configured heartbeat and drbd to sync these
partitions.  When I shut down the primary machine, I am able to promote the
secondary machine to primary and mount /mnt/drbd and the folder has the
correct files in it, however it will not automatically promote itself.

Its my understanding from my reading that that software should switch
machines and roles automatically, is this correct?

Here is my ha.cf file:

crm on
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility local0
keepalive 2
deadtime 30
deadping 40
warntime 10
initdead 60
autojoin none
bcast eth0
auto_failback on
node mail.eng.uiowa.edu mail2.eng.uiowa.edu
respawn root /usr/lib/heartbeat/pingd -m 100 -d 5s -a default_ping_set

And my drbd.conf file:

resource r0 {
        # Specify A or B or C
        protocol C;
        syncer {
                # baud width
                rate 300M;
        }
        disk {
                on-io-error detach;
        }
        on mail.eng.uiowa.edu {
                device /dev/drbd0;
                disk /dev/mapper/VolGroup01-LogVol00;
                address 128.255.22.7:7788;
                meta-disk internal;
        }
        on mail2.eng.uiowa.edu {
                device /dev/drbd0;
                disk /dev/mapper/VolGroup01-LogVol00;
                address 128.255.22.21:7788;
                meta-disk internal;
        }
}



More information about the drbd-user mailing list