Cache reports 300 from 500GB used but Krusader shows 181GB used (inc. hidden)!... Help?


NLS

Recommended Posts

Here you are.
I read two similar threads btw...
One "excused" this behavior that the FS supposedly uses more than reported by unRAID (and there is a command to find the actual FS overhead - which if you ask me, unRAID should include in the free space report).
The other was fixed (?) by rebooting in maintenance mode (not an easy task on a production server).
 

quasar-ultima-diagnostics-20210915-1007.zip

Link to comment

GUI is showing the correct used space, note that not all tools display correct usage for a btrfs filesystem, e.g. du, you can always confirm with:

 

btrfs fi usage -T /mnt/cache


 

Pool: cache
Overall:
    Device size:         465.76GiB
    Device allocated:         307.02GiB
    Device unallocated:         158.74GiB
    Device missing:             0.00B
    Used:             279.46GiB
    Free (estimated):         185.37GiB    (min: 185.37GiB)
    Free (statfs, df):         185.37GiB
    Data ratio:                  1.00
    Metadata ratio:              1.00
    Global reserve:         447.55MiB    (used: 0.00B)
    Multiple profiles:                no

             Data      Metadata System              
Id Path      single    single   single   Unallocated
-- --------- --------- -------- -------- -----------
 1 /dev/sdd1 305.01GiB  2.01GiB  4.00MiB   158.74GiB
-- --------- --------- -------- -------- -----------
   Total     305.01GiB  2.01GiB  4.00MiB   158.74GiB
   Used      278.38GiB  1.08GiB 64.00KiB 

 

Used:             279.46GiB = 300GB

 

Link to comment
    Device size:                 465.76GiB
    Device allocated:            307.02GiB
    Device unallocated:          158.74GiB
    Device missing:                  0.00B
    Used:                        279.46GiB
    Free (estimated):            185.37GiB      (min: 185.37GiB)
    Free (statfs, df):           185.37GiB
    Data ratio:                       1.00
    Metadata ratio:                   1.00
    Global reserve:              447.55MiB      (used: 0.00B)
    Multiple profiles:                  no

             Data      Metadata System              
Id Path      single    single   single   Unallocated
-- --------- --------- -------- -------- -----------
 1 /dev/sdd1 305.01GiB  2.01GiB  4.00MiB   158.74GiB
-- --------- --------- -------- -------- -----------
   Total     305.01GiB  2.01GiB  4.00MiB   158.74GiB
   Used      278.38GiB  1.08GiB 64.00KiB            

 

So, what is the 120GB diff that Krusader does not show me (even showing hidden files).
It is not a couple of GB.
I also did this:

du -h --max-depth 1 /mnt/cache
151G    /mnt/cache/system
3.9G    /mnt/cache/appdata
141G    /mnt/cache/domains
45M     /mnt/cache/generic_caching
188M    /mnt/cache/seafile
296G    /mnt/cache

 

Well the big difference is system.

Seems I have no access inside system/docker/docker (I use a folder not a file docker).

 

I am not sure the size is realistic for my dockers, but I also cannot verify it (seemingly) from Krusader as it doesn't have root access.

Any ideas how to?

 

EDIT: I tracked it down to /mnt/cache/system/docker/docker/btrfs/subvolumes
In there is a huge number of (virtual) volumes, not sure if they are cleaned up properly.

Some (plenty) of them seem to be same size, which doesn't look too random to me.
I wonder if some dockers could/should share subvolumes.

 

Edited by NLS
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.