Bug 749650 - divisibility issues when attempting to create striped mirrors
Summary: divisibility issues when attempting to create striped mirrors
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: lvm2
Version: 5.8
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Petr Rockai
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On: 734193
Blocks: 743047
TreeView+ depends on / blocked
 
Reported: 2011-10-27 19:25 UTC by Corey Marthaler
Modified: 2012-02-21 06:05 UTC (History)
10 users (show)

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.
Clone Of: 734193
Environment:
Last Closed: 2012-02-21 06:05:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0161 0 normal SHIPPED_LIVE lvm2 bug fix and enhancement update 2012-02-20 15:07:59 UTC

Comment 1 Corey Marthaler 2011-10-27 19:26:24 UTC
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 12:21:15 UTC
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 14:47:32 UTC
Fixed in lvm2-2.02.88-3.el5.

Comment 5 Corey Marthaler 2011-11-17 20:16:00 UTC
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 23:34:06 UTC
    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 06:05:24 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-2012-0161.html


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