how to recover vm from another disk

fratechnology

Member
Dec 10, 2020
6
0
6
40
Hi,
after crash my proxmox my datacenter newly install another proxmox server and added old disk where my 3 VM was. How do I recover/restore from that disk? here is some information for your understanding:
backup.png

lsblk-lvs.png

please help me to recover 3 vms. if you have any step by step guide that will be very good to me.

Thanks in advance
Azim
 
Do you got a backup of your config.db or /etc/pve folder? Or recent Vzdump/PBS backups of your VMs/LXCs? Otherwise you lost your VM config files and you would need to create new VMs from scratch and then try to reuse your old virtual disks and hope that these will boot.
As so many people don't care about proper backups, there are a lot of threads explaining what to do, so shouldn't be that hard to search for.
 
Last edited:
You did not provide enough details, so the information below may be incorrect
The first step would be to add storage object that points to the disk with data. It would go something like this:
pvesm add lvmthin mylvm --content images --thinpool data --vgname pve

Then you need to create a few VMs:
qm create 102
qm create 103
qm create 104

Finally you can scan the storage:
qm rescan

This should place the disks into VM config as unattached storage. You can now customize the configuration, ie boot disk etc.
This is not an a full step by step guide - you will need to invest some time in figuring out some in-between steps.

The easier approach, as @Dunuin mentioned, is to use your backup.



Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:
  • Like
Reactions: Dunuin