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.

Appdata drive reporting more usage than expected

Featured Replies

Hey, I'm looking to figure out why on the Main tab in Unraid, appdata (unassigned disk) is reporting as 240GB used (1GB more than this morning), when it was about 50GB smaller yesterday. The first thing that comes to mind is that I needed to re-create my docker.img yesterday, but I'm not seeing the old one hiding anywhere.

 

I've attached three images - what Unraid is reporting the drive usage as, and what Krusader and qdirstat are reporting the drive usage as.

 

image.thumb.png.33d5c6118a77ea89302d1e109cb67f1c.png

 

image.png.f0c0c932ace92f407909d2f12c6a7bcd.png

 

image.png.20f3529ee158ba766728d0bd4f9e3076.png

 

Edited by ctrlaltd1337

The Unraid dashboard reports based on "df -H". It's better for monitoring if you're going to run out of space; as such, the more useful column there is the "Free" column. I don't use Krusader, but I bet it's using du to calculate disk usage. They use different techniques for reporting: df reports what the file system says it has; du loops over the directories and adds up the file sizes. Because of this, df is fast, du is slow (you might be able to notice this when you use Krusader to give you disk utilization).

 

As for why they're different: du doesn't run on the whole file system; if the process running du doesn't have sufficient permissions, it can't see everything (since it's manually looping over the directories); if the files are deleted, but still open by another process (which happens a lot with log files), du can't see them but df "can" (in the sense that it's still reported by the file system), etc.

 

Keep in mind we're also looking at GB vs GiB here.

 

Oversimplified tl;dr: df (and the Unraid stats page) are good for telling you if you're going to run out of room (free disk); du is better for telling you what is using that storage.

2 hours ago, ctrlaltd1337 said:

Hey, I'm looking to figure out why on the Main tab in Unraid, appdata (unassigned disk) is reporting as 240GB used (1GB more than this morning), when it was about 50GB smaller yesterday. The first thing that comes to mind is that I needed to re-create my docker.img yesterday, but I'm not seeing the old one hiding anywhere.

 

Sorry, I realized I missed your main question. 

 

Have you run a trim recently? Try that first 'fstrim -va'.

 

It's also possible (for the reasons in my previous post) that you have deleted files being held open by a process. These files are seen by df but not by du. There are a couple of commands you can try here to figure out what:

 

'lsof +aL1 /unassigned/ud-docker'

'lsof -n | grep -i deleted'

 

Of course, you can also just try restarting Unraid if you haven't already.

  • Author

The first command didn't show any results, and when I restarted my server, the unassigned disk didn't auto-mount. And when I mounted it, my Docker image failed to start again ("Docker Service failed to start." when trying to open Docker tab). 😭 But the used space has gone down to 188GB used out of 250GB again.

 

I'm starting to wonder if it's my SSD, but it didn't throw any errors and the SMART looks to be fine?

 

image.thumb.png.588472b2b9baeabaef11d8c7bdb54b4f.png

 

 

So Docker is down now? That's a different issue. Turn off Docker under Settings (and apply). Reboot Unraid. Make sure unassigned disk has mounted. Re-enable Docker.

  • Author

Yeah, following those steps worked to re-instate my Docker image, and without issue.

 

The size on the disk continues to fluctuate, currently at 209GB. I'll see if the varying in size continues and I'll change my appdata to a proper cache pool and mirror it soon as well. Thanks for talking through this with me, I'll have to see if it happens again!

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.