[DRBD-user] initscript & udev

Bernd Schubert bernd-schubert at web.de
Tue Jun 29 20:07:53 CEST 2004


Hello,

when /dev is managed from udev it pretty often happens that the device files 
are not yet there when /etc/init.d/drbd already expects them to be available. 
What do you think about applying this patch?

--- drbd.old	Tue Jun 29 20:04:46 2004
+++ drbd	Tue Jun 29 19:19:59 2004
@@ -28,6 +28,8 @@
     $MODPROBE -s drbd `$DRBDADM sh-mod-parms` || { 
 	echo "Can not load the drbd module."$'\n'; exit 20 
     }
+
+    sleep 1 # make sure udev has time to create the device files
 }
 
 case "$1" in



Cheers,
	Bernd


-- 
Bernd Schubert
Physikalisch Chemisches Institut / Theoretische Chemie
Universität Heidelberg
INF 229
69120 Heidelberg
e-mail: bernd.schubert at pci.uni-heidelberg.de
-------------- 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/20040629/91d3acc8/attachment.pgp 


More information about the drbd-user mailing list