I tried all the options provided in this thread, but nothing really cleans up anything, my Overlay2 folder is still big and growing. This has been the case for a very long time and no real solution is available as far as I can see. I have to create a new VM every few months because they keep on growing (>30GB).
I don’t. I hope to find out if many people are having this issue, and why this issue occurs. Is it my setup or is it an issue in Docker itself (I read somewhere that this could be an issue not related to HA itself, but more the Docker environment).
Anyhow, for me it is a bit annoying that every 2/3 months I have to reinstall HA completely because it is running out of disk space.
Hi everyone,
I also found out i have this issue.
I did what @clabnet recommended:
#/bin/bash
#Remove images not used by containers
docker image prune -a
#Remove containers not used on last 24hours
docker container prune --filter "until=24h"
#Remove volumes not used by containers
docker volume prune
#Check space used by logs
journalctl --disk-usage
#Remove journald log files
journalctl --rotate
journalctl --vacuum-time=1m
and removed several Gb from my disk…but overlay is still 3.6Gb.
I noticed I have two overlay mounted disks, eacho of them 4.8Gb. Maybe this is related?
The same issue. Overlay2 directory consumed about 14 GB. After issuing “ha su repair” it is reduced to 10.8GB. Docker purge commands do not clear anything.
Just to add, I’m in the same boat. Proxmox VM and the Overlay2 folder had swollen to 18GB. Have recovered some space using commands here, but it’s still 15GB and I’m running out of space.
Hi, I am having a disk space issue as well and I am suspecting it is this overlay2 folder taking up disk space. My DB is less than 400MB, backups folder is 360MB. df -h shows 11.3GB used, while du -sh shows just 1.3 GBs used.
I run HassOS (supervised on a VM installed from the ova file). If I am not mistaken, that runs docker in the backend, the problem is I cannot access the /var/lib/docker folder, since it is not there. Also, I cannot run the docker system prune --all --volumes --force command. Can someone help me?
[core-ssh /]$ cd /var/lib/
[core-ssh lib]$ ls -la
total 28
drwxr-xr-x 1 root root 4096 May 31 20:51 .
drwxr-xr-x 1 root root 4096 May 31 20:51 ..
drwxr-xr-x 2 root root 4096 Mar 29 2023 apk
drwxr-xr-x 2 root root 4096 May 31 20:51 dbus
drwxr-xr-x 2 root root 4096 Mar 29 2023 misc
drwxr-xr-x 2 root root 4096 Mar 29 2023 udhcpd
[core-ssh lib]$ ha docker info
logging: journald
registries: {}
storage: overlay2
version: 24.0.6
Ran ha su repair but that did not free any disk space.
Also, I noticed my disk space started to grow after installing the ESPhome add-on, does this make sense or is it just coincidence?
You might be on so something concerning the relation between ESPHome install and the growing overlay2 folder. My disk size started decreasing after this install too!