Operating System - HP-UX
1825683 Members
3631 Online
109686 Solutions
New Discussion

unable to cretae a file more than 2 GB

 
caj
Frequent Advisor

unable to cretae a file more than 2 GB

Hi ,

I have created a file system with largefiles enabled ,also i have mounted the file system with largefiles options enable .Still i am not able to create a file more than 2 GB .evon though fsadm and fstyp shows that largefiles enabled .then again i have executed fsadm -o largefiles /dev/vg00/lvolXX.Still the same problem .I have HP unix 11.00 installed on a N class server .

My question are is there any other patch need to be installed to support files more than 2 GB .or is there anything else that i need to ckeck

Pls advise


Thanks
ajeesh
9 REPLIES 9
Pete Randall
Outstanding Contributor

Re: unable to cretae a file more than 2 GB

Run this command:

fsadm /dev/vg00/rlvolXX

The result needs to be "largefiles" in order to create > 2GB.


Pete

Pete
Tom Smith_9
Frequent Advisor

Re: unable to cretae a file more than 2 GB

What are you using to create the file?
Patrick Wallek
Honored Contributor

Re: unable to cretae a file more than 2 GB

How are you trying to create the 2GB+ file? Is it with an application? It may be that the application does not support large files.
Fabio Ettore
Honored Contributor

Re: unable to cretae a file more than 2 GB

Hi,

how do you create the file greater than 2Gb, by a tool or what? What is the exact message that you are seeing? I would expect a message about "file too large" or something similar.
Please post this info to give more light on this problem + the output asked from Pete?

Thanks and regards,
Fabio
WISH? IMPROVEMENT!
Geoff Wild
Honored Contributor

Re: unable to cretae a file more than 2 GB

So, running a simple mount command shows your file systems with largefiles?

Well, on HP-UX 11.0, you need to upgrade your version of JFS, because the Maximum Supported File Size is 2GB with JFS 3.1.

Better yet, upgrade to atleast HP-UX 11.11.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
spex
Honored Contributor

Re: unable to cretae a file more than 2 GB

Ajeesh,

The version of tar that ships with HP-UX 11.00 has a 2GB size limit. If tar is being used to create the file, it could be the cause of the limitation.

If this is the case, you could split the tarball into smaller chunks, compress the file before tar'ing, or get a different version of tar without this limitation, such as GNU tar.

PCS
Ninad_1
Honored Contributor

Re: unable to cretae a file more than 2 GB

I have HP-UX 11.00 with JFS 3.1 and I am having files greater than 2 GB for filesystems with largefiles.
You can do a simple test to confirm this.
check if you have free space greate than say 2.5 GB using bdf, then use
prealloc testfile 2684354560

This will create a file of 2.5 GB - this will take a while.
Post any error messages while creating this file. If it succeds then your problem is something else - like application cannot create largefile.

Regards,
Ninad
Geoff Wild
Honored Contributor

Re: unable to cretae a file more than 2 GB

Well shiver me timbers - Ninad is right - just checked our last 11.0 server - and lo and behold - a file sized 2.2GB!

JFS 3.1

Maybe a patch?

# grep -i vxfs show_patches.out
PHCO_17455 mkfs_vxfs VxVM coexistence patch
PHCO_18093 fsadm_vxfs(1M) cumulative patch
PHCO_18462 diskusg_vxfs(1M) cumulative patch
PHCO_18472 fs_wrapper(1M) - Multiple VxFS versions.
PHCO_23651 fsck_vxfs(1M) cumulative patch
PHKL_15940 VxFS add vx_dmattr_tbl_init() function
PHKL_23193 VxFS cumulative patch
PHKL_24745 VxFS 31 OnlineJFS cumulative patch
PHKL_26476 Panic extending vxfs filesystem beyond 128GB
PHKL_28105 VxFS cumulative,I/O Throttling,dirty inval
PHKL_28552 Fix VxFS DMAPI DPFs and Memory Leak
PHKL_28632 VxFS fsadm hang;vx_nospace on NFS write.
PHKL_29693 VxFS 3.1 cumulative patch: CR_EIEM
PHKL_32257 Adv VxFS snapshot filesystem fixes

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
James R. Ferguson
Acclaimed Contributor

Re: unable to cretae a file more than 2 GB

Hi:

Verify the *version* of the JFS filesystem in which you are trying to create the large file.

# fstyp -v /dev/vgNN/lvolX

If the version is version-2, the maximum supported file size is 2GB with JFS 3.1. Version-3 layouts support 1TB files.

You should be able to upgrade the version with 'vxupgrade'. See the manpages for more information.

Regards!

...JRF...