On a LXD server using a 15G ZFS storage pool, when I create a CentOS container and then use yum to install a lot of packages, it often fails due to insufficient disk space, similar to the following:
================================================================================
Install 4 Packages (+689 Dependent packages)
Total download size: 1.0 G
Installed size: 3.0 G
Downloading packages:
…
Error Summary
-------------
Disk Requirements:
At least 1514MB more space needed on the / filesystem.
But on the same container if I run df
it reports plenty of space available:
[root@cen7aus106default ~]# df -h /
Filesystem Size Used Avail Use% Mounted on
default/containers/cen7aus106default 13G 1.5G 11G 12% /
On the host the zfs list also shows plenty of free space:
$ zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
default 14.9G 3.76G 11.1G - 40% 25% 1.00x ONLINE -
Does anyone know what might explain this discrepancy?