PVE to PVE LXC migration not successful

damjank

Member
Apr 2, 2020
27
0
6
Hello,

I am migrating containers deployed as either CentOS or Debian. When I choose migrate to another node (done either via GUI or console) it always fails with:

Code:
2020-11-13 21:57:03 21:57:03    774M   prod_storage/subvol-125-disk-0@__migration__
2020-11-13 21:57:04 successfully imported 'prod_storage:subvol-125-disk-0'
2020-11-13 21:57:05 full send of prod_storage/subvol-125-disk-0@__migration__ estimated size is 822M
2020-11-13 21:57:05 total estimated size is 822M
2020-11-13 21:57:05 volume 'prod_storage/subvol-125-disk-0' already exists
2020-11-13 21:57:05 TIME        SENT   SNAPSHOT prod_storage/subvol-125-disk-0@__migration__
2020-11-13 21:57:05 command 'zfs send -Rpv -- prod_storage/subvol-125-disk-0@__migration__' failed: got signal 13
send/receive failed, cleaning up snapshot(s)..
2020-11-13 21:57:05 ERROR: storage migration for 'prod_storage_pve2:subvol-125-disk-0' to storage 'prod_storage_pve2' failed - command 'set -o pipefail && pvesm export prod_storage_pve2:subvol-125-disk-0 zfs - -with-snapshots 0 -snapshot __migration__ | /usr/bin/ssh -e none -o 'BatchMode=yes' -o 'HostKeyAlias=pve2' root@10.0.0.54 -- pvesm import prod_storage_pve2:subvol-125-disk-0 zfs - -with-snapshots 0 -delete-snapshot __migration__ -allow-rename 0' failed: exit code 255
2020-11-13 21:57:05 aborting phase 1 - cleanup resources
2020-11-13 21:57:05 ERROR: found stale volume copy 'prod_storage:subvol-125-disk-0' on node 'pve2'
2020-11-13 21:57:05 ERROR: found stale volume copy 'prod_storage_pve2:subvol-125-disk-0' on node 'pve2'
2020-11-13 21:57:05 start final cleanup
2020-11-13 21:57:05 ERROR: migration aborted (duration 00:00:11): storage migration for 'prod_storage_pve2:subvol-125-disk-0' to storage 'prod_storage_pve2' failed - command 'set -o pipefail && pvesm export prod_storage_pve2:subvol-125-disk-0 zfs - -with-snapshots 0 -snapshot __migration__ | /usr/bin/ssh -e none -o 'BatchMode=yes' -o 'HostKeyAlias=pve2' root@10.0.0.54 -- pvesm import prod_storage_pve2:subvol-125-disk-0 zfs - -with-snapshots 0 -delete-snapshot __migration__ -allow-rename 0' failed: exit code 255
TASK ERROR: migration aborted

Any idea hot to actually move those to new node in cluster? thx!

PS: and not, there is no volume on pve2 - I checked and made sure, it get there only after the copy is finished and the migration starts
 
hi,

as a sanity check, could you test if you can ssh between the cluster nodes? for example from your first node can you run ssh root@pve2 or ssh root@ip.for.pve2.here and see if it works? it should log in without any interaction from your side.
 
Hey oguz,

ssh is working fine, one way. and the other as well. Also, both nodes see each other via IP and DNS, also both have correct mapping one towards another. VM is migrated OK (with trial and err - another matter altogether) so I failed to see why this is not working
 
interesting. maybe you can post your /etc/pve/storage.cfg and the container configuration pct config CTID?

either way, if you want to move the container from one node to another, you can also do it by backup/restore
 

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!