Boot Drive failed recreated / restore existing VMs from ZFS

jimvman

Active Member
Oct 16, 2019
17
0
41
54
Hello again everybody.
I cannot figure out how to restore my VMs into proxmox after recreating a new Boot disk for Proxmox. The VMs were created on a separate ZFS partition. I can see them but cannot figure out how to reload them and start them in proxmox. I looked through /etc/pve/storage.cfg and don't know what I should do there. Here is what I have. Any help would be great as this is a down issue right now.

vm-100 is windows VM (lists as follow)
/dev/ZFSone/vm-100-disk-0
/dev/ZFSone/vm-100-disk-0-part1
/dev/ZFSone/vm-100-disk-0-part2

vm-101 is linux vm with (lists as follows)
/dev/ZFSone/vm-101-disk-0
/dev/ZFSone/vm-101-disk-0-part1
/dev/ZFSone/vm-101-disk-0-part2
/dev/ZFSone/vm-101-disk-0-part5

#zfs list
NAME USED AVAIL REFER MOUNTPOINT
ZFSone 552G 346G 4.98G /ZFSone
ZFSone/vm-100-disk-0 61.9G 363G 44.9G -
ZFSone/vm-101-disk-0 485G 743G 88.5G -


Thank you for any help
 
I was able to grab the storage.cfg contents from the old corrupted drive and am showing the following now, which includes the MyBook NAS and the zfs partition.

root@pve:/etc/pve# pvesm status

Name Type Status Total Used Available %
MyBook nfs active 1941348672 653346816 1288001856 33.65%
ZFSone zfspool active 941749248 578564493 363184754 61.44%
local dir active 7159288 1588788 5187116 22.19%
local-lvm lvmthin active 13008896 0 13008896 0.00%

The GUI shows the Disk images now but I cannot load them or restore them still.

Any ideas on what to do to restore the disk images? The "Restore" selection is greyed out, but maybe I need to do something else from command first.
 

Attachments

  • Screen Shot 2019-11-16 at 5.46.45 PM.png
    Screen Shot 2019-11-16 at 5.46.45 PM.png
    15.2 KB · Views: 4
I solved this by create a new VM with a different VM number than listed in the "zfs list" output. Then, I manually modified the configuration files in /etc/pve/qemu-server/VMnum.conf and pointed them to the appropriate device name from "zfs list" output. I was able to start the VM's then that were stored in zfs.