RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 884621 - Creating snapshot of inactive LV fails: One or more specified logical volume(s) not found.
Summary: Creating snapshot of inactive LV fails: One or more specified logical volume(...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: lvm2
Version: 6.4
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Peter Rajnoha
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks: 888457
TreeView+ depends on / blocked
 
Reported: 2012-12-06 12:51 UTC by Marian Csontos
Modified: 2013-02-21 08:15 UTC (History)
11 users (show)

Fixed In Version: lvm2-2.02.98-5.el6
Doc Type: Bug Fix
Doc Text:
This bug was introduced between releases and never appeared in an actual LVM release, RHEL or otherwise. No documentation needed.
Clone Of:
Environment:
Last Closed: 2013-02-21 08:15:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0501 0 normal SHIPPED_LIVE lvm2 bug fix and enhancement update 2013-02-20 21:30:45 UTC

Description Marian Csontos 2012-12-06 12:51:41 UTC
Description of problem:

Caused by commit bf274137 - Use lv_is_active instead of lv_info() - the refactored code is not equivalent to original and function fails when LV is inactive instead of setting variable to 0.

This was fixed by commit 400f6442861.

This is covered by STS and (modified) unit tests.

Version-Release number of selected component (if applicable):
lvm2-2.02.98-4.el6

How reproducible:
100%

Steps to Reproduce:

> #!/bin/bash
> VG=vg
> lvcreate -L 300M $VG -n origin
> lvchange -an $VG/origin
> lvcreate -s /dev/$VG/origin -c 32 -n snap_of_inactive -L 100M
  
Actual results:
snapshot fails with following message:
> One or more specified logical volume(s) not found.

Expected results:
operation should succeed

Additional info:

Comment 3 Nenad Peric 2012-12-18 14:13:29 UTC
(08:13:41) [root@r6-node01:~]$ lvcreate -L 300M $VG -n origin
  Logical volume "origin" created
(08:13:42) [root@r6-node01:~]$ lvchange -an $VG/origin
(08:13:43) [root@r6-node01:~]$ lvcreate -s /dev/$VG/origin -c 32 -n snap_of_inactive -L 100M
  Logical volume "snap_of_inactive" created
(08:13:56) [root@r6-node01:~]$ lvcreate -s /dev/$VG/origin -c 32 -n snap_of_inactive2 -L 100M
  Logical volume "snap_of_inactive2" created


(08:14:51) [root@r6-node01:~]$ lvs
  LV                VG       Attr      LSize   Pool Origin Data%  Move Log Cpy%Sync Convert
  lv_root           VolGroup -wi-ao---   7.54g                                             
  lv_swap           VolGroup -wi-ao---   1.97g                                             
  origin            vg       owi---s-- 300.00m                                             
  snap_of_inactive  vg       swi---s-- 100.00m      origin                                 
  snap_of_inactive2 vg       swi---s-- 100.00m      origin                       

Marking verified with:

lvm2-2.02.98-6.el6.x86_64
lvm2-cluster-2.02.98-6.el6.x86_64
cmirror-2.02.98-6.el6.x86_64
device-mapper-1.02.77-6.el6.x86_64

Comment 4 errata-xmlrpc 2013-02-21 08:15:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0501.html


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