Operating System - HP-UX
1827677 Members
3874 Online
109967 Solutions
New Discussion

How to create a file larger than 2Gb?

 
SOLVED
Go to solution
Guus van Luijn
Occasional Advisor

How to create a file larger than 2Gb?

I need to create a file larger than 2 Gb. If I do this I receive the error "File too Large"
What is neededto create files larger than 2Gb?
7 REPLIES 7
Kenan Erdey
Honored Contributor

Re: How to create a file larger than 2Gb?

did you give the largefiles option (with -o largefiles) when creating logical volume ?
Computers have lots of memory but no imagination
Arturo Galbiati
Esteemed Contributor
Solution

Re: How to create a file larger than 2Gb?

Arunvijai_4
Honored Contributor

Re: How to create a file larger than 2Gb?

Hi,

You need to enable large file support. If you have OnlineJFS installed, you can do it by

# fsadm -o largefiles /mount_point

If you don't have OnineJFS,

# fsadm -F vxfs -o largefiles /dev/vgXX/rlvolY

-Arun

"A ship in the harbor is safe, but that is not what ships are built for"
Guus van Luijn
Occasional Advisor

Re: How to create a file larger than 2Gb?

Hi Arun,

How do I know if OnlineJFS is installed?
I'm not a sysadmin, so I have to give my system support team as much info as possible ;-)

Guus
Arunvijai_4
Honored Contributor

Re: How to create a file larger than 2Gb?

Hi,

You can find out by, # swlist -l product |grep -i jfs

-Arun

"A ship in the harbor is safe, but that is not what ships are built for"
Darrel Louis
Honored Contributor

Re: How to create a file larger than 2Gb?

Hi Guus,

Type the following:
swlist -l fileset|grep -i jfs
swlist -l fileset|grep -i vxfs

Check version
fstyp -v /dev/vg00/lvol5

Check if Filesystem has largefiles enabled:
Example
fsadm -F vxfs /dev/vg02/lvol1
If largefiles isn't enabled, enable it with the following command.
fsadm -F vxfs -o largefiles /dev/vg02/lvol1

GoodLuck

Darrel
Guus van Luijn
Occasional Advisor

Re: How to create a file larger than 2Gb?

I have found a solution for the problem