Migration failed

Matus

Active Member
Mar 31, 2017
28
0
41
66
I tried to migrate zfs LXC container from host with VE 4.4 to host with 5.2
Migration failed with this nessages:
....
20:51:29 26.8G rpool/ROOT/subvol-103-disk-1@__migration__
20:51:30 26.8G rpool/ROOT/subvol-103-disk-1@__migration__
cannot share 'rpool/ROOT/subvol-103-disk-1': smb add share failed
zfs send/receive failed, cleaning up snapshot(s)..
Oct 01 20:51:49 ERROR: command 'set -o pipefail && zfs send -Rpv rpool/ROOT/subvol-103-disk-1@__migration__ | ssh root@194.160.65.55 zfs recv rpool/ROOT/subvol-103-disk-1' failed: exit code 1
Oct 01 20:51:49 aborting phase 1 - cleanup resources
Oct 01 20:51:49 ERROR: found stale volume copy 'zfs-containers:subvol-103-disk-1' on node 'alto'
Oct 01 20:51:49 start final cleanup

...

Some other containers migrate well.

Sharesmb on zfs look like this:
>zfs get sharesmb
NAME PROPERTY VALUE SOURCE
....
rpool/ROOT/subvol-103-disk-1 sharesmb off local
....


Could you help?
 
Hi,

can you provide a bit more information about your CT.
The config and the usage would helpful.
 
103.cfg:
arch: amd64
cores: 4
cpulimit: 4
hostname: web2.xxx.sk
memory: 12032
net0: name=eth0,bridge=vmbr0,firewall=1,gw=xxx.xxx.xxx.xxx,hwaddr=4E:AA:F9:19:AA:CD,ip=xxx.xxx.xxx.xxx/24,type=veth
onboot: 1
ostype: debian
rootfs: zfs-containers:subvol-103-disk-1,size=150G
swap: 16384


> zfs list -t all
NAME USED AVAIL REFER MOUNTPOINT
rpool 83.8G 455G 96K /rpool
rpool/ROOT 74.9G 455G 96K /rpool/ROOT
rpool/ROOT/pve-1 18.1G 455G 18.1G /
rpool/ROOT/subvol-103-disk-1 21.2G 129G 21.2G /rpool/ROOT/subvol-103-disk-1

...

migration log look like this>
Oct 01 20:44:42 shutdown CT 103
Oct 01 20:44:42 # lxc-stop -n 103 --timeout 180
Oct 01 20:44:58 # lxc-wait -n 103 -t 5 -s STOPPED
Oct 01 20:45:00 starting migration of CT 103 to node 'alto' (xxx.xxx.xxx.xxx)
Oct 01 20:45:00 found local volume 'zfs-containers:subvol-103-disk-1' (in current VM config)
send from @ to rpool/ROOT/subvol-103-disk-1@__migration__ estimated size is 26.7G
total estimated size is 26.7G
TIME SENT SNAPSHOT
20:45:01 2.95M rpool/ROOT/subvol-103-disk-1@__migration__
...
20:51:30 26.8G rpool/ROOT/subvol-103-disk-1@__migration__
cannot share 'rpool/ROOT/subvol-103-disk-1': smb add share failed
zfs send/receive failed, cleaning up snapshot(s)..
Oct 01 20:51:49 ERROR: command 'set -o pipefail && zfs send -Rpv rpool/ROOT/subvol-103-disk-1@__migration__ | ssh root@xxx.xxx.xxx.xxx zfs recv rpool/ROOT/subvol-103-disk-1' failed: exit code 1
Oct 01 20:51:49 aborting phase 1 - cleanup resources
Oct 01 20:51:49 ERROR: found stale volume copy 'zfs-containers:subvol-103-disk-1' on node 'alto'
Oct 01 20:51:49 start final cleanup
Oct 01 20:51:49 start container on target node
Oct 01 20:51:49 # /usr/bin/ssh -o 'BatchMode=yes' root@xxx.xxx.xxx.xxx pct start 103
Oct 01 20:51:50 Configuration file 'nodes/alto/lxc/103.conf' does not exist
Oct 01 20:51:50 ERROR: command '/usr/bin/ssh -o 'BatchMode=yes' root@xxx.xxx.xxx.xxx pct start 103' failed: exit code 255
Oct 01 20:51:50 ERROR: migration aborted (duration 00:07:08): command 'set -o pipefail && zfs send -Rpv rpool/ROOT/subvol-103-disk-1@__migration__ | ssh root@xxx.xxx.xxx.xxx zfs recv rpool/ROOT/subvol-103-disk-1' failed: exit code 1
TASK ERROR: migration aborted
 
Is samba installed on 'alto'?
please send the output of this command which is executed on 'alto'
Code:
zfs get sharesmb
 

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!