Red Hat Bugzilla – Bug 861227
lvconvert --stripes|--stripesize options appear worthless
Last modified: 2013-11-21 18:17:46 EST
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
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.
[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
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