Help - Running out of space

The space taken up by system has jumped massively in the last few days and worried I’m going to run out of space completely.

Should system be taking up this much space? What can I do to troubleshoot / fix?

13gb store is not enough. I know the haos requirements is at leat 16gb, but recommend 32gb

1 Like

Back-ups and your database size may be getting out of hand.
Also if you restart HA it will clear the tmp file, there may be something hanging there.

Check Log and db file sizes?

If recorder is enabled DB will get large.

All the documentation for installing HA state that 32Gb storage is required, except the Odroid documentation that list a single option with 16Gb storage as possible.
I have created an issue for that page, since if a Raspberry Pi require atleast 32Gb, then an Odroid will too.

Thanks. Where do I go from here?

Need to buy a new disk and reinstall / restore?

  • Buy new disk / SDcard.
  • Backup your current HA install (make sure backup is not encrypted, or that you have the encryption key handy).
  • Download the backup to your PC &/or another device which is not your HA server.
  • Install a fresh HA instance on your new disk.
  • Shut down your existing HA server & swap disks.
  • Restore the backup at the onboarding page. If you have issues during the restore, do the onboarding with a dummy user then do the restore from the settings page.
1 Like

If you are using ESPhome, and have a few devices, clearing out the build files and caches can give you back quite a bit of space.

2 Likes

I can’t immagine why do we need more than 16Gb:

I’m with @RenatoY. Storage on my RPi:

Look at backup and the database files first. If those are the problem, there are lots of threads here on how to fix those. Or post back here and we’ll point you in the right direction.

1 Like

My system + HA are about the same size as yours, OP. So cleaning stuff with something like spook might help.

Wondering if a background update download is buffering onto your drive until it is complete?
Is everything up to date? Working well? No debugging inadvertantly turned on?

I can.

1 Like

Off topic but now I’m interested. What kinds of add-ons that you are using, Tom?
if possible, maybe a quick export from the console using addons command…?

1 Like

This might be of use to you.

I can too…

My backup ALONE is 12G

And before anyone says… Yes. I have two span panels they pop power and energy on every circuit every 15 seconds. And all of Fridays prompt engine exsts inside the db and. storage. Yes it really is that big AND I omit /media.


How are you running HA? You could create a backup and then upgrade your system to have a bigger storage. Let me know if you need some help with that :slight_smile:

Wouldn’t it be fantastic if we had some form of add-on that could give a report on what is hogging all the space?
Sorted would be nice.
Graphical would be better.
Add the ability to drill down?
Maybe built in and possibly triggered automagically when space gets tight?
The ability to actively prune rather than just look? Safely?

32Gb is the next step up from 16Gb.
Your system is at 5.3Gb, which is quite low, but if you want to backup your system then you need space for your entire system to be packed into a tar file, which is the double of your system size.
If you want to store it locally, then it will require yet another chunk of storage equal to your system size and then you are extremely close to the 16Gb limit.
You might not store the backup locally, but the restore process is the same, just reverse in order and that means you might not be able to restore your system.

2 Likes