1856000 Members
10036 Online
104107 Solutions
New Discussion

Re: File too large

 
SOLVED
Go to solution
Sanjiv Sharma_1
Honored Contributor

File too large

Hi,

I have an L3000/HP-UX 11.11. I am not able to create a file more then 2 GB in a filesystem /rest
# cd /rest
# cat abc >> xyz
File too large
cat: Cannot write to output.

# ll
-rw------- 1 abc users 2147483647 Apr 7 15:52 xyz
-rw------- 1 abc users 2701 Apr 7 18:11 abc

How can I check whether I have created this filesystem with large filesystem support?

If large filesystem support is not set, Can I change it online?

Thanks,

Everything is possible
3 REPLIES 3
Ravi_8
Honored Contributor
Solution

Re: File too large

Hi,

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.
As disks continue to increase in size, there is not enough room in the header files to create a table large enough to track all the physical extents.

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.

# vgcreate -l (number of max logical volumes) -p (number of max physical volumes) -s (size in megabytes of physical extent) /dev/vg## /dev/dsk/c#t#d#

By default, these parameters are set to:

max_lv 255

To check and see if your filesystem has largefile enabled do:

# fsadm /mount_point

It will say 'largefiles' or 'nolargefiles'.

To enable 'largefiles' if it is not already done do:

# fsadm -o largefiles /mount_point
never give up
Michael Tully
Honored Contributor

Re: File too large

you can check this way:

# fstyp -v /dev/my/rmylvol

The f_flag field must equal 16

To change it on-line you must have the online JFS product.

# swlist -l product | grep -i online
OnlineJFS

To change it:
# fsadm -F vxfs -o largefiles /dev/myvg/rlvol

If you haven;t you must unmount the filesystem.
Anyone for a Mutiny ?
RolandH
Honored Contributor

Re: File too large

If you have OnlineJFS you can check with
# fsadm -F vxfs


If not you can check like Michael said with
# fstyp -v

If you have changed your filesystem to support largefiles it has this option til you take it away.
But you should change also your mount options in the /etc/fstab file.
ie:
/dev/vg00/lvol3 /users vxfs delaylog,largefiles 0 1

If you have not OnlineJFS you must recreate your filesystems. If it is an important production server you should order this tool for your server. To change the option to largefiles without OnlineJFS there are many ways, but it depends on your server and its tasks what's best.

Roland
Sometimes you lose and sometimes the others win