How to Select Different Versions of NFS on a Server

You can select another version of NFS if you choose not to use NFS Version 4.1, which is set by default.

  1. Become an administrator.
  2. Change SMF parameters to set the NFS Version numbers.

    For example, if you want the server to provide only NFS Version 4.0, set the values for both the server_versmax and server_versmin parameters to 4.0.

    # sharectl set -p server_versmax=4.0 nfs
    # sharectl set -p server_versmin=4.0 nfs
  3. If you want to disable server delegation, change the server_delegation property.
    # 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.

  4. If you want to set a common domain for clients and servers, change the nfsmapid_domain property.

    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.

  5. Check whether the NFS service is running on the server.
    # svcs network/nfs/server
  6. If necessary, enable the NFS service.

    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.