Bug 786009 - Ignoring too small pv_min_size 512KB
Summary: Ignoring too small pv_min_size 512KB
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: lvm2
Version: 5.8
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Zdenek Kabelac
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks: 807971
TreeView+ depends on / blocked
 
Reported: 2012-01-31 07:10 UTC by kristof.wevers
Modified: 2018-11-30 22:27 UTC (History)
11 users (show)

Fixed In Version: lvm2-2.02.88-8.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-08 07:11:47 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0023 0 normal SHIPPED_LIVE lvm2 bug fix update 2013-01-07 15:28:59 UTC

Description kristof.wevers 2012-01-31 07:10:43 UTC
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:

Comment 1 Zdenek Kabelac 2012-02-01 21:34:19 UTC
Fixed upstream (available in version  2.02.90)

https://www.redhat.com/archives/lvm-devel/2012-February/msg00008.html

Comment 2 kristof.wevers 2012-02-02 08:40:39 UTC
Great, thanks for the quick reply

Comment 4 RHEL Program Management 2012-04-02 10:18:12 UTC
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.

Comment 6 Milan Broz 2012-05-24 15:52:19 UTC
Fixed in
lvm2-2.02.88-8.el5

Comment 8 Nenad Peric 2012-06-05 13:56:33 UTC
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.

Comment 10 errata-xmlrpc 2013-01-08 07:11:47 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-2013-0023.html


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