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. Everytime Version-Release number of selected component (if applicable): lvm2-2.02.46-2.el5
Created attachment 345516 [details] core file from the create attempt
I sent some patch here https://www.redhat.com/archives/lvm-devel/2009-May/msg00220.html (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. http://rhn.redhat.com/errata/RHBA-2009-1393.html