Resize LVM Thin Pool

aPollO

Renowned Member
Mar 6, 2014
154
14
83
Cottbus, Germany
Hi Guys,

i'm totally new to lvm-thin. My physical storage is an RAID 1 array consosts of 2x 250GB SSDs. This contains a volume group with 206GB.
I created an thin-pool with 100GB in this volume group wich contains some images of some VMs. Now i want to increase the size of the thin-pool.

'vgs' shows me there are around 90GB free space in my volume group.
root@hal9000 ~ # vgs ssdvg
VG #PV #LV #SN Attr VSize VFree
ssdvg 1 7 0 wz--n- 206.06g 90.86g

What is the correct way to increase now the size of the thin-pool "thin-ssd".

Code:
root@hal9000 ~ # lvs -a ssdvg
  LV               VG    Attr       LSize   Pool     Origin Data%  Meta%  Move Log Cpy%Sync Convert
  [lvol0_pmspare]  ssdvg ewi------- 100.00m
  rootlv           ssdvg -wi-ao----  15.00g
  thin-ssd         ssdvg twi-aotz-- 100.00g                 32.56  15.96
  [thin-ssd_tdata] ssdvg Twi-ao---- 100.00g
  [thin-ssd_tmeta] ssdvg ewi-ao---- 100.00m
  vm-100-disk-1    ssdvg Vwi-aotz--   8.00g thin-ssd        95.22
  vm-102-disk-1    ssdvg Vwi-a-tz--   5.00g thin-ssd        27.10
  vm-103-disk-0    ssdvg Vwi-aotz--  10.00g thin-ssd        40.14
  vm-220-disk-1    ssdvg Vwi-a-tz--  20.00g thin-ssd        91.45
  vm-230-disk-1    ssdvg Vwi-aotz--   8.00g thin-ssd        16.02

Last time i tried to just resize the logical volume "thin-ssd" with lvextend -L+50GB ssdvg/thin-ssd i eneded in a full metadata pool and lost all my disk images.
It took the whole night to rebuild the VMs and restore the backups. I never want to get this trouble again.

So what is the correct order to increase the thin-pool "thin-ssd"?
Do i have to increase the metadatapool first? And how much space is needed for this?

I'm pretty sure that it is an very easy task.
 
  • Like
Reactions: Toby Cowles
see https://pve.proxmox.com/wiki/LVM2#Resize_metadata_pool on how to resize it
extending the metadatapool first makes sense
i would extend it by the same ratio that your pool will extend

your tmeta is 100M and the pool is 100G
if you want to extend your pool by 50G i would extend tmeta by at least 50M
 
  • Like
Reactions: Toby Cowles
Hi folks,
sorry to bring up old stuff, but I believe that this might be the right topic for my issue.
How do I resize my LVM and LVM-Thin?

I cloned my system disk from a 60GB ssd to a 500GB ssd with clonezilla. Then, I resized the root partition with gparted, and it seems all good so far.
While the new ssd is recognized with the right size (i.e. 465ish GB), LVM and LVM-Thin have the same size of the previous drive (i.e. 55ish GB).
What do I have to do to increase the size tossd limit (i.e. 465ish GB)?
Do I have only to resize the metadata as highlighted in previous posts?

Thanks in advance :)
 
Last edited:
Sorry to up the thread.

Does anyone know how to extend system partition?

P.s. if it is better to open a new thread, let me know and I'll do it :)