[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#739855: partman-lvm: Irreproducible metadata size



Wouter Verhelst wrote:

> The problem seems to be that partman-lvm created PVs with only
195584 units-used-by-pvck allocated for metadata. However, there
is no way to create PVs with less than 1047552 units-used-by-pvck
with the standard pvcreate.

Not true, as partman-lvm uses the standard pvcreate. The exact call is in
[partman-lvm]/lib/lvm-base.sh

grep pvcreate lib/lvm-base.sh
        log-output -t partman-lvm pvcreate -ff -y "$pv"

root@hulk:~# pvcreate -ff -y /dev/sdb1
  Writing physical volume data to disk "/dev/sdb1"
  Physical volume "/dev/sdb1" successfully created
root@hulk:~# pvck /dev/sdb1
  Found label on /dev/sdb1, sector 1, type=LVM2 001
  Found text metadata area: offset=4096, size=1047552
                                         ^^^^^^^^^^^^
True or not, it happens, and is highly reproducible.


Reply to: