[linux-lvm] Usable space in PV

Timofey Koolin timofey at koolin.ru
Wed Sep 30 15:28:11 UTC 2015


Task: calc usable space of PV before create PV and before create 
partition for PV.

In my experiments usable space in PV = PVSize / ExtentSize * ExtentSize 
with integer operations.
But when Metadata may be large - when LVM have a lot of logical volumes 
and it can take more space.

I found in /etc/lvm/lvm.conf parameter pvmetadatasize = 255 secotors 
(default).
What will if metadata will grow to more then 255 sectors?

-- 
Timofey Koolin




More information about the linux-lvm mailing list