drbd-user March 2010 archive
Main Archive Page > Month Archives  > drbd-user archives
drbd-user: Re: [DRBD-user] bringing up drbd-device in primary ro

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

From: Lars Ellenberg <lars.ellenberg_at_nospam>
Date: Thu Mar 04 2010 - 15:44:13 GMT
To: drbd-user@lists.linbit.com

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 _______________________________________________ drbd-user mailing list drbd-user@lists.linbit.com http://lists.linbit.com/mailman/listinfo/drbd-user