Description of problem: This bz is related to bug 490417. [root@hayes-01 block]# vgcreate foo -l 4 /dev/etherd/e1.1p* Volume group "foo" successfully created [root@hayes-01 block]# lvcreate -m 1 -n mr1 -L 12M foo Logical volume "mr1" created [root@hayes-01 block]# lvcreate -m 1 -n mr2 -L 12M foo Logical volume "mr2" created [root@hayes-01 block]# lvcreate -m 1 -n mr3 -L 12M foo Logical volume "mr3" created [root@hayes-01 block]# lvcreate -m 1 -n mr4 -L 12M foo Maximum number of logical volumes (4) reached in volume group foo Failed to create mirror log. [root@hayes-01 block]# lvcreate -n linear1 -L 12M foo Logical volume "linear1" created [root@hayes-01 block]# lvs LV VG Attr LSize Origin Snap% Move Log Copy% Convert linear1 foo -wi-a- 12.00M mr1 foo mwi-a- 12.00M mr1_mlog 100.00 mr2 foo mwi-a- 12.00M mr2_mlog 100.00 mr3 foo mwi-a- 12.00M mr3_mlog 100.00 Version-Release number of selected component (if applicable): lvm2-2.02.42-5.el4 How reproducible: Everytime
The maximal LV count is still more magic than usable restriction... I plan to fix lv_count properly upstream.
I think this is fixed upstream, see also https://bugzilla.redhat.com/show_bug.cgi?id=490298#c2
This bug should be already fixed in RHEL5 and above but backporting all related changes to RHEL4 introduces too high risk of regression in code.
FWIW, this is verified fixed in RHEL5.6. [root@grant-02 ~]# lvcreate -m 1 -n mr1 -L 12M foo Logical volume "mr1" created [root@grant-02 ~]# lvcreate -m 1 -n mr2 -L 12M foo Logical volume "mr2" created [root@grant-02 ~]# lvcreate -m 1 -n mr3 -L 12M foo Logical volume "mr3" created [root@grant-02 ~]# lvcreate -m 1 -n mr4 -L 12M foo Logical volume "mr4" created [root@grant-02 ~]# lvcreate -m 1 -n mr5 -L 12M foo Maximum number of logical volumes (4) reached in volume group foo 2.6.18-227.el5 lvm2-2.02.74-1.el5 BUILT: Fri Oct 15 10:26:21 CDT 2010 lvm2-cluster-2.02.74-1.el5 BUILT: Fri Oct 15 10:27:02 CDT 2010 device-mapper-1.02.55-1.el5 BUILT: Fri Oct 15 06:15:55 CDT 2010 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