Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-18-2013, 10:58 PM   #1
Registered: Jul 2011
Posts: 62

Rep: Reputation: Disabled
LVM1 and LVM2

What is the maximum PE size you can mention in a Volume Group in LVM1 and LVM2?
Old 03-20-2013, 08:17 AM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,939
Blog Entries: 14

Rep: Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160
From the CentOS5 vgcreate man page:

-s, --physicalextentsize PhysicalExtentSize[kKmMgGtT]
Sets the physical extent size on physical volumes of this volume
group. A size suffix (k for kilobytes up to t for terabytes) is
optional, megabytes is the default if no suffix is present. The
default is 4 MB and it must be at least 1 KB and a power of 2.

Once this value has been set, it is difficult to change it with-
out recreating the volume group which would involve backing up
and restoring data on any logical volumes. However, if no
extents need moving for the new value to apply, it can be
altered using vgchange -s.

If the volume group metadata uses lvm1 format, extents can vary
in size from 8KB to 16GB and there is a limit of 65534 extents
in each logical volume. The default of 4 MB leads to a maximum
logical volume size of around 256GB.

If the volume group metadata uses lvm2 format those restrictions
do not apply, but having a large number of extents will slow
down the tools but have no impact on I/O performance to the log-
ical volume. The smallest PE is 1KB.

The 2.4 kernel has a limitation of 2TB per block device.
Interestingly that detail doesn't appear in the RHEL6 vgcreate man page any longer.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
converting LVM1 to Lvm2 jyotix175 Linux - Server 0 06-07-2007 04:09 AM
LVM2 vs LVM1 on RH EL3 raggmopp1961 Linux - Software 2 09-07-2006 04:37 PM
LVM1 visible with knoppix V3.6 jhnsegers Linux - General 0 12-16-2004 10:07 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration