Red Hat Bugzilla – Bug 999184
Feature Request to add scheduled maintenance scripts to btrfs-progs
Last modified: 2014-10-02 12:53:52 EDT
I believe that btrfs would benefit from some jobs scheduled by cron or systemd to perform tasks such as a weekly scrub and possibly a defragment.
This would be just like /usr/sbin/raid-check from mdadm.
Some scripts for doing timed snapshots would be useful too.
This bug appears to have been reported against 'rawhide' during the Fedora 20 development cycle.
Changing version to '20'.
More information and reason for this action is here:
scrub maybe, if it doesn't cause more problems than it's worth.
defrag - probably not, there are usually side effects of that - at least on other filesystems (which granted are very different) you don't want to do an fs-wide defrag "just because."
snapshots - maybe, but seems like the space implications could make it tricky.
If you're really interested in this, it'd be great to put those scripts together & propose them on the list...
btrfs-progs-3.14.1 has been pushed to Fedora 19 and 20 for testing.
I frankly have no idea if this will resolve your bug or not, but if you test it and find that it does, please take the opportunity to close this bug. :)
This is really something that should be proposed upstream, I think, not something that Fedora would uniquely implement.
I tried proposing snapshot-scripts upstream early on. I even submitted my own.
It was rejected on the grounds that they didn't want to make btrfs-progs bigger or add dependencies on script interpreters, etc.
So if someone goes upstream with this again, propose a separate package. Don't try to get them to add it to btrfs-progs. btrfs-utils perhaps?