Operating System - HP-UX
1833758 Members
2549 Online
110063 Solutions
New Discussion

Re: How to modify PE size

 
Joelmel Roche
Valued Contributor

How to modify PE size

Good Day!

Anybody have an idea on how modify PE size in VG?

# vgdisplay vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4479
VGDA 4
PE Size (Mbytes) 16
Total PE 8958
Alloc PE 8635
Free PE 323
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
10 REPLIES 10
Sajjad Sahir
Honored Contributor

Re: How to modify PE size

Dear Joel Mel
see the attachment
step by step procedure is there

thanks and regards

sajjad
YAQUB_1
Respected Contributor

Re: How to modify PE size

YAQUB_1
Respected Contributor

Re: How to modify PE size

Jeeshan
Honored Contributor

Re: How to modify PE size

Hi

The PE size can not be changed without destroying the VG and recreating it.

This would also entail backing up all of your data, destroy the VG, recreate the VG and LVs and then restore your data.

You need to figure out before creating the vg. Coz this is an important part of vg.
a warrior never quits
Aashique
Honored Contributor

Re: How to modify PE size

Hi,
when you create the volume group using vgcreate that time you will use the "-s size"

example:
vgcreate -s 32 vgash /dev/dsk/c8t5d4 /dev/dsk/c10t5d4

For details man vgcreate

[-s pe_size] Sets the number of megabytes in each physical extent, where pe_size is expressed in units of megabytes (MB) in the range 1 to 256. pe_size must be equal to a power of 2 (1, 2, 4, 8, etc.). The default value for pe_size is 4 (four megabytes).

Thanks & Regards
Aashique
Rasheed Tamton
Honored Contributor

Re: How to modify PE size

Steven E. Protter
Exalted Contributor

Re: How to modify PE size

Shalom,

Simple:
1) back up all the data
2) vgexport the volume group
3) vgcreate the volume group anew
4) restore the data.

Summary: You can not modify the PE size after volume group creation.

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
fb1
New Member

Re: How to modify PE size

use vgmodify on 11.23 as a patch PHCO_35524

or vgmodify is part of 11.31
fb1
New Member

Re: How to modify PE size

vgmodify will give you more PE's per disk if you reduce the MAX PV.
USE ignite to change the PE size.
Torsten.
Acclaimed Contributor

Re: How to modify PE size

>>"Anybody have an idea on how modify PE size in VG?"

The only way is to delete and re-create the VG. PE size cannot be changed in an existing VG.


But "vgmodify" can help you to adjust *other values*, e.g. increase this to a higher number:

Max PE per PV 4479

You need to have 11.31 or 11.23 to do this.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!