Problem with LXC disk resize

seneca214

Active Member
Dec 3, 2012
26
3
43
On Proxmox 4.0 running the following command to resize a LXC disk image on CT 777 from 20G to 35G works correctly on the container, however the proxmox web gui shows the raw disk image size as '35M', not '35G' which is what 'df' output shows on the container:

pct resize 777 rootfs 35G

Also - an 'ls' of the images folder shows the correct raw image size:

-rw-r----- 1 root root 35G Nov 13 09:49 vm-777-disk-1.raw

Is that syntax not correct or is this a bug? Rebooting the container still works and it shows as having a 35G disk image.

Thanks
 
The wrong value stored in the config is displayed in the GUI. It is purely informational and not actually used other than that. We fixed a bug like this a while ago, please update and see if it happens again.
(Note that the package updates alone won't fix the particular value of the machine you resized as it's "cached" in the config.)
 
Confirmed - updated to latest and now the gui shows rootfs size correctly (in bytes instead of M or G).

Thanks.