Properly sizing the loopback device?

On Ubuntu 20.04 with LXD 4.8 installed via snap i allowed the default loop device to be configured at 15GB

Size in GB of the new loop device (1GB minimum) [default=15GB]: 

however, am I out of disk space now ?

zpool list
NAME      SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
default  13.5G  1.88G  11.6G        -         -     1%    13%  1.00x    ONLINE  -

df -hT
Filesystem     Type      Size  Used Avail Use% Mounted on
udev           devtmpfs  1.9G     0  1.9G   0% /dev
tmpfs          tmpfs     394M  1.1M  393M   1% /run
/dev/vda1      ext4       79G  5.7G   70G   8% /
tmpfs          tmpfs     2.0G     0  2.0G   0% /dev/shm
tmpfs          tmpfs     5.0M     0  5.0M   0% /run/lock
tmpfs          tmpfs     2.0G     0  2.0G   0% /sys/fs/cgroup
tmpfs          tmpfs     394M     0  394M   0% /run/user/0
/dev/loop0     squashfs   32M   32M     0 100% /snap/snapd/10492
/dev/loop1     squashfs   56M   56M     0 100% /snap/core18/1932
/dev/loop2     squashfs   72M   72M     0 100% /snap/lxd/18546

No, you have 70G of free space on the partition where this is stored and ZFS shows 11.6G of free space.

1 Like

cheers @stgraber thanks for the clarification :slight_smile: