System Administration Guide: Network Services

ProcedureHow to Select Different Versions of NFS on a Server

If you choose not to use NFS version 4, use this procedure.

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Edit the /etc/default/nfs file.

    For example, if you want the server to provide only version 3, set the values for both NFS_SERVER_VERSMAX and NFS_SERVER_VERSMIN to 3. For a list of keywords and their values, refer to Keywords for the /etc/default/nfs File.


    NFS_SERVER_VERSMAX=value
    NFS_SERVER_VERSMIN=value
    
    value

    Provide the version number.


    Note –

    By default, these lines are commented. Remember to remove the pound (#) sign, also.


  3. Change SMF parameters to set the NFS version numbers.

    For example, if you want the server to provide only version 3, set the values for both the server_vermax and server_versmin to 3 as shown below:


    # sharectl set -p server_vermax=3 nfs
    # sharectl set -p server_vermin=3 nfs
    
  4. (Optional) If you want to disable server delegation, include this line in the /etc/default/nfs file.


    NFS_SERVER_DELEGATION=off
    

    Note –

    In NFS version 4, server delegation is enabled by default. For more information, see Delegation in NFS Version 4.


  5. (Optional) If you want to set a common domain for clients and servers, include this line in the /etc/default/nfs file.


    NFSMAPID_DOMAIN=my.comany.com
    
    my.comany.com

    Provide the common domain

    For more information, refer to nfsmapid Daemon.

  6. Check if the NFS service is running on the server.

    Type the following command:


    # svcs network/nfs/server
    

    This command reports whether the NFS server service is online or disabled.

  7. (Optional) If necessary, disable the NFS service.

    If you discovered from the previous step that the NFS service is online, type the following command to disable the service.


    # svcadm disable network/nfs/server
    

    Note –

    If you need to configure your NFS service, refer to How to Set Up Automatic File-System Sharing.


  8. Enable the NFS service.

    Type the following command to enable the service.


    # svcadm enable network/nfs/server
    
See Also

Version Negotiation in NFS