I’m trying to increase the size of the loop device created when installing LXD. I put as answer to the question Size in GB of the new loop device (1GB minimum)[default=15]: 20 but now I want to increase it to 30GB.
I wasn’t able to do the btrfs filesystem resize max /var/lib/lxd/storage-pools/default command, as btrfs isn’t recognized, running Debian 9 + Snap + LXC&LXD.
If you don’t have the btrfs command is probably because your pool is not btrfs (which is the theme of the thread).
Probably you have zfs.
Also, as you have snap version, the paths are different.
Sorry, I don’t use snap or zfs, can’t help you.
btrfs with the LXD snap means that the snap package of LXD has internally all the btrfs utilities it needs to do its own work.
Which means that if you want to specifically resize yourself, you would need to install btrfs-tools so that you can use the tools yourself on the host.
Indeed, our snap is sneaky that way, it includes all the needed tools so LXD can use them but they’re not easily available for you to manually use.
So the solution here would indeed be to install those btrfs tools yourself. Note that you’ll also need to use /var/snap/lxd/common/mntns/var/snap/lxd/common/lxd/storage-pools/default as the path to your btrfs subvol so you see what the LXD daemon sees.