Extending LVM's of Containers

nivek1612

New Member
Aug 25, 2024
10
0
1
Ok so I'm new to proxmox and whilst setting up a couple of containers I appear to have not allocated as much disk space as I should now my container volumes are almost full outputs below. But I'm using less that half the actual physical disk

Whats the recommended way of increasing the space available to the two containers? I've read several posts and help files but I'm still not sure I'm clear on what to do

root@pve2:~# pvs
PV VG Fmt Attr PSize PFree
/dev/sda3 pve lvm2 a-- 59.12g <7.38g

root@pve2:~# vgs
VG #PV #LV #SN Attr VSize VFree
pve 1 5 0 wz--n- 59.12g <7.38g

root@pve2:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotz-- 17.43g 91.90 2.09
root pve -wi-ao---- <24.94g
swap pve -wi-ao---- <7.38g
vm-100-disk-0 pve Vwi-aotz-- 10.00g data 95.21
vm-101-disk-0 pve Vwi-aotz-- 8.00g data 81.26

root@pve2:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 59.6G 0 disk
├─sda1 8:1 0 1007K 0 part
├─sda2 8:2 0 512M 0 part
└─sda3 8:3 0 59.1G 0 part
├─pve-swap 252:0 0 7.4G 0 lvm [SWAP]
├─pve-root 252:1 0 24.9G 0 lvm /
├─pve-data_tmeta 252:2 0 1G 0 lvm
│ └─pve-data-tpool 252:4 0 17.4G 0 lvm
│ ├─pve-data 252:5 0 17.4G 1 lvm
│ ├─pve-vm--100--disk--0 252:6 0 10G 0 lvm
│ └─pve-vm--101--disk--0 252:7 0 8G 0 lvm
└─pve-data_tdata 252:3 0 17.4G 0 lvm
└─pve-data-tpool 252:4 0 17.4G 0 lvm
├─pve-data 252:5 0 17.4G 1 lvm
├─pve-vm--100--disk--0 252:6 0 10G 0 lvm
└─pve-vm--101--disk--0 252:7 0 8G 0 lvm
 
Hi,

Whats the recommended way of increasing the space available to the two containers?
I guess you'd like to simply increase the size of the root filesystem?

Most easily that can be done via the web interface; by selecting the container you want to increase the disk of, then click Resources -> Root Disk and finally the button above Volume Action -> Resize.

Hope this helps! :)
 
  • Like
Reactions: Kingneutron
Hi,


I guess you'd like to simply increase the size of the root filesystem?

Most easily that can be done via the web interface; by selecting the container you want to increase the disk of, then click Resources -> Root Disk and finally the button above Volume Action -> Resize.

Hope this helps! :)
That sort of helped

and gets me here

root@pve2:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotz-- 17.43g 92.40 2.09
root pve -wi-ao---- <24.94g
swap pve -wi-ao---- <7.38g
vm-100-disk-0 pve Vwi-aotz-- 12.00g data 79.64
vm-101-disk-0 pve Vwi-aotz-- 11.00g data 59.56

but how do I increase "data" so I'm not at 92%+
 
Last edited:
I think I figured it out

used lvextend -L +5G pve/data

and now I have
root@pve2:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotz-- 22.43g 71.80 2.10
root pve -wi-ao---- <24.94g
swap pve -wi-ao---- <7.38g
vm-100-disk-0 pve Vwi-aotz-- 12.00g data 79.64
vm-101-disk-0 pve Vwi-aotz-- 11.00g data 59.56

Anything more I should do
 

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!