Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
On Tue, Nov 18, 2008 at 12:04:24PM +0100, David Hoskinson wrote: > 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? you do realize that you have to configure "resources"? for "v1-style" heartbeat, that is in haresources. for "v2-style" crm, or pacemaker, it is probably best done via the heartbeat gui, unless you feel comfortable typing xml in a terminal window. > > Here is my ha.cf file: > > crm on you want crm ("v2-style") good. did you configure resources, constraints, etc? > debugfile /var/log/ha-debug > logfile /var/log/ha-log > logfacility local0 > keepalive 2 > deadtime 30 > deadping 40 > warntime 10 > initdead 60 > autojoin none are you sure about that autojoin none? > bcast eth0 > auto_failback on I don't like auto failback. besides, the directive does nothing in crm mode, afaik. have a look at "default resource stickiness" and so on in the crm config ("cib", cluster information base). > 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 no. not baud width. but throttle for background resync in _byte_ per second. > rate 300M; did you have a look at the users guide? http://www.drbd.org/users-guide/s-configure-syncer-rate.html#s-configure-syncer-rate-permanent hope those keywords help you getting started. -- : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD® and LINBIT® are registered trademarks of LINBIT, Austria. __ please don't Cc me, but send to list -- I'm subscribed