Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Non-Sensical Cache Pool Numbers

Featured Replies

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!

Screenshot_20201230-105407.png

trminator-diagnostics-20201230-1158.zip

  • Community Expert

btrfs raid1 with an odd number of devices gives incorrect free space, and it will change as you fill it up, that's a known btrfs bug, total size e used space should be correct, strange about the pool size.

  • Community Expert

BTW, total usable space will be 2.25TB

  • Author

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.

  • Community Expert

Not something I can see a plugin being able to fix.    There has been work going on to get a proper fix applied at the generic linux BTRFS driver level and that is the sensible long term solution.   Btrfs has been getting better at reporting sensible values but it is not there yet :( 

  • Author

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.

  • Community Expert
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.

  • Author

Fair enough. I'll take your word for it. Thanks for the additional information!

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.