Operating System - HP-UX
1748213 Members
3760 Online
108759 Solutions
New Discussion юеВ

Re: can largefile be enabled on default hpux 11.00?

 
SOLVED
Go to solution
colin chua_2
Occasional Advisor

can largefile be enabled on default hpux 11.00?

Hi Guys,

My DBA needs to create a an Oracle table which is larger than 2GB in file size.

I need to find out if the above is possible provided I do not have online JFS option installed.

Does it mean that I have to juz do a newfs on a new lvol than I'm gonna create and ensure that fstab for the new lvol has largefiles option turned on?

Cheers!
Colin.
14 REPLIES 14
Johnson Punniyalingam
Honored Contributor
Solution

Re: can largefile be enabled on default hpux 11.00?

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

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: can largefile be enabled on default hpux 11.00?

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.

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Steven E. Protter
Exalted Contributor

Re: can largefile be enabled on default hpux 11.00?

Shalom,

No, you have to do -o largefiles when using the newfs command.

You could make an alias that always uses this command option to replace newfs.

The problem though is you for 11.00 must add a parameter to the filesystem mount in /etc/fstab and that requires a manual edit.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
colin chua_2
Occasional Advisor

Re: can largefile be enabled on default hpux 11.00?

Hi Johnson,

Thanks for the quick reply.
Will try it out and let you know.

Cheers!
colin chua_2
Occasional Advisor

Re: can largefile be enabled on default hpux 11.00?

Btw would like to check with you guys also.

Would there be any issues or performance degradation if my system have a mixture of mount points with nolargefiles and largefiles running concurrently?

Thanks in advance.
T G Manikandan
Honored Contributor

Re: can largefile be enabled on default hpux 11.00?

We are just enabling the feature to create files > 2Gb. if there needs to be a file created with 2 Gb it creates and also creates other files.

There is no performance issue enabling large files or having several filesystems with largefiles and others with no largefiles enabled.

Sajjad Sahir
Honored Contributor

Re: can largefile be enabled on default hpux 11.00?



dear colin

first check online jfs is there or not

swlist -l product | grep -i jfs

if online jfs is there
fsadm -F vxfs -o largefiles /dev/vgname/rlvname

-o option will enable large files

thanks and regards

Sajjad Sahir
Steven E. Protter
Exalted Contributor

Re: can largefile be enabled on default hpux 11.00?

Shalom,

Any performance degradation would be minimal. Probably not noticeable.

However on a practical basis only using largefiles where largefiles are likely to be needed does prevent a single large file from filling a filesystem.

Note also that 11.00 is out of support and largefiles support is built into /etc/fstab on subsequent OS releases without having to specify.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James R. Ferguson
Acclaimed Contributor

Re: can largefile be enabled on default hpux 11.00?

Hi:

> SEP: Any performance degradation would be minimal.

There is _no_ performance penality associated with enabling largefiles for a filesystem. Its what you do with a large file.

> SEP: Note also that 11.00 is out of support and largefiles support is built into /etc/fstab on subsequent OS releases without having to specify.

The presence or absence of the 'largefiles' or 'nolargfiles' option in '/etc/fstab' is for mount-time protection only. The state of the flag in the _filesystem_ is what matters. This has been documented since the inception of large file support (in 10.x):

http://docs.hp.com/en/940/lgfiles4.pdf

Regards!

...JRF...