Forcing an NFS export to version 2

When mounting an NFS file system on an NFS client, most mount commands allow something like "-o vers=2" to force use of the nfs version2 protocol.
Is there any equivalent for the NFS server?
That is, are there any options for the share/export commands, or any configuration files
In particular I am looking at Compaq Tru64 unix.

I have a person trying to use ClearCase with this NFS.
There is a statement that "ClearCase views exported over NFS only support NFS version2 on Tru64 unix."
I want to know how to force this from the server side so that the sharepoint does not have to be hard mounted on all clients, which are potentially anything from PCs to different unixes to VM to OS/390.
sssraAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ahoffmannCommented:
don't know True64, but have you tried:
  mount -t nfs2 ....
0
sssraAuthor Commented:
Edited text of question.
0
ahoffmannCommented:
from which OS do you want to mount True64?
What are the messages in the log files (syslog, messages or whatever)?
0
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

sssraAuthor Commented:
Edited text of question.
0
ahoffmannCommented:
ClearCase, PC (assuming some kind of M$)  and NFS ??
Probably you better install and run a pcnfsd on your True64.
0
sstoukCommented:
Most of the nowdays NFS Clients support both NFS Version 2 and NFS Version 3.
Generally the communication starts with NFS version 3 and if this version is not supported by the NFS Server, then the Client swiches to NFS version 2.
So what you probably nead to do is to disable the support of NFS Version 3 on the server. Usually there's an NFS daemon that is responsible for the accepting the NFS RPC calls. If you have a UNIX type NFS Server then by running the "rpcinfo -p <HOSTNAME>" command you can see the list of the RPC daemons running on the NFS Server. You might see that there are several NFS daemons for different NFS Version and different protocols (I mean UDP and TCP) running. The solution could be to consult the manual on starting up the NFS daemon and to make it to listen only to NFS verison 2 calls. (Simply stop the processes where nfs daemon accepts version 3 and that should be it!)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sssraAuthor Commented:
Version 3 can be disabled at the daemon with rpcinfo -d.

I was really after disabling it for a specific export, but it seems the answer is that this cannot be done.
0
sstoukCommented:
You're correct, this cannot be done for a specific Exported directory. Because of the order in which the NFS Communication is established.
First, the Client and a Server check the version to communicate over and then the specific exported directory is requested by the Client. Depening on the version, different parameters and configuration options can be requested, so the version should be agreed upon first, and it's on the HOST (not on the directory) level. Thanks for the points.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.