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 1121216 - '--alloc' option needs to be allowed with 'lvconvert --repair'
Summary: '--alloc' option needs to be allowed with 'lvconvert --repair'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: lvm2
Version: 6.6
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Zdenek Kabelac
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-07-18 16:23 UTC by Corey Marthaler
Modified: 2014-10-14 08:25 UTC (History)
8 users (show)

Fixed In Version: lvm2-2.02.108-1.el6
Doc Type: Bug Fix
Doc Text:
lvconvert --repair now accepts a few additional arguments including --alloc and --force.
Clone Of:
Environment:
Last Closed: 2014-10-14 08:25:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1387 0 normal SHIPPED_LIVE lvm2 bug fix and enhancement update 2014-10-14 01:39:47 UTC

Description Corey Marthaler 2014-07-18 16:23:46 UTC
Description of problem:
This issue is for the "failure" found in bug 877221#c15. This should be fixed in rhel6.6.


[root@host-002 ~]# lvconvert --alloc anywhere  --repair -y vg1/lvol0 /dev/sda1
  Option --alloc cannot be used with --repair.
  Run `lvconvert --help' for more information.


Version-Release number of selected component (if applicable):
2.6.32-485.el6.x86_64
lvm2-2.02.107-2.el6    BUILT: Fri Jul 11 08:47:33 CDT 2014
lvm2-libs-2.02.107-2.el6    BUILT: Fri Jul 11 08:47:33 CDT 2014
lvm2-cluster-2.02.107-2.el6    BUILT: Fri Jul 11 08:47:33 CDT 2014
udev-147-2.55.el6    BUILT: Wed Jun 18 06:30:21 CDT 2014
device-mapper-1.02.86-2.el6    BUILT: Fri Jul 11 08:47:33 CDT 2014
device-mapper-libs-1.02.86-2.el6    BUILT: Fri Jul 11 08:47:33 CDT 2014
device-mapper-event-1.02.86-2.el6    BUILT: Fri Jul 11 08:47:33 CDT 2014
device-mapper-event-libs-1.02.86-2.el6    BUILT: Fri Jul 11 08:47:33 CDT 2014
device-mapper-persistent-data-0.3.2-1.el6    BUILT: Fri Apr  4 08:43:06 CDT 2014
cmirror-2.02.107-2.el6    BUILT: Fri Jul 11 08:47:33 CDT 2014

Comment 1 Zdenek Kabelac 2014-08-19 13:14:35 UTC
Fixed via upstream commit:

https://www.redhat.com/archives/lvm-devel/2014-July/msg00099.html

Comment 2 Peter Rajnoha 2014-08-19 14:26:44 UTC
OK, that was in lvm2-2.02.109-2.el6. Adding to errata then...

Comment 4 Corey Marthaler 2014-09-03 22:14:42 UTC
Fix verified in the latest rpms.

2.6.32-495.el6.x86_64
lvm2-2.02.111-2.el6    BUILT: Mon Sep  1 06:46:43 CDT 2014
lvm2-libs-2.02.111-2.el6    BUILT: Mon Sep  1 06:46:43 CDT 2014
lvm2-cluster-2.02.111-2.el6    BUILT: Mon Sep  1 06:46:43 CDT 2014
udev-147-2.57.el6    BUILT: Thu Jul 24 08:48:47 CDT 2014
device-mapper-1.02.90-2.el6    BUILT: Mon Sep  1 06:46:43 CDT 2014
device-mapper-libs-1.02.90-2.el6    BUILT: Mon Sep  1 06:46:43 CDT 2014
device-mapper-event-1.02.90-2.el6    BUILT: Mon Sep  1 06:46:43 CDT 2014
device-mapper-event-libs-1.02.90-2.el6    BUILT: Mon Sep  1 06:46:43 CDT 2014
device-mapper-persistent-data-0.3.2-1.el6    BUILT: Fri Apr  4 08:43:06 CDT 2014
cmirror-2.02.111-2.el6    BUILT: Mon Sep  1 06:46:43 CDT 2014

[root@host-050 ~]# lvconvert --alloc anywhere  --repair -y vg1/lvol0 /dev/sda1
  /dev/sdc1: open failed: No such device or address
  Couldn't find device with uuid cqZiXG-Uw6y-Mp1o-tZG5-VgZG-OXP0-VY2Yfd.
  Faulty devices in vg1/lvol0 successfully replaced.

[root@host-050 ~]# lvs --all --segments -o +devices
  Couldn't find device with uuid cqZiXG-Uw6y-Mp1o-tZG5-VgZG-OXP0-VY2Yfd.
  LV               VG  Attr       #Str Type   SSize    Devices
  lvol0            vg1 rwi-a-r---    2 raid1  1000.00m lvol0_rimage_0(0),lvol0_rimage_1(0)
  [lvol0_rimage_0] vg1 iwi-aor---    1 linear 1000.00m /dev/sda1(2)
  [lvol0_rimage_1] vg1 iwi-aor---    1 linear  800.00m /dev/sdb1(1)
  [lvol0_rimage_1] vg1 iwi-aor---    1 linear  200.00m /dev/sdd1(0)
  [lvol0_rmeta_0]  vg1 ewi-aor---    1 linear    4.00m /dev/sda1(1)
  [lvol0_rmeta_1]  vg1 ewi-aor---    1 linear    4.00m /dev/sdb1(0)

Comment 5 errata-xmlrpc 2014-10-14 08:25:29 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-2014-1387.html


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