Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 595762

Summary: sys-fs/btrfsmaintenance - Scripts for btrfs maintenance tasks
Product: Gentoo Linux Reporter: Fabian Köster <gentoo>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED FIXED    
Severity: normal CC: fturco, leho, mail, martin.dummer, polynomial-c
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/kdave/btrfsmaintenance
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: btrfsmaintenance-0.3.ebuild
btrfs-defrag.timer
btrfs-trim.timer
btrfs-scrub.timer
btrfs-balance.timer
btrfs-trim.service
btrfs-scrub.service
btrfs-defrag.service
btrfs-balance.service

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!