Missing over 100 GB on cache drive


Recommended Posts

I've noticed that on my 250GB Samsung Evo cache drive that 104GB is used at all times. There is nothing that I can see that has to be moved to the array. I've used the likes of cadvisor to see if there were rogue log files building up etc but it doesn't show anything out of the ordinary. I've also ssh ed into the server and used various commands to list biggest files on the server etc but again nothing seems to be showing up. Is there something blatantly obvious that I'm missing?  I am only running five docker containers which are as follows:

  1. Sabnzbd
  2. Sonarr
  3. Couchpotato
  4. EmbyServer
  5. cadvisor
  6.  

Here is a attachment of my container mappings? Maybe I've mapped something incorrectly? 

 

If anyone can help me solve this it would be very much appreciated. 

Screen Shot 2017-10-03 at 22.05.57.png

Link to comment

Hi,

There's a few things I'd look at to check the issue. I'm not sure what commands you have run, but I'd start by ssh root@servername and login.

Then I'd look at the file sizes specifically for the cache drive.

First I'd see what you get when you type:

df -h /mnt/cache

This should give you info about the disk in standard numbers (-h human readable)

 

I don't use a cache drive but I'd expect it will show you that you've got a 250GB(ish) drive and however much is used/free.

Next to figure out what is using this data (provided the drive shows up as expected above.)

du -h --max-depth 1 /mnt/cache

This should list the size of the directories on that drive - hopefully this will get you closer.

If you note a specific directory which looks strangely large you can use that same command on that directory, so for example:

du -h --max-depth 1 /mnt/cache/appdata (or whichever folder seems to be the issue.)

 

Obviously, you can adjust the --max-depth number to suit your needs.

Hopefully this will help you narrow down where your drive space is going.

Del

Edited by Delarius
Link to comment

@DelariusIve run the command and I still dont see anything overly out of the ordinary. Here is the output from two variations of the command. Would you be able to have a look at this for me?

 

du -h --max-depth 1 /mnt/cache

4.6G /mnt/cache/appdata

1.3G /mnt/cache/Downloads

16G /mnt/cache

 

 

du -h --max-depth 3 /mnt/cache

896K /mnt/cache/appdata/sabnzbd/admin

0 /mnt/cache/appdata/sabnzbd/logs

916K /mnt/cache/appdata/sabnzbd

1.2M /mnt/cache/appdata/cache/images

1.4M /mnt/cache/appdata/cache/python

3.2M /mnt/cache/appdata/cache

0 /mnt/cache/appdata/backup

0 /mnt/cache/appdata/logs

80K /mnt/cache/appdata/database/_indexes

1.9M /mnt/cache/appdata/database

4.0K /mnt/cache/appdata/custom_plugins

264K /mnt/cache/appdata/db_backup

79M /mnt/cache/appdata/sonarr/MediaCover

8.2M /mnt/cache/appdata/sonarr/Backups

2.5M /mnt/cache/appdata/sonarr/logs

111M /mnt/cache/appdata/sonarr

12M /mnt/cache/appdata/couchpotato/database

166M /mnt/cache/appdata/couchpotato/cache

4.0K /mnt/cache/appdata/couchpotato/custom_plugins

7.1M /mnt/cache/appdata/couchpotato/db_backup

200K /mnt/cache/appdata/couchpotato/logs

184M /mnt/cache/appdata/couchpotato

4.0K /mnt/cache/appdata/scripts/nzbget

4.0K /mnt/cache/appdata/scripts/sabnzbd

16K /mnt/cache/appdata/scripts

5.3M /mnt/cache/appdata/EmbyServer/logs

2.0G /mnt/cache/appdata/EmbyServer/cache

456K /mnt/cache/appdata/EmbyServer/config

80K /mnt/cache/appdata/EmbyServer/localization

154M /mnt/cache/appdata/EmbyServer/data

4.0K /mnt/cache/appdata/EmbyServer/ssl

88M /mnt/cache/appdata/EmbyServer/ffmpeg

16K /mnt/cache/appdata/EmbyServer/root

2.1G /mnt/cache/appdata/EmbyServer/metadata

1.2M /mnt/cache/appdata/EmbyServer/plugins

0 /mnt/cache/appdata/EmbyServer/transcoding-temp

116K /mnt/cache/appdata/EmbyServer/fonts

0 /mnt/cache/appdata/EmbyServer/sync

4.3G /mnt/cache/appdata/EmbyServer

4.6G /mnt/cache/appdata

12K /mnt/cache/Downloads/downloads/incomplete

1.1G /mnt/cache/Downloads/downloads/complete

1.2G /mnt/cache/Downloads/downloads

0 /mnt/cache/Downloads/tmp/transcoding-temp

0 /mnt/cache/Downloads/tmp

1.3G /mnt/cache/Downloads

16G /mnt/cache

Link to comment

That all looks good. 

I think there’s something else that’s marked as deleted but isn’t. 

Could you try:

lsof | grep /mnt/cache

 

With luck that’ll show all files open on that drive - see if that helps. 

You could also check for files that are tagged as deleted,

 

lsof | grep -i deleted

 

If that doesn’t help, try fsck on that drive? I think you can also check btrfs from the GUI under disk management when array is in maintenance mode. 

Edited by Delarius
Fixing words
Link to comment

@Delarius  Ok these commands have returned new information, I just don't know how to understand it.

 

lsof | grep /mnt/cache                                           

shfs       7214                  root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214  7215       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214 14828       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214 16042       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214 16043       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214 16044       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214 16045       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214 16051       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214 16053       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214 16058       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214 16059       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214 25121       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

smbd      21690             root  cwd       DIR               0,31          70        256 /mnt/cache

smbd      21690             root   31r      DIR               0,31          70        256 /mnt/cache

 

 

lsof | grep -i deleted

superviso  2766             root    5w      REG               0,31     4172632   13433540 /config/supervisord.log (deleted)

shfs       7214             root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214  7215       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214 14828       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214 16042       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214 16043       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214 16044       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214 16045       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214 16051       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214 16053       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214 16058       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214 16059       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

shfs       7214 25121       root    4w      REG               0,31 37253693440   13180300 /mnt/cache/Movies/The Martian (2015)/.fuse_hidden01208dd30001671b (deleted)

python2   23095           nobody    3w      REG               0,31           0    9640492 /config/logs/error.log (deleted)

python2   23095           nobody   81r      REG               0,31 46886347099   13166178 /data/downloads/complete/movies/tt3659388/tt3659388.mkv (deleted)

python2   23095           nobody   82w  unknown                                           /media/The Martian (2015)/ The Martian(2015).mkv (deleted) (stat: No such file or directory)

python2   23095 23132     nobody    3w      REG               0,31           0    9640492 /config/logs/error.log (deleted)

python2   23095 23132     nobody   81r      REG               0,31 46886347099   13166178 /data/downloads/complete/movies/tt3659388/tt3659388.mkv (deleted)

python2   23095 23132     nobody   82w  unknown                                           /media/The Martian (2015)/ The Martian(2015).mkv (deleted) (stat: No such file or directory)

Link to comment

UPDATE

 

I took a notion to stop the array and start it again in maintenance mode and ran "Check Filesystem Status" and magically my 100GB appeared back. It now shows I'm only using 23gb which is about right. Don't understand how or why but I'm just glad the missing space is back. Thanks very much for all of the assistance guys. This forum is one of the main reasons I use unRaid, the support network is phenomenal. Thanks again!

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.