Boot partition leaking space Topic is solved

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
azonneveld
Posts: 179
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Boot partition leaking space

Post 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
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
User avatar
heggink
Posts: 989
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Boot partition leaking space

Post 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).
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
azonneveld
Posts: 179
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: Boot partition leaking space

Post 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!
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest