Usage of / @ 100% -- HOW?

    • OMV 4.x
    • Resolved

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Usage of / @ 100% -- HOW?

      Hi all,

      I recently noticed my raspberry pi was unavailable on my network so I decided to check it out. I noticed it was running in emergency mode ad warned me that / is at maximum capacity. After some digging around on the forum I found a few commands to report back where the problem came from.

      Source Code

      1. root@raspberrypi:/# du -hx --max-depth=1 --exclude=proc /
      2. 4.0K /media
      3. 12K /srv
      4. 11M /opt
      5. 11M /sbin
      6. 1.2G /usr
      7. 4.0K /2b43d667-4529-4e68-a242-604535412bf1
      8. 9.0M /bin
      9. 8.6M /etc
      10. 4.0K /sharedfolders
      11. 4.0K /c87e5aac-3e94-4347-8316-e48559e69d38
      12. 4.0K /mnt
      13. 4.0K /selinux
      14. 5.3G /var
      15. 4.0K /lost+found
      16. 4.0K /home
      17. 4.0K /export
      18. 303M /lib
      19. 52K /root
      20. 6.7G /
      Display All

      As the problem seemed to come from /var I checked the folder, but it reports a different file size.

      Source Code

      1. root@raspberrypi:/var# ls -s -h
      2. total 129M
      3. 4.0K agentx 4.0K folder2ram 0 lock 4.0K opt 128M swap
      4. 4.0K backups 4.0K lib 0 log 0 run 0 tmp
      5. 4.0K cache 4.0K local 4.0K mail 0 spool 4.0K www
      Can someone help me figure this out?
      "Goats are like mushrooms, if you shoot a duck, I'm scared of toasters."
    • Source Code

      1. root@raspberrypi:/var# du -hx --max-depth=1 /var
      2. 94M /var/cache
      3. 4.0K /var/opt
      4. 4.0K /var/mail
      5. 21M /var/folder2ram
      6. 4.0K /var/local
      7. 2.1M /var/backups
      8. 4.0K /var/agentx
      9. 8.9M /var/www
      10. 5.1G /var/lib
      11. 5.4G /var
      Display All
      Then I did the same in /var/lib/

      Source Code

      1. root@raspberrypi:/var/lib# du -hx --max-depth=1 /var/lib
      2. 12K /var/lib/netatalk
      3. 20K /var/lib/cron-apt
      4. 28M /var/lib/dpkg
      5. 4.0K /var/lib/initscripts
      6. 4.0K /var/lib/container
      7. 8.0K /var/lib/dbus
      8. 152K /var/lib/nginx
      9. 16K /var/lib/nfs
      10. 4.0K /var/lib/quota
      11. 4.0K /var/lib/resolvconf
      12. 28K /var/lib/transmission-daemon
      13. 16K /var/lib/snmp
      14. 4.0K /var/lib/git
      15. 544K /var/lib/usbutils
      16. 28K /var/lib/pam
      17. 348K /var/lib/smartmontools
      18. 140K /var/lib/openmediavault
      19. 32K /var/lib/polkit-1
      20. 16K /var/lib/NetworkManager
      21. 12K /var/lib/postfix
      22. 4.0K /var/lib/urandom
      23. 4.0K /var/lib/collectd
      24. 12K /var/lib/sudo
      25. 8.0K /var/lib/dhcp
      26. 8.0K /var/lib/vim
      27. 72M /var/lib/apt
      28. 244K /var/lib/ucf
      29. 4.0K /var/lib/avahi-autoipd
      30. 4.0K /var/lib/initramfs-tools
      31. 8.0K /var/lib/logrotate
      32. 4.0K /var/lib/update-rc.d
      33. 4.0K /var/lib/aptitude
      34. 440K /var/lib/systemd
      35. 5.0G /var/lib/plexmediaserver
      36. 4.0K /var/lib/man-db
      37. 4.0K /var/lib/misc
      38. 4.0K /var/lib/ntp
      39. 4.0K /var/lib/alsa
      40. 2.2M /var/lib/samba
      41. 4.0K /var/lib/insserv
      42. 52K /var/lib/php5
      43. 4.0K /var/lib/python
      44. 5.1G /var/lib
      Display All

      Seems like Plex is the problem. Why does it need so much space when the service isn't even running? And how do I solve it?
      "Goats are like mushrooms, if you shoot a duck, I'm scared of toasters."
    • The install of the OMV Plex plugin defaults to placing the metadata Library on /var. As your metadata grows, this can easily fill up the rootfs on a small OS drive.

      The solution is to use the plugin to relocate it to one of your data drives. Be patient when doing this as, depending on the size of the Library, this can take a lot of time.
      OMV 4.x - ASRock Rack C2550D4I - 16GB ECC - Silverstone DS380
    • This drive has been set up as Database Volume since I've set up Plex. On the HDD there's a Plex Library folder, however the last time it's been modified was in January '18.

      My theory is as follows: I had some problems with my HDD around that time and I remember solving it with the CLI. The current Database Folder reads /srv/dev-by-disk-by-lable-MyPassport/plexmediaserver. However, when I check File Systems it's named dev/sda1/

      Could it be that, rather than using the HDD folder, Plex started downloading metadata in the default folder?

      I've found this which seems to offer a solution. I'll try that out and report back.
      "Goats are like mushrooms, if you shoot a duck, I'm scared of toasters."
    • If the metadatabase folder hasn't been modified in more than 8 months it isn't being used. You need to try resetting it again if possible. If you can't, then you will have to remove the plugin and reinstall it and then specify the library location. You may lose some or even all of the metadata, but unless you made hand edits to it, it's all replaceable via download.

      The link you posted that alludes to a solution is very old and mostly non applicable.
      OMV 4.x - ASRock Rack C2550D4I - 16GB ECC - Silverstone DS380