LXC 10G Disk not 10240M

sb-jw

Famous Member
Jan 23, 2018
1,843
295
128
33
Hello,

if i create an LXC via GUI or API and resize the disk to e.g. 10G, i have 10G but its not equal to 10240M its only 10015M so after starting the Container the PVE GUI shows only 9.78 GiB. If the LXC is stopped the PVE GUI shows Bootdisk Size of 10G.

The CEPH RBD Image has the correct Size of 10.00 GiB.

Is this a Bug or a normal behavior?
Its a little bit critical, because we want to resell the LXC and the Customer may complained about they booked 10G but don't have these.

Thanks!
 
Is this a Bug or a normal behavior?
This is normal.
The rbd image is 10GB in size and you have on this image an ext4 white GPT partition layout where inodes and journal will need space.
the