rootfs matches resource limit

    • rootfs matches resource limit

      Since a couple of week I get this email for rootfs space usage.

      Source Code

      1. df -h
      2. Filesystem Size Used Avail Use% Mounted on
      3. /dev/root 7.2G 6.1G 814M 89% /
      4. devtmpfs 484M 0 484M 0% /dev
      5. tmpfs 489M 12K 489M 1% /dev/shm
      6. tmpfs 489M 50M 439M 11% /run
      7. tmpfs 5.0M 0 5.0M 0% /run/lock
      8. tmpfs 489M 0 489M 0% /sys/fs/cgroup
      9. tmpfs 489M 36K 489M 1% /tmp
      10. /dev/mmcblk0p1 63M 27M 36M 43% /boot
      11. /dev/mmcblk0p3 7.1G 17M 6.7G 1% /srv/dev-disk-by-id-mmc-NCard_0x19701d76-part3
      12. folder2ram 489M 16M 473M 4% /var/log
      13. /dev/sda1 932G 807G 126G 87% /srv/dev-disk-by-id-ata-TOSHIBA_MQ01UBD100_Y3AXSAUGS-part1
      14. folder2ram 489M 0 489M 0% /var/tmp
      15. folder2ram 489M 696K 488M 1% /var/lib/openmediavault/rrd
      16. folder2ram 489M 1.7M 487M 1% /var/spool
      17. folder2ram 489M 11M 479M 3% /var/lib/rrdcached
      18. folder2ram 489M 8.0K 489M 1% /var/lib/monit
      19. folder2ram 489M 0 489M 0% /var/lib/php5
      20. folder2ram 489M 4.0K 489M 1% /var/lib/netatalk/CNID
      21. folder2ram 489M 496K 488M 1% /var/cache/samba
      22. tmpfs 98M 0 98M 0% /run/user/1000
      Display All

      and


      Source Code

      1. sudo du -h / -d 1
      2. 4.0K /media
      3. 806G /srv
      4. 36K /tmp
      5. 156M /opt
      6. 4.0K /.fseventsd
      7. 13M /sbin
      8. 2.2G /usr
      9. 6.3M /bin
      10. 9.2M /etc
      11. du: cannot access ‘/proc/23378/task/23378/fd/3’: No such file or directory
      12. du: cannot access ‘/proc/23378/task/23378/fdinfo/3’: No such file or directory
      13. du: cannot access ‘/proc/23378/fd/4’: No such file or directory
      14. du: cannot access ‘/proc/23378/fdinfo/4’: No such file or directory
      15. du: cannot access ‘/proc/24617’: No such file or directory
      16. 0 /proc
      17. 12K /dev
      18. 27M /boot
      19. 4.0K /mnt
      20. 4.0K /selinux
      21. 3.4G /var
      22. 50M /run
      23. 4.0K /lost+found
      24. 24M /home
      25. 4.0K /export
      26. 0 /sys
      27. 298M /lib
      28. 660K /root
      29. 812G /
      Display All
      How can I detect where my rootfs space gone?
    • Use this instead: du -d1 -h -x /var/ | sort -h (the -x will not check the space of other filesystems). A quick look of your other output tells me it is mostly in /var though. Probably logs, docker, or plex.
      omv 4.1.13 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Thanks.
      I have Plex installed and I did a symlink for Log folder to place them in an external usb hdd.
      Could this influence the rootfs space usage despite of symlink?

      Source Code

      1. sudo du -d1 -h -x /var/ | sort -h
      2. 4.0K /var/agentx
      3. 4.0K /var/local
      4. 4.0K /var/mail
      5. 4.0K /var/opt
      6. 2.5M /var/backups
      7. 5.3M /var/www
      8. 57M /var/cache
      9. 62M /var/folder2ram
      10. 3.2G /var/lib
      11. 3.4G /var/
      Display All
    • You need to keep drilling down. Now run du -d1 -h -x /var/lib/ | sort -h It shouldn't show space usage from a symlink.
      omv 4.1.13 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Source Code

      1. sudo du -d1 -h -x /var/lib/ | sort -h
      2. 4.0K /var/lib/alsa
      3. 4.0K /var/lib/aptitude
      4. 4.0K /var/lib/collectd
      5. 4.0K /var/lib/container
      6. 4.0K /var/lib/git
      7. 4.0K /var/lib/initramfs-tools
      8. 4.0K /var/lib/initscripts
      9. 4.0K /var/lib/insserv
      10. 4.0K /var/lib/letsencrypt
      11. 4.0K /var/lib/man-db
      12. 4.0K /var/lib/minidlna
      13. 4.0K /var/lib/misc
      14. 4.0K /var/lib/mysql-files
      15. 4.0K /var/lib/python
      16. 4.0K /var/lib/quota
      17. 4.0K /var/lib/resolvconf
      18. 4.0K /var/lib/update-rc.d
      19. 4.0K /var/lib/urandom
      20. 8.0K /var/lib/avahi-autoipd
      21. 8.0K /var/lib/dbus
      22. 8.0K /var/lib/dhcp
      23. 8.0K /var/lib/logrotate
      24. 8.0K /var/lib/mywebsql
      25. 8.0K /var/lib/netatalk
      26. 8.0K /var/lib/NetworkManager
      27. 8.0K /var/lib/shellinabox
      28. 8.0K /var/lib/vim
      29. 12K /var/lib/dictionaries-common
      30. 12K /var/lib/ntp
      31. 12K /var/lib/postfix
      32. 16K /var/lib/snmp
      33. 16K /var/lib/sudo
      34. 20K /var/lib/cron-apt
      35. 20K /var/lib/libxml-sax-perl
      36. 20K /var/lib/nfs
      37. 24K /var/lib/emacsen-common
      38. 28K /var/lib/pam
      39. 32K /var/lib/polkit-1
      40. 64K /var/lib/nginx
      41. 144K /var/lib/openmediavault
      42. 160K /var/lib/ucf
      43. 292K /var/lib/systemd
      44. 496K /var/lib/usbutils
      45. 2.2M /var/lib/samba
      46. 3.6M /var/lib/aspell
      47. 4.2M /var/lib/smartmontools
      48. 19M /var/lib/mlocate
      49. 30M /var/lib/mysql
      50. 35M /var/lib/dpkg
      51. 57M /var/lib/plexmediaserver_old
      52. 102M /var/lib/apt
      53. 3.0G /var/lib/plexmediaserver
      54. 3.2G /var/lib/
      Display All
      Many thanks!
    • Plex is your problem. Not sure how you made your symlink but it doesn't appear to work.
      omv 4.1.13 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • I used "ln -s " to create symlink


      Source Code

      1. /var/lib/plexmediaserver/Library/Application Support/Plex Media Server$ ll
      2. total 36K
      3. drwxr-xr-x 5 plex plex 4.0K Aug 16 05:19 Cache
      4. lrwxrwxrwx 1 plex plex 22 Nov 26 2017 Codecs -> /opt/plexcodecs/Codecs
      5. drwxr-xr-x 3 plex plex 4.0K Aug 14 11:08 Crash Reports
      6. lrwxrwxrwx 1 plex plex 45 Nov 26 2017 Logs -> /home/pi/local_usb_drive/plexmediaserver/Logs
      7. drwxr-xr-x 3 plex plex 4.0K Nov 26 2017 Media
      8. drwxr-xr-x 6 plex plex 4.0K Nov 26 2017 Metadata
      9. -rw-r--r-- 1 plex plex 4 Aug 12 19:17 plexmediaserver.pid
      10. drwxr-xr-x 5 plex plex 4.0K Aug 10 22:16 Plug-ins
      11. drwxr-xr-x 7 plex plex 4.0K Nov 26 2017 Plug-in Support
      12. -rw------- 1 plex plex 1.5K Aug 15 19:18 Preferences.xml
      13. drwxr-xr-x 2 plex plex 4.0K Nov 26 2017 Profiles
      Display All
      I did it only for logs folder. Maybe I have to move to usb hdd the media folder and keep the database on the sd to have quick access (despite of this I have a lot of slow query warn messages)
    • The logs are not the big user of space. The database is. That is why it is filling your drive. An 8GB root drive is not helping you either.
      omv 4.1.13 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!