I think the following shows my lxc container pool has been disturbed by a garbage collect of zsyctl - or perhaps a restore. Unfortunately they share rpool
I would like to move lxc storage to a new zfs dataset. Can someone help me with the commands and lxd init process please.
There is only one container I’d like to preserve. Is there way of exporting it , and importing to new storage? I have a work-around if necessary
Ok, so the container doesn’t seem to exist inside of LXD’s database but still exists on disk. If you just want it gone to be recreated, you’ll need to zfs destroy -R rpool/lxd/containers/julia-cuda
If you instead want to recover that container and have it show up in LXD, then you’ll need to do something like nsenter --mount=/run/snapd/ns/lxd.mnt mount -t zfs rpool/lxd/containers/julia-cuda /var/snap/lxd/common/lxd/storage-pools/default/containers/julia-cuda followed by lxd import julia-cuda