Hello.
I have reinstalled Proxmox because I have changed my motherboard.
In my rush, I did however forget to backup my VMs and containers. Stupid me.
I am using ZFS raidz1 on two ssd disks, which I have successfully mounted.
My question then is; is it possible to import the VMs and containers lying on the zfs volume?
I have tried this
found from the wiki.
I am however told that the file is a "non-existent or non-regular file".
Thinking that it might be because I have to create the VM in PVE first, I ran
and then the "importdisk" command from above.
This didn't change anything.
Am I doing something wrong?
Edit:
For anyone who is as stupid as me. This is what I did.
I started by importing the pools, so that I later could add them so that Proxmox could also see them.
The "-f" is needed since the pool was last used on another system. Otherwise zfs will not import the pool. Only give a warning.
After that I added the pools to Proxmox.
Then I had to recreate the config files for each VM and container. This has to be done from memory if you don't have any old backups.
When that was done, I had successfully restored all of my VMs & containers.
Thank you so much @Dunuin
I have reinstalled Proxmox because I have changed my motherboard.
In my rush, I did however forget to backup my VMs and containers. Stupid me.
I am using ZFS raidz1 on two ssd disks, which I have successfully mounted.
My question then is; is it possible to import the VMs and containers lying on the zfs volume?
I have tried this
Code:
qm importdisk 202 /dev/pool1-4tb/pool1-4tb_encrypted/vm-202-disk-0 encrypted-4tb
I am however told that the file is a "non-existent or non-regular file".
Thinking that it might be because I have to create the VM in PVE first, I ran
Code:
qm create 202 -name vm202 -memory 1024 -bootdisk sata0
This didn't change anything.
Am I doing something wrong?
Edit:
For anyone who is as stupid as me. This is what I did.
I started by importing the pools, so that I later could add them so that Proxmox could also see them.
Code:
zpool import -f [poolname]
After that I added the pools to Proxmox.
Code:
pvesm add zfspool [name-seen-in-proxmox] -pool [zfs-pool-name]
Then I had to recreate the config files for each VM and container. This has to be done from memory if you don't have any old backups.
When that was done, I had successfully restored all of my VMs & containers.
Thank you so much @Dunuin
Last edited: