pve-zsync pull to new unclustered server fails: VM 100 doesn't exist

mailinglists

Renowned Member
Mar 14, 2012
643
70
93
Hi,

i have a production PVE 4.* server. I installed new 5.* server.
Now I want to sync data disks (ZVOLs) over to new server using pool method.
I have had a plan to sync the data disks over and then create VMs, shut them down and pve-zsync insternalliy or zfs send | zfs receive internally to get the old data in the newly created VM.

Pve-zsync pull method fails, stating there is no VM (because there is not - yet):
Code:
root@NewServer:~# pve-zsync sync --source OldServersIP:100 --dest rpool/syncano --verbose --maxsnap 2 --limit 5000
VM 100 doesn't exist

I guess It would do it using push method from the old server.
Or I could create the VM on new server first (maybe copy the config over from old server?).
How do you guys do it?
 
pve-zsync only supports syncing the destination with the source, not the other way around. In addition you can only specify either a VMID as source, or an IP followed by pool and an optional path (see man pve-zsync).