[DRBD-user] bringing up drbd-device in primary role during execution of linuxrc during boot up?

Lars Ellenberg lars.ellenberg at linbit.com
Thu Mar 4 16:44:13 CET 2010

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

On Thu, Mar 04, 2010 at 02:44:35PM +0100, Henrik Kuhn wrote:
> Does anybody know what kind of configuration setup is necessary on
> openSUSE 11.1 to bring a drdb-device into primary role during the
> execution of the initrd linuxrc-script?
> The purpose would be that on one node a drbd-device gets primary before
> fsck checks the underlying FS during system boot and the device is ready
> for auto-mounting via fstab.
> So far I have figured out: Because drbd needs the /etc/drbd.conf, it is
> not sufficient to add the drbd-module to the INITRD_MODULES list and run
> 'mkinitrd', because the mkinitrd scripts are missing for handling drdb
> specific tasks during generation of the initial ramdisk.
> Is it possible to add the necessary drbd items manually to an existing
> initrd?

You probably won't like my comment:
 Don't do that.

Do not try to activate drbd from your initrd.
Simply don't.
It is in almost every case the completly wrong approach.

But, maybe you have a very good reason
to try to activate drbd from your initrd,
so please, what exactly are you up to?

: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
please don't Cc me, but send to list   --   I'm subscribed

More information about the drbd-user mailing list