Confusion about btrfs maintenance

You find good Information about Btrfs in the wiki

and in

Note that Btrfs is not a Windows file system!

Best to check with the source (Btrfs developers)

  • Defragmentation
    is rarely needed with Btrfs. Should not be used if snapshots or compression are used

  • Scrub
    is not beneficial at all. It can only be beneficial if you have RAID 1. And even then only if you really think something is wrong.

  • Trimming
    is done automatically by systemd Btrfs at best

  • Balance
    is needed in some cases. But Btrfs will balance itself as long as you don’t exceed 80% fullness

Used carelessly, these commands only put a strain on the lifespan of the hard drive/ssd, but do nothing more than waste heat :wink:
:footprints:

3 Likes