1826425 Members
3462 Online
109692 Solutions
New Discussion

vgextend problem

 
Ahmed ABDOU_1
Advisor

vgextend problem

i need to extend vg01 to include a new disk of 18gb, but an error message displayed:
"Max_PE_per_PV too small for pv..."
the current vg has insilde disks of size 4gb.
need a procedure to resolve this please.
3 REPLIES 3
Rob Smith
Respected Contributor

Re: vgextend problem

The error message means that this disk is too big for the vg you are trying to place it in. When a vg is created it takes the size of the largest disk and that becomes the max_extents_per_pv which is is the size of the disk divided by 4, if you are using the default extent size.

The only way out of this is backup your data, remove VG01, recreate VG01 with the new disks and then restore the data. Sorry but there is no easier way. I hope this helps and good luck!

Rob
Learn the rules so you can break them properly.
Wieslaw Krajewski
Honored Contributor

Re: vgextend problem

Hi,

Just a few extra words to Rob's answer that is correct
(you should recreate volume group).
It is very important, when creating volume group, to assume proper values for -s and -e options.
The option -e is to fix max number of physical extents per PV, whereas -s is to establish physical extent size.
To avoid problems like this you have now should assume enough high value for -e option. But high value of max PE per PV means that you can define small value of PE size.
These two values are correlated because there is a fixed size room for VGRA and VGDA on each disk.

Good luck.
Permanent training makes master
Vincenzo Restuccia
Honored Contributor

Re: vgextend problem

Physical extent size is fixed at the time of the creation of a volume group and it is constant throughout the group.All physical disks in a volume group have physical extents of the same size.