Operating System - HP-UX
1825662 Members
3531 Online
109686 Solutions
New Discussion

How to enable largefile support on HP-UX 11.0

 
SOLVED
Go to solution
Marcos Trinidad
Occasional Contributor

How to enable largefile support on HP-UX 11.0

Hello, I am in need of some assistance.

What is the proper procedure for enabling largefile support on a specific existing volume? Or do I have to enable this support for all volumes. Does the conversion process take long? The volume is 39GB. Do I need to make a backup and restore?

Thanks so much in advance.


-Marcos
11 REPLIES 11
Sridhar Bhaskarla
Honored Contributor

Re: How to enable largefile support on HP-UX 11.0

Marcos,

If you don't have OnlineJFS installed, you need to recreate the logical volume using -l option. If you have OnlineJFS, you can easily do it by using the command

#fsadm -o largefiles /mount_point



-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Uday_S_Ankolekar
Honored Contributor

Re: How to enable largefile support on HP-UX 11.0

Hi,

You can use fsadm for largefile support

fsadm -F filetype (ex:hfs) -o largefiles /dev/vgnn/lvolnn

If you have online JFS then you need to run above command

Goodluck
-USA..
Good Luck..
Sanjay_6
Honored Contributor

Re: How to enable largefile support on HP-UX 11.0

Sridhar Bhaskarla
Honored Contributor

Re: How to enable largefile support on HP-UX 11.0

Oops..my message was not very clear.. dunno where my mind was... You need to specify -o largefiles while creating the file system.

#newfs -F vxfs -o largefiles /dev/vgxx/rlvolx

if you don't have OnlineJFS.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Marcos Trinidad
Occasional Contributor

Re: How to enable largefile support on HP-UX 11.0

Unfortunately I don't have OnlineJFS, however I am considering purchasing it. Is it as easy as purchasing OnlineJFS and then running the #fsadm -o largefiles /mount_point?


-Marcos
Sridhar Bhaskarla
Honored Contributor

Re: How to enable largefile support on HP-UX 11.0

Yes it is.. But you need to reboot the system after installing OnlineJFS.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sanjay_6
Honored Contributor
Solution

Re: How to enable largefile support on HP-UX 11.0

Hi Marcos,

Even if you don't have onlineJFS you can add the largefiles support to your logical volumes. If you have already created the lv, proceed like this,

fsadm -F vxfs /dev/vg_name/lv_name

Substitute vxfs with hfs, if you have hfs filesystems.The above command should return
nomultifilesets
nolargefiles

If it returns no largefiles, to add largefiles support,

umount /dev/vg_name/lv_name
fsadm -F vxfs -o largefiles /dev/vg_name/lv_name

Next modify the /etc/fstab file and add the option largefiles to the list of vxfs options so that the next time the filesystem gets mounted, it will be mounted with the largefiles enabled.

hope this helps.

Regds

James R. Ferguson
Acclaimed Contributor

Re: How to enable largefile support on HP-UX 11.0

Hi:

To enable largefile support on an *existing* filesystem you will only need to unmount the filesystem if you do not have Online JFS and/or the filesystem isn't VxFS. To enable the support, use the raw device file:

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

The conversion takes just a few seconds.

To see if largefiles support is enabled or disabled for a filesystem, do:

# fsadm -F vsfs /mountpoint

The "HP-UX Large Files" whitepaper can be found here:

http://docs.hp.com/hpux/onlinedocs/os/lgfiles4.pdf

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: How to enable largefile support on HP-UX 11.0

Hi Marcos:

It is not absolutely necessary to add the 'largefiles' option to /etc/fstab to be able to mount a largefiles-enabled filesystem. See the discusssion of mount options and mount protection in the white paper I cited, above.

Regards!

...JRF...
IT Response
Esteemed Contributor

Re: How to enable largefile support on HP-UX 11.0

You don't needd Online JFS installed to do this.

Here's the syntax :

umount /
/usr/sbin/fsadm -F hfs -o largefiles /dev/vgxx/rlvolx
mount /
IT Response
Esteemed Contributor

Re: How to enable largefile support on HP-UX 11.0

Correction:

The mount command should have read:

mount -F hfs -o largefiles /dev/vgxx/lvolx /mountpoint


...and do not forget to add the "largefiles" mount option in /etc/fstab.