-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mergerfs.consolidate moving complete folder from 1 drive to another #115
Comments
It's doing that because it doesn't care where the files come from, just where they might go, which is the drive with the most free space. Doing smarter things is more complicated and given the tool is more of a "oh shit, want to clean this up after screwing something up" not much time has been spent on it. Most people have no need for consolidation. |
I came across this problem today. I use epff policy for create, to minimize moving large files between disks. But I also like to use mergerfs.balance on the pool as well sometimes, which messes that up, splitting the directories. The goal is to run consolidate after balance, to merge the directories that balance split up to multiple disks, preferably only moving the least amount of data possible. Is this possible with existing tools? I guess the balance could be smarter as well, keeping the directory on only one drive when using path preservation. Edit: To answer myself, If I only run consolidate on the sub folder that is split, it will work like I expect. My use case has a folder split with one large file on one drive and many small ones on another, so I guess I can write as script that indentifies split folders "smaller than X MB" and run on that. But I think mergerfs.consolidate could do with a feature that would only consolidate folders that need it, ie. "Only consolidate split sub folders" etc. |
So as I understand it this tool should keep files in a folder together, but it is moving a season folder that is already on 1 drive to another. So I ran the following command to see what it would move
mergerfs.consolidate /mnt/storage-data
The list it generated was long but this is a small part where the files its trying to move make no sense or maybe im misunderstanding this tools purpose. As I understand it if a folders files are already on a single drive then nothing should happen right
The text was updated successfully, but these errors were encountered: