Bug 503708 - Snapshot --virtualoriginsize extension doesn't work and cause problems in lvm metadata
Summary: Snapshot --virtualoriginsize extension doesn't work and cause problems in lvm...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: lvm2
Version: 5.3
Hardware: All
OS: Linux
low
medium
Target Milestone: beta
: ---
Assignee: Milan Broz
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-02 11:19 UTC by Milan Broz
Modified: 2013-03-01 04:07 UTC (History)
11 users (show)

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


Attachments (Terms of Use)


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 Milan Broz 2009-06-02 11:19:07 UTC
Description of problem:

There is new option for creating snapshots with virtual origin (IOW empty origin, created as zero device).
(This feature was introduced by taking package from upstream.)

Unfortunately that option is broken in lvm2-2.02.46 and when user tries to use it command can cause invisible allocated volumes in metadata.

# lvcreate -s -n lvs -L 100M --virtualoriginsize 200M vg_test
  Internal error: #internal LVs (3) != #LVs (1) + #snapshots (1) + #invisible LVs 0 in VG vg_test

# lvs -a
  LV            VG      Attr   LSize   Origin Snap%  Move Log Copy%  Convert
  lvs           vg_test -wi-a- 100.00M
  [lvs_vorigin] vg_test vwi-a- 200.00M

The option is fully documented so we should fix that functionality (patches are available ustream) or remove this fucntionality from the package.

# rpm -q lvm2
lvm2-2.02.46-3.el5.x86_64

Comment 4 Milan Broz 2009-06-04 17:56:05 UTC
Patch in lvm2-2.02.46-4.el5.

Comment 7 Corey Marthaler 2009-06-18 16:12:21 UTC
The latest build of lvm2-2.02.46-8.el5 passes QA's beta regression tests, however QA doesn't have specific hardware to test this feature other than what was attempted in bug 504877.

Comment 9 errata-xmlrpc 2009-09-02 11:57:23 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.