Recovering dead server VMs

finlaydag33k

Active Member
Apr 16, 2015
45
1
28
Hii there,
today, my main server decided to dicided to just die out of nowhere.
I have a 2 node cluster running over here so one of them died.
how do I put the VMs that where on the dead server on the server that's still alive???

I'm sorry if my explanation and/or typing is utter garbage, I'm writing this in extreme stress... (not getting the server running by wednesday, means I fail my school exams...
 
if the vm files are local, you can copy /var/lib/vz/images/VMID/... to the first node

and on first node, move vm config file from /etc/pve/nodes/NODE2/qemu-server/* to /etc/pve/nodes/NODE1/qemu-server/*


(and maybe change corosync config to have quorum with 1 node, to be able to do change in /etc/pve)
 
managed to get the quorums working, now I try to copy the confis, but I get error: `cp: cannot create regular file `/etc/pve/nodes/kasparov/qemu-server/109.conf`: File Exists`
 
you can´t copy config files here. move it.
 
Ah okay, did that, and now it works.
unfortunately, it seems that the VMs that where on the dead server all where on the local drive T_T (probably one of my server admins who tought that was a good idea :\ )

thanks for the help, I'm going to look for a way to recover the data