Bug 667174

Summary: lvcreate --test reports error that appears that test failed
Product: Red Hat Enterprise Linux 5 Reporter: Corey Marthaler <cmarthal>
Component: lvm2Assignee: Alasdair Kergon <agk>
Status: CLOSED ERRATA QA Contact: Corey Marthaler <cmarthal>
Severity: low Docs Contact:
Priority: low    
Version: 5.6CC: agk, bmarzins, coughlan, dejohnso, dwysocha, fnadge, heinzm, jbrassow, joe.thornber, mbroz, prajnoha, prockai
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: lvm2-2.02.84-1 Doc Type: Bug Fix
Doc Text:
This field is the basis of the errata or release note for this bug. It can also be used for change logs. The Technical Note template, known as CCFR, is as follows: Cause What actions or circumstances cause this bug to present. Consequence What happens when the bug presents. Fix What was done to fix the bug. Result What now happens when the actions or circumstances above occur. Note: this is not the same as the bug doesn’t present anymore.
Story Points: ---
Clone Of: 649334 Environment:
Last Closed: 2011-07-21 10:52:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 649334    
Bug Blocks:    

Comment 2 RHEL Program Management 2011-01-11 20:25:30 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 3 RHEL Program Management 2011-01-11 23:05:20 UTC
This request was erroneously denied for the current release of
Red Hat Enterprise Linux.  The error has been fixed and this
request has been re-proposed for the current release.

Comment 4 Milan Broz 2011-02-03 15:53:51 UTC
Description of problem:
lvcreate fails with "Aborting. Failed to activate new LV to wipe the start of
it."

Version-Release number of selected component (if applicable):


How reproducible:
everytime

Steps to Reproduce:
There is ample room available from vgdisplay command to add another LV however
the lvcreate command produces this error message:
[root@zcarh0tx ~]# lvcreate --test --name LVolSwap --size 2000M Volume00
Test mode: Metadata will NOT be updated.
Rounding up size to full physical extent 1.97 GB
Aborting. Failed to activate new LV to wipe the start of it.
Unable to deactivate failed new LV. Manual intervention required.
[root@zcarh0tx ~]# 

(Already fixed in upstream 2.02.82)

Comment 6 Milan Broz 2011-03-01 15:58:20 UTC
Fixed in lvm2-2.02.84-1.el5

Comment 9 Corey Marthaler 2011-04-25 22:28:15 UTC
Fix verified in the latest rpms.

2.6.18-256.el5

lvm2-2.02.84-2.el5    BUILT: Wed Mar 23 07:18:08 CDT 2011
lvm2-cluster-2.02.84-2.el5    BUILT: Wed Mar 23 07:19:43 CDT 2011
device-mapper-1.02.63-2.el5    BUILT: Fri Mar  4 10:23:17 CST 2011
device-mapper-event-1.02.63-2.el5    BUILT: Fri Mar  4 10:23:17 CST 2011
cmirror-1.1.39-10.el5    BUILT: Wed Sep  8 16:32:05 CDT 2010
kmod-cmirror-0.1.22-3.el5    BUILT: Tue Dec 22 13:39:47 CST 2009


[root@taft-01 ~]# lvcreate --test -n lv -L 100M taft
  Test mode: Metadata will NOT be updated and volumes will not be (de)activated.
  Logical volume "lv" created
[root@taft-01 ~]# echo $?
0

[root@taft-01 ~]# lvcreate --test -m 1 -n mirror -L 100M taft
  Test mode: Metadata will NOT be updated and volumes will not be (de)activated.
  Logical volume "mirror" created
[root@taft-01 ~]# echo $?
0

[root@taft-01 ~]# lvcreate -n lv -L 100M taft
  Logical volume "lv" created
[root@taft-01 ~]# lvcreate --test -s taft/lv -L 10M
  Test mode: Metadata will NOT be updated and volumes will not be (de)activated.
  Rounding up size to full physical extent 12.00 MB
  Logical volume "lvol0" created
[root@taft-01 ~]# echo $?
0

Comment 11 Florian Nadge 2011-05-26 15:31:12 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
This field is the basis of the errata or release note for this bug. It can also be used for change logs.

The Technical Note template, known as CCFR, is as follows:

Cause
    What actions or circumstances cause this bug to present.
Consequence
    What happens when the bug presents.
Fix
    What was done to fix the bug.
Result
    What now happens when the actions or circumstances above occur.
    Note: this is not the same as the bug doesn’t present anymore.

Comment 12 errata-xmlrpc 2011-07-21 10:52:07 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-2011-1071.html

Comment 13 errata-xmlrpc 2011-07-21 12:29:06 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-2011-1071.html