Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 749650 - divisibility issues when attempting to create striped mirrors
divisibility issues when attempting to create striped mirrors
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: lvm2 (Show other bugs)
5.8
x86_64 Linux
medium Severity medium
: rc
: ---
Assigned To: Petr Rockai
Cluster QE
:
Depends On: 734193
Blocks: 743047
  Show dependency treegraph
 
Reported: 2011-10-27 15:25 EDT by Corey Marthaler
Modified: 2012-02-21 01:05 EST (History)
10 users (show)

See Also:
Fixed In Version: lvm2-2.02.88-3.el5
Doc Type: Bug Fix
Doc Text:
When using striped mirrors, an improper and too restrictive divisibility requirements for extent count took effect. This might have ended up with a failure to create a striped mirror despite it was correct and possible. The condition that was checked counted in mirror and stripe count though only stripe count alone was satisfactory.
Story Points: ---
Clone Of: 734193
Environment:
Last Closed: 2012-02-21 01:05:24 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0161 normal SHIPPED_LIVE lvm2 bug fix and enhancement update 2012-02-20 10:07:59 EST

  None (edit)
Comment 1 Corey Marthaler 2011-10-27 15:26:24 EDT
This exists in the latest rhel5.8 rpms.

[root@taft-01 ~]# lvcreate -m 1 -i 2 -n striped_secondary_2legs_1 -L 100M helter_skelter /dev/sdg1:0-1000 /dev/sde1:0-1000 /dev/sdf1:0-1000 /dev/sdd1:0-1000 /dev/sdb1:0-150
  Using default stripesize 64.00 KB
  Rounding size (25 extents) up to stripe boundary size (26 extents)
  Number of extents requested (26) needs to be divisible by 4.
[root@taft-01 ~]# lvcreate -m 1 -i 2 -n striped_secondary_2legs_1 -L 200M helter_skelter /dev/sdg1:0-1000 /dev/sde1:0-1000 /dev/sdf1:0-1000 /dev/sdd1:0-1000 /dev/sdb1:0-150
  Using default stripesize 64.00 KB
  Number of extents requested (50) needs to be divisible by 4.
[root@taft-01 ~]# lvcreate -m 1 -i 2 -n striped_secondary_2legs_1 -L 500M helter_skelter /dev/sdg1:0-1000 /dev/sde1:0-1000 /dev/sdf1:0-1000 /dev/sdd1:0-1000 /dev/sdb1:0-150
  Using default stripesize 64.00 KB
  Rounding size (125 extents) up to stripe boundary size (126 extents)
  Number of extents requested (126) needs to be divisible by 4.
[root@taft-01 ~]# lvcreate -m 1 -i 2 -n striped_secondary_2legs_1 -L 600M helter_skelter /dev/sdg1:0-1000 /dev/sde1:0-1000 /dev/sdf1:0-1000 /dev/sdd1:0-1000 /dev/sdb1:0-150
  Using default stripesize 64.00 KB
  Number of extents requested (150) needs to be divisible by 4.
[root@taft-01 ~]# lvcreate -m 1 -i 2 -n striped_secondary_2legs_1 -L 1000M helter_skelter /dev/sdg1:0-1000 /dev/sde1:0-1000 /dev/sdf1:0-1000 /dev/sdd1:0-1000 /dev/sdb1:0-150
  Using default stripesize 64.00 KB
  Number of extents requested (250) needs to be divisible by 4.


2.6.18-274.el5

lvm2-2.02.88-2.el5    BUILT: Fri Oct 21 09:48:50 CDT 2011
lvm2-cluster-2.02.88-2.el5    BUILT: Fri Oct 21 09:49:24 CDT 2011
device-mapper-1.02.67-2.el5    BUILT: Mon Oct 17 08:31:56 CDT 2011
device-mapper-event-1.02.67-2.el5    BUILT: Mon Oct 17 08:31:56 CDT 2011
cmirror-1.1.39-10.el5    BUILT: Wed Sep  8 16:32:05 CDT 2010
kmod-cmirror-0.1.22-3.el5    BUILT: Tue Dec 22 13:39:47 CST 2009
Comment 2 Petr Rockai 2011-11-01 08:21:15 EDT
The upstream fix for this has been http://www.redhat.com/archives/lvm-devel/2011-September/msg00075.html
Comment 3 Milan Broz 2011-11-10 09:47:32 EST
Fixed in lvm2-2.02.88-3.el5.
Comment 5 Corey Marthaler 2011-11-17 15:16:00 EST
Fix verified in the latest rpms.

2.6.18-274.el5
lvm2-2.02.88-4.el5    BUILT: Wed Nov 16 09:40:55 CST 2011
lvm2-cluster-2.02.88-4.el5    BUILT: Wed Nov 16 09:46:51 CST 2011
device-mapper-1.02.67-2.el5    BUILT: Mon Oct 17 08:31:56 CDT 2011
device-mapper-event-1.02.67-2.el5    BUILT: Mon Oct 17 08:31:56 CDT 2011
cmirror-1.1.39-10.el5    BUILT: Wed Sep  8 16:32:05 CDT 2010
kmod-cmirror-0.1.22-3.el5    BUILT: Tue Dec 22 13:39:47 CST 2009


[root@hayes-01 ~]# lvcreate -m 1 -i 2 -n striped_secondary_2legs_1 -L 100M hayes /dev/etherd/e1.1p1:0-1000 /dev/etherd/e1.1p2:0-1000 /dev/etherd/e1.1p3:0-1000 /dev/etherd/e1.1p4:0-1000 /dev/etherd/e1.1p5:0-150
  Using default stripesize 64.00 KB
  Rounding size (25 extents) up to stripe boundary size (26 extents)
  Logical volume "striped_secondary_2legs_1" created

[root@hayes-01 ~]# lvcreate -m 1 -i 2 -n striped_secondary_2legs_1 -L 200M hayes /dev/etherd/e1.1p1:0-1000 /dev/etherd/e1.1p2:0-1000 /dev/etherd/e1.1p3:0-1000 /dev/etherd/e1.1p4:0-1000 /dev/etherd/e1.1p5:0-150
  Using default stripesize 64.00 KB
  Logical volume "striped_secondary_2legs_1" created

[root@hayes-01 ~]# lvcreate -m 1 -i 2 -n striped_secondary_2legs_1 -L 500M hayes /dev/etherd/e1.1p1:0-1000 /dev/etherd/e1.1p2:0-1000 /dev/etherd/e1.1p3:0-1000 /dev/etherd/e1.1p4:0-1000 /dev/etherd/e1.1p5:0-150
  Using default stripesize 64.00 KB
  Rounding size (125 extents) up to stripe boundary size (126 extents)
  Logical volume "striped_secondary_2legs_1" created

[root@hayes-01 ~]# lvcreate -m 1 -i 2 -n striped_secondary_2legs_1 -L 600M hayes /dev/etherd/e1.1p1:0-1000 /dev/etherd/e1.1p2:0-1000 /dev/etherd/e1.1p3:0-1000 /dev/etherd/e1.1p4:0-1000 /dev/etherd/e1.1p5:0-150
  Using default stripesize 64.00 KB
  Logical volume "striped_secondary_2legs_1" created

[root@hayes-01 ~]# lvcreate -m 1 -i 2 -n striped_secondary_2legs_1 -L 1000M hayes /dev/etherd/e1.1p1:0-1000 /dev/etherd/e1.1p2:0-1000 /dev/etherd/e1.1p3:0-1000 /dev/etherd/e1.1p4:0-1000 /dev/etherd/e1.1p5:0-150
  Using default stripesize 64.00 KB
  Logical volume "striped_secondary_2legs_1" created
Comment 6 Milan Broz 2011-12-06 18:34:06 EST
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
When using striped mirrors, an improper and too restrictive divisibility requirements for extent count took effect. This might have ended up with a failure to create a striped mirror despite it was correct and possible. The condition that was checked counted in mirror and stripe count though only stripe count alone was satisfactory.
Comment 7 errata-xmlrpc 2012-02-21 01:05:24 EST
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-2012-0161.html

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