Antw: Re: [DRBD-user] DRBD - stop boot process

Tilo Kaltenecker Tilo.Kaltenecker at intraconnect.de
Mon Jul 11 15:17:33 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.


>  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    :-)

thanks

~tilo






More information about the drbd-user mailing list