Is this possible in Proxmox ?like what virt has? https://fedoraproject.org/wiki/Features/Virt_Storage_Migration not how we can minimum the down time?
Last edited:
I know but I need it with KVMopenvz online migration without shared storage is working with pve
I don't want it for fail over, I just want to use this feature to move a VM while it's running to an other host in the same LAN
When I saw live backup feature without LVM, I thought maybe in rare cases moving live VM without share storage would be nice feature
Do you have any plan to make it back? or you are in disagreement with this feature?
I seem to remember the original proxmox feature used rsync to copy the disk images, which had considerable overhead because it had to:
1, copy disk images
2, pause the vm
3, checksum the whole disk image on both sides in chunks to determine which bits had changed, and then copy those
4, restart the vm
between stages 2 and 4 there is a LOT of io, and in some cases quite considerable time.
Since then KVM has implemented storage migration natively, so instead of having to checksum the whole disk image the KVM process keeps track of which blocks have changed, resulting in much less downtime, although obviously transferring a large disk image can still be time consuming.
[COLOR=#000000][FONT=monospace]phase1[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]------[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]target host[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]-----------[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]create new volumes if storage != share[/FONT][/COLOR][COLOR=#000000][FONT=monospace] [/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]phase2[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]------[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]1)target host[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]start nbd_server[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]----------------[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]nbd_server_start ip:port[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]add drives to mirror to nbd[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]---------------------[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]nbd_server_add drive-virtio0[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]nbd_server_add drive-virtio1[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]3)source host[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]start mirroring of the drives[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]------------------------------[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]drive-mirror target = nbd:host:port:exportname=drive-virtioX[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]when drive-mirror is finished, (block-job-complete),[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]the source vm will continue to access volume on the remote host through nbd[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]start vm migration[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]------------------[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]end of vm migration[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]-------------------[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]phase3[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]------[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]1)target host[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]resume vm[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]nbd_server_stop[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]2) source vm[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]delete source mirrored volumes[/FONT][/COLOR]