|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
LVM extent size
Hi guys.
What is the LVM default extent size? is it changeable? is it different between distributions? ![]() |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
From the man page of vgcreate: Code:
-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 | ||
|
|
#3
|
||||
|
||||
|
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.
|
|
#4
|
|||
|
|||
|
Thank you very much.
|
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
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 | |
|
|
#6
|
|||
|
|||
|
Yes, one caveat to really concern yourself is the largest lv size allowable by your extent size.
|
| Sponsored Links | |
|
|
#7
|
||||
|
||||
|
And the maximum allowable pv size...
|
| Sponsored Links | ||
|
![]() |
| Tags |
| extent, lvm |
| Thread Tools | Search this Thread |
| 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 05:55 AM |
| Directory size larger than file system size? | sparcman | Solaris | 6 | 12-10-2009 09:21 AM |
| find with file size and show the size | rpraharaj84 | Shell Programming and Scripting | 3 | 10-06-2009 01:42 PM |
| file system full (1 block extent) | Adams Nave | HP-UX | 6 | 03-24-2008 09:23 AM |
| command to find out total size of a specific file size (spread over the server) | abhinov | Solaris | 3 | 08-08-2007 06:48 AM |
|
|