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

Cookiefamily

Well-Known Member
Jan 29, 2020
136
37
48
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!