1753418 Members
4953 Online
108793 Solutions
New Discussion юеВ

Re: PE extent size

 
SOLVED
Go to solution
himacs
Super Advisor

PE extent size

Hi ,

I know that default size of an PE is 4 MB and we can assign the value to a PE more than 4 MB.

What is the advantages by assigning more than 4MB to a PE

Regards
Pavan
14 REPLIES 14
subodhbagade
Regular Advisor
Solution

Re: PE extent size

Hi,

please refer below note :--

NOTE: One of the VG├в s parameters is max_pe, i.e the maximum number of physical extents this VG can handle per disk. The default value is 1016. Multiplying this with the default PE size of 4MB results in approx. 4GB disk space that can be handled by this VG. Adding a larger disk to this VG later is not possible. Believe me - there are absolutely no options to do this other than vgcreate! Anyway - vgcreate automatically adjusts max_pe in order be able to handle the largest PV given in the arguments. Its always a good idea to set max_pe explicitely to a value large enough to allow for future expansions. This can be done with the -e option of vgcreate.

You can use this command to create VG with specific PE size

#vgcreate ├в s 4 ├в p 16 vgnew /dev/dsk/c0t5d0 /dev/dsk/c0t6d0



Regards,
Subodh
sujit kumar singh
Honored Contributor

Re: PE extent size

hi

if you use PE size of 4 MB and MAX_PE that is max PE per pv is 65535 then single disk of size 4*65535MB can be accomodated in the VG.



if PE size is 256 MB and max PE is set at 5000 then the maximun size of disk that cane be added to the VG is 256*5000MB.


PE size paramaeter can be set only at the time of creating a VG and cant be later on modified as such.


MAX PE can be modified using vgmodify caommand and assocaited patches if vgmodify is supported.

regards
sujit
johnsonpk
Honored Contributor

Re: PE extent size

1)The PE size and max_per_per_pv together define the maximum size that can be used from a disk/pv

ie the size that can be used from a PV = pe size x max_pe_per_pv

here only max_pe_per_pv can be changed after vgcreation .
and its maximum value is 65535 meaning that if the pe size is 4 mb you can use only appox 140 Gb(4x65535) space from a single pv ,

2) the maximum size of LV that can be create in a vg = Pe size x 65535

ie if the pe size is 4MB ,you are limiting the maximum lv size to 140Gb even when you have more free space on the vg
johnsonpk
Honored Contributor

Re: PE extent size

Sujith>>>if PE size is 256 MB and max PE is set at 5000 then the maximun size of disk that cane be added to the VG is 256*5000MB.


I believe you can add bigger disk than 256*5000MB but only 256*50000MB will be usable from that pv and the rest space will remain unaddressed/unused


Rgds!
Johnson
himacs
Super Advisor

Re: PE extent size

Hi All,

Thanks for your responces.So its always better idea to have PE size with more than 4MB to support future inclusions.

vgmodify -e can be done online or have to deactivate VG..?


REgards
himacs
AVV
Super Advisor

Re: PE extent size

Yes.

What Johnson said is true as we can add the disk more than PE size*65535 but only that much space could be allocatable from that PV.

johnsonpk
Honored Contributor

Re: PE extent size

>>vgmodify -e can be done online or have to deactivate VG..?


Volume group version 2.0 and higher -- vg should be active


volume group version 1.0 use --- vgmodify -a if the vg is active
Johnson Punniyalingam
Honored Contributor

Re: PE extent size

what OS version are you running ?

Only HPUX 11.31 -> Supports "vgmodify"

>>>vgmodify -e can be done online or have to deactivate VG..?<<<

All the physical volumes associated with the volume group must be available for the vgmodify command to succeed.

for more information check below link

http://docs.hp.com/en/B2355-60130/vgmodify.1M.html
Problems are common to all, but attitude makes the difference
Michael Steele_2
Honored Contributor

Re: PE extent size

Hi

And and interesting toss of answers.

The size of the PE serves two purposes:

a) First PE is the LVM header or 'VGRA' (* volume group reserve area *) on every PV
b) Determines the number of 1024 blocks of data per PE

a) The 'VGRA' contains all the metadata needed so establish the length and bredth of each PV and VG and LV, as well as the VGID which is used in MC/SG. Without this information Online JFS file system blocks of data would cross out of and into disk segments that they shouldn't.

Note the most common error seen when a PE is too small is : "File too large".

When you see 'File too large' then the PE has run out of room and can no longer serve as an LVM header / VGRA.

PE size is determine with this formula:

PE_SIZE = 2 * ( 30 + MAX_PE ) / 1024

Note: 1024 = file system block size.
(* Note that I can no longer find the reference to this formula, the doc has been moved. *)

See below:

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1265085643267+28353475&threadId=1195441


http://docs.hp.com/en/5992-6576/5992-6576.pdf
Support Fatherhood - Stop Family Law