Non-Sensical Cache Pool Numbers


Recommended Posts

Hello, I am hoping to have someone sanity check me on whether or not these numbers make sense or not. As can be seen in the screenshot, I have 7 cache disks of varying size. Sometimes the cache pool will says 2TB total, but sometimes it will says 2.3TB. The USED and FREE numbers don't add up to anywhere close to 2 or 2.3 TB.


Most recently, I deleted my cache pool and completely reformatted all the drives, thinking that may solve the problem, however, it currently shows that of 2.3TB, I have 3.56MB used, and 1.27TB available. Another interesting note is that the bars seem to indicate that 3.56MB ~= 1.27TB.


From trying to look into this problem, I understand there's an issue with free space calculations in btrfs, but this all just seems a little off considering that I don't recall having an issue like this before and wanted to get some other eyes on it.


Thanks in advance!


Link to comment

Thanks for the info. JorgeB! Though it makes me wonder, why include the Free Space at all if it's known to be buggy and there's nothing Unraid can do about it? Seems to me that the cache always has at least a good idea of how much space is actually being used, so it seems like it would look much better if there was only the used metric there, and if the bar filled up as a percentage of the used space over the calculated space (2TB/2.3TB in my case). Even if the total drive space does fluctuate a bit, 3MB/2.3TB vs 3MB/2TB or 200GB/2.3TB vs 200GB/2TB seems like it would look much better than an arbitrary 3MB ~= 50%.


While I haven't dug into creating plugins personally, does this seem like the kind of thing that could easily be done with a plugin? Seems likely to me. If so, perhaps I'll have a go at creating one.

Link to comment
45 minutes ago, bamhm182 said:

I wasn't insinuating it would be a long-term fix, I was just thinking maybe a little javascript to clean it up a bit. I honestly don't know anything about Unraid plugins and what they're capable of.

I do not see where anything could easily be hooked into the UnRAID GUI to ‘fix’ this issue which I’d why I did not think a plugin is going to help.    I think we are just going to have to wait until the Linux kernel developers finally fix this issue at the btrfs driver level and Unraid picks up the fix as part of its normal migration to newer Linux kernel releases for new UnRAID releases.

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.

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.