Hi, I have two servers (different hardware) with proxmox standalone installations (no cluster) and one of them broke due to power issues. I need to recover a VM from that HDD and mounting it on the remaining server. This is what I did:
- Attached the HDD to the server, but when booting I had a duplicate VG name error (both disks had the same) so I googled for it and fortunately the server finished booting after the warning, so this is what I did to rename the added HDD VG Name:
1 - "vgdisplay" to see the details, specifically the UUIDs
2 - used the vgrename command specifying the UUID from the new attached HDD and the new name.
3 - "vgdisplay" again to check the changes, everything was ok and then restarted the server, this time it booted up with no error.
At some point I read about adding that disk as an LVM storage (with disk image and content), I did it but when I select that new storage, it shows no VM or CT on it.
Then tryied mounting the partition were the data is (/dev/sdb3) to a folder in /mnt directory but I get an error that it can´t be done. So did some more search and found how to mount an LVM volume with the commands "vgscan" and then "vgchange [path to the lvm volume] -ay" Then with lvdisplay I can see all the logical volumes.
And that´s it, don´t know what to do next, all the answers I've found so far doesn't include this scenario. I'd appreciate any help. Thanks
- Attached the HDD to the server, but when booting I had a duplicate VG name error (both disks had the same) so I googled for it and fortunately the server finished booting after the warning, so this is what I did to rename the added HDD VG Name:
1 - "vgdisplay" to see the details, specifically the UUIDs
2 - used the vgrename command specifying the UUID from the new attached HDD and the new name.
3 - "vgdisplay" again to check the changes, everything was ok and then restarted the server, this time it booted up with no error.
At some point I read about adding that disk as an LVM storage (with disk image and content), I did it but when I select that new storage, it shows no VM or CT on it.
Then tryied mounting the partition were the data is (/dev/sdb3) to a folder in /mnt directory but I get an error that it can´t be done. So did some more search and found how to mount an LVM volume with the commands "vgscan" and then "vgchange [path to the lvm volume] -ay" Then with lvdisplay I can see all the logical volumes.
And that´s it, don´t know what to do next, all the answers I've found so far doesn't include this scenario. I'd appreciate any help. Thanks