[DRBD-user] initscript & udev

Bernd Schubert bernd-schubert at web.de
Wed Jun 30 20:37:27 CEST 2004


> Philipp, the patch is somewhat simplistic; on a loaded system (where
> udev is just busy) it may take longer or not. What about something like:

Right, I didn't consider this.

>
> while (( ! -e /dev/nb0 && timeout-- )) ; do sleep 1 ; done
>

Hmm, does this work for you? Or did you mean something like this:

timeout=10;
while [ ! -e /dev/nb0 ] && [ $timeout -gt 0 ] ; do
        sleep 1 ; timeout=$(( $timeout-1 ))
done

While we are at this topic, on our debian system udev doesn't create /dev/nbX 
but /dev/drbdX, is this an udev mis-configuration or intended to happen? 
Actually, I prever /dev/drbdX.


Cheers,
	Bernd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
Url : http://lists.linbit.com/pipermail/drbd-user/attachments/20040630/d02cde0d/attachment.pgp 


More information about the drbd-user mailing list