[Bug 946176] New: initrd does not activate all LVs needed for fstab
http://bugzilla.opensuse.org/show_bug.cgi?id=946176 Bug ID: 946176 Summary: initrd does not activate all LVs needed for fstab Classification: openSUSE Product: openSUSE Distribution Version: 42.1 Milestone 2 Hardware: x86-64 OS: openSUSE 42.1 Status: NEW Severity: Major Priority: P5 - None Component: Bootloader Assignee: jsrain@suse.com Reporter: koenig@linux.de QA Contact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0 Build Identifier: systemd startup barfs because it can't access some of the file systems in my fstab which are in LVs: journalctl -xb | grep inactive Sep 17 10:36:58 hl dracut-initqueue[357]: inactive '/dev/system/home' [200.00 GiB] inherit Sep 17 10:36:58 hl dracut-initqueue[357]: inactive '/dev/system/root-13.1' [50.00 GiB] inherit Sep 17 10:36:58 hl dracut-initqueue[357]: inactive '/dev/system/srv' [175.00 GiB] inherit Sep 17 10:36:58 hl dracut-initqueue[357]: inactive '/dev/system/swap' [10.00 GiB] inherit Sep 17 10:36:58 hl dracut-initqueue[357]: inactive '/dev/system/root-13.2' [50.00 GiB] inherit journalctl -xb | grep 'failed for File System' Sep 17 10:38:29 hl systemd[1]: Dependency failed for File System Check on /dev/system/srv. Sep 17 10:38:29 hl systemd[1]: Dependency failed for File System Check on /dev/system/root-13.2. grep /dev/system /etc/fstab /dev/system/swap swap swap defaults 0 0 /dev/system/root-13.1 / ext4 acl,user_xattr 1 1 /dev/system/home /home ext4 acl,user_xattr 1 2 /dev/system/srv /srv ext4 acl,user_xattr 1 2 /dev/system/root-13.2 /13.2 ext4 acl,user_xattr 1 1 /dev/system/root-13.1 /13.1 ext4 acl,user_xattr 1 1 /dev/system/root-13.2 /13.2 ext4 acl,user_xattr 1 1 this setup and my fstab work fine with 13.2! right now I can use 2 workarounds: - add this to the boot command line in grub.cfg: rd.lvm.lv=system/root-13.2 rd.lvm.lv=system/srv rd.lvm.lv=system/home - use "--add-fstab" for dracut: dracut --kver 4.1.6-10-desktop --force --add-fstab <( grep ^/dev/system /etc/fstab ) but obviously dracut should create a working initrd on it's own.... Reproducible: Always Actual Results: at boot hangs in systemd and goes to emergency mode/shell Expected Results: just boot -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=946176
Jiri Srain
http://bugzilla.opensuse.org/show_bug.cgi?id=946176
http://bugzilla.opensuse.org/show_bug.cgi?id=946176#c1
Fabian Vogt
http://bugzilla.opensuse.org/show_bug.cgi?id=946176
Stephan Kulow
http://bugzilla.opensuse.org/show_bug.cgi?id=946176
Stephan Kulow
http://bugzilla.opensuse.org/show_bug.cgi?id=946176
http://bugzilla.opensuse.org/show_bug.cgi?id=946176#c2
Fabian Vogt
http://bugzilla.opensuse.org/show_bug.cgi?id=946176
http://bugzilla.opensuse.org/show_bug.cgi?id=946176#c3
Harald Koenig
Could you paste the output of "lvm lvs"? BTW: You have a duplicate entry in your fstab.
LV VG Attr LSize home system -wi-ao---- 200.00g root-13.1 system -wi-ao---- 50.00g root-13.2 system -wi-ao---- 50.00g srv system -wi-ao---- 175.00g swap system -wi-ao---- 10.00g (In reply to Fabian Vogt from comment #2)
I can not reproduce the issue on my system with Leap RC1. I created a second LV for /home (/dev/system/home, just as your /home) during installation and it works as expected.
now I can't reproduce it anymore :-( or ;-) ??
The issue can be forced by activating the activationskip flag for the LVs. Is it enabled for your srv and root-13.2 ones?
I've never played with activationskip (just read it for the very first time;) and "lvm lvs" doesn't snow the "k" flag, so unlikely...
It would also be helpful if you could supply the output of "systemctl status systemd-fsck@dev-system-srv.service" while in the emergency shell.
now from the rebooted and running system (as the emergency shell didn't show pu;) # systemctl status systemd-fsck@dev-system-srv.service systemd-fsck@dev-system-srv.service - File System Check on /dev/system/srv Loaded: loaded (/usr/lib/systemd/system/systemd-fsck@.service; static) Active: active (exited) since Thu 2015-10-22 21:42:12 CEST; 20min ago Docs: man:systemd-fsck@.service(8) Process: 1175 ExecStart=/usr/lib/systemd/systemd-fsck %f (code=exited, status=0/SUCCESS) Main PID: 1175 (code=exited, status=0/SUCCESS) Oct 22 21:42:12 hl systemd-fsck[1175]: /dev/mapper/system-srv: clean, 195322/11468800 files, 43360059/4587...locks Hint: Some lines were ellipsized, use -l to show in full. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=946176
Ludwig Nussel
http://bugzilla.opensuse.org/show_bug.cgi?id=946176
http://bugzilla.opensuse.org/show_bug.cgi?id=946176#c4
Thomas Renninger
participants (1)
-
bugzilla_noreply@novell.com