1832277 Members
1883 Online
110041 Solutions
New Discussion

vgextend

 
SOLVED
Go to solution
cabloy
Advisor

vgextend

Hi
When I tried to extend one of my volume group I got this message. Can anyone help me to resolve this?

==========
# vgextend /dev/vgNBU /dev/dsk/c27t0d2
vgextend: Warning: Max_PE_per_PV for the volume group (5072) too small for this PV (9215).
Using only 5072 PEs from this physical volume.
Volume group "/dev/vgNBU" has been successfully extended.
Volume Group configuration for /dev/vgNBU has been saved in /etc/lvmconf/vgNBU.conf
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: vgextend

The maximum number of PE's allowed for a given physical volume is set when the VG is first created. You max_pe's X pe_size is less than the size of the new PV so only a portion of it will actually be used. The nember of PE's allocated is determined by the largest PV that initially listed in the vgcreate command --- unless specifically overriden when the vgcommand is executed and you didn't do that. Once set, it can't be increased. You have two choices: 1) Live with a portion of your disk "wasted". 2) Backup the entire VG; vgexport the VG; build the VG from scratch; make new filesystems and restore.
If it ain't broke, I can fix that.
Mridul Shrivastava
Honored Contributor

Re: vgextend

you are getting this error because the frist disk we added was of low capacity. That is why it is already recommended to create vg with high capacity first or change PE size and max PE value else it will use default one and we will face this issue.

Because of this you are not able to use the full capacity of the second disk.To overcome from this issue I would suggest you to recreate the vg using the above mentioned parameters or create vg with max available capacity disk.
Time has a wonderful way of weeding out the trivial
freddy_21
Respected Contributor

Re: vgextend

you must seperate that disk to be a small disk. Remember: the size from new disk must less or equal than the existing disk.


Good luck
freddy
cabloy
Advisor

Re: vgextend

Thanks for further explanation this will a be great help.

cheers.