LXC disk size vs. disk usage MISMATCH

gkovacs

Renowned Member
Dec 22, 2008
516
51
93
Budapest, Hungary
Looks like the actual disk size inside an LXC container is smaller than reported, because our containers are routinely getting full before hitting the specified disk size.

For example in this container there is a 2GB difference between available disk space and disk size.

Code:
root@lxc:/# du -chs *
12G     total

root@lxc:/# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/loop9       40G   12G   26G  31% /

12 + 26 = 38
38 != 40


On bigger disks, the difference is even bigger, for example we have an LXC CT where
disk usage was 189GB, and the disk was full, while disk size was set at 200GB.

Anyone else experience this? I have filed a bugreport:
https://bugzilla.proxmox.com/show_bug.cgi?id=852
 
Last edited: