lxc delete s1-n6
Error: Error deleting storage volume: Failed to run: zfs destroy -r ananas/LXD/containers/s1-n6: umount: /var/snap/lxd/common/shmounts/storage-pools/default/containers/s1-n6: no mount point specified.
cannot unmount '/var/snap/lxd/common/shmounts/storage-pools/default/containers/s1-n6': umount failed
I’ve tried:
sudo nsenter -t $(cat /var/snap/lxd/common/lxd.pid) -m
umount -v /var/snap/lxd/common/shmounts/storage-pools/default/containers/s1-n4
umount: /var/snap/lxd/common/shmounts/storage-pools/default/containers/s1-n4: no mount point specified.
But it’s mounted.
sudo nsenter -t $(cat /var/snap/lxd/common/lxd.pid) -m
mount | grep s1-n6
ananas/LXD/containers/s1-n6 on /var/snap/lxd/common/shmounts/storage-pools/default/containers/s1-n6 type zfs (rw,relatime,xattr,posixacl)
I’ve tried to umount this dataset via umount both inside and outside of the LXD namespace, also with zfs umount outside of the LXD namespace, but it doesn’t helped.
If you look at the mount table in the namespace (through mount or /proc/mounts) and go through it in order, you’ll likely find a mount entry after the one for that container which covers one of its parent path.
This effectively hides the mountpoint and prevents you from unmounting it.
If you then unmount that other mountpoint, the container’s mountpoint will become visible once again and you’ll be able to unmount it.