Importing PV of a mapped (readonly) Backup Disk Image on its original VM

Cookiefamily

Renowned Member
Jan 29, 2020
138
40
68
Germany
Hello,

I wanted to map a disk backup to the machine it originated from. On the disk are some partitions with LVM.

This brings two issues with it:
  1. The PV UUID is the same
  2. The PV does not like beeing /dev/loop0pX and would rather be /dev/sdaX which it was before the restore
Usually you would fix that with a vgimportclone /dev/loop0pX but that wont work since the drive is read-only.
How can you work around this? Or is there no way to do this on a read-only device.
 
@Lapointemar as stated in the forum post you linked there is a "neater" way to do this with proxmox-backup-client. Both ways will expose the backup as a block device, this does not change the behaviour of LVM.
 
@Lapointemar as stated in the forum post you linked there is a "neater" way to do this with proxmox-backup-client. Both ways will expose the backup as a block device, this does not change the behaviour of LVM.
The proxmox-backup-client map as read only this methode expose the drivr as read write disk from backup