PVE-zsync Cutover Error

dmb1976

Active Member
Oct 5, 2017
3
0
41
48
Hi all,

Trying to follow the section "Recovering a VM" in the PVE-zsync Wiki page. I'm trying to fail a VM over from one hypervisor (hv1) to another hypervisor (hv2).

Using the instructions from the Wiki, I run the following command to do a final sync of the data:

root@hv1# zfs send rpool/data/vm-107-disk-1@rep_Name_2017-10-05_11:28:01 | ssh root@hv2 zfs receive rpool/data/vm-107-disk-1

Running the command, I get the following error:

cannot receive new filesystem stream: destination 'rpool/data/vm-107-disk-1' exists
must specify -F to overwrite it


I have not tried the -F, as I am not sure if it will do a full sync of the data, or if it will roll the latest snapshot in to the remote copy.

Should I be doing the -F or should I be using some other command to perform the final sync?

Thanks in advance.
 
# zfs send rpool/data/vm-107-disk-1@rep_Name_2017-10-05_11:28:01 -> send full vzol data at the time of snapshot (not including previews snapshot)
ssh root@hv2 zfs receive rpool/data/vm-107-disk-1 -> create new zvol with data

So if zvol exist in hv2 you cannot append it except snap diff. You can try to overwrite with -F or delete vzol from hv2 and resend from primary zfs