LXC disk size vs. disk usage MISMATCH

gkovacs

Renowned Member
Dec 22, 2008
512
50
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:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!