Contents
How often to run btrfs scrub?
1 Answer. btrfs-scrub manpage recommends to run it monthly: The user is supposed to run it manually or via a periodic system service. The recommended period is a month but could be less.
What does a btrfs scrub do?
btrfs scrub is used to scrub a btrfs filesystem, which will read all data and metadata blocks from all devices and verify checksums. Automatically repair corrupted blocks if there’s a correct copy available. The scrubbing status is recorded in /var/lib/btrfs/ in textual files named scrub.
How long is btrfs scrub?
The scrub resume command has the same options as the scrub start command. Btrfs stores the last two minutes, at 30-second intervals, of root ID generations.
How do I rollback btrfs?
To rollback to an old snapshot; boot into a restore medium (like the arch installer) and mount the Btrfs pool. To rollback “ ROOT ”, first delete or move the unwanted subvolume. The dates of the snapshot are stored under ${snapshot-number}/info. xml if the date needs to be checked.
What do you need to know about Btrfs scrub?
DESCRIPTION btrfs scrub is used to scrub a btrfs filesystem, which will read all data and metadata blocks from all devices and verify checksums. Automatically repair corrupted blocks if there’s a correct copy available. Note: Scrub is not a filesystem checker (fsck) and does not verify nor repair structural damage in the filesystem.
How often should I scrub my file system?
It is recommended that you scrub high-usage file systems once a week and all other file systems once a month. The following is a list of the available btrfs scrub commands: # btrfs scrub usage: btrfs scrub [command] [options] [path]| [device] btrfs scrub start [-BdqrRf] [-c ioprio_class -n ioprio_classdata] [path]| [device] Start a new scrub.
How long does Btrfs keep rolling root ID generations?
Btrfs stores the last two minutes, at 30-second intervals, of root ID generations. Btrfs continues to keep rolling these generations, even if there are no changes in the file system.
Is it OK to run Btrfs in a degraded state?
The thread surrounding Borowski’s patch is an excellent introduction to the debate surrounding whether or not btrfs volumes should be run in a degraded state.