Hide Forgot
Description of problem: The lvm.conf from 5.8 beta includes the following lines: # Minimum size (in KB) of block devices which can be used as PVs. # In a clustered environment all nodes must use the same value. # Any value smaller than 512KB is ignored. # Ignore devices smaller than 2MB such as floppy drives. pv_min_size = 2048 # The original built-in setting was 512 up to and including version 2.02.84. # pv_min_size = 512 The man page mentions similar instructions. However when a pv_min_size smaller than 2048KB is configured a warning is issued on all/most lvm commands and the default value of 2048KB is being used. Version-Release number of selected component (if applicable): lvm2-2.02.88-5.el5 How reproducible: Steps to Reproduce: 1. Install lvm2-2.02.88-5.el5 2. Change pv_min_size in lvm.conf to a value smaller than 2048 3. Run lvm commands Actual results: [root@s1010670 cache]# vgrename vg03_s1010670 vg05_s1010670 Ignoring too small pv_min_size 512KB, using default 2048KB. Volume group "vg03_s1010670" successfully renamed to "vg05_s1010670" Expected results: No warning being issued and the specified pv_min_size being used if it is bigger than 512KB as stated by the comments in lvm.conf and in the man page Additional info:
Fixed upstream (available in version 2.02.90) https://www.redhat.com/archives/lvm-devel/2012-February/msg00008.html
Great, thanks for the quick reply
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release.
Fixed in lvm2-2.02.88-8.el5
tested with lvm2-2.02.88-8.el5 pv_min_size changed to 512 (08:47:17) [root@node01:/usr/tests/sts-rhel5.8/bin]$ pvs PV VG Fmt Attr PSize PFree /dev/sda1 myvg lvm2 a-- 9.53G 9.53G /dev/sdc1 myvg lvm2 a-- 9.53G 9.53G /dev/sdd1 myvg lvm2 a-- 972.00M 972.00M /dev/sdd2 myvg lvm2 a-- 972.00M 972.00M /dev/vda2 VolGroup00 lvm2 a-- 9.88G 0 08:47:39) [root@node01:/usr/tests/sts-rhel5.8/bin]$ lvcreate -n logical myvg -L 2G Logical volume "logical" created (08:47:44) [root@node01:/usr/tests/sts-rhel5.8/bin]$ lvs LV VG Attr LSize Origin Snap% Move Log Copy% Convert LogVol00 VolGroup00 -wi-ao 7.91G LogVol01 VolGroup00 -wi-ao 1.97G logical myvg -wi-a- 2.00G (08:47:46) [root@node01:/usr/tests/sts-rhel5.8/bin]$ vgrename myvg yourvg Volume group "myvg" successfully renamed to "yourvg" (08:56:29) [root@node01:/usr/tests/sts-rhel5.8/bin]$ vgcreate -s 512k smalldisks /dev/sde1 /dev/sde2 Volume group "smalldisks" successfully created (08:56:41) [root@node01:/usr/tests/sts-rhel5.8/bin]$ vgs VG #PV #LV #SN Attr VSize VFree VolGroup00 1 2 0 wz--n- 9.88G 0 smalldisks 2 0 0 wz--n- 3.00M 3.00M yourvg 4 1 0 wz--n- 20.95G 18.95G (08:57:09) [root@node01:/usr/tests/sts-rhel5.8/bin]$ lvcreate -n mini smalldisks -L2.5M Logical volume "mini" created (08:57:24) [root@node01:/usr/tests/sts-rhel5.8/bin]$ lvs LV VG Attr LSize Origin Snap% Move Log Copy% Convert LogVol00 VolGroup00 -wi-ao 7.91G LogVol01 VolGroup00 -wi-ao 1.97G mini smalldisks -wi-a- 2.50M logical yourvg -wi-a- 2.00G No errors or issues encountered during the creation and manipulation of LVM.
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-2013-0023.html