Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 595762 - sys-fs/btrfsmaintenance - Scripts for btrfs maintenance tasks
Summary: sys-fs/btrfsmaintenance - Scripts for btrfs maintenance tasks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Default Assignee for New Packages
URL: https://github.com/kdave/btrfsmainten...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-01 08:19 UTC by Fabian Köster
Modified: 2019-03-15 16:55 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
btrfsmaintenance-0.3.ebuild (btrfsmaintenance-0.3.ebuild,819 bytes, text/plain)
2017-01-09 08:37 UTC, Fabian Köster
Details
btrfs-defrag.timer (btrfs-defrag.timer,127 bytes, text/plain)
2017-01-09 08:38 UTC, Fabian Köster
Details
btrfs-trim.timer (btrfs-trim.timer,123 bytes, text/plain)
2017-01-09 08:38 UTC, Fabian Köster
Details
btrfs-scrub.timer (btrfs-scrub.timer,126 bytes, text/plain)
2017-01-09 08:38 UTC, Fabian Köster
Details
btrfs-balance.timer (btrfs-balance.timer,126 bytes, text/plain)
2017-01-09 08:39 UTC, Fabian Köster
Details
btrfs-trim.service (btrfs-trim.service,217 bytes, text/plain)
2017-01-09 08:39 UTC, Fabian Köster
Details
btrfs-scrub.service (btrfs-scrub.service,219 bytes, text/plain)
2017-01-09 08:39 UTC, Fabian Köster
Details
btrfs-defrag.service (btrfs-defrag.service,221 bytes, text/plain)
2017-01-09 08:40 UTC, Fabian Köster
Details
btrfs-balance.service (btrfs-balance.service,223 bytes, text/plain)
2017-01-09 08:40 UTC, Fabian Köster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Köster 2016-10-01 08:19:58 UTC
Because btrfs needs periodic maintenance which is (currently) not being done automatically, it would be nice to have the tools from btrfsmaintenance.
Comment 1 Maciej S. Szmigiero 2017-01-07 16:35:29 UTC
+1

sys-fs/mdadm installs a checkarray cron job, but btrfs has nothing comparable
currently available in Gentoo, despite advice by Google engineers that
"[d]aily or weekly btrfs scrub (..) is a must have with btrfs":
http://marc.merlins.org/perso/btrfs/post_2014-03-19_Btrfs-Tips_-Btrfs-Scrub-and-Btrfs-Filesystem-Repair.html
Comment 2 Fabian Köster 2017-01-09 08:37:35 UTC
Created attachment 459280 [details]
btrfsmaintenance-0.3.ebuild

I created simple ebuild for this.
Comment 3 Fabian Köster 2017-01-09 08:38:03 UTC
Created attachment 459284 [details]
btrfs-defrag.timer
Comment 4 Fabian Köster 2017-01-09 08:38:25 UTC
Created attachment 459288 [details]
btrfs-trim.timer
Comment 5 Fabian Köster 2017-01-09 08:38:47 UTC
Created attachment 459290 [details]
btrfs-scrub.timer
Comment 6 Fabian Köster 2017-01-09 08:39:04 UTC
Created attachment 459292 [details]
btrfs-balance.timer
Comment 7 Fabian Köster 2017-01-09 08:39:18 UTC
Created attachment 459294 [details]
btrfs-trim.service
Comment 8 Fabian Köster 2017-01-09 08:39:49 UTC
Created attachment 459296 [details]
btrfs-scrub.service
Comment 9 Fabian Köster 2017-01-09 08:40:03 UTC
Created attachment 459298 [details]
btrfs-defrag.service
Comment 10 Fabian Köster 2017-01-09 08:40:16 UTC
Created attachment 459300 [details]
btrfs-balance.service
Comment 11 Samuel Bernardo 2017-06-25 20:19:10 UTC
I already created and published an ebuild in my overlay:
https://github.com/samuelbernardo/ssnb-overlay/tree/9ca9fec3fe7d8bab961fdbf8fe8a45c803b1449b/sys-fs/btrfsmaintenance

I only miss the pull request to the gentoo tree. I thought the right way was to publish to my overlay at git.gentoo.org/repo/user/ssnb.git and then gentoo maintainers will push it to main tree if needed.
Comment 12 Maciej S. Szmigiero 2017-06-25 22:21:55 UTC
> I already created and published an ebuild in my overlay:
> https://github.com/samuelbernardo/ssnb-overlay/tree/
> 9ca9fec3fe7d8bab961fdbf8fe8a45c803b1449b/sys-fs/btrfsmaintenance
> 
> I only miss the pull request to the gentoo tree. I thought the right way was
> to publish to my overlay at git.gentoo.org/repo/user/ssnb.git and then
> gentoo maintainers will push it to main tree if needed.

Thanks for your contribution Samuel.

I think creating a pull request (for the main tree) right away will attract
more attention to these new ebuilds.

Gentoo GitHub guide says that a bug must be filled before creating a PR for a 
new ebuild - that's this bug, so this requirement is already fulfilled.
Comment 13 Martin Dummer 2017-06-28 10:05:59 UTC
Github pull request: https://github.com/gentoo/gentoo/pull/5003
Comment 14 Martin Dummer 2017-07-19 17:08:45 UTC
Github Pull request is merged, package is in tree now, bug can be closed.
Comment 15 Fabian Köster 2017-07-19 17:13:20 UTC
Great job Martin, thanks!