Expand logical volume for LVM metadata?

Filefly

New Member
Jul 21, 2019
1
0
1
39
Hello,

I ran into an issue recently where I started getting I/O errors on all of my VMs. After doing some digging I found that the LVM metadata was 100% in use. I attempted to increase the size of the LV that stores the metadata like this:
Code:
lvextend --poolmetadatasize +1G pve/data
but got an error which stated I couldn't proceed because there were no more extents available to do so.

I managed to fix the problem temporarily by deleting the spare copy of the metadata and using the resulting free extents to extend the original metadata LV; however, I'd like to avoid doing this long term. Is there any way I can use some of the available free space on the data LV to accomplish this?

I already attempted to resize the data LV, but because I'm using thin provisioning, this doesn't appear to be supported.

hxxps://i.imgur.com/qiQTtrl.png

Thank you for any help you can provide!
 
The safest way is to move the VM disks away from the storage and reduce the LVs size. I suppose you have an older Proxmox VE installation or upgraded from it. As the metadata pool size was increased to 1% of the VG size on newer installations to avoid this issue.
 

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!