Operating System - HP-UX
1844876 Members
2255 Online
110233 Solutions
New Discussion

Re: NFS mount with largefiles option

 
Ha_6
New Member

NFS mount with largefiles option

Hi!! All.

Can I use the largefiles option in NFS mount??
I have a NetApp NAS Array.
And I did export a 500GB NAS partition.

I mounted the 500GB NAS partition on HP N-class with NFS - bg,soft,read/write - options.
But I could not create a file that over 2GB size.
The HP N-class has HP-UX 11.0.
and "ulimit -a" -> file unlimit.

Thanks in advanced

Hanliii.
8 REPLIES 8
harry d brown jr
Honored Contributor

Re: NFS mount with largefiles option

32 bit or 64 bit 11.00 ???

live free or die
harry
Live Free or Die
James A. Donovan
Honored Contributor

Re: NFS mount with largefiles option

Are you mounting the NAS device using version 2 or version 3 of NFS?

# nfsstat -m "NFS mountpoint"

Look at the "vers" field.

Version 2 of NFS doesn't support files larger than 2 GB.
Remember, wherever you go, there you are...
James A. Donovan
Honored Contributor

Re: NFS mount with largefiles option

....oh, and you should also make sure the filer has NFS version 3 enabled!

options nfs.v3.enable on
Remember, wherever you go, there you are...
Ha_6
New Member

Re: NFS mount with largefiles option

Thanks all..

Please reffer to the attached file...

Thanks in advanced...

Hanliii.
A. Clay Stephenson
Acclaimed Contributor

Re: NFS mount with largefiles option

Have you made certain that quotas are not in effect. You should mount with the noquota option and make sure that the NFS server does not have quotas enabled.
If it ain't broke, I can fix that.
PVR
Valued Contributor

Re: NFS mount with largefiles option

NFS Ver 2 doesnot support file size greater than 2GB.
In HP unix 11.0 default is NFS ver 2 and to support ver 3, we need to install a patch and make the changes in /etc/rc.config.d/nfsconf (nfs_tcp=1). In HP UX 11i default is nfs version3.

Don't give up. Try till success...
PVR
Valued Contributor

Re: NFS mount with largefiles option

Suppose at your NAS side it is NFS ver 3 and client side ver 2, you shall get the feature of ver 2 from that client(here the client is HP N class server)

Don't give up. Try till success...
Brian Hackley
Honored Contributor

Re: NFS mount with largefiles option

Hanlii,

The data that you supplied shows that both the Filer and the HP-UX NFS filesystem mount are set up for NFS Version 3. It also shows the Filer enabled largefiles for NFS Version 2 and has NFS Version 3 and 4 enabled. Largefiles works over both TCP and UDP of NFS with HP's NFS Version 3. The HP box is 64 bits. HP 11.0 NFS Supports Filesystems up to 2TB in size, so that should not be an issue.

Your problem is more subtle than meets the eye:

It is POSSIBLE that if the largefiles were enabled AFTER the filer shared /exported the filesystem, that it is the cause of the error.

Less likely but still possible:
Was the filesystem under the NFS mountpoint
on the HP-UX system an HFS filesystem? In that case may want to mount on an Advanced JFS filesystem; or if not available, VXFS.

Was the filesystem under the NFS mountpoint HPUX system created with Largefiles enabled? If you did not do this then that may well be the issue. Use fsadm -F vxfs /filesystem-name to check this. For example:
# fsadm -F vxfs -v /home
vxfs fsadm: using device /dev/vg00/rlvol5
nolargefiles

What commands used to test? Dave Olkers's book "Optimizing NFS Performance" is a great resource. On 11.0 create /dev/zero if it does not exist: mknod /dev/zero c 3 4
Use dd to create a filesystem slightly over 2GB:
# dd if=/dev/zero of=/bigfs/bigfile bs=32k count=63000
63000+0 records in
63000+0 records out
If it fails you'll get
"I/O error" and a record count at the time of error. Usually the error is coming from the NFS Server, in this case the filer.

Final comment:
Check your versions of NFS Patches + dependencies. Current 11.0 NFS/ONC patch is PHNE_28982 -- rating is 2 so its gotten good exposure in the real world.

HTM,
-> Brian Hackley

Ask me about telecommuting!