Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 480978 - using separate /usr with lvm does not setup /dev/disk/* links (needed for systemd)
Summary: using separate /usr with lvm does not setup /dev/disk/* links (needed for sys...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-14 05:56 UTC by Thomas Scheffler
Modified: 2013-09-11 11:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Scheffler 2013-08-14 05:56:24 UTC
Having "/usr" managed by LVM is currently not supported. Any LVM udev rule is not applied as volume group detection seems to be handled before udev is ready.
When using OpenRC as init system this is not an issue but using SystemD this results into 2 minute delay where SystemD is waiting for the logical volume to appear in /dev/disk/by-uuid.

Reproducible: Always

Steps to Reproduce:
1. Setup Gentoo using "/usr" from lvm
2. Use dracut to generate a initrd
3. reboot with init=/usr/lib/systemd/systemd
Actual Results:  
[    7.544734] localhost systemd[1]: systemd 206 running in system mode. (+PAM +LIBWRAP -AUDIT -SELINUX +IMA -SYSVINIT -LIBCRYPTSETUP -GCRYPT +ACL +XZ)
[    7.544945] localhost systemd[1]: Running in initial RAM disk.
[    7.545021] localhost systemd[1]: No hostname configured.
[    7.545026] localhost systemd[1]: Set hostname to <localhost>.
[    7.548899] localhost systemd[1]: Expecting device dev-disk-by\x2duuid-bf3fe6f9\x2d1942\x2d44d1\x2dbbe0\x2d0ea0c497ba6f.device...

[...]

    7.631445] localhost systemd[1]: Starting Reload Configuration from the Real Root...
[    7.632970] localhost systemd[1]: Reloading.
[    7.660167] localhost kernel: EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
[    7.655946] localhost systemd[1]: Expecting device dev-disk-by\x2duuid-bfaf7599\x2d5c0c\x2d4de3\x2db0df\x2d94f9c8f93545.device...
[    7.657408] localhost systemd[1]: Started Reload Configuration from the Real Root.
[    7.657503] localhost systemd[1]: Started dracut mount hook.

[...]

[   97.656130] localhost systemd[1]: Job dev-disk-by\x2duuid-bfaf7599\x2d5c0c\x2d4de3\x2db0df\x2d94f9c8f93545.device/start timed out.
[   97.656342] localhost systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-bfaf7599\x2d5c0c\x2d4de3\x2db0df\x2d94f9c8f93545.device.
[   97.656518] localhost systemd[1]: Dependency failed for /sysroot/usr.
[   97.656712] localhost systemd[1]: Dependency failed for Initrd File Systems.
[   97.657087] localhost systemd[1]: Triggering OnFailure= dependencies of initrd-fs.target.
[   97.657580] localhost systemd[1]: Stopped File System Check on /dev/disk/by-uuid/bfaf7599-5c0c-4de3-b0df-94f9c8f93545.
[   97.657747] localhost systemd[1]: Stopped Cleaning Up and Shutting Down Daemons.



This bug seems to be related to bug #330651 as with OpenRC after issuing "vgchange --refresh" all nodes appear in /dev/disk/*

Probably issuing this somewhere within dracut or systemd would make my system bootable.

I am using Grub 2 on UEFI with handmade kernel and genkernel initrd and OpenRC normally

related packages and versions installed on my pc:

sys-boot/grub-2.00-r4:2
sys-kernel/genkernel-3.4.47:0
sys-boot/grub-2.00-r4:2
sys-kernel/dracut-031-r1:0
sys-apps/systemd-206-r3:0
sys-apps/openrc-0.11.8:0
sys-fs/lvm2-2.02.99-r1:0
Comment 1 Pacho Ramos gentoo-dev 2013-08-20 16:44:47 UTC
If I don't misremember you need to use genkernel-next (with its "--udev" option) to properly work with lvm2
Comment 2 Pacho Ramos gentoo-dev 2013-09-11 11:24:24 UTC
(In reply to Pacho Ramos from comment #1)
> If I don't misremember you need to use genkernel-next (with its "--udev"
> option) to properly work with lvm2