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.

[Solved] Used Space for Cache Drive - Conflicting Reporting and ghost files

Featured Replies

Edit: see my reply, ran defrag and space was re-allocated.

 

I am having the same problem others have had that I am linking to below, although there didn't seem to be a known solution. I tried invoking Mover, scrub, and Check Filesystem Status in maintenance mode and it found no errors. I have 60GB of files on the cache drive according to dolphin and the du command but 97GB is being used as reported by btrfs and the GUI. I suspect this is "ghost" files from Unraid crashing while files were open but how do I find/delete those?

root@Server:/mnt# du -sh /mnt/cachetwo
60G     /mnt/cachetwo
root@Server:/mnt# btrfs fi df -H /mnt/cachetwo
Data, RAID1: total=117.85GB, used=96.96GB
System, RAID1: total=33.55MB, used=16.38kB
Metadata, RAID1: total=2.15GB, used=437.42MB
GlobalReserve, single: total=256.61MB, used=0.00B

 

 

 

 

Edited by eep
resolved

  • Community Expert
2 minutes ago, eep said:
used=96.96GB

du (and other tools) isn't reliable with btrfs, this will be the actual used space.

  • Author

But I am seeing 60GB of files in Samba and in Dolphin when browsing the Cache drive (including showing hidden folders). How do I see exactly whats taking up the space? I could be symlinks but not sure.

  • Community Expert

If you can't see start moving the data outside the pool, to the array for example, vdisks are a usual suspect, they can expand if not trimmed.

  • Author

Thanks for replying Jorge, while that didn't help it did motivate me to find a solution. I knew it had to be corruption form an unclean shutdown.

Ran defrag and it cleared up all the "unused" space.  BTW I was able to run defrag while my VM and dockers were live!

btrfs filesystem defragment -rvf /mnt/cachetwo

See discussion below, this seems like a big issue with BTRFS, I hope there is an alternative soon for RAID1 cache. Luckily, Unraid does not use snapshots by default so no issues with defrag adding used space.

 

  • eep changed the title to [Solved] Used Space for Cache Drive - Conflicting Reporting and ghost files
  • Community Expert

Trimming the images/vdisks should have the same result.

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...

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.