mergerfs-tools icon indicating copy to clipboard operation
mergerfs-tools copied to clipboard

mergerfs.balance Or mergerfs.EVACUATE ?!

Open wbrione opened this issue 1 year ago • 1 comments

I would like the tool, in fact, to balance the data between all the disks in my pool, but what it is doing is distributing/moving all the contents of the disk that had more space allocated, to the rest of the pool, at the end, leaving the original disk, where all the data was, practically empty. I understand that: If I have, for example, 3 disks, disk 1 has 3 tb of data, and disk 2 and 3 empty, at the end of the process, should have 1 tb allocated to each disk, totaling 3 tb... Shouldn't that be the behavior ?!

I have a process now underway, and this is the result...

~# du -sh /srv/dev-disk-by-uuid-/ISO 70G /srv/dev-disk-by-uuid-/ISO 271G /srv/dev-disk-by-uuid-/ISO 272G /srv/dev-disk-by-uuid-/ISO 311G /srv/dev-disk-by-uuid-*/ISO

As I said, the disk currently with 70gb, was the disk where all the files were stored, the process is, in fact, "evacuating" its contents to the other disks :-(

Note(1) Command => mergerfs.balance /srv/mergerfs/DATA/ISO/

Note(2) MergerFS options => cache.files=partial,dropcacheonclose=true,category.create=mfs

Note(3) Before balancing, I changed the pool behavior from "epmfs" to "mfs" followed by the pool restart

wbrione avatar Jun 27 '23 23:06 wbrione