Cannot create more snapshot without deleting some olds one

FrancisVC

Member
Feb 8, 2019
13
0
21
54
Hi,
I´m trying to create a new snapshot to a VM but I get this error:

VG raid0 69189 metadata on /dev/sdb1 (521555 bytes) exceeds maximum metadata size (521472 bytes)
snapshot create failed: starting cleanup

Only if I delete an old snapshot, it works, but I can create only one.

I´ve review my metadata free space and even I´ve increase it to 2GB, but no way.
Code:
LV                                                         VG    Attr       LSize    Pool         Origin                                   Data%  Meta%  Move Log Cpy%Sync Convert Meta%

raid0-lvthin                                               raid0 twi-aotz--   <3.27t                                                       70.88  35.30                            35.30

How is it possible if I have more than 35% free space in metadatasize?
Where 521555 bytes and 521472 bytes came from?
How can I increase limit?

Thks in advance
 
Last edited:
Hi,
I´m trying to create a new snapshot to a VM but I get this error:

VG raid0 69189 metadata on /dev/sdb1 (521555 bytes) exceeds maximum metadata size (521472 bytes)
snapshot create failed: starting cleanup

Only if I delete an old snapshot, it works, but I can create only one.

I´ve review my metadata free space and even I´ve increase it to 2GB, but no way.
Code:
LV                                                         VG    Attr       LSize    Pool         Origin                                   Data%  Meta%  Move Log Cpy%Sync Convert Meta%

raid0-lvthin                                               raid0 twi-aotz--   <3.27t                                                       70.88  35.30                            35.30

How is it possible if I have more than 35% free space in metadatasize?
Where 521555 bytes and 521472 bytes came from?
How can I increase limit?

Thks in advance
Ok, I´ve discovered where the problem is,
By default, pv metadata size is 1020k, but two copies, so 510k = 522240bytes
Code:
pvs -o mda_size /dev/sdb1
PMdaSize
1020.00k
Code:
vgs -o mda_free raid0
VMdaFree
2.00k
:rolleyes:
The mda_size cannot be increased after pvcreate, so if larger metadata is needed, it must be set during pvcreate. :(
I cannot increase size after pv is created, so...delete it and create with large metadatasize :confused:
 

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!