Since a week i’m running hassio and I noticed that my disk usage is growing every day.
Last friday I used less than 2GB. Today i’m using 4.56GB and every day it increase.
My home-assistant DB and log are together 109MB.
I have influxdb running which is logging ha & Glances.
I tried to find out how much size influxdb is using at the moment but without any good luck.
I found a some instructions, also on this community but they didnt work out for me.
Sometimes they give ssh instructions but when I follow this my ssh says that commands are not known.
Who can help me to find out what is eating my disk space.
Personally I prefer to setup an external ssd or usb stick to save all my logs and data.
So depending on your Linux skills, you can use
df -h
to find the space used on mounted devices
du -hs
Will give the a summary of the folder sizes for were you are in the folder structure.
I would start at the root of the drive i.e.
cd /
du -hs
Then cd into the biggest directory and repeat till the size jumps down, then
cd …
Will put up up one directory and you can
ls -h
To show you the file sizes
(The -h is for human readable i.e. mb GB etc, -s is for summary)
Thanks for your message. While I was looking for a solution I found a similair instructions as yours.
I deleted influxdb btw yesterday because it was broken for some reason, so my used capacity is now lower, but still growing.
When I do df -h this is my output:
When I do du -hs in my root it returns; 302.8M.
du -h in my root returns this:
I already got some feeling I was not in my real root. Any possibilities to get OS SSH?
My disk usage is now 3.6GB. It is still growing even without influxdb.
Did this start around the same time you started logging Glances into Influx? That was the culprit on my system, solved by setting a short retention policy on the Glances DB inside Influx.
I am having the same issue. It’s not a lack of basic linux skills but a lack of understanding how to access the sd card outside the ssh container. Appreciate any hint/advise. Couldn’t find any help in the forum yet.
Same issue here. My hassio just stopped working as a result of the /dev/mmcblk0p2 consuming 29gb. I was able to clear up about 3gb for it to start working again.
21 hours later and now about half the drive space has been mysteriously cleared. I am not certain what did it but I think maybe a hassio upgrade has some cleanup scripts in them? Still baffled.