I am moving my lxd containers to a new storage pool using the following commands:
lxc move $containername tmp -s pool1
lxc move tmp $containername
However, this migration failed on some of the containers. I am using btrfs for both the old and the new storage pool. For most of the containers,
lxc move worked fine.
The error i get is the following:
Error: Create instance from copy: Create instance volume from copy failed: [Failed sending volume unifi:/: Btrfs send failed: [exit status 1] (At subvol /var/snap/lxd/common/lxd/storage-pools/default/containers/migration.290847417/.migration-send
ERROR: send ioctl failed with -5: Input/output error
) Failed to run: btrfs receive -e /var/snap/lxd/common/lxd/storage-pools/pool1/containers/migration.229283394: At subvol .migration-send
ERROR: unexpected EOF in stream]
I already tried exporting the container, but this failed, too:
Error: Create backup: Backup create: Error adding “/var/snap/lxd/common/lxd/storage-pools/default/backup.386912943/unifi/rootfs/var/lib/unifi/db/diagnostic.data/metrics.2021-01-14T07-29-22Z-00000” as “backup/container/rootfs/var/lib/unifi/db/diagnostic.data/metrics.2021-01-14T07-29-22Z-00000” to tarball: Failed to copy file content “/var/snap/lxd/common/lxd/storage-pools/default/backup.386912943/unifi/rootfs/var/lib/unifi/db/diagnostic.data/metrics.2021-01-14T07-29-22Z-00000”: read /var/snap/lxd/common/lxd/storage-pools/default/backup.386912943/unifi/rootfs/var/lib/unifi/db/diagnostic.data/metrics.2021-01-14T07-29-22Z-00000: input/output error
Do you have an idea why I can’t move this container or know a fix for this issue?