Debian Bug report logs -
#955413
btrfs-progs: new mount-time checking causes systemd to timeout and boot failure
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Adam Borowski <kilobyte@angband.pl>:
Bug#955413; Package btrfs-progs.
(Tue, 31 Mar 2020 12:24:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Graham Cobb <g+debian@cobb.uk.net>:
New Bug report received and forwarded. Copy sent to Adam Borowski <kilobyte@angband.pl>.
(Tue, 31 Mar 2020 12:24:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: btrfs-progs
Version: 5.3.1-1
Severity: minor
The new checks at mount time cause mount times for large filesystems to be much
longer. My roughly 10TB filesystem now takes over 90 seconds to mount.
Unfortunately, this is longer than the default systemd mount timer and systemd
assumes the mount has failed (and, in fact, cancels it). If the mount is not
marked with "nofail" this causes boot to fail and to drop into the rescue
console.
This new checking is a good thing, and neither the new checks, nor the systemd
behaviour are bugs, nor are they the responsibility of btrfs-progs.
It is likely that users of large btrfs filesystems will have btrfs-progs
installed. So, I believe it would be extremely useful to add a NEWS item to the
next btrfs-progs package release to warn btrfs users of this change and
recommend that they consider making changes to /etc/fstab for any btrfs
volumes mounted at boot time.
Alternatively, the NEWS item could be included in the kernel release, however
that would target a much larger group of people than just btrfs users.
A release notes entry for bullseye should also be considered.
Suggested NEWS text:
BTRFS filesystems are now checked for tree corruption at mount time.
For filesystems of around 10TB or larger, this is likely to cause the mount
time to exceed the default systemd mount timeout of 90 seconds. If the
filesystem is mounted at boot time, and not marked as "nofail", this will cause
the boot to fail.
The systemd mount timeout can be increased in /etc/fstab by setting the mount
option x-systemd.mount-timeout= with a new timeout value in seconds.
See systemd.mount(5) for full documentation on the systemd mount options
that can be specified in /etc/fstab.
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (900, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.4.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IE.utf8, LC_CTYPE=en_IE.utf8 (charmap=UTF-8) (ignored: LC_ALL set to en_IE.utf8), LANGUAGE=en_IE.utf8 (charmap=UTF-8) (ignored: LC_ALL set to en_IE.utf8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages btrfs-progs depends on:
ii libblkid1 2.34-0.1
ii libc6 2.29-7
ii libcom-err2 1.45.4-1
ii libext2fs2 1.45.4-1
ii liblzo2-2 2.10-0.1
ii libuuid1 2.34-0.1
ii libzstd1 1.4.4+dfsg-1
ii zlib1g 1:1.2.11.dfsg-1+b1
btrfs-progs recommends no packages.
Versions of packages btrfs-progs suggests:
pn duperemove <none>
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, Adam Borowski <kilobyte@angband.pl>:
Bug#955413; Package btrfs-progs.
(Fri, 03 Apr 2020 13:51:01 GMT) (full text, mbox, link).
Acknowledgement sent
to Christoph Anton Mitterer <calestyo@scientia.net>:
Extra info received and forwarded to list. Copy sent to Adam Borowski <kilobyte@angband.pl>.
(Fri, 03 Apr 2020 13:51:02 GMT) (full text, mbox, link).
Message #10 received at 955413@bugs.debian.org (full text, mbox, reply):
We see that, too, at the institute... any larger (few TB) filesystems
in /etc/fstab make systemd cause the system to fail at boot... leaving
it a state with no remote resuce (ssh) being possible.
Since such filesystems would mount just fine... I would rather say that
this functionality is a severe bug.
Cheers,
Chris.
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Thu Jul 23 22:01:00 2020;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.