<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>Hello .I am trying to implement drbd - heartbeat failover solution for
our<BR>webhosting company.<BR>It is a 2 node cluster master and hot
slave.I did use heartbeat prior to<BR>using drbd with simple ip failover.<BR>I
configured drbd and heartbeat in a following way:<BR>drbd.conf:<BR>resource
drbd0 {<BR> protocol=C<BR> fsckcmd=fsck.ext3 -p -y<BR>
load-only<BR><BR>disk {<BR> disk-size =
979933<BR> }<BR><BR><BR><BR>net {<BR>
sync-min = 500k<BR>
sync-max = 2M # maximal average syncer
bandwidth<BR> tl-size = 5000 #
transfer log size, ensures strict write ordering<BR>
timeout = 60 # 0.1
seconds<BR> connect-int = 10 #
seconds<BR> ping-int = 10
# seconds<BR> }<BR><BR> on node0 {<BR>
device=/dev/nb0<BR> disk=/dev/hdc7<BR>
address=192.168.1.3<BR> port=7789<BR> }<BR><BR> on
node1 {<BR> device=/dev/nb0<BR>
disk=/dev/hda7<BR> address=192.168.1.4<BR>
port=7789<BR> }<BR>}<BR>resource drbd1 {<BR> protocol=C<BR>
fsckcmd=fsck.ext3 -p -y<BR> load-only<BR><BR>disk
{<BR> disk-size =
85401540<BR> }<BR><BR><BR><BR>net
{<BR> sync-min = 500k<BR>
sync-max = 2M # maximal average syncer
bandwidth<BR> tl-size = 5000 #
transfer log size, ensures strict write ordering<BR>
timeout = 60 # 0.1
seconds<BR> connect-int = 10 #
seconds<BR> ping-int = 10
# seconds<BR> }<BR><BR> on node0 {<BR>
device=/dev/nb1<BR> disk=/dev/md4<BR>
address=192.168.1.3<BR> port=7790<BR> }<BR><BR> on
node1 {<BR> device=/dev/nb1<BR>
disk=/dev/hda2<BR> address=192.168.1.4<BR>
port=7790<BR> }<BR>}<BR>and my haresources:<BR>node0.mydomain.com
192.168.1.2 datadisk::drbd0 datadisk::drbd1 psa xinetd<BR>mailman<BR>and i did
proper adjustments in fstab<BR><BR>problem is than when i shut down the the main
server it didnt remount the<BR>devices on the slave<BR>instead it left them in
wait for connection mode but as soon as i started<BR>the primary back it started
resync in wrong direction.<BR>and done my master as secondary.but still,didnt
remount them.. and i had to<BR>manually command them to primary on the
master.<BR>after i rebooted the slave it went to its normal syncall and
corrrect<BR>primary/secondary (master is primary,slave secondary).<BR>Can
anybody tell me what i do wrong? I have read about init timeout but i<BR>cant
figure out how can it help me because the datadisk suppose to cammnd<BR>who is
master and who is slave.<BR>Any suggestions please!!!!<BR>Thank you<BR>Alex
Einbinder</DIV></BODY></HTML>