How to extend LVM thin pool

dfranco

Active Member
Jul 6, 2015
25
2
43
Hello,

I'm running ProxMox VE version below
pve-manager/5.3-5/97ae681d (running kernel: 4.15.18-9-pv

I'd like to increase one of our LVM thin pool from 300 GB to 600 GB (see LVM pv and vg below)

PV VG Fmt Attr PSize PFree
/dev/sdb1 vmdata lvm2 a-- 931.00g 630.85g

VG #PV #LV #SN Attr VSize VFree
vmdata 1 4 0 wz--n- 931.00g 630.85g

I did found how to extend the LVM thin pool metada here
https://pve.proxmox.com/wiki/LVM2#Create_a_extra_LV_for_.2Fvar.2Flib.2Fvz

But can't find anything else.

As this is a production server, what are the "best practice" to extend an LVM thin pool ?
Can I do it while KVM and LXC are running on it ?
Should I do a dump of each vms ?

Thanks in advance for any help.
 
I'd like to increase one of our LVM thin pool from 300 GB to 600 GB (see LVM pv and vg below)

PV VG Fmt Attr PSize PFree
/dev/sdb1 vmdata lvm2 a-- 931.00g 630.85g

VG #PV #LV #SN Attr VSize VFree
vmdata 1 4 0 wz--n- 931.00g 630.85g


Assuming your lvm-thione volume has the name "thinvol" run

Code:
lvresize -L +300G vmdata/thinvol
 
  • Like
Reactions: tobias.hochguertel
Thank you Richard.

Thanks but my question was more about "precautions" before resizing LVM thin volume.
Can we resize the volume with up and running KVM + LXC running on it ?

Best regards
 
Thank you Richard.

Thanks but my question was more about "precautions" before resizing LVM thin volume.
Can we resize the volume with up and running KVM + LXC running on it ?

Best regards
Yes
 
Thank you Richard,

I guess it's the same while resizing thin pool metadata.

Best regards
 
It would be nice to have the expansion functionality in the web ui instead of having to run commands separately for the metadata and actual lv size increase. I still could not find this functionality in PVE 8.3
Totally agree. I'm struggling now with it and this would be a great enhancement.
 
  • Like
Reactions: Mullasci