I’m basically to 0% free space on my HA Green machine. I’ve started investigation today and came up empty trying to figure out who is doing it.
Here is what I have done so far (thank you ChatGPT for guidance):
du -sh /
says I have 1.2G used in /df -h /
says that 100% is used
Filesystem Size Used Available Use% Mounted on
overlay 28.0G 27.5G 0 100% /
- My estimated database size is only 235.88 MiB
- Next I went to check which docker images I have and result is:
- Docker images are taking a chunk of space (~6.8 GB total), mostly:
- Home Assistant core image: 1.83 GB
- VSCode add-on: 1.06 GB
- Grafana: 815 MB
- Samba: 108 MB
- Supervisor: 434 MB
- Docker containers and volumes are taking very little space — under 200 MB total
- No Docker build cache (0 B)
- No Docker volumes using meaningful space
So only 6.8 GB in docker. Still about 20 GB unaccounted for.
- Searched for big log files or deleted-but-open files
find /proc/*/fd -ls 2>/dev/null | grep '(deleted)' | sort -k7 -rh | head -n 10
returned nothing
du -h -d1 /var | sort -h
returned:
4.0K /var/db
4.0K /var/empty
4.0K /var/local
4.0K /var/mail
4.0K /var/opt
4.0K /var/tmp
8.0K /var/spool
12.0K /var/cache
28.0K /var/lib
496.3M /var
496.3M /var/log
logs are slightly on the big side but not the amount I was looking for.
-
Next ChatGPT suggested that the space is eaten by Docker overlay storage. Which I have found is in:
/mnt/data/docker
but trying to examine that folder gives me an error that it doesn’t exist. -
Next ChatGPT proceeded to try to get me to get access to that folder through different means, including SSHing to the HA via external terminal. But no success.
-
I’ve also tried
docker system prune --volumes -a
with no success. And also tried restarting the host machine.
Anything else I can do to clean up my HA Green machine?