LVM extent size | Unix Linux Forums | Linux

  Go Back    

Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

LVM extent size


extent, lvm

Closed Thread    
Thread Tools Search this Thread Display Modes
Old 11-05-2010
majid.merkava majid.merkava is offline
Registered User
Join Date: Sep 2010
Last Activity: 3 November 2013, 7:32 AM EST
Location: Tabriz, Iran
Posts: 110
Thanks: 53
Thanked 6 Times in 6 Posts
LVM extent size

Hi guys.

What is the LVM default extent size? is it changeable? is it different between distributions?
Sponsored Links
Old 11-05-2010
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
code tag tagger
Join Date: Sep 2007
Last Activity: 2 March 2015, 4:11 AM EST
Location: St. Gallen, Switzerland
Posts: 6,256
Thanks: 127
Thanked 455 Times in 414 Posts
From the man page of vgcreate:

       -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 without 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.

It can not even only be different on distributions but even for Volume Groups on the same machine, if people used different values.
Sponsored Links
Old 11-05-2010
pludi's Avatar
pludi pludi is offline Forum Advisor  
Cat herder
Join Date: Dec 2008
Last Activity: 28 March 2014, 8:35 AM EDT
Location: Vienna, Austria, Earth
Posts: 5,522
Thanks: 38
Thanked 335 Times in 308 Posts
All of that could be learned by reading the documentation. Default extent size is 4M, it's changeable, although with some caveats, and some distributions use other default values when creating a volume group in the installer.
Old 11-05-2010
majid.merkava majid.merkava is offline
Registered User
Join Date: Sep 2010
Last Activity: 3 November 2013, 7:32 AM EST
Location: Tabriz, Iran
Posts: 110
Thanks: 53
Thanked 6 Times in 6 Posts
Thank you very much.
Sponsored Links
Old 12-06-2010
HansHenderson HansHenderson is offline
Registered User
Join Date: Dec 2010
Last Activity: 7 December 2010, 4:32 AM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
The LVM docs haven't been fully updated from LVM1 to LVM2.

According to the official LVM howto, the default extent size is now 32M.

I can't post URLs yet, so here's a quote, search on it (in quotes) to get a confirmation:

>> You can also specify the extent size with this command if the default of 32MB is not suitable for you with the '-s' switch. In addition you can put some limits on the number of physical or logical volumes the volume can have.
Sponsored Links
Old 12-06-2010
mark54g mark54g is offline Forum Advisor  
Registered User
Join Date: May 2008
Last Activity: 26 July 2013, 11:43 AM EDT
Location: Northeastern United States
Posts: 918
Thanks: 1
Thanked 61 Times in 58 Posts
Yes, one caveat to really concern yourself is the largest lv size allowable by your extent size.
Sponsored Links
Old 12-06-2010
Scrutinizer's Avatar
Scrutinizer Scrutinizer is offline Forum Staff  
Join Date: Nov 2008
Last Activity: 2 March 2015, 4:56 PM EST
Location: Amsterdam
Posts: 9,956
Thanks: 321
Thanked 2,585 Times in 2,311 Posts
And the maximum allowable pv size...
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
The scripts not able to make the file to size 0, every times it go back to its original size mridul10_crj Shell Programming and Scripting 0 10-03-2010 06:55 AM
Directory size larger than file system size? sparcman Solaris 6 12-10-2009 10:21 AM
find with file size and show the size rpraharaj84 Shell Programming and Scripting 3 10-06-2009 02:42 PM
file system full (1 block extent) Adams Nave HP-UX 6 03-24-2008 10:23 AM
command to find out total size of a specific file size (spread over the server) abhinov Solaris 3 08-08-2007 07:48 AM

All times are GMT -4. The time now is 08:34 PM.