Install > Preinstallation tasks > System requirements for installation > Check the NFS services configuration

Verify the NFS services configuration

NFSv2 and NFSv3 must be enabled and NFSv4 must be disabled to support mounting file systems (MOUNTD). You must also configure the NFS/RPC server ports that are assigned.

NFSv4 is enabled by default for Red Hat Enterprise Linux, SUSE Linux Enterprise Server.

NFS services configuration

Perform the following tasks based on your operating system.

  • Red Hat Enterprise Linux

    If NFSv2 and NFSv3 are not enabled, you must modify the value of the following parameters as "yes" in the /etc/sysconfig/nfs folder:

    MOUNTD_NFS_V2=yes

    MOUNTD_NFS_V3=yes

    To disable NFSv4 support for nfsd, add the following parameter in the /etc/sysconfig/nfs folder.

    RPCNFSDARGS="--no-nfs-version 4"

    • SUSE Linux Enterprise Server

      In SUSE Linux Enterprise Server, NFSv2 and NFSv3 are enabled by default. Therefore, you do not need to manually modify the MOUNTD parameters in /etc/init.d/nfsserver.

      To disable NFSv4 support for nfsd, add the following parameter in the /etc/sysconfig/nfs folder:

      NFS4_SUPPORT="no"

Configuring NFS/RPC server ports

For a list of ports used by SA, see Required open ports. Perform the following tasks based on your operating system:

  • Red Hat Enterprise Linux

    Add or enable the following parameters in /etc/sysconfig/nfs:

    MOUNTD_PORT=<choose a non-SA port number>
    LOCKD_TCPPORT=<choose a non-SA port number>
    LOCKD_UDPPORT=<choose a non-SA port number>
    STATD_PORT=<choose a non-SA port number>
    STATD_OUTGOING_PORT=<choose a non-SA port number>

    If you have rquotad enabled, enable this parameter in /etc/sysconfig/nfs:

    RQUOTAD_PORT=<choose a non-SA port number>

  • SUSE Linux Enterprise Server

    • For MOUNTD parameters, modify or add this parameter in /etc/sysconfig/nfs:

      MOUNTD_PORT=<choose a non-SA port number>

    • For lockd parameters, create or edit /etc/modprobe.d/lockd and add the following:

      options lockd nlm_udpport=<choose a non-SA port number>

      nlm_tcpport=<choose a non-SA port number>

    • For statd parameters, if the parameters are installed and running, edit /etc/init.d/nfsserver, search for "startproc /usr/sbin/rpc.statd" and append the -p parameter for specifying a non-SA port.

      For example:

      startproc /usr/sbin/rpc.statd --no-notify -p<choose a non-SA port number>

    • For rquotad parameter, if the parameter is already installed and running, edit /etc/services and add or edit TCP/UDP ports for rquotad.

      For example:

      rquotad <choose a non-SA port number>/tcp

      rquotad <choose a non-SA port number>/udp

Restarting the NFS service

After the required changes are made, restart the NFS server service:

  • Red Hat Enterprise Linux

    /sbin/service nfs restart

  • SUSE Linux Enterprise Server

    /sbin/service nfsserver restart