1824975 Members
4005 Online
109678 Solutions
New Discussion юеВ

Re: What sets PE size

 
SOLVED
Go to solution
dictum9
Super Advisor

What sets PE size

When you do vgdisplay, you see the line

PE Size (Mbytes) 16

sometimes it can be 4 or 8. What controls this? I see no option to set PE size in pvcreate.

8 REPLIES 8
someone_4
Honored Contributor
Solution

Re: What sets PE size

Hi

It will be with
vgcreate the -s options


-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).
Uday_S_Ankolekar
Honored Contributor

Re: What sets PE size

vgcreate will take care of this. Read man pages for vgcreate

-USA..
Good Luck..
Matti_Kurkela
Honored Contributor

Re: What sets PE size

It can be set when you create a volume group, and only then.

One extent is the smallest piece of disk you can (theoretically) present to the applications as a logical volume.

When you create a volume group, you decide the maximum number of extents, the extent size and the maximum number of physical volumes in the volume group. These three things determine the size of the LVM configuration data for that volume group.

Because all disks in a volume group must have the same extent size, there is no point to set PE size in pvcreate.
MK
dictum9
Super Advisor

Re: What sets PE size

OK.

Another question I have, I have a HP 73.4G disk.

However in the vg00 volume group info, (the only volume group I have):

Total PE 4318
PE Size (Mbytes) 16

Which means I have 69088 MB on that disk.

However, diskinfo reveals it has 73.4GB or 75161.6 MB, or a difference of 6073 MB. Where did that 6GB go? Has it gone to another "slice" (this is an Itenium machine) or has it gone for filesystem creation?

Deoncia Grayson_1
Honored Contributor

Re: What sets PE size

could you do a bdf?

I belive it has gone to your filesystem creation, also is your vg00 mirrored?

If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Jeff Schussele
Honored Contributor

Re: What sets PE size

Yes - Itanium boot disks have 3 slices.

#1 is the FAT-32 slice used for booting
#2 is the standard LVM slice for the OS
#3 is the Diag slice used for Offline Diags.

So the vgdisplay of vg00 is only going to show you the size of slice #2

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
dictum9
Super Advisor

Re: What sets PE size

That clarifies a lot.

Nguyen Anh Tien
Honored Contributor

Re: What sets PE size

vgcreate has some important option that is usually used in creating VG.
#vgcreate -s PE_SIZE -e MAX_PE
PE_SIZE can be: 8,16,32,64...
Max_pe is number you can specify to address all you disk's capacity
Eg: You want to create 01 VG contains 02 73GB disk with PE=16 so MAX_PE=>73*2=146GB*1024/16MB=9344
HTH
HP is simple