Home Assistant and Proxmox

mtorabi46

New Member
Aug 28, 2024
2
0
1
Hello guys,

Yesterday, I made a huge mistake in my Proxmox.

I resize the disk of a vm that hosts home assistant. After I change the size, I noticed that the size is more than the whole disk space and it used all of it. I wanted to add 18GB, but actually I added 18TB.

Now, I cannot move the VM, because it needs 18TB disk space to move it.

I installed home assistant OS on empty VM.

I make a backup of it, the back up is around 60GB.

Any suggestion on how to fix this?
 
Use the Home Assistant backup and restore to a new VM. Don't use the proxmox backup.

I don't understand what the problem is.

Also, if you give the new VM the same MAC/IP everything should come up immediately without any issues.
 
Last edited:
I mistakenly resized the disk space of my home assistant VM to 18TB while the pve server itself has 256GB disk space.

now, the home assistant keeps using the disk space and causes the whole server not responding. I did search on how to shrink the disk space, but the solutions are not working on HA, since the commands to shrink the disk is resize2fs or fdisk which is not valid in homeassistant command line.
 
Completely remove/delete the HA VM from Proxmox & then do one of the following:

  • Either restore the VM directly from a Proxmox backup of the HA VM.
  • Or create a new Proxmox HA VM & restore internally from an HA backup.

As you know you should always have full & restorable backups, as you have shown!
 
  • Like
Reactions: IsThisThingOn
Taking snapshots before modifications like this is also very helpful.
Technically you only need to delete the main virtual disk, import/add a fresh HAOS one and set the boot order. Then restore your HAOS backup once that's booted.
The reason people suggest above over what you asked for is because it would need a lot of very specific steps which are error prone to do and take a bit of back and forth to explain.
 
Last edited:
  • Like
Reactions: gfngfn256
Hi,

Since your backup is around 60GB and the VM disk is showing 18TB, the easiest way to fix this is:

Restore from backup

Since you made a backup after setting up a new Home Assistant VM:
  1. Just restore that 60GB backup onto the new VM you created.
  2. It will ignore the oversized disk and only use what’s needed.
 
It will ignore the oversized disk and only use what’s needed.
I think that is incorrect. The OP says above that he made the backup AFTER he increased the disk size by 18TB. So that backup will restore (or try to) the VM with that large disk of +18TB. The fact that that backup is only 60GB only reflects empty data + compression, but the disk size/s will still be similar to the backup it was created from.
 
  • Like
Reactions: Johannes S