Jump to content

Min Free Space not working with High Water?


Recommended Posts

I have an issue where one of my drives keeps filling up. It looks like the min free space setting is not being obeyed. Anyone know what I'm doing wrong or is this a bug?

I also confirmed that there are directories on most other disks that it could write to, but for some reason its prioritizing disk 14 which doesn't have enough space for the largest files I would be writing.

Note: As you can see from the screenshot, everything is pretty balanced except disk 14. The only change I made recently was upgrading to 6.12.11 from 6.12.9 a few days ago. Diagnostics attached.

Edit: Based on the description of High Water: "Choose the lowest numbered disk with free space still above the current high water mark. The high water mark is initialized with the size of the largest Data disk divided by 2. If no disk has free space above the current high water mark, divide the high water mark by 2 and choose again."

So that would mean...
18 / 2 = 9 TiB
9 / 2 = 4.5 TiB
4.5 / 2 = 2.25 TiB

2.25 / 2 = 1.125 TiB (currently here)

 

Ok so its filling up the lowest numbered disk that had at least 1.125 TiB of free space... but then what? I can see its writing to both disk 14 and disk 15, but I would NOT expect any writes to disk 14 since its has far below the min free space.

 image.png.9eb1304d62bf6cddab11e7e29f3d61d3.png

image.thumb.png.ed49f80bd5ba6267f8d5d5d5fecd0293.png

image.thumb.png.e0bd0b0a5cc799e099039a9b0ea813d7.png

tower-diagnostics-20240731-1344.zip

Edited by johnsanc
Link to comment

Written to disk 15 which is correct.
I think I see what the issue is though... during a very large transfer, a ton of temp files were created before their full filesize was allocated. So most of the temp files were written to disk 14 initially then grew as the transfer was going. So yes what you originally said was correct, but I guess I should always pre-allocate disk space to avoid this issue.

  • Like 1
Link to comment
Posted (edited)

Well this is interesting... I am transferring some of the temp files manually from disk 14 to disk 16 and I can see in midnight commander I have transferred over 100 GiB so far, but the unraid UI only has disk usage decreased by about 10 GiB... I opened some of the files in a hex editor and confirmed they are mostly zeroes.
 

I would have expected the disk usage to decrease, but it sounds like unraid's disk space calculation is NOT including the zeroed space of sparse files.

Edit: Yeah this is a problem... This is only an 8 TB disk but it says 9+ TB occupied. Apparently committed sparse space is NOT considered in unraids calculations for free space. IMO, unraid's disk allocations should be changed to use the space metrics as shown here since it’s more impactful for allocation purposes than whatever is shown on the main page. @JorgeB - Welcome your thoughts on this one!
image.thumb.png.cfa0d0e6475ae2d2dd7ab81a540af588.png

Edited by johnsanc
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...