Operating System - HP-UX
1836444 Members
2322 Online
110100 Solutions
New Discussion

Re: Less disk size after vgextend

 
Md.Shahabuddin
Advisor

Less disk size after vgextend

Hi,

I have added 9 GB of disk in the system. After pvcreate and vgextend i am getting only 4 GB of disk size.
SEAGATE ST39173WC /dev/dsk/c2t10d0 10/8.10.0 8683 /dev/vg03

After vgextend:
PV Name /dev/dsk/c2t10d0
PV Status available
Total PE 1023 (4GB)
Free PE 1023
Autoswitch On
--------------------------------------------

Do i need to tune any kernel parameter or is there any disk corruption. Plesse suggest me the necessary steps.

Thank You !!!!!
4 REPLIES 4
sujit kumar singh
Honored Contributor

Re: Less disk size after vgextend

hi


for the VG do a
#vgdisplay -v /dev/

and check the values for

MAX PE PER PV
and PE Size

i think the MAX PE PER PV is low.

Multiply that with the reported PE Size value and the max size that can be used for a PV added to that VG is obtained.

REgards
Sujit
Bill Hassell
Honored Contributor

Re: Less disk size after vgextend

Did you get an error message with vgextend? The maximum size of any disk (including additional disks added at a later time) is controlled by the max_pe value with vgcreate. If the current disks are smaller than 9GB, then the max_pe value may not allow a bigger disk to be added. Always use the -e max_pe and -s pe_size options with vgcreate. Unless you have a recent version of HP-UX, you can't change the max_pe value. You'll have to backup everything on the volume group, unmount and export the volume, then rebuild it with larger max_pe and pe_size values.


Bill Hassell, sysadmin
Md.Shahabuddin
Advisor

Re: Less disk size after vgextend

Hi Folks,

I have got the solution.

I have re created the VG with

vgcreate -e 2170 xxxxx xxxxx

This allows me to add 9 GB disk.

Thank you very much
sdass
Advisor

Re: Less disk size after vgextend

If the OS is 11.23 you can install the latest lvm command patch and use the command
vgmodify to modify the max_pe per pv