Replication error after restore VM from backup

Blipt

Member
Jan 8, 2021
12
3
8
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.
 

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!