LXC Container disk space

khampol

Member
Sep 6, 2021
30
2
13
35
Hi,
I have a LXC running well but now it runs out of disk space. I add by "size increment".
Question : is that correct way to do ? I mean this new size will recongnize automatically by the LXC Container ?
How could I verify that ?

1731397766420.png
(before it was "23G" now I have "56G")
 
Hello Khampol,

As you know, I am still a beginner with Proxmox PVE.

I tried to create an LXC container that was 8GB in size and resized it to 18GB as shown in your screenshot.
After booting up the container and typing the `df -h` command, I confirmed that the size had increased.

[root@TestForTemplateCT ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/pve-vm--100--disk--0 18G 586M 17G 4% /
none 492K 4.0K 488K 1% /dev
udev 1.9G 0 1.9G 0% /dev/tty
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 777M 60K 777M 1% /run
tmpfs 1.9G 0 1.9G 0% /tmp
[root@TestForTemplateCT ~]#


HOWEVER, it’s better to create a test container environment to check the result before applying it to the real environment. and Please get a snapshot and backup. If it doesn't work, you may need to restore it.

To summarize a point. You have better to create a test container to check the result before applying it to the real environment.

Hope this helps.

Respectfully,

Seiji
 
Last edited: