-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
btrfs raid not ready but systemd tries to mount it anyway #947
Comments
I agree with Lennart. Either include the btrfs udev rule unconditionally or if fstab contains any btrfs reference. It's definitely not in @danieljrmay 's initramfs when inspected with |
I should have mentioned this in the original report:
|
This issue is being marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. If this is still an issue in the latest release of Dracut and you would like to keep it open please comment on this issue within the next 7 days. Thank you for your contributions. |
dracut-051 doesn't have a fix for this so I'm commenting to make sure it doesn't get closed. |
This issue is being marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. If this is still an issue in the latest release of Dracut and you would like to keep it open please comment on this issue within the next 7 days. Thank you for your contributions. |
Buried in the long ask.fpo thread referenced at the top, but not mentioned in this issue, using
|
But your rootfs != btrfs... Shouldn't it bring up the btrfs after the switch root just fine? |
To be clear, dracut must not be involved for That means, initramfs boot must not be stalled for e.g. big SAN arrays mounted to |
ok, I stand corrected:
|
That is really unfortunate. |
This needs a systemd patch and a dracut patch |
Install `64-btrfs.rules` unconditionally to mark btrfs devices ready or not. In case no `btrfs` kernel module is available in the initramfs, the device should not be ready. Depends on: systemd/systemd#18802 Fixes: dracutdevs#947
Install `64-btrfs.rules` unconditionally to mark btrfs devices ready or not. In case no `btrfs` kernel module is available in the initramfs, the device should not be ready. Depends on: systemd/systemd#18802 Fixes: #947
Describe the bug
I have a machine with a EXT4 / partition and a 10 HDD BTRFS RAID1 volume which I have mounting at
/srv
in/etc/fstab
. Out of the 10 HDDs which make up the BTRFS volume 4 were connected directly to the motherboard, 6 were connected via an HBA card. In this configuration the the BTRFS volume would fail to mount automatically at boot time.I initially reported this issue at ask.fedoraproject.org:
https://ask.fedoraproject.org/t/btrfs-volume-mount-fails-at-boot-but-works-once-system-is-up/9593
The same issue was then reported to the systemd-devel mailing list:
https://lists.freedesktop.org/archives/systemd-devel/2020-October/045399.html
Where it has been suggested that the issue may be with dracut:
https://lists.freedesktop.org/archives/systemd-devel/2020-October/045440.html
Hence I am reporting this here.
Distribution used
Fedora 32.
Dracut version
Init system
To Reproduce
This may be due to a race condition so it might be difficult to reproduce. However, a setup similar to mine may well have the same problem: non-BTRFS / filesystem, a multi-device BTRFS filesystem which is split between direct connection to the motherboard and HBA card and is configured to mount in
/etc/fstab
The BTRFS volume mounts successfully at boot time when:
udev.log_priority=debug systemd systemd.log_level=debug
is added to the grub boot parameters.Expected behavior
The BTRFS volume should mount automatically during the boot process.
Additional context
This is a Fedora 32 machine which I think was upgraded via
dnf
from Fedora 31 sometime ago. The BTRFS volume was added recently when migrating storage from anmdadm
based RAID6 XFS filesystem.I hope this makes some kind of sense 😉
The text was updated successfully, but these errors were encountered: