If you want to use a version of NFS other than NFS Version 4, you can select a different version:
If you want to select a different version of NFS on the NFS server, see How to Select Different Versions of NFS on a Server.
If you want to select a different version of NFS on the NFS client, see How to Select Different Versions of NFS on a Client.
If you want to select a different version of NFS on the NFS client using the command line, see How to Use the mount Command to Select Different Versions of NFS on a Client.
You can select another version of NFS if you choose not to use NFS Version 4, which is set by default.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.
For example, if you want the server to provide only NFS Version 3, set the values for both the server_versmax and server_versmin parameters to 3.
$ sharectl set -p server_versmax=3 nfs $ sharectl set -p server_versmin=3 nfs
$ sharectl set -p server_delegation=off nfs
NFS server delegation enables an NFS client to cache files until another NFS client needs access to the same files. In NFS Version 4, server delegation is enabled by default. For more information, see Delegation in NFS Version 4.
You can set a common domain for the clients and servers to enable user ID or group ID mapping between the client and the server.
$ sharectl set -p nfsmapid_domain=my.example.com nfs
where my.example.com provides the common domain name.
For more information about the nfsmapid daemon, see NFS Daemons.
$ svcs network/nfs/server
If the NFS service is offline, type the following command to enable the service:
$ svcadm enable network/nfs/server
For information about configuring the NFS service, see How to Set Up Automatic File System Sharing.
See Also
The following procedure explains how to control which version of NFS is used on the client. The NFS version that is set by default is NFS Version 4.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.
For example, if you want all file systems to be mounted using the NFS Version 3 protocol, set the values for both the client_versmax and client_versmin parameters to 3.
$ sharectl set -p client_versmax=3 nfs $ sharectl set -p client_versmin=3 nfs
$ mount server-name:/share-point /local-dir
Name of the server.
Path of the remote directory
Path of the local mount point
See Also
This procedure explains how to use the mount command to control which version of NFS is used on a client for a particular mount. To find out how to modify the NFS version for all file systems mounted by the client, see How to Select Different Versions of NFS on a Client.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.
$ mount -o vers=value server-name:/share-point /local-dir
NFS version number
Name of the server
Path of the remote directory
Path of the local mount point
See Also