October 23, 20232 yr I did a search...not much on BTRFS filesystem tools...particularly defragmentation and the like I found a few links https://lexming.github.io/posts/simple-btrfs-scrub/ This is a bunch of scripts for "automatic" filesystem tools that might be used to automate things to help with BTRFS arrays https://github.com/kdave/btrfsmaintenance I ran this command on my system...let's hope I didn't bork something btrfs filesystem defragment sync -r f /mnt/disk* & Edited October 23, 20232 yr by WarHawk8080
October 23, 20232 yr Author Not a howto...but a "call to action" by the DEV's to see if there is some sort of way to impliment easier/automated filesystem maintenance (if there isn't some already there)
October 24, 20232 yr BTRFS scrubs and balances can be scheduled per disk via the gui (under the disk options i think). I dont think defragmentation is an operation that most people would want to perform regularly on BTRFS. If i remember correctly under most circumstances you dont want to defragment an entire disk as it breaks CoW deduplication. Defrag should only be performed on targeted files or parts of the filesystem if required.
October 25, 20232 yr 13 hours ago, primeval_god said: If i remember correctly under most circumstances you dont want to defragment an entire disk Yeah, and certainly not if you are using snapshots.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.