This is related to this question. I have 3 hard drives in my laptop and Fedora 32 is installed in /dev/sdb
. /dev/sda
and /dev/sdc
are just extra storage formatted in ext4. Every boot takes more than a minute now but it was less than 20 seconds in Fedora 31. The culprit of the longer boot time seems to be lvm2-monitor.service
. journalctl
shows:
-- Reboot --
Jun 09 01:36:48 localhost.localdomain lvm[696]: WARNING: Device /dev/sda not initialized in udev database even after waiting 10000000 microseconds.
Jun 09 01:36:58 localhost.localdomain lvm[696]: WARNING: Device /dev/sda1 not initialized in udev database even after waiting 10000000 microseconds.
Jun 09 01:37:18 localhost.localdomain lvm[696]: 3 logical volume(s) in volume group "fedora_localhost-live" monitored
Jun 09 01:37:18 localhost.localdomain systemd[1]: Finished Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling.
So, how to add a block to udev database manually that works after reboot?
sys-fs/lvm2
rely onsys-fs/udev
... but there is no udev in a simple initramfs." This is specific to Gentoo, and may or may not be true with Fedora. Note that step 4 means having the LVM tools use a modified configuration within initramfs (whengdm
is nowhere near running) and the standard one in the real/etc/lvm/lvm.conf
when the system is running: it sounds like you modified the actuallvm.conf
instead of the one that gets packaged in initramfs. – telcoM Jun 09 '20 at 06:15