Copy LVM to other Proxmox

wreckerd

New Member
Nov 18, 2022
8
0
1
I upgraded PVE from version 4 to version 5, after that proxmox stopped working, but I can connect via ssh, and I can see the lvm volume of my guest virtual machine. How to transfer this volume to another server and restore the guest machine.
I need use dd?
if I mount RAW from lvm and copy it over the network. will this help?
 
Last edited:
I think it's easier to mount the LVM volume and then copy its contents to a new location with rsync.

Upd.
Most likely you will also need to manipulate the bootloader in the new location so that the system can boot. But it is difficult to give specific advice here, since you have not said anything about the operating system inside the virtual machine.
Perhaps you should try converting the LVM volume into a .qcow2 file? Then copy that file to a new location and then do the reverse operation?
 
Last edited:
Я думаю, что проще смонтировать том LVM, а затем скопировать его содержимое в новое место с помощью rsync.

Обновление
Скорее всего, вам также потребуется манипулировать загрузчиком в новом месте, чтобы система могла загрузиться. Но здесь сложно дать конкретный совет, так как вы ничего не сказали об операционной системе внутри виртуальной машины.
Возможно, вам стоит попробовать преобразовать том LVM в файл .qcow2? Затем скопируйте этот файл в новое место, а затем выполните обратную операцию?
thanks for the advice!
I install nfs server on target Proxmox.
Executed the command
dd if=/dev/pve/vm-118-disk-1 | dd of=/mnt/nfs22/vm-218-disk-1.raw
Created a new raw disk 1Gb , and rename my old raw (300gb) to new .
Happened
 
Ваш способ даже проще, если не считать того, что нужно было настроить доступ по nfs. Рад, что всё получилось и возьму себе на заметку.
 

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!