[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Advanced Startup/Shutdown with Multilayered Block Devices and Related Issues



Christoph Anton Mitterer <calestyo@scientia.net> writes:

> Hi.
>
> I do not see how a event based initsystem would us actually help (but
> perhaps I just don't understand it well enough).
> I mean an event would be something like "mount root-fs".... but then it
> would be still completely open, on what to actually do for that.

You are looking at this the wrong way around.

The event would be "sdX detected", "md0 detected", "LVM detcted",
"root-fs detected".

The mounting of root would wait for the "root-fs detected" event while
mdadm, lvm, multipath, dmcrypt, drbd, blkid, ... wait for the other
events and trigger new ones in turn.

> Regarding the shutdown thingy... is there any chance that Debian would
> introduce kind of un-initramfs-images, in order to really unmount (not
> remount,ro) and then cleanly "close" all open block devices?
> Or do we have to look for different solutions here (if there are any).

I've always wanted that but never had the time to implement it. Besides
cleanly closeing all open block devices before reboot this could also be
used to do a warm reboot. Shut everything down completly and then
restart init without actualy power cycling. Possibly on another root
device.

If you implement something in that direction I would own you a glas of
milk.

MfG
        Goswin


Reply to: