Resize storage pool with new disk

kenaddams42

New Member
Apr 3, 2020
5
3
3
44
Hi,
I am new to Proxmox and LVS, and I hope someone will be able to help.

I run out of space, see below.

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 1007K 0 part
├─sda2 8:2 0 512M 0 part /boot/efi
└─sda3 8:3 0 111.3G 0 part
├─pve-swap 253:0 0 7G 0 lvm [SWAP]
├─pve-root 253:1 0 27.8G 0 lvm /
├─pve-data_tmeta 253:2 0 1G 0 lvm
│ └─pve-data-tpool 253:4 0 60.7G 0 lvm
│ ├─pve-data 253:5 0 60.7G 0 lvm
│ ├─pve-vm--100--disk--0 253:6 0 32G 0 lvm
│ ├─pve-vm--101--disk--0 253:7 0 32G 0 lvm
│ └─pve-vm--102--disk--0 253:8 0 32G 0 lvm
└─pve-data_tdata 253:3 0 60.7G 0 lvm
└─pve-data-tpool 253:4 0 60.7G 0 lvm
├─pve-data 253:5 0 60.7G 0 lvm
├─pve-vm--100--disk--0 253:6 0 32G 0 lvm
├─pve-vm--101--disk--0 253:7 0 32G 0 lvm
└─pve-vm--102--disk--0 253:8 0 32G 0 lvm
root@pve:~# pvs
PV VG Fmt Attr PSize PFree
/dev/sda3 pve lvm2 a-- <111.29g 13.87g
root@pve:~# vgs
VG #PV #LV #SN Attr VSize VFree
pve 1 6 0 wz--n- <111.29g 13.87g
root@pve:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotz-- 60.66g 82.31 3.93
root pve -wi-ao---- 27.75g
swap pve -wi-ao---- 7.00g
vm-100-disk-0 pve Vwi-aotz-- 32.00g data 33.53
vm-101-disk-0 pve Vwi-aotz-- 32.00g data 95.35
vm-102-disk-0 pve Vwi-aotz-- 32.00g data 27.16


I am not really familiar with LVS yet but I understand, new 3 VMs are virtually allocated 32Gb and only use 60.7G.

I also understand 13.87Gb are available to resize any of these volumes, right ?

Now, I added a new disk (recognized as /dev/sda and the former disk where Proxmox is installed on /dev/sdb):

1587898844904.png

1587898750381.png

Can I extend my "local-lvm" storage with the new disk space ?

1587898926479.png


Thanks, and stay safe
++
 
Last edited:

kenaddams42

New Member
Apr 3, 2020
5
3
3
44
Replying to myself - I found this tuto describing how to add a new partition to a Volume Group in order to expand free space.
It is based on Debian commands but it works well.

https://g3n1k.wordpress.com/2018/09/24/debian-add-lvm-space/

1587900684579.png

1587900712300.png

Just use lvextend -l +your_sizeG-v /dev/mapper/pve-data at the end to resize the data volume.
 

Attachments

  • 1587899825689.png
    1587899825689.png
    15.2 KB · Views: 5
Last edited:

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 your own in 60 seconds.

Buy now!