“Adding to this thread - I’m recent HA Green user, it worked fine for couple weeks. Yesterday I’ve connected 750GB storage to it and used “Move data disk”, it showed the correct name of the device… but it never booted back up. I connected the disk to my PC and I do see the ext4 partition called hassos-data, so I guess this part work. Disconnecting the disk and power cycling the HA green didn’t start it up properly (it responds to pings though).”
Sounds very familiar
Don’t know if my report will help anyone or trigger insights, but it won’t hurt, right?
Disclaimer: I’m a Linux noob. I recently got a Raspi 5 with NVMe SSD to mess around with Home Assistant and create a NAS and such. Installed Raspberry Pi OS, switched over to boot from the SSD, got PiMox to work, installed HAOS in a VM, created a 2TB RAID1 NAS with samba from two HDDs connected by a USB dock to the Pi, that I could access from my Windows machine too (piecing together various guides). All in all everything worked quite dandy (on the third attempt).
Then I decided instead of torturing the NVMe drive with the HASS data, might as well use my new NAS and get extra redundancy for free. I couldn’t manage to add the NAS through network, but was able to passthrough the drive directly to the VM. Sure enough, HA recognized it and I naively told it to “move data disk”. It went quite fast since there was not much data at all, but I noticed the folders disappearing from the NAS on the Raspi and it becoming unresponsive in Windows.
I figured it might just need to reboot, so I did that and now the complete system is bricked.
Answers to ping, but refuses SSH and VNC. And OF COURSE I don’t have a micro HDMI cable to connect a monitor…
So from my experience, if you’re running HAOS in a VM, don’t move the data disk.
In retrospect I guess it would have been smarter to create the VM on the RAID directly. But as said, half of the time I have no idea what I’m doing.
I’m off on a business trip now while my micro HDMI cables travels to me, in the meantime any ideas for a recovery of the system are highly appreciated. I created a snapshot of the VM before messing around, but even losing the HAOS entirely wouldn’t be a big deal as it’s quite fresh. I just would like to avoid setting up the complete system for the fourth time if I can help it.
Edit:
I think what happened is that I selected one of the RAID drives directly to passthrough to the VM because the proper filesystem was not listed in PiMox. That screwed up the partition table and the Raspi failed to boot because the RAID was mounted without “nofail”.
I booted to an SD card and modified the fstab file on the NVMe to get back into the system. The RAID was beyond saving (at least for my skill level), so I had to re-format it and manually remove the passthrough in the VM configuration because it would keep complaining about not finding the UUID and get locked. Then I was able to rollback to a snapshot I had taken before the debacle and restore one of the HASS backups.
All in all not a lot was lost, but at least I learned a lot.
In a nutshell: Be very careful when playing around with move data disk!