1832801 Members
3069 Online
110045 Solutions
New Discussion

Re: file too large...

 
Kim Kendall
Regular Advisor

file too large...


Have a 12 drive LUN being presented to the server. See the device files, etc....Here's the session. I get a "File too large". Any ideas?

# pvcreate -f /dev/rdsk/c22t1d4
Physical volume "/dev/rdsk/c22t1d4" has been successfully created.
# mkdir /dev/vgemcora01
# mknod /dev/vgemcora01/group c 64 0x100000
# vgcreate /dev/vgemcora01 /dev/dsk/c22t1d4
Increased the number of physical extents per physical volume to 50301.
vgcreate: Volume group "/dev/vgemcora01" could not be created:
File too large
3 REPLIES 3
Kim Kendall
Regular Advisor

Re: file too large...

used

vgcreate -s 8 -l 10 -e 2510 .....

All is ok
Steven Sim Kok Leong
Honored Contributor

Re: file too large...

Hi,

By default, the maximum VGs you can have (as set by the kernel parameter maxvgs) is 10 i.e. minor number 0x000000 to 0x090000.

Thus, you could not vgcreate because the minor number used is 0x100000 which exceeds the maxvgs. Increase the kernel parameter maxvgs to a higher value say 30 and try again.

Hope this helps. Regards.

Steven Sim Kok Leong
Steven Sim Kok Leong
Honored Contributor

Re: file too large...

Hi,

The HP document KBRC00000716 fixes your problem. Refer to the below thread which contains the full extract of the document as well:

http://aa11.cjb.net/hpux_admin/2001/06/0387.html

The solution for you should be as follows:

max. no. of PVs = 115000/(50301/4) = 9

# vgcreate -p 9 /dev/vgemcora01 /dev/dsk/c22t1d4

Extracted the explanation here from the KBRC00000716 document for your convenience:
========================================
"Since the LVM data structures must fit into a single extent on the disk, the "file too large" error occurs when the extent size is smaller than the LVM data structures.

On the one hand, you can reduce the size of the LVM data structure by reducing the maximum number of logical volumes the volume group can contain (max_lv), or, the maximum number of physical volumes the volume group can
contain (max_pv).

On the other hand, you can increase the size of the physical extents (pe_size) so that the LVM data structure will fit into a single extent."
========================================

Hope this helps. Regards.

Steven Sim Kok Leong