Replication error after restore VM from backup

Blipt

Member
Jan 8, 2021
12
3
23
Hello,

I have one simple question. If I restore VM from backup (ProxMox cluster 6.2) I get then an error:

command 'set -o pipefail && pvesm export local-zfs:vm-100-disk-0 zfs - -with-snapshots 1 -snapshot __replicate_100-0_1610119037__ | /usr/bin/ssh -e none -o 'BatchMode=yes' -o 'HostKeyAlias=p2' root@10.0.0.2 -- pvesm import local-zfs:vm-100-disk-0 zfs - -with-snapshots 1 -allow-rename 0' failed: exit code 255

If I delete and configure replication again error disappears.

Is this a bug?
 
Yes, the snapshots are not saved in the backup and in the time since the backup a new snapshot could be created. So this is expected.
We might want to warn and delete the previous replication snapshot on restore so no error is generated, but the VM has to be fully replicated again.