I’m trying to understand where all my space is going and how this metric measures it.
I have a 6Gb image, have recently deleted the home_assistant_v2.db file, purged the log file and can’t see any other obviously big files. What’s using up my 6Gb worth of space?
This seems to be causing my system to fail to upgrade:
20-12-01 12:37:57 INFO (MainThread) [supervisor.homeassistant.core] Updating Home Assistant to version 0.118.4
20-12-01 12:37:57 INFO (SyncWorker_2) [supervisor.docker.interface] Updating image homeassistant/qemux86-64-homeassistant:0.114.3 to homeassistant/qemux86-64-homeassistant:0.118.4
20-12-01 12:37:57 INFO (SyncWorker_2) [supervisor.docker.interface] Downloading docker image homeassistant/qemux86-64-homeassistant with tag 0.118.4.
20-12-01 12:51:43 ERROR (SyncWorker_2) [supervisor.docker.interface] Can't install homeassistant/qemux86-64-homeassistant:0.118.4 -> 404 Client Error: Not Found ("no such image: homeassistant/qemux86-64-homeassistant:0.118.4: No such image: homeassistant/qemux86-64-homeassistant:0.118.4").
20-12-01 12:51:43 INFO (SyncWorker_2) [supervisor.docker.interface] This error is often caused by not having enough disk space available. Available space in /data is: 0.3 GiB
20-12-01 12:51:43 WARNING (MainThread) [supervisor.homeassistant.core] Updating Home Assistant image failed
SSH onto the server and run du -sh / to list the sizes of directories in the root. Change the path at the end of the command to look at the sizes of any suspiciously big directores. e.g. du -sh /usr/*
When I run ls, there’s only a few folders and only the config folder and backup folder contain much sizable data. Config: 745Mb, Backup: 150Mb. Not much in the other folders.
Actually this is a 6Gb image. Running that command shows that only 1Gb of space is used which is not corrected. I’ve in the past been able to accommodate 3Gb database size before the 6Gb image fills up but some other hidden thing is now taking up the space. The db file is currently 600Mb.
Fair enough. I could just increase the storage size, but I think the underlying problem is a different one. The OS is slowly using up all the storage over time and there’s no obvious file I can see. Will increasing to 32Gb just give the OS more time till that’s all full?
This doesn’t seem like a sustainable design if the storage capacity has to continually grow over time.