[DRBD-user] mirror config questions for manual failover

Lars Ellenberg Lars.Ellenberg at linbit.com
Mon Jan 19 22:14:52 CET 2004

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


/ 2004-01-19 15:42:06 -0500
\ george young:

> The 100Mb private net seems healthy:  tar-rsh-tar gets me 7.5MB/s.
> Without the tar and fs overhead I get 7.9MB/sec.
> 
> With --sync-min=10M and fsckcmd=/bin/true and separate --sync-groups
> and removing the disconnect/net pair of commands, I get 1h44m sync
> for the 36G partition, i.e. 5.8MB/s.  It would be nice to do 20%
> better, but clearly not a lot faster until I get gigabit ethernet.
> 
> > I use the HA-Linux "IPaddr" script, but heatbeat is *not* enabled.
> > 
> > Here's my script for pig-app to grab the /db filesystem from pig-db:
> > ------------------------------------------------------------
> > if ping -c 1 pig-db; then
> >     rsh -n pig-db /usr/local/etc/ha.d/resource.d/datadisk drbd_db stop &
> >     sleep 30
> > fi
> 
> I think I had put these in hoping to avoid a long sync delay.
> I'll take them out.
> #> /sbin/drbdsetup /dev/nb1 disconnect
> #> /sbin/drbdsetup /dev/nb1 net 10.0.0.115:7789 10.0.0.114:7789 C
> > /usr/local/etc/ha.d/resource.d/datadisk drbd_db start
> 
> I *do* start other services in this script: samba, postgres,
> and the roving service IP addresses were omitted here for brevity.

Do you also stop them remotely (if it is a "gracefull failover" ?
datadisk stop will try to "kill all users of the device", before
it tries to umount. This is not very "polite" ...

> >     sync-min    = 500k
> I'll change this to sync-min=10M

which for your setup seems to be equivalent "sync-nice = -20" ...

	Lars Ellenberg



More information about the drbd-user mailing list