[systemd-devel] systemd 204 to 215 (Debian version) fails to recognize that LVM2 device nodes are already present and accessible
Lennart Poettering
lennart at poettering.net
Wed Apr 1 06:57:17 PDT 2015
On Sun, 29.03.15 20:42, Dominik Brodowski (linux at dominikbrodowski.net) wrote:
> Dear systemd developers,
>
> In my custom initramfs, lvm vgmknodes successfully creates the device
> nodes for /dev/vg0/home and /dev/vg0/swap .
On current sytemd/udev systems device nodes are created via devtmpfs
by the kernel, userspace does not create them. A command like "lvm
vgmknodes" creates device nodes, right? It is hence obsolete.
In general, please direct LVM questions to the LVM project, it's not
our area of expertise.
> However, /home is left unmounted
> and swap is still off. Then, after handing business over to systemd (with
> /dev re-mounted), and after some services are activated successfully,
> systemd enters an emergency shell: The (autogenerated)
> systemd-cryptsetup at home.service and systemd-cryptsetup at swap.service want
> dev-vg0-home.device and dev-vg0-swap.device to be ready, but
>
> $ systemctl status dev-vg0-home.device
> and $ systemctl status dev-vg0-swap.device
>
> show they are inactive -- even though the device nodes at /dev/vg0/home and
> /dev/vg0/swap actually exists and are working!
Well, if you create device nodes on your own, without involvement of
the kernel, and without them being announced via the kernel/udev, then
systemd will not know about them.
Either way, I figure you need to ask Debian downstream and LVM for
help about this.
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list