Operating System - HP-UX
1837785 Members
4005 Online
110119 Solutions
New Discussion

Could not create file more than 2 GB

 
SOLVED
Go to solution
P.PARTHIBAN
Occasional Contributor

Could not create file more than 2 GB

Hello all

We are not able create file size more than
2 GB in HFS file system on HPUX 10.20. Any patch is there to resolve this problem ?

P.Parthiban
India
Email Id: pparthi@hclinsys.com
Parthiban
5 REPLIES 5
Shyam Kishore
Frequent Advisor
Solution

Re: Could not create file more than 2 GB

hi,

You can convert your filesystem for supporting >2GB filesystems using the following command.

#/usr/sbin/fsadm -F hfs -o largefiles /dev/vg02/rlvol1

however you should be careful while taking the backup of these filesystems. AS tar,cpio may not support more than 2GB files. You canuse fbackup or dd for safe backup of these filesystems. ( HP does not recomend to use tar/cpio for these filesystems).

check the following for full details:

http://www.docs.hp.com/hpux/content/lgfiles4.pdf

-Shyam
Kids learn from masters, masters from mistakes.
Simon Chong
Occasional Advisor

Re: Could not create file more than 2 GB

You cannot create a file of > 2GB size in HFS filesystem and this is a known limitation. The reply submitted by Shyam Kishore applies to VXFS filesystem and with the OnlineJFS product installed. The 2 Gb filesize limit also applies to NFS fielsystem.
Begin with the end in mind

Re: Could not create file more than 2 GB

I think Fsadm command is used to increase fie system size witout unmounting file system in JFS and not in HFS?

pls clarify?

Regards

Nikhil
nikhil
Shyam Kishore
Frequent Advisor

Re: Could not create file more than 2 GB

Hi,

As Bill Hassell said, your program sould be able to handle the 64bit file handler.( That does not mean that you should have a 64bit OS/system.) you can check the /usr/share/docs/lg_files.txt for more details.

From 10.20 onwards large file support is included in to hfs and jfs. This will be done by implementing the special calls to the system.

Mr. Nikhel, I am not sure about increasing the filessystem sizes using fsadm command. but it is mainly used to administer the filesystem. you can convert for nolargfiles support to largefile support etc.

-Shyam
Kids learn from masters, masters from mistakes.
Bill Hassell
Honored Contributor

Re: Could not create file more than 2 GB

Be sure to read the large files white paper in /usr/share/doc/lg_files.txt and note that unless a program has been converted to 64-bit file handling (lseek64, etc) then the program cannot create a file larger than 2Gb. The classic Unix backup utils (tar, cpio,dump, pax, etc) cannot backup these large files as they are not compatible with Unix standards.


Bill Hassell, sysadmin