Disks filling past high water 50% with one disk nearly empty


Go to solution Solved by JorgeB,

Recommended Posts

Hello all,

 

I have 3x 18TB disks and 2x 14TB disks in use right now. I'm slowly filling them up with data from an external share. The first disk filled up to about halfway as per my high water settings I'm using for all shares, but now that my fifth disk is starting to feel I've noticed that some additional data is being written to one of the more full disks, let's say going from 8.5 TB available down to 8.48, then the other disks that were at 8.5 will also all go down to 8.48 or so, then finally data starts flowing back to the nearly empty disk.

 

Wouldn't any new data for any share go directly to the nearly empty fifth disk if all of my shares are set to not exclude any drives? I'm trying to understand why high water doesn't seem to be totally followed.

 

Thanks.

 

Attached is an example. Yesterday, the top four disks were all over 8TB free and now they continue to go down. Even earlier this evening they were all around 7.9TB free. 

 

Here are screenshots from around 30 minutes apart.

Screenshot 2024-03-01 at 9.38.34 PM.png

 

 

Screenshot 2024-03-01 at 10.14.09 PM.png

Edited by adamfl
Adding screenshot x2
Link to comment

You might give the name of a share having unexpected behaviour so we can check it.

 

i do notice that some of the shares I looked at had very large values for their Minimum Free Space values.   You might want to check these and put them to values that match how you expect to use the system.

Link to comment
Posted (edited)
2 hours ago, itimpi said:

You might give the name of a share having unexpected behaviour so we can check it.

 

i do notice that some of the shares I looked at had very large values for their Minimum Free Space values.   You might want to check these and put them to values that match how you expect to use the system.

 

The share in question is the media share. Whenever I try to blank out the 'minimum free space' to 0, it replaces it with 1.4 TB as 'calculated free space value' so I'm not sure what to do about that.

 

Edit: I dropped a bunch to 100GB in lieu of 0 even though appdata and the other system shares are set to 0, and that seemed to work. Thanks.

Edited by adamfl
Link to comment
11 hours ago, adamfl said:

Whenever I try to blank out the 'minimum free space' to 0,

 

A value of 0 is treated as meaning "set it to a value based on my disk sizes".   Setting it to any other value than 0 should retain whatever you set.   It used to default to 0 but so many people would have problems with that setting at 0 that a change was made at some point to change 0 to a calculated value.

Link to comment

Understood. Does anything in the logs or config indicate why this is happening re: my long-running rsync task? At this point all of the first four disks are down to around 5.78 TB free.

 

Thanks.

Link to comment
2 minutes ago, adamfl said:

Does anything in the logs or config indicate why this is happening re: my long-running rsync task?

Not really, it's behaving as most free instead of highwater, try changing the allocation method to a different one and then back to highwater, just in case there's some glitch.

  • Like 1
Link to comment
Posted (edited)

Thanks, I just did that. It almost seems like it is behaving as most free if it were ignoring the fifth disk, though, otherwise it doesn't really make sense to me. Here are the current levels. I just made the change and then back to high water.


Is there some kind of advantaged percentage or calculation done where if I'm moving generally larger, multi-GB files, that high-water continues to try and make the other four disks be "equal" if they aren't within 0.05% or something similar? Maybe they keep going back and forth out of "equal" range?

 

image.png.f484e0ae255274d12c343b0dc027676d.png

Edited by adamfl
Link to comment
11 hours ago, adamfl said:

it is behaving as most free if it were ignoring the fifth disk

Right, there's also that, normal most free would not ignore that disk, honestly, this is starting to look like a bug to me, but haven't been able to reproduce for now, will try to do some more testing.

Link to comment

So like I suspected this is a bug, I can reproduce with an array layout similar to yours, thankfully it's also present with smaller devices:

 

image.png

 

Like with you, it's basically working as most free, except for the last disk, which keeps twice the free size of the other ones, I noticed it was the same for you:

 

image.png

7.7x2 = 15.4

 

image.png

 

5.6 x2 = 11.2

 

So definitely a bug, now I still have to try and find out which layouts cause the issue, and if it's filesystem dependent or not.

 

 

Link to comment
  • Solution

I have confirmed it only happens with zfs, it works fine with two devices, with three (or more, most likely) it doesn't, it works correctly until the two first devices are below 50%, once they both get to 50% it starts doing the almost most free thing, keeping the last disk with twice of the free space of the other ones.

 

I'll report this issue to LT and it should be fixed for the next release.

  • Like 1
Link to comment
3 hours ago, JorgeB said:

I have confirmed it only happens with zfs, it works fine with two devices, with three (or more, most likely) it doesn't, it works correctly until the two first devices are below 50%, once they both get to 50% it starts doing the almost most free thing, keeping the last disk with twice of the free space of the other ones.

 

I'll report this issue to LT and it should be fixed for the next release.

 

Awesome, thanks!

 

If it's functioning as most free with a 2:1 ratio, are you able to test what will happen once it hits the share minimum free space value on a given disk? I'm worried if I need to use more of the free space on disk5 it may behave oddly.

Link to comment
14 hours ago, adamfl said:

are you able to test what will happen once it hits the share minimum free space value on a given disk?

Yes, I did test and that still works correctly, once the minimum free space is hit for the top disks it will write exclusively to the last one, until it also reaches the floor.

  • Like 1
Link to comment
  • 3 weeks later...

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.