1825775 Members
2277 Online
109687 Solutions
New Discussion

Vgcreate - Max PE

 
SOLVED
Go to solution
Abhijeet_3
Frequent Advisor

Vgcreate - Max PE

Default : Max number of PE per PV is 1024.

Now a days single disk capacity is 144GB .

Is it necessary to specify vgcreate -e ?

Regards

Abhijeet
4 REPLIES 4
Devender Khatana
Honored Contributor
Solution

Re: Vgcreate - Max PE

Hi,

Max PE PER PV will be automatically adjusted to allocate through the largest size of the disks specified for creating the VG. Allthough if you are creating VG on a smaller disk and intend to use larger disks then obviously you should adjust it while creating the VG.

Also you need to change PE-Size from default 4/8 MB value depending upon the OS version. The max_pe_per_pv will be allowed to go upto only a small value with default PE_size.

HTH,
Devender
Impossible itself mentions "I m possible"
Steven E. Protter
Exalted Contributor

Re: Vgcreate - Max PE

Shalom Abhijeet,

I get around this by setting a realistic max physica volumes setting when creating the volume group.

The default setting is 255 and there are a limited number of PE's that can be spread across that many disks.

The situation is much better when I add -p 8 (max physical volumes for vg) to the vgcreate statement.

You need to pick a number that you will not likely exceed. This is not something you can change two years down the road.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mark Nieuwboer
Esteemed Contributor

Re: Vgcreate - Max PE

Hi Abhijeet,

you don't have to do it. automatically the max PE is made higher if the disk is bigger.
But remember if you want to place another disk in that volumegroup it can't be bigger then 144GB, our you must specify the -e option that it can use larger disk then 144.
I always use vgcreate -e 10500 -p 16 for data disks and vgcreate -e 10500 -p 8 for root disks. Now you can put to 210 GB of disk in the system. This is especialy used with san disks.

grtz. Mark
Abhijeet_3
Frequent Advisor

Re: Vgcreate - Max PE

Thanks Devender, SEP , Mark.