Bug 480838 - specifying major/minor options results in failed snapshot create
Summary: specifying major/minor options results in failed snapshot create
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: device-mapper
Version: 4.8
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Milan Broz
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-01-20 20:17 UTC by Corey Marthaler
Modified: 2013-03-01 04:07 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-18 20:08:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0962 0 normal SHIPPED_LIVE device-mapper bug-fix and enhancement update 2009-05-18 13:31:41 UTC

Description Corey Marthaler 2009-01-20 20:17:29 UTC
Description of problem:
I saw this regression when attempting to verify the fix for bug 204992.

[root@grant-03 ~]# lvcreate -n snap1 -My --major 200 --minor 75 -L 50M -s /dev/hayes/origin
  Rounding up size to full physical extent 52.00 MB
  Volume snap1 (200:75) differs from already active device (253:75)
  Aborting. Failed to activate snapshot exception store.
[root@grant-03 ~]# echo $?
5
 
[root@grant-03 ~]# lvcreate -n snap2  -L 50M -s /dev/hayes/origin
  Rounding up size to full physical extent 52.00 MB
  Logical volume "snap2" created


Version-Release number of selected component (if applicable):
2.6.9-78.28.ELsmp

lvm2-2.02.42-2.el4    BUILT: Thu Jan 15 12:48:25 CST 2009


How reproducible:
Every time.

Comment 1 Corey Marthaler 2009-01-20 21:32:01 UTC
This is related to bug 204997, but unlike in that bug, here the creation actually fails and leaves zombie dm devices around after attempting to remove.

Comment 2 Milan Broz 2009-02-03 14:12:40 UTC
uf, it is broken completely, not only snapshots.

# lvcreate -n tst -My --major 200 --minor 33 -l 1 vg_test
  Volume tst (200:33) differs from already active device (254:33)
  Aborting. Failed to activate new LV to wipe the start of it.
  Volume tst (200:33) differs from already active device (254:33)
  Unable to deactivate failed new LV. Manual intervention required.

We need ignore to major number for 2.6 kernel when comparing devices device number pairs...

Comment 8 Peter Rajnoha 2009-02-20 11:04:07 UTC
Committed to CVS, device-mapper-1.02.28-2.el4.

Comment 11 errata-xmlrpc 2009-05-18 20:08:37 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-0962.html


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