[systemd-devel] btrfs raid not ready but systemd tries to mount it anyway

Chris Murphy lists at colorremedies.com
Mon Oct 12 20:34:12 UTC 2020


On Sun, Oct 11, 2020 at 11:56 PM Andrei Borzenkov <arvidjaar at gmail.com> wrote:
>
> 11.10.2020 23:57, Chris Murphy пишет:
> > Hi,
> >
> > A Fedora 32 (systemd-245.8-2.fc32) user has a 10-drive Btrfs raid1 set
> > to mount in /etc/fstab:
> >
> > UUID=f89f0a16-<snipped>  /srv   btrfs  defaults,nofail,x-systemd.requires=/  0 0
> >
> > For some reason, systemd is trying to mount this file system before
> > all ten devices are ready. Supposedly this rule applies:
> > https://github.com/systemd/systemd/blob/master/rules.d/64-btrfs.rules.in
> >
> > Fedora does have /usr/lib/udev/rules.d/64-btrfs.rules but I find no
> > reference at all to this rule when the user boots with 'rd.udev.debug
> > systemd.log_level=debug'. The entire journal is here:
> >
> > https://drive.google.com/file/d/1jVHjAQ8CY9vABtM2giPTB6XeZCclm7R-/view
> >
>
> Educated guess - rule is missing in initrd and you do not run udev
> trigger after switch to root.

I will ask the user to double check their initrd, but mine definitely
has it without any initrd/dracut related customizations.

$ sudo lsinitrd initramfs-5.8.8-200.fc32.x86_64.img | grep btrfs
btrfs

-rw-r--r--   1 root     root          616 May 29 12:35
usr/lib/udev/rules.d/64-btrfs.rules

-- 
Chris Murphy


More information about the systemd-devel mailing list