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.
What is the correct way to increase now the size of the thin-pool "thin-ssd".
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.
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.