Operating System - HP-UX
1753647 Members
6134 Online
108798 Solutions
New Discussion юеВ

error mesg when try to create a vg

 
hi_5
Frequent Advisor

error mesg when try to create a vg

vgcreate: Volume group "/dev/vgroot" could not be created:
File too large

( the disk is only 36G)
vgcreate -e 65535 -s 4 /dev/vgroot /dev/dsk/cxtxdx
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: error mesg when try to create a vg

If you've already done the mknod part of the process on that disk, the best you can do is around -e 32000


vgcreate -e 32000 -s 4 /dev/vgroot /dev/dsk/cxtxdx

Its math based on size of each cluster.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James R. Ferguson
Acclaimed Contributor

Re: error mesg when try to create a vg

Hi:

Your LVM header based on the specifications you gave would be larger than one physical disk extent.

If you really want the maximum number (-e 65535) of extents for future growth (additions of larger disks), then increase the physical extent size ('-s 8' for example).

Regards!

...JRF...
Helen French
Honored Contributor

Re: error mesg when try to create a vg

This error normally comes when the extent size is smaller than the LVM data structure. What you can do is increase size of the PE (-s option) or reduce the size of max LVs (-l option) or reduce the size of max PVs (-p option).

You need to determine which one best fit for you and then try again. "4" is default for PE size, so try giving "8".
Life is a promise, fulfill it!
hi_5
Frequent Advisor

Re: error mesg when try to create a vg

the disk is 36G , and i have tried to change the option but still have the same error
file too large?? even with standard
vgcreate /dev/vgroot /dev/dsk/cxtxdx
hi_5
Frequent Advisor

Re: error mesg when try to create a vg

thanskf ro your help..i figure it out..
i have to increase the size to 8 and use the appropriate pe..and it works...