Bug 502671 - mirror creation asserts and core dumps if VG extent size and given log size are too small
Summary: mirror creation asserts and core dumps if VG extent size and given log size a...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: lvm2
Version: 5.4
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Milan Broz
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-26 20:27 UTC by Corey Marthaler
Modified: 2013-03-01 04:07 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 11:56:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
core file from the create attempt (672.00 KB, application/octet-stream)
2009-05-26 20:34 UTC, Corey Marthaler
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:1393 0 normal SHIPPED_LIVE lvm2 bug-fix and enhancement update 2009-09-01 12:00:22 UTC

Description Corey Marthaler 2009-05-26 20:27:32 UTC
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

Comment 1 Corey Marthaler 2009-05-26 20:34:26 UTC
Created attachment 345516 [details]
core file from the create attempt

Comment 2 Milan Broz 2009-05-27 11:20:20 UTC
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).

Comment 4 Milan Broz 2009-06-01 15:09:26 UTC
Fixed upstream, setting bug to POST for now.

Comment 5 Milan Broz 2009-06-01 19:01:48 UTC
Fixed in lvm2-2_02_46-3_el5.

Comment 8 Corey Marthaler 2009-06-03 20:59:54 UTC
Fix verified in lvm2-2.02.46-3.el5.

Comment 10 errata-xmlrpc 2009-09-02 11:56:42 UTC
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


Note You need to log in before you can comment on or make changes to this bug.