Operating System - HP-UX
1821540 Members
2177 Online
109633 Solutions
New Discussion юеВ

NFSv3 and automount/autofs

 
SOLVED
Go to solution
Aaron Caine
Advisor

NFSv3 and automount/autofs

Hello. I'm using automount on a HP-UX 11.00 box, and trying to force it to mount using NFS version 3. The fileserver is Linux based, kernel 2.4, with nfs version 3 running.

If I do a mount on the HP box using -overs=3, the data will mount NFSv3 (confirmed with nfsstat). I do not want to add the -overs=3 to my mount map, as it will cause trouble with my other automount clients.

By default, although both client and server use nfsv3, automount seems to want to mount using nfsv2. It is always spoken that the servers use the highest version first, and then work backwards, but that is not the behaivor that I am seeing here.

rpcinfo -p shows both v2 & v3 of nfs running on the server & client machines.

Is there a way to disable nfsv2 in the HP kernel, or to force it to mount v3 with automount?

Also -- does anyone have any wisdom about Linux server/HP-UX client and file locking? I'm having a heck of a time... Nothing will lock.

Thanks in advance! -- anc
3 REPLIES 3
JACQUET
Frequent Advisor
Solution

Re: NFSv3 and automount/autofs

Hello,

I could suggest, if you want only to use nfsV3 on your HP-UX system to set the parameter
AUTOFS=1 in the /etc/rc.config.d/nfsconf and then restart nfs on your server in /sbin/init.d/nfs.client stop|start and /sbin/init.d/nfs.server stop|start

Hope it answers your question.
PJA
Victor_5
Trusted Contributor

Re: NFSv3 and automount/autofs

The automounter does not support NFS PV3, automounted file systems will be mounted with NFS PV2. See details at

http://docs.hp.com/hpux/onlinedocs/B1031-90048/B1031-90048.html

Aaron Caine
Advisor

Re: NFSv3 and automount/autofs

Excellent... AUTOFS=1 forced NFS PV3 mounting!

Thanks! --anc