[DRBD-user] Patch for having init.d script wait for lower level and meta device

Mrten mrten+drbd at ii.nl
Wed Jul 6 00:52:15 CEST 2011

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


Sometimes udev is a bit slow finding and enumerating devices, which
causes a diskless drbd on Ubuntu when the SysV drbd script starts up the
drbd-device when the meta-device is not yet available.


Attached is a patch for the init.d script which makes the drbd-script
wait for the arrival of the ll- and md-devices.

Admittedly it's a bit of a hack because it does not check if the ll-dev
is the same as the md-dev so worst case it could delay boot twice the
amount it should but at least it shouldn't slow the booting down when
the devices are up.

hope it's useful for someone,
Maarten.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: drbd.patch
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20110706/cb510cc2/attachment.txt>


More information about the drbd-user mailing list