Operating System - HP-UX
1832910 Members
2725 Online
110048 Solutions
New Discussion

Re: How to enable large file size

 
walter crasto_1
Frequent Advisor

How to enable large file size

Hi,

I want to create more than 2GB file on my HP-UX 11.0 OS system.

I have around 13GB free space in /opt also my ulimit is set to set to unlimited.

But still I am not able to create large file. Do I need to set any parameter.

regards
varian
11 REPLIES 11
Simon Hargrave
Honored Contributor

Re: How to enable large file size

fsadm -F vxfs -o largefiles /dev/vg00/lvol4 (or wherever your /opt is).

This will enable large files on your vxfs filesystem.
Simon Hargrave
Honored Contributor

Re: How to enable large file size

Sorry that should be the raw volume ie rlvol4

Also the filesystem needs to be unmounted before you can do this.

I would also question why you are enabling large files on /opt. Presumably your large files are some sort of data file, in which case they should really be on their own filesystem rather than on /opt which should remain fairly static.
Pedro Cirne
Esteemed Contributor

Re: How to enable large file size

Hi,

You must use the flag "-o largefiles" when creating the filesystem.

If you have Online JFS installed you can change it on-line with fsadm.

Check man fsadm_vxfs for details.

Enjoy :)
Martin Brachtl
Advisor

Re: How to enable large file size

It is also necessary to mount the filesystem with largefiles mount option. Check the /etc/fstab.
Lokesh_8
Advisor

Re: How to enable large file size

Hi anit,

Just make an entry in fstab.
Change your lvol with your /opt filesystem device name.
/dev/vg00/lvol7 /opt vxfs delaylog,largefiles 0 2

Regards,
lokesh
Victor Fridyev
Honored Contributor

Re: How to enable large file size

Hi,

AFAIK, the following must be done:
fsadm -F vxfs -o largefile /dev/vg00/rlvolX
and the file system can be mounted without the additional parameter in /etc/fstab.
HTH
Entities are not to be multiplied beyond necessity - RTFM
Simon Hargrave
Honored Contributor

Re: How to enable large file size

the largefiles option in fstab technically isn't required. this won't enable largefiles on a filesytem without it enabled. all it will do is ensure that if a filesystem doesn't have largefiles enabled it won't mount it.

a filesystem that has been fsadm'd to enable largefiles will still support largefiles even if it's not specified explicitly in fstab.
walter crasto_1
Frequent Advisor

Re: How to enable large file size

Hi,

Thanks for so many replies.
One quick question is that, if I run " fsadm -o largefiles" option on my rvol4 then will my existing data will lost ? Because it's mine /opt partitioned & I want to use this for testing purpose.

Regards
Varian
Simon Hargrave
Honored Contributor

Re: How to enable large file size

Your files will not be lost, it will simply enable support for an extra inode level.

Of course it goes without saying that you should ensure you have a full backup of the filesystem before performing this or any filesystem administration task.
walter crasto_1
Frequent Advisor

Re: How to enable large file size

Thanks Simon,

I gave following command,
"fsadm -F vxfs -o largefiles -r /dev/vg00/rlvol6 /opt "

But gave me error saying that /opt filesystem is not part of root inode.

Regards

Varian.
Simon Hargrave
Honored Contributor

Re: How to enable large file size

The command you want is:

fsadm -F vxfs -o largefiles /dev/vg00/rlvol6

You don't need "-r" nor "/opt" in the command line.

The filesystem needs to be unmounted too so make sure you stop any services locking the filesystem ("fuser -c /opt" will tell you the processes using it). It may be easier with /opt to use single-user mode if there are a lot of things running, though it shouldn't be essential.