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
 

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!