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 861227 - lvconvert --stripes|--stripesize options appear worthless
Summary: lvconvert --stripes|--stripesize options appear worthless
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: lvm2
Version: 6.3
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Peter Rajnoha
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On: 711890
Blocks: 807971
TreeView+ depends on / blocked
 
Reported: 2012-09-27 21:17 UTC by Corey Marthaler
Modified: 2013-11-21 23:17 UTC (History)
10 users (show)

Fixed In Version: lvm2-2.02.100-1.el6
Doc Type: Bug Fix
Doc Text:
The lvconvert command now uses a more strict checking of the --stripes and --stripesize options and errors out on combinations which are not applicable. The --stripes and --stripesize options can now be used together with --mirrors/--repair/--thinpool and --type raid*/mirror lvconvert options only.
Clone Of: 711890
Environment:
Last Closed: 2013-11-21 23:17:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1704 0 normal SHIPPED_LIVE lvm2 bug fix and enhancement update 2013-11-20 21:52:01 UTC

Comment 1 Corey Marthaler 2012-09-27 21:19:35 UTC
Exists in the latest 6.4 rpms as well.

2.6.32-279.el6.x86_64
lvm2-2.02.97-3.el6    BUILT: Tue Sep 11 05:06:56 CDT 2012
lvm2-libs-2.02.97-3.el6    BUILT: Tue Sep 11 05:06:56 CDT 2012
lvm2-cluster-2.02.97-3.el6    BUILT: Tue Sep 11 05:06:56 CDT 2012

Comment 2 Peter Rajnoha 2012-12-11 15:09:52 UTC
Patch is upstream now (v2.02.99):

http://git.fedorahosted.org/cgit/lvm2.git/commit/?id=cad22be3942809bac979d42195ea5a861a91a71f

It allows the --stripes/--stripesize only with lvconvert --mirrors, --repair and --thinpool where it does make sense, otherwise, you get an error message:

$ lvconvert --merge --stripes 2 vg/lvol0
  --stripes or --stripesize argument is only valid with --mirrors, --repair or --thinpool
  Run `lvconvert --help' for more information.

Man page has been updated accordingly - it's also mentioned that --stripes works for newly allocated space only.

Comment 5 Nenad Peric 2013-08-14 11:56:01 UTC
[root@tardis-01 ~]# lvcreate -n L -L 100M mirror
  Logical volume "L" created
[root@tardis-01 ~]# lvcreate -n M -m 1 -L 100M mirror
  Logical volume "M" created
[root@tardis-01 ~]# lvcreate -n S -i 2 -L 100M mirror
  Using default stripesize 64.00 KiB
  Rounding size (25 extents) up to stripe boundary size (26 extents).
  Logical volume "S" created


[root@tardis-01 ~]# lvconvert --stripes 2 mirror/L
  --stripes or --stripesize argument is only valid with --mirrors/--type mirror/--type raid*, --repair and --thinpool
  Run `lvconvert --help' for more information.

[root@tardis-01 ~]# lvconvert --stripes 2 mirror/L
  --stripes or --stripesize argument is only valid with --mirrors/--type mirror/--type raid*, --repair and --thinpool
  Run `lvconvert --help' for more information.

[root@tardis-01 ~]# lvconvert -m2 --stripes 2 mirror/M
  Using default stripesize 64.00 KiB
[root@tardis-01 ~]# lvs -a -o lv_name,devices
  LV              Devices                                  
  L               /dev/sdc1(513)                           
  M               M_rimage_0(0),M_rimage_1(0),M_rimage_2(0)
  [M_rimage_0]    /dev/sdc1(539)                           
  [M_rimage_1]    /dev/sdd1(1)                             
  [M_rimage_2]    /dev/sde1(1)                             
  [M_rmeta_0]     /dev/sdc1(538)                           
  [M_rmeta_1]     /dev/sdd1(0)                             
  [M_rmeta_2]     /dev/sde1(0)                             
  S               /dev/sdc1(564),/dev/sdd1(26)             
  [lvol0_pmspare] /dev/sdc1(0)                             
  origin                                                   
  pool            pool_tdata(0)                            
  [pool_tdata]    /dev/sdc1(1)                             
  [pool_tmeta]    /dev/sdf1(0)                             
  snap                                                



Marking verified with:

lvm2-2.02.100-1.el6.x86_64

Comment 6 errata-xmlrpc 2013-11-21 23:17:46 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-1704.html


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