Page 1 of 1

Boot partition leaking space

Posted: Friday 03 December 2021 8:14
by azonneveld
Recently I discovered that the rpi's bootpartition is losing space slowly.

Yesterday at 1600hrs I ran clean/autoremove/etc, which regained 3% diskspace, but the proces of leaking space continues.
This is not causing any issues yet, but I think it will soon.

Does anyone know how to fix this, or how to find the source?

day view:
Image

Year view:
Image

Re: Boot partition leaking space

Posted: Friday 03 December 2021 12:46
by heggink
Kind of hard to say without knowing more about your system. What background tasks are running? What cron jobs? Do you do automatic updates/upgrades? Any tools that are filling up logs? Log rotation not working correctly?

I have influxdb and grafana installed and can monitor both the system as well as domoticz. There are great dashboards readily available to get interesting insights. I would start by identifying when it happens and figuring out what is running when it happens.

One thing you can also do is to define a cron job that logs usage of various folders to a file (in /tmp) every 12 hours or so. That way, you can compare. This can also be pushed to influxDB so you can easily graph it again. Issue "sudo du -xsh /*" which will give you disk usage in human readable form of all subfolders but without travwersing mounted file systems (in case you have those).

Re: Boot partition leaking space

Posted: Tuesday 07 December 2021 10:35
by azonneveld
heggink wrote: Friday 03 December 2021 12:46 Issue "sudo du -xsh /*" which will give you disk usage in human readable form of all subfolders
system: rpi 3b+

The "/boot" folder is the one which is leaking space.
The boot partition is read-only, set by the RPI GUI.
I have ran the command, these are the results:

Code: Select all

pi@Domoticz:~ $ sudo du -xsh /*
8.7M    /bin
25M     /boot
23M     /boot.bak
0       /dev
8.0M    /etc
1.5G    /home
757M    /lib
16K     /lost+found
20K     /media
12K     /mnt
445M    /opt
du: cannot access '/proc/10397/task/10397/fd/4': No such file or directory
du: cannot access '/proc/10397/task/10397/fdinfo/4': No such file or directory
du: cannot access '/proc/10397/fd/3': No such file or directory
du: cannot access '/proc/10397/fdinfo/3': No such file or directory
du: cannot access '/proc/10584': No such file or directory
0       /proc
57M     /root
47M     /run
9.6M    /sbin
4.0K    /srv
0       /sys
348K    /tmp
4.3G    /usr
11G     /var

Seemed some logging was enabled for some camera pictures.
Thanks for the support!