[BTRFS] empty /var/snap/lxd/common/lxd/storage-pools/default


i have some trouble with an other package (apt-btrfs-snapshot) and i set the subvol id:
btrfs subvol set-default 507 @

Now i can see a lot of lxd subvolumes:
ID 298 gen 1658 top level 266 path var/snap/lxd/common/lxd/storage-pools/default/containers/ecodms/rootfs/var/lib/docker/btrfs/subvolumes 70f79323d3a7855f1ff5d7cc4c65cc8f39f0d3e9211dc8c0c78409100a781f3b

ID 507 gen 76235 top level 5 path @
ID 510 gen 75911 top level 5 path @home

But my storagepool is empty:
# ls -l /var/snap/lxd/common/lxd/storage-pools/default
total 0

And trying to start a container fails:
lxc start ecodms
Error: Common start logic: Failed to create mount directory "/var/snap/lxd/common/lxd/storage- pools/default/containers/ecodms": mkdir /var/snap/lxd/common/lxd/storage-pools/default/con tainers/ecodms: no such file or directory
Try "lxc info --show-log ecodms" for more info

How i remount the lxd-snapshots to be accessable in the lxd namespace?

Thanks Con

LXD operates in a separate mount namespace so you won’t see those mounts on the host.

You can inspect what it actually sees through /var/snap/lxd/common/mntns/var/snap/lxd/common/lxd/storage-pools

Hi Stephane,

root@plattenspieler:/home/hostadmin# ls -l /var/snap/lxd/common/mntns/var/snap/lxd/common/lxd/storage-pools/
total 0
drwxr-xr-x 1 root root 0 Jan 23 19:25 default
root@plattenspieler:/home/hostadmin# ls -l /var/snap/lxd/common/mntns/var/snap/lxd/common/lxd/storage-pools/default/
total 0

The is nothing visible.


# btrfs subvol list /

shows for example:

ID 309 gen 75995 top level 263 path var/snap/lxd/common/lxd/storage-pools/default/containers/samba-ad
ID 310 gen 75995 top level 263 path var/snap/lxd/common/lxd/storage-pools/default/containers/samba-fs

Thanks Con