[DRBD-user] DRBD - stop boot process

Lars Ellenberg Lars.Ellenberg at linbit.com
Mon Jul 11 15:33:47 CEST 2005

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


/ 2005-07-11 15:17:33 +0200
\ Tilo Kaltenecker:
> >  you need to hack on /etc/init.d/drbd
> >  and put in some while loop that basically does
> >  drbdsetup /dev/...  wait_sync
> >  and checks its exit code.
> 
> cat /etc/init.d/drbd
> 
> -----------------------------------------------------snip-----------------------------------------------------------------------
> case "$1" in
>     start)
>         echo -n "Starting DRBD resources:    "
>         assure_module_is_loaded
>         adjust_with_progress
>         [ -d /var/lock/subsys ] && touch /var/lock/subsys/drbd  # for RedHat
>         echo "."
>         $DRBDADM wait_con_int # User interruptible version of wait_connect all
>         drbdsetup /dev/drbd0 wait_sync
>         ;;
>     stop)
> -----------------------------------------------------snap-----------------------------------------------------------------------
> 
> now it works very fine    :-)

unless you have connection loss during sync...
and other failure scenarios...

-- 
: Lars Ellenberg                                  Tel +43-1-8178292-0  :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe   http://www.linbit.com :
__
please use the "List-Reply" function of your email client.



More information about the drbd-user mailing list