Export VM disk from LVM storage coming from another host

nautilus7

New Member
Nov 6, 2023
18
1
3
Hi, I have 2 proxmox hosts.
I had an ssd drive connected to host 1, configured as lvm storage. It contains the virtual disk of one VM.
A couple of days ago, I removed this ssd from host 1 and connected it to host 2.
Unfortunately, I forgot to copy the virtual disk before removing it, so now I need to recover this vm's disk.

Is there a way to do it from host 2 without connecting the ssd back to the orignal proxmox host?
 
Hi @nautilus7 ,
Since the disk is stored as raw block device on top of LVM slice, you should already see this disk when you list LVM slices: lvs

However, the name of the parent group (vgs) must not overlap with existing names on the new hosts. You will get a warning if it does.
Once you confirmed that you can see the LVM slice of the VM in question, you can then :
a) create a VM with the same ID, "qm disk rescan" to bring the disk into the configuration, assign the disk to a controller
b) if ID is taken , you can still do (a), then move the disk to another VM
There are a few other ways, but the above two are the simplest.

https://www.reddit.com/r/Proxmox/comments/w8o7va/import_old_lvm_storage_drive_to_new_proxmox/



Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox