Hey,
I never noticed it because my main server has a pretty big /var
, but I’m doing some tests with some machines with a very small /var
and noticed that LXD is putting some squashfs images in /var/snap/lxd/common/lxd/images
.
--- /var/snap/lxd/common/lxd/images -------------------------------------------------------------------------------------------------
/..
97.4 MiB [##########] 36e7b3c6bdeafe3260edab1ae6d4fa362c80aff36c5a3e40d4cfc526d079884f.rootfs
4.0 KiB [ ] 36e7b3c6bdeafe3260edab1ae6d4fa362c80aff36c5a3e40d4cfc526d079884f
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
local 244M 27.9G 24K none
local/containers 42.7M 27.9G 24K none
local/containers/test02bis 42.7M 27.9G 241M /var/snap/lxd/common/lxd/storage-pools/local/containers/test02bis
local/custom 24K 27.9G 24K none
local/deleted 120K 27.9G 24K none
local/deleted/containers 24K 27.9G 24K none
local/deleted/custom 24K 27.9G 24K none
local/deleted/images 24K 27.9G 24K none
local/deleted/virtual-machines 24K 27.9G 24K none
local/images 201M 27.9G 24K none
local/images/36e7b3c6bdeafe3260edab1ae6d4fa362c80aff36c5a3e40d4cfc526d079884f 201M 27.9G 201M /var/snap/lxd/common/lxd/storage-pools/local/images/36e7b3c6bdeafe3260edab1ae6d4fa362c80aff36c5a3e40d4cfc526d079884f
local/virtual-machines 24K 27.9G 24K none
Why there is a squashfs image outside the ZFS pool?
# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
local 29G 245M 28.8G - - 0% 0% 1.00x ONLINE -
# lxc storage list
+-------+-------------+--------+---------+---------+
| NAME | DESCRIPTION | DRIVER | STATE | USED BY |
+-------+-------------+--------+---------+---------+
| local | | zfs | CREATED | 3 |
+-------+-------------+--------+---------+---------+
Any hints? I’d like that everything to be on the ZFS local storage.
Cheers,