my HA is running almost perfectly for many months now in Virtualbox. As many of you will know, the .vdi is ever increasing, especially when updates are incoming. My virtual disk is configured as 64Gb as SSD now, I already increased it from 32Gb. Just to give some numbers:
-) my Host OS is Ubuntu 20.04 it shows me a size of 44.0 Gb now
-) HA tells me 22% used 45.9Gb free (it obviously recognizes the full 64Gb is my guess)
-) my home-assistant_v2.db is approx 3.6Gb large. My recorder purge_keep_days = 60 days.
Now question to you is: how do you cope with this constant increasing of the .vdi? What is the best practice to shrink it from time to time? I am backing up my HA constantly, I know I can always start from scratch (but I’ve read a lot about backups not being fully restored etc., I want this as may last option.
Can Clonevdi cope with the free blocks in this HA.vdi? Using dd to fill empty blocks with zeros does work, filesystem is read-only for some reason. ‘Vboxmanage HA.vdi --compact’ does not work, it does not shrink the file a bit. So I am kind of stuck here.
Any suggestions are welcome, thank you,