1753819 Members
9752 Online
108805 Solutions
New Discussion юеВ

largefiles

 
SOLVED
Go to solution
Jun Zhang_4
Regular Advisor

largefiles

Can I add the largefiles option to a vxfs file system without deleting the lvol and recreate it? and how?

Jun Z
Food lover
12 REPLIES 12
Jun Zhang_4
Regular Advisor

Re: largefiles

I don't have OnlineJFS.
Food lover
Steven E. Protter
Exalted Contributor

Re: largefiles

large files is enabled when creating the filesystem.

newfs -F vxfs -o largefiles /dev/vg00/rlvol12

for example

It can be enabled after the fact with fsadm command

On 11.00 and earlier largefiles is an option that must be included in /etc/fstab

It can not be included in mount options of 11.11 and up.

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
G. Vrijhoeven
Honored Contributor

Re: largefiles

Hi,

With fsadm -F vxfs -o largefiles /mountpoint you can turn it on online.

Gideon
Pete Randall
Outstanding Contributor

Re: largefiles

As Gideon states, you can do it online whether you have OnlineJFS or not.


Pete

Pete
Todd McDaniel_1
Honored Contributor
Solution

Re: largefiles

You only need JFS license for the advanced features like:

convosync, mincache, etc...

You will also need to add and entry to your /etc/fstab at the end of the line just before the numbers for your mountpoint.


/dev/vg00/lvol /mount/point vxfs largefiles 0 2
Unix, the other white meat.
Ralph Haefner
Frequent Advisor

Re: largefiles

Hello,

I'm a real newbie at HP/UX, but I've worked on Solaris for years, so please excuse my ignorance of some HP specifics. I know I've done this on a Solaris machine before, so I'd expect it to work the same. Please verify that what I say below is correct on your system by checking manpages or usage statements just to be sure it isn't different.

There is a command in /opt/VRTSvxfs/sbin named fsadm. You can change the filesystem options using that. The syntax would be:

fsadm -F vxfs -o largefiles /path/to/mountpoint

Make sure after you run it that the correct flags appear in your /etc/vfstab (or the HP/UX equivalent) so that it keeps the largefiles setting after booting. I can't remember if it made the change permanent that way or not.

And as always, I'd recommend trying it on a test box before messing with filesystem settings on a live production box, especially when your info came from some Solaris guy :-)
Ralph Haefner
Frequent Advisor

Re: largefiles

Holy cow! I respond 11 minutes after the post and still 5 people beat me to it!

Obviously, you should do what they said and ignore mine. Sounds like exactly the same procedure, but they have the information specific to HP that I didn't know.
Jun Zhang_4
Regular Advisor

Re: largefiles

I did,
fsadm -F vxfs -o largefiles /dirname
added largefiles to the fstab entry
umount /dirname
mount /dirname

smoothly.

Before copying a file larger than 2GB, is there a way to show that filesystem is OK, with the largefile attribute, or I don't need to?

Jun Z
Food lover
Todd McDaniel_1
Honored Contributor

Re: largefiles

hehe Ralph you gotta be faast here!!



no points here please...
Unix, the other white meat.