Migration of a qcow2 file from to diferent NFS server - Storage migration

jmjosebest

Renowned Member
Jan 16, 2009
192
38
93
Hi, I want change the NFS to a new more powerfull and big server.
How is the correct procedure to migrate the images?
I think to shutdown the VM's and with scp copy from the old NFS server to the new one.

is correct?
any consideration to take care?
I need do something on the Proxmox datacenter?
It will detect the image on the new NFS server?
any other method?

Thanks
 
Hi, I want change the NFS to a new more powerfull and big server.
How is the correct procedure to migrate the images?
I think to shutdown the VM's and with scp copy from the old NFS server to the new one.

is correct?
any consideration to take care?
I need do something on the Proxmox datacenter?
It will detect the image on the new NFS server?
any other method?

Thanks
Hi,
there are some ways to do that.
You can use backup and restore and use the option "-storage nfs-new" to restore on the new server (you have then two VMs and must after starting the new one (and testing) remove the old one). Disadvantage: long downtime because shutdown, backup, restore and start.

You can also copy the file like you wrote (but why scp? do you copy directly from nas to nas?) and after copy you must change the VM-config (change the storage-entry of the disk).

But why not rsync? The advantage is a very short downtime. rsync diskfile, stop VM, rsync again (only modified blocks will copied), change VM-config, start again.

Udo
 
You can also copy the file like you wrote (but why scp? do you copy directly from nas to nas?) and after copy you must change the VM-config (change the storage-entry of the disk).

Or simply change the storage definition if /etc/pve/storage.cfg (but umount old storage first).
 
But why not rsync? The advantage is a very short downtime. rsync diskfile, stop VM, rsync again (only modified blocks will copied), change VM-config, start again.

Where is located the VM-config file of KVM servers?
/etc/qemu-server/ is empty...
 
see /etc/pve/...
 

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!