Got error reading migration source

Hi!
I am copying an instance from an LXD container (zfs) to another LXD container (lvm). Copied 5.13 GB, then I get an error message:
Error: Failed instance creation: Error transferring instance data: Got error reading migration source: websocket: close 1000 (normal)

LXD containers are connected to a single switch.
Instances with a smaller size, less than one gigabyte is copied without errors.

Which version of LXD are you using on source/destination?

everywhere 5.1

Please can you try with LXD 5.4 which is currently supported and see if it is still an issue. There have been several migration fixes in versions since LXD 5.1. Thanks

it didn’t help
after the update, when I start copying I get an error:

Error: Failed instance creation: Error transferring instance data: Rsync send failed: foo-big, /var/snap/lxd/common/lxd/storage-pools/default/backup.2103835217/: [exit status 11 read unix @lxd/60bebd6c-29fe-4eb7-96b8-ebd87b56c57d->@: use of closed network connection] (rsync: write failed on "/var/snap/lxd/common/lxd/storage-pools/default/containers/foo-big/rootfs/var/log/journal/7329cb3f52614fe3886b3789bcb46b53/system@725d32be92e447c0b5844ab9686ed7f5-0000000001b2a7e6-0005e57a41151689.journal": No space left on device (28)
rsync error: error in file IO (code 11) at receiver.c(374) [receiver=3.1.3]

copies no more than 3.13GB

└─sda4                                            8:4    1  6.6T  0 part 
  ├─lxd--vg-LXDThinPool_tmeta                   253:2    0  108M  0 lvm  
  │ └─lxd--vg-LXDThinPool-tpool                 253:4    0  6.6T  0 lvm  
  │   ├─lxd--vg-LXDThinPool                     253:5    0  6.6T  1 lvm  
  │   ├─lxd--vg-containers_tmpl----ubuntu----20 253:6    0   10G  0 lvm  
  │   └─lxd--vg-containers_foo----big          253:7    0   10G  0 lvm  
  └─lxd--vg-LXDThinPool_tdata                   253:3    0  6.6T  0 lvm  
    └─lxd--vg-LXDThinPool-tpool                 253:4    0  6.6T  0 lvm  
      ├─lxd--vg-LXDThinPool                     253:5    0  6.6T  1 lvm  
      ├─lxd--vg-containers_tmpl----ubuntu----20 253:6    0   10G  0 lvm  
      └─lxd--vg-containers_foo----big          253:7    0   10G  0 lvm

and why is he swearing at the lack of space ??

copying a large instance from ZFS storage to ZFS storage goes without errors

When copying an instance larger than 10GB from ZFS storage to LVM storage, you need to create or edit an existing profile, specifying the size of the instance being copied in it.
Then copy the profile from ZFS to LVM, and only then start copying.
LVM storage immediately reserves the space that is specified in the copied profile, and not 10GB as it is done by default

1 Like