Extend LVM and LVM-Thin

juspriss

Member
Mar 24, 2020
15
1
23
38
Hi folks,
how do I resize my LVM and LVM-Thin?

I changed my main drive from a 60GB ssd to a 500GB ssd (cloned the drive with clonezilla). Then, I resized the root partition with gparted, and it seems all good so far. However, I do not see the extra space in LVM and LVM-Thin.

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)?

All the best!
 
Hi,

I assume the device is called sda and you have a default layout so you have resized sda3 with GParted.
The size in this example is appreciated, I don't know your Chunk Size.
If the metadata pool is too small, it becomes full before the data pool is filled.
The problem with a full metadata pool is that you cannot write to it until you have expanded the metadata pool.
1.) resize the PV
Code:
pvresize /dev/sda3
2.) resize LV
Code:
lvresize -L 450G /dev/pve/data
3.) resize metadata pool
Code:
lvresize --poolmetadatasize +3GB /dev/pve/data
 
  • Like
Reactions: juspriss
Hi,

I assume the device is called sda and you have a default layout so you have resized sda3 with GParted.
The size in this example is appreciated, I don't know your Chunk Size.
If the metadata pool is too small, it becomes full before the data pool is filled.
The problem with a full metadata pool is that you cannot write to it until you have expanded the metadata pool.
1.) resize the PV
Code:
pvresize /dev/sda3
2.) resize LV
Code:
lvresize -L 450G /dev/pve/data
3.) resize metadata pool
Code:
lvresize --poolmetadatasize +3GB /dev/pve/data
Hi wolfgang, that was just perfect! Thanks a lot :)

I updated your guidelines with my actual data (e.g. sdc, etc.), did some googling on the commands to learn new things, and done!

Again, thanks a lot. It was fast, clear, and concise.

All the best
 
Hi there!!!
I read this on our forum "The LVM-thin metadata pool can not be resized. The size is fixed after creation."
So, why we done:
lvresize --poolmetadatasize +3GB /dev/pve/data
and how we defined that poolmetadatasize should be encreased in 3 GB??