Bug 1201979
Summary: | fsck for root filesystem is running twice, once in dracut once afterwards | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Till Maas <opensource> |
Component: | systemd | Assignee: | systemd-maint |
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 21 | CC: | dracut-maint-list, fedora, harald, jimis, johannbg, jonathan, jsynacek, lnykryn, msekleta, orion, s, systemd-maint, zbyszek |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-04 16:54:17 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Till Maas
2015-03-14 07:18:21 UTC
Please post the full boot log (journalctl -b). Happens to me as well, I have a fedora 21 installation upgraded from previous versions repeatedly. Pasting here the relevant pieces of the boot log: <pre> Mar 21 01:23:07 soupermouf systemd[1]: Reached target Basic System. Mar 21 01:23:07 soupermouf dracut-initqueue[264]: Scanning devices sda7 for LVM logical volumes vg_soupermouf/lv_root vg_soupermouf/lv_swap Mar 21 01:23:07 soupermouf dracut-initqueue[264]: inactive '/dev/vg_soupermouf/lv_root' [50.00 GiB] inherit Mar 21 01:23:07 soupermouf dracut-initqueue[264]: inactive '/dev/vg_soupermouf/lv_swap' [3.88 GiB] inherit Mar 21 01:23:07 soupermouf systemd[1]: Found device /dev/mapper/vg_soupermouf-lv_root. Mar 21 01:23:07 soupermouf systemd[1]: Starting File System Check on /dev/mapper/vg_soupermouf-lv_root... Mar 21 01:23:07 soupermouf systemd-fsck[360]: /dev/mapper/vg_soupermouf-lv_root: clean, 764205/3276800 files, 12078014/13107200 blocks Mar 21 01:23:07 soupermouf systemd[1]: Started File System Check on /dev/mapper/vg_soupermouf-lv_root. Mar 21 01:23:08 soupermouf systemd[1]: Found device /dev/mapper/vg_soupermouf-lv_swap. Mar 21 01:23:08 soupermouf systemd[1]: Started dracut initqueue hook. Mar 21 01:23:08 soupermouf systemd[1]: Starting dracut pre-mount hook... [ ... ] Mar 21 01:23:18 soupermouf systemd-fsck[471]: /dev/mapper/vg_soupermouf-lv_root: clean, 764205/3276800 files, 12078014/13107200 blocks Mar 21 01:23:18 soupermouf systemd[1]: Started File System Check on Root Device. Mar 21 01:23:18 soupermouf systemd[1]: Starting Remount Root and Kernel File Systems... </pre> I guess you have 'ro' in the boot options. If you change it to 'rw', root should be checked in the initramfs, and not afterwards. This is actually a good thing to do, not just a work-around for this problem. Yes you're right, thanks! It's weird though, I've been trying to debug the problem for long, and I still don't see what is exactly going on here. BTW why is good to mount read-write already from the initramfs phase? I remember "ro" being the default in various distributions I've used since many years ago. FWIW it seems it's the default in Fedora: # grep " ro " /etc/grub.d/10_linux ${linuxefi} ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} linux${sixteenbit} ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} Mounting 'ro' was a hack to run fsck using the binary from the fs that is being checked. But when you have an initramfs, you can run the fsck from there, before mounting the filesystem. At that point there's no reason to mount it first ro, and then remount it rw. Right, it makes sens. So should we open a new bug for fedora mounting read-only and causing double fsck, or is this ticket enough? Zbigniew, are you a Fedora developer? Till Maas, since you reported this ticket, does mounting "rw" solve the problem for you, like it did for me? Ping, any more information you need? Shouldn't "rw" mount be the default then? Maybe this bug can be triaged by the grub packagers? The bug of double fsck in case of "ro" is known to upstream. http://cgit.freedesktop.org/systemd/systemd/tree/TODO#n88 I should really fix the fstab-generator in systemd. I'm curious about the ro/rw things as well - which should be used? I came across this bug while trying to debug a F21 VM that is failing to boot claiming it can't mount /sysroot (which it successfully does later). Changing ro to rw seems to help, but it appears to be some kind of race so I'm not entirely sure what is up. @Orion: Maybe you're seeing https://bugzilla.redhat.com/show_bug.cgi?id=1207618? Jan - Thanks for the suggestion, but no btrfs here. This message is a reminder that Fedora 21 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 21. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '21'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 21 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Near as I can tell, this is fixed in F22 but not F21. Not worth bothering about that at this point. |