LXC, size difference between disk and inside container

stoddart004

New Member
Sep 28, 2022
3
0
1
Hello,

when I create a LXC container with a 5GB disk, I have inside the container 4.84 GB (4.839508056640625).

There is always a (smaller) difference between the requested disk size and the root size of the container.

I think i miss something oblivious, if someone has an idea ?

For my project i need to have 5GB (really) inside the container.


Capture d’écran 2022-12-05 à 13.30.30.png

Capture d’écran 2022-12-05 à 13.30.22.png

Inside the container (with df -h):
Filesystem Size Used Avail Use% Mounted on /dev/mapper/pve-vm--118--disk--0 4.9G 2.7G 1.9G 59% / none 492K 4.0K 488K 1% /dev udev 32G 0 32G 0% /dev/tty tmpfs 32G 0 32G 0% /dev/shm tmpfs 13G 196K 13G 1% /run tmpfs 5.0M 0 5.0M 0% /run/lock


Thank you.
 
Last edited:
Also keep the difference between "GiB" and "GB" in mind. 5 GB = 4.6566 GiB. And "G" can stand for "GiB" or "GB", depedning on the software you use to display a capacity. PVE is reporting you got 4.84 GiB not GB. So that is actually more than 5 GB.
If you for example want df to show GB instead of GiB you will have to use the "-k" option or otherwise it will show GiB: df -k
 
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!