I have cloned whole rpool with
zfs send ... | ssh root@secondserver zfs recv ... from one server to another.
Everything works fine, except LXD.
systemctl status showed that snap/LXD cant’s start. I tried to resolve this problem, but had not succeed. So I’ve reinstalled LXD. Now LXD works, but it’s empty.
So I tried this (https://blog.simos.info/reconnecting-your-lxd-installation-to-the-zfs-storage-pool/) method, but got:
lxd import mycontainer Error: The instance's directory "/var/snap/lxd/common/lxd/storage-pools/lxd/containers/mycontainer" appears to be empty. Please ensure that the instance's storage volume is mounted
but it’s not empty:
ls -A /var/snap/lxd/common/lxd/storage-pools/lxd/containers/mycontainer/ backup.yaml metadata.yaml metadata.yaml~ rootfs templates