FS#59266 - [lvm2] Dependency failed for File System Check with 2.02.179-1
Attached to Project:
Arch Linux
Opened by Pryka (Pryka) - Sunday, 08 July 2018, 07:13 GMT
Last edited by Christian Hesse (eworm) - Friday, 20 July 2018, 14:55 GMT
Opened by Pryka (Pryka) - Sunday, 08 July 2018, 07:13 GMT
Last edited by Christian Hesse (eworm) - Friday, 20 July 2018, 14:55 GMT
|
Details
Description: There is an issue on boot with mounting
partitions on the new LVM2 in testing:
lip 04 17:32:40 Iluvatar systemd[1]: systemd-fsck@dev-disk-by\x2duuid-990c5d4a\x2d7415\x2d4e34\x2db200\x2d451aab41469c.service: Bound to unit dev-disk-by\x2duuid-990c5d4a\x2d7415\x2d4e34\x2db200\x2d451aab41469c.device, but unit isn't active. lip 04 17:32:40 Iluvatar systemd[1]: Dependency failed for File System Check on /dev/disk/by-uuid/990c5d4a-7415-4e34-b200-451aab41469c. lip 04 17:32:40 Iluvatar systemd[1]: Dependency failed for /mnt/backup. lip 04 17:32:40 Iluvatar systemd[1]: Dependency failed for Local File Systems. lip 04 17:32:40 Iluvatar systemd[1]: local-fs.target: Job local-fs.target/start failed with result 'dependency'. lip 04 17:32:40 Iluvatar systemd[1]: local-fs.target: Triggering OnFailure= dependencies. lip 04 17:32:40 Iluvatar systemd[1]: mnt-backup.mount: Job mnt-backup.mount/start failed with result 'dependency'. lip 04 17:32:40 Iluvatar systemd[1]: systemd-fsck@dev-disk-by\x2duuid-990c5d4a\x2d7415\x2d4e34\x2db200\x2d451aab41469c.service: Job systemd-fsck@dev-disk-by\x2duuid-990c5d4a\x2d7415\x2d4e34\x2db200\x2d451aab41469c.service/start failed with result 'dependency'. Full boot log - https://pastebin.com/3bz07QrB I'm not the only one affected, we have a topic regarding this on arch forums - https://bbs.archlinux.org/viewtopic.php?id=238554 This should be reported upstream also? Additional info: * lvm2 2.02.179-1 - testing. Steps to reproduce: Start or reboot of entire system. PS. Downgrading LVM2 fix the issue. |
This task depends upon
Closed by Christian Hesse (eworm)
Friday, 20 July 2018, 14:55 GMT
Reason for closing: Fixed
Additional comments about closing: lvm2 2.02.180-1
Friday, 20 July 2018, 14:55 GMT
Reason for closing: Fixed
Additional comments about closing: lvm2 2.02.180-1
The problem still exist even i set pass=0 in fstab
ext4 defaults,rw,noatime 0 1
An identical drive that mounts, with the same options, to /, does not exhibit the issue.
Boot stops in an emergency console but using ctrl-D it continues and X seems to work correctly.
Downgrading lvm2 to 2.02.177-5 solves the issue and the boot process does not stop.
I have /home mounted to a separate drive. I believe that this is why I am affected by this issue.
I have LVM2 PV on primary drive (/dev/sda11). And have secondary SSD drive /dev/sdb. Error occured on /dev/sdb1.
Fixed by downgrading lvm2 to 2.02.177-5.
See arch forums https://bbs.archlinux.org/viewtopic.php?id=238554
Other option suggested kernel parameter fsck.mode=skip did not work for me.
Which would indicate it is https://github.com/systemd/systemd/issues/1741
57bb46c5e7f8d6af1737af5ed1acae8abc37cded is the first bad commit
commit 57bb46c5e7f8d6af1737af5ed1acae8abc37cded
Author: David Teigland <teigland@redhat.com>
Date: Thu May 3 17:12:07 2018 -0500
filter: use bcache for filter reads
Filters are still applied before any device reading or
the label scan, but any filter checks that want to read
the device are skipped and the device is flagged.
After bcache is populated, but before lvm looks for
devices (i.e. before label scan), the filters are
reapplied to the devices that were flagged above.
The filters will then find the data they need in
bcache.
:040000 040000 721531d5dfb3c46b9eb6778d168ab4924b8e5b17 43153836af55b5de10d7717006056b4b7c547007 M lib
:040000 040000 2f55881a01e084feb23bcd53e183507e24dd8af1 c25495fb0704d96a8b802e6bc48f6a935547cd52 M tools
Which was the assumed upstream issue. Do you think a new bug report should be opened with lvm2 for this issue?
My fstab bellow:
# <file system> <dir> <type> <options> <dump> <pass>
PARTLABEL=uefi_boot /boot/efi vfat rw,noatime,discard 0 2
PARTLABEL=linux_root / ext4 defaults,noatime,discard 0 1
PARTLABEL=linux_home /home ext4 defaults,noatime,discard 0 2
tmpfs /tmp tmpfs nodev,nosuid 0 0
/home is not mounted or gets unmounted. Using "mount -a" after bootup is working.
# fstab:
UUID=<dev-UUID> /mnt/extra ext4 rw,defaults 0 2
# mount bind
/mnt/extra/home /home none defaults,bind 0 0
Downgrade to 2.02.177-5 helps : device-mapper + lvm2
and 57bb46c5e7f8d6af1737af5ed1acae8abc37cded is the first bad commit?
I would rather new information is not lost in repetition of already noted information.
Edit:
r418 is the last good commit to test r419 is the first bad commit you only need to install the lvm2 package not the device-mapper package as well
lvm2-2.02.177.r419.g57bb46c5e... (4 KiB)
The kernel update did not fix the problem for me
Anybody affected please open an upstream bug report. Thanks!
Sadly the found commit is quite huge and can not be reverted easily.
Did anybody try git master to test if the issue has been solved already?
it seems that the bug will be triggered if the PC has several hard drives and/or several type of partitions (ext4, ntfs),
those who have a laptop with only one hard drive may not see the bug
also the current commit needed configure to be regenerated with autoreconf so it would not fail from missing lvmedtad
This is only build tested.
Even my old "less stable" /etc/fstab (with label-based mounting and enabled fsck) works