Faria wrote:
Hello,

I have been installed Ubuntu Feisty 7.04 in two computers.

In my rc.local ubuntu master I put:

/sbin/modprobe drbd
/sbin/drbdadm attach r0
/sbin/drbdadm connect r0
/sbin/drbdadm -- --overwrite-data-of-peer primary r0
/sbin/drbdadm primary all
exit 0

In my rc.local ubuntu slave I put:

/sbin/modprobe drbd
/sbin/drbdadm attach r0
/sbin/drbdadm connect r0
/sbin/drbdadm secondary all
exit 0

When the two computer are active come this message :

drbd0: Split-Brain detected, dropping conection
drbd0: error receiving ReportState, l:4!

I think this message happen because when the hearbeat is started, it can't load 
drbd module. DRBD is started in rc.local.

Then the heartbeat was restarted activing the services in ubuntu master. So, the ubuntu slave stay in standby waiting the failover.
How I can to prevent that heartbeat not be restarted ?

best regards,

Faria
#/var/log/ha-log
heartbeat: 2008/08/21_13:47:34 info: Running /etc/ha.d/resource.d/drbddisk r0 
start
heartbeat: 2008/08/21_13:47:34 info: Running /etc/ha.d/resource.d/Filesystem 
/dev/drbd0 /home ext3 start
heartbeat: 2008/08/21_13:47:34 info: Running /etc/ha.d/resource.d/samba  start



Why not use /etc/init.d/drbd to start drbd on both nodes? There's no need to have rc.local attach/connect the drbd resources or make them primary/secondary, drbddisk takes care of that for you.

--
Paul Walsh

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to