Cannot create more snapshot without deleting some olds one

FrancisVC

Active Member
Feb 8, 2019
13
0
41
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: