Bug 1389546

Summary: LVM striped: Can no longer create LVs with more than 8 stripes
Product: Red Hat Enterprise Linux 7 Reporter: Jonathan Earl Brassow <jbrassow>
Component: lvm2Assignee: Heinz Mauelshagen <heinzm>
lvm2 sub component: Command-line tools QA Contact: cluster-qe <cluster-qe>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: high CC: agk, akarlsso, cmarthal, heinzm, jbrassow, jmagrini, jreznik, mkocka, msnitzer, prajnoha, prockai, sfalzara, sreeves, tcleveng, thornber, zkabelac
Version: 7.2Keywords: Regression, ZStream
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lvm2-2.02.169-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1459654 (view as bug list) Environment:
Last Closed: 2017-08-01 21:49:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1289208, 1384842, 1459654    

Description Jonathan Earl Brassow 2016-10-27 20:36:23 UTC
RHEL7.3
# lvcreate -i 9 -L 1G -n striped vg
  Using default stripesize 64.00 KiB.
  Only up to 8 stripes in striped supported currently.
  Run `lvcreate --help' for more information.

RHEL7.2
# lvcreate -i 9 -L 1G -n striped vg
  Using default stripesize 64.00 KiB.
  Rounding size (256 extents) up to stripe boundary size (261 extents).
  Logical volume "striped" created.
# lvs -o name,attr,segtype,stripes vg
  LV      Attr       Type    #Str
  striped -wi-a----- striped    9

Comment 2 Peter Rajnoha 2016-11-09 11:51:52 UTC
*** Bug 1393301 has been marked as a duplicate of this bug. ***

Comment 3 Peter Rajnoha 2016-11-09 12:29:44 UTC
*** Bug 1393296 has been marked as a duplicate of this bug. ***

Comment 4 Matus Kocka 2016-12-02 13:22:39 UTC
Is there any fix for this issue?

Comment 7 Heinz Mauelshagen 2017-03-10 17:57:56 UTC
Upstream commit 2fcbe34fe85f

Comment 10 Corey Marthaler 2017-04-19 16:20:23 UTC
Fix verified in the latest 7.4 rpms.

3.10.0-651.el7.x86_64
lvm2-2.02.170-2.el7    BUILT: Thu Apr 13 14:37:43 CDT 2017
lvm2-libs-2.02.170-2.el7    BUILT: Thu Apr 13 14:37:43 CDT 2017
lvm2-cluster-2.02.170-2.el7    BUILT: Thu Apr 13 14:37:43 CDT 2017
device-mapper-1.02.139-2.el7    BUILT: Thu Apr 13 14:37:43 CDT 2017
device-mapper-libs-1.02.139-2.el7    BUILT: Thu Apr 13 14:37:43 CDT 2017
device-mapper-event-1.02.139-2.el7    BUILT: Thu Apr 13 14:37:43 CDT 2017
device-mapper-event-libs-1.02.139-2.el7    BUILT: Thu Apr 13 14:37:43 CDT 2017
device-mapper-persistent-data-0.7.0-0.1.rc6.el7    BUILT: Mon Mar 27 10:15:46 CDT 2017



[root@host-126 ~]# lvcreate --type striped -i 9 -L 1G VG
  Using default stripesize 64.00 KiB.
  Rounding size 1.00 GiB (256 extents) up to stripe boundary size <1.02 GiB(261 extents).
  Logical volume "lvol0" created.

[root@host-126 ~]# lvcreate --type raid0 -i 9 -L 1G VG
  Using default stripesize 64.00 KiB.
  Rounding size 1.00 GiB (256 extents) up to stripe boundary size <1.02 GiB(261 extents).
  Logical volume "lvol1" created.

[root@host-126 ~]# lvcreate --type raid0_meta -i 9 -L 1G VG
  Using default stripesize 64.00 KiB.
  Rounding size 1.00 GiB (256 extents) up to stripe boundary size <1.02 GiB(261 extents).
  Logical volume "lvol2" created.

[root@host-126 ~]# lvcreate --type raid4 -i 9 -L 1G VG
  Using default stripesize 64.00 KiB.
  Rounding size 1.00 GiB (256 extents) up to stripe boundary size <1.02 GiB(261 extents).
  Logical volume "lvol3" created.

[root@host-126 ~]# lvcreate --type raid5 -i 9 -L 1G VG
  Using default stripesize 64.00 KiB.
  Rounding size 1.00 GiB (256 extents) up to stripe boundary size <1.02 GiB(261 extents).
  Logical volume "lvol4" created.

[root@host-126 ~]# lvcreate --type raid6 -i 9 -L 1G VG
  Using default stripesize 64.00 KiB.
  Rounding size 1.00 GiB (256 extents) up to stripe boundary size <1.02 GiB(261 extents).
  Logical volume "lvol5" created.

[root@host-126 ~]# lvcreate --type raid10 -i 9 -L 1G VG
  Using default stripesize 64.00 KiB.
  Rounding size 1.00 GiB (256 extents) up to stripe boundary size <1.02 GiB(261 extents).
  Logical volume "lvol6" created.

[root@host-126 ~]# lvs -o lv_name,segtype,stripes
  LV    Type       #Str
  lvol0 striped       9
  lvol1 raid0         9
  lvol2 raid0_meta    9
  lvol3 raid4        10
  lvol4 raid5        10
  lvol5 raid6        11
  lvol6 raid10       18

Comment 14 errata-xmlrpc 2017-08-01 21:49:49 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.

https://access.redhat.com/errata/RHBA-2017:2222