Operating System - HP-UX
1829904 Members
1608 Online
109993 Solutions
New Discussion

Volume Group Creation: PE Size

 
SOLVED
Go to solution
Conal O'Kelly
Advisor

Volume Group Creation: PE Size

Hi
Can anybody advise on an optimal PE size(-s option)when creating Vol Grps (vgcreate). If the number of PV's(-p) and maximum physical extents per PV (-e) are sized appropriately is there any need to worry about extent size.
I've seen from previous discussions that extent size doesn't impact performance. Assuming I set PV's (-p) to 50 and max extents (-e) to 4205 and extent size (-s) to 8, then I can use up to a 33GB disk (LUN)in this Vol Grp and have a potential maximum VG size of 1650 GB (33 * 50).
Is there any advantage in confuring a larger extent size (such as 16 or 32) apart from being able to configure larger disks into the VG?
Also is there much overhead in setting the no. PV's to the maximum (ie 255)?

Thanks for any help.

Cheers
Con
15 REPLIES 15
harry d brown jr
Honored Contributor

Re: Volume Group Creation: PE Size

Unless you have to, you normally don't change the PE size. the larger the extent size, the larger the contiguous space created on the disk.


live free or die
harry
Live Free or Die
Michael Tully
Honored Contributor

Re: Volume Group Creation: PE Size

Hi Con,

Generally there is no need to change the PE
size, unless there is great reason to do so
because of the way your database may be laid out.

Be careful about trying to attempt to add
larger disks to your volume group. If for
example you have created you VG with a 4GB
disk, you can add a 9GB disk but you will not
be allowed to use the full number of extents.
It will size the disk as a 4GB disk only.

-Michael
Anyone for a Mutiny ?
harry d brown jr
Honored Contributor

Re: Volume Group Creation: PE Size

Michael,

You make a GREAT point, that all disks in a VG should be identical, in every way possible. Mixing disk types or models will negatively impact performance. They must all spin at the same speed, have the same IO rate, seek time, scsi or whatever type of access. And of course that means that Mirrors of LV's have the same identical disks.

live free or die
harry
Live Free or Die
A. Clay Stephenson
Acclaimed Contributor

Re: Volume Group Creation: PE Size

Hi:

In reality, PE size has no performance impact. Bear in mind that the PE's are specified in MB's while any reasonable I/O occurs in KB's. The PE size is much more a resource variable (i.e. total number of PE's) than it is a performance variable. Stripping within LVOL's also in measured in KB's so again - no big difference. If you are mixing heterogeneous drives within a volume group, create the volume group with the largest drive; you will then always have enough PE's per physical device.

Regards, Clay
If it ain't broke, I can fix that.
Conal O'Kelly
Advisor

Re: Volume Group Creation: PE Size

Thanks for the info, I'll assign points shortly.
Just to clarify. I am creating new VG's - is there any reasons not to use an 8MB extent (assuming I set the other parameters as previously mentioned). I did read somewhere on the forums that LVM data structures can only reside in one physical extent but I'm not sure what impact this has.

Cheers
Con
Sanjay_6
Honored Contributor
Solution

Re: Volume Group Creation: PE Size

Michael Tully
Honored Contributor

Re: Volume Group Creation: PE Size

Hi Con,

There is really nothing wrong with using 8MB
extents, as it depends on what application your
using, what database, raw/cooked.... One thing
that is clear is once you create your volume
group you cannot change the extent size. As
mentioned 4Mb is the default. If you create
yours with 8MB, that's what you got.

Just remember what I said about using different
sized disks in a volume group.

-Michael
Anyone for a Mutiny ?
Wodisch
Honored Contributor

Re: Volume Group Creation: PE Size

HEllo Con,

why stopping at half the way?
We had that discussion more than once, and to me the basic point is to be able to add more disk space later one, especially larger disks.
Hence I ususally use "vgcreate" with a lot of options, e.g.:
vgcreate -p 100 -l 20 -s 32 -e 2048 /dev/vg...
That permits me to have up to 100 PVs, each of up to 64GB, and I never use hundreds of LVs, so the maximum of 20 of them is fine for me.
And since ALL the header information MUST fit into a single PE, you will NOT run into those problems (which you would with 4MB PEs).
In my opinion the default parameters are just plain useless (they were not that bad back at HP-UX 9).
Just my $0.02,
Wodisch

Re: Volume Group Creation: PE Size

PE size is important if you are using extent-based mirrored stripes as this will give you your stripe size. See the -D option of lvcreate.

I am an HPE Employee
Accept or Kudo
Vincent Farrugia
Honored Contributor

Re: Volume Group Creation: PE Size

Hello,

It depends on how much data at a time you want to increase a logical volume when you need to. Usually, one does not increase it by 1 Mb only, but by several Mbs. So whether it is 4Mb or 8Mb does not really make any difference.

Just my thought,
Vince
Tape Drives RULE!!!
Roger Baptiste
Honored Contributor

Re: Volume Group Creation: PE Size

<>

If you are not using Distributed striping
(i.e, lvcreate -D y ), then you are fine
to use 8MB extents. There should not be
any problems.

< I did read somewhere on the forums that LVM data structures can only reside in one physical extent but I'm not sure what impact this has.>

Yes, it has no impact on performance. But,
since the VGDA resides on each disk of the VG and this VGDA is supposed to live on ONE extent, the extent size should be large enough to fit the VGDA. For instance, if you have a smaller VG extent (say 2MB), then it means the VGDA will be smaller , which in turn means it can address only smaller disk sizes!

For a good understanding of the nitty-gritties: refer to this document:
KBRC00004285


cheers
raj


Take it easy.
Roger Baptiste
Honored Contributor

Re: Volume Group Creation: PE Size

Con,

Another useful document to look upto is:

KBRC00001020

HTH
raj
Take it easy.
Yohanes Tjie
New Member

Re: Volume Group Creation: PE Size

Hi,

i have similiar problem.

I have 5 LUNs and each lun is 360GB capacity with raid 10.

I would like to create 1 VG (example "vgbackup") with 5 Luns arround 1.5TB in one Logical Volume.

It's possible ?

how to create ? i was give up coz the vgcreate command can't do that.

thanks.

YohanesT@berca.co.id
Bill Hassell
Honored Contributor

Re: Volume Group Creation: PE Size

vgcreate is performing the bookeeping for addressing the physical disk. As implied, actual I/O performance is unaffected by large or small extents--it is simply the size of a chunk of disk represented in the LVM tables at the front of the disk. So as Woodisch suggested, use a large extent size and now yo can expand the VG with additional disks. Once you run out of extents, the volume must be erased and recreated to accomodate more disks. The default for -e is 1,016, max is 65,535 extents. The largest VG size (total for all the disks or LUNs) is PE * MaxExtents.

As far as creating terabyte volume groups, certainly vgcreate will do this--but it wil always fail if you don't specify a LARGE PE size. 8Mb is too small. Use -s 32. You can use a smaller PE size but then you must create a larger space for the extent map (the -e option).

Now once the volume group and lvol(s) have been created, whether you can create a filesystem on that 1.5Tb logical volume depends on the version of HP-UX you have and the latest patches. If I remember right, HP-UX 11.00 is now limited to 1Tb filesystems.


Bill Hassell, sysadmin
Yohanes Tjie
New Member

Re: Volume Group Creation: PE Size

Hi Conal,

thanks a lot for your info. everythings was done now. i had configure 1.7TB in one VG with max extend size 64 (optional from SAM).

and, the lvol was create 2 lvol (50%-50%).

thanks again ... and my case can be closed now.

rgds,
Yohanes.