Red Hat Bugzilla – Bug 502671
mirror creation asserts and core dumps if VG extent size and given log size are too small
Last modified: 2013-02-28 23:07:54 EST
Description of problem:
Saw this while verifying bug 477040. If your VG has an extent size of only 1K, and you don't specify any space for the log ( :0-0 ) then you'll see this assertion.
[root@grant-03 ~]# vgcreate -s 1K grant /dev/sdb1 /dev/sdb2 /dev/sdb3
Volume group "grant" successfully created
[root@grant-03 ~]# lvcreate -L 64M -m 1 -n mirror grant /dev/sdb1 /dev/sdb2 /dev/sdb3:0-0
lvcreate: metadata/pv_map.c:190: consume_pv_area: Assertion `to_go <= pva->count' failed.
Aborted (core dumped)
This is reproducible.
Version-Release number of selected component (if applicable):
Created attachment 345516 [details]
core file from the create attempt
I sent some patch here
(I cannot reproduce segfault, but it should not reach assert code anyway).
Fixed upstream, setting bug to POST for now.
Fixed in lvm2-2_02_46-3_el5.
Fix verified in lvm2-2.02.46-3.el5.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.