On Tue, Feb 23, 2021 at 10:03 AM Matthew Miller
<mattdm(a)fedoraproject.org> wrote:
On Mon, Feb 22, 2021 at 02:58:00PM -0700, Chris Murphy wrote:
> We should find out if there's more widespread corruption. The basic
> command to scrub that particular Btrfs file system is:
>
> sudo btrfs scrub start /mnt
It's kind of unfortunate that we also have a command (in the distro since
2007) called just "scrub" which will destroy al of your data. :-/
Not going to lie, it took three tries to read this to understand what
was being said here. :)
Anyway... do we have a timer which does this automatically on Fedora
Linux
systems, or are there plans to add one? Upstream wiki
https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs-scrub says "The user
is supposed to run it manually or via a periodic system service. The
recommended period is a month but could be less."
We *do* have btrfsmaintenance[1] which provides what you're asking
for. However, we don't install it by default or have presets set up
for the timers. There were arguments for and against shipping and
enabling them by default[2].
If we want to ship these, we can easily do so.
[1]:
https://src.fedoraproject.org/rpms/btrfsmaintenance
[2]:
https://pagure.io/fedora-btrfs/project/issue/16
--
真実はいつも一つ!/ Always, there's only one truth!