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
The upstream fix for this has been http://www.redhat.com/archives/lvm-devel/2011-September/msg00075.html
Fixed in lvm2-2.02.88-3.el5.
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
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.
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