I had an epic shit storm of an issue the other night with one of my XenServer clusters at my day job. I won't get into too many boring details, but long story short is that two out of my five XenServers were offline, and I had to tell my cluster for forcefully shut down a few of the VMs that the cluster thought were still running on the offline hosts.
That was the easy part. Powering up the VMs was not easy. When I tried to power the VMs back on to run on one of the live nodes, I got the following error:
the vdi is not availableMan! What kind of shit is that?!
Well, to fix it is actually not that hard. Just kind of a pain. What you need to do is detach the virtual disk from the VM in XenCenter. Then grab the UUID of the LUN where the virtual disk is located.You can do that by clicking on the LUN in XenCenter and just look at the properties.
Once you have that number, SSH into the master XenServer node and run the following command:
- xe vdi-list sr-uuid=<UUID of The LUN Holding The Virtual Disk>
- xe vdi-forget uuid=<UUID of the VDI>