Extending mountpoint on LXC

Namudril

Member
Jun 25, 2021
9
1
8
24
Hello,
I'm running pve-manager/7.3-4/d69b70d4 with a Debian 11 based LXC.
I've created a new LVM storage with a 500G disk, then added a mount point to LXC 100 via GUI, size=200G
Now I want to extend mount point to 500G
What are my steps to do?

root@pve:~# pct config 100xc/100.conf
arch: amd64
cores: 3
features: nesting=1
hostname: plex
memory: 2048
mp0: storage:vm-100-disk-0,mp=/storage,backup=1,size=200G
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.1.1,hwaddr=36:5C:A1:B5:A6:B4,ip=192.168.1.15/24,type=veth
onboot: 1
ostype: debian
rootfs: local-lvm:vm-100-disk-0,size=8G
swap: 2048
unprivileged: 1
 
Hi,
you can select the mount point in the GUI and select Volume Action > Resize adding 300G there. Or you can do it via pct resize (see the man page for details).
 
Hi,
you can select the mount point in the GUI and select Volume Action > Resize adding 300G there. Or you can do it via pct resize (see the man page for details).
Thanks! That works.
I've made a mistake at first, extending LVM f that storage, thus no space for MP extending left available.
I have made
Code:
lvreduce -L 200G LV-name
and then
Volume Action > Resize