Jump to content

Cache wont complete flush


Jarsky
Go to solution Solved by Jarsky,

Recommended Posts

I just noticed today, that my cache isnt completely emptying. The BTRFS Data gets stuck at ~16GB usage. 

Any ideas on how to resolve, or do I need to reboot? 

 

image.png.8420b70dfe317efeb21b8e7a46382d8b.png

 

root@TOWER:~# btrfs device usage /mnt/cache
/dev/nvme2n1p1, ID: 1
   Device size:           465.76GiB
   Device slack:              0.00B
   Data,single:            16.00GiB
   Metadata,single:         1.00GiB
   System,single:          32.00MiB
   Unallocated:           448.73GiB
root@TOWER:~# btrfs scrub start /mnt/cache
scrub started on /mnt/cache, fsid c20831e7-b715-430c-9d21-3fff9f3daae4 (pid=27825)
root@TOWER:~# btrfs scrub status /mnt/cache
UUID:             c20831e7-b715-430c-9d21-3fff9f3daae4
Scrub started:    Thu Dec 15 20:23:05 2022
Status:           finished
Duration:         0:00:04
Total to scrub:   15.82GiB
Rate:             3.96GiB/s
Error summary:    no errors found
root@TOWER:~# btrfs filesystem df /mnt/cache
Data, single: total=16.00GiB, used=15.81GiB
System, single: total=32.00MiB, used=16.00KiB
Metadata, single: total=1.00GiB, used=17.89MiB
GlobalReserve, single: total=20.45MiB, used=0.00B
root@JARSKYNAS:~# btrfs filesystem du -s /mnt/cache
     Total   Exclusive  Set shared  Filename
     0.00B       0.00B       0.00B  /mnt/cache
root@TOWER:~# ls -la /mnt/cache
total 16
drwxrwxrwx  1 nobody users  20 Dec 14 17:30 ./
drwxr-xr-x 19 root   root  380 Dec 14 17:20 ../
drwxrwxrwx  1 nobody users   0 Dec 15 19:47 tdarr-temp/
root@JARSKYNAS:~# ls -la /mnt/cache/tdarr-temp/
total 16
drwxrwxrwx 1 nobody users  0 Dec 15 19:47 ./
drwxrwxrwx 1 nobody users 20 Dec 14 17:30 ../

 

Link to comment
  • Solution

I disabled the cache for all shares and moved the tdarr-temp share away from it (which was Cache only), deleted the tdarr-temp folder (even though it was empty), and ran the mover again and it cleared it this time. Moved the folder back to the cache and re-enabled it and its been fine since. 

 

Not sure what happened but for some reason the BTRFS Data "partition" just stayed as this "Data, single: total=16.00GiB, used=15.81GiB" even with multiple balance attempts. 

Sorted now though

 

  • Like 1
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...