Home / NFS server configuration file in AlmaLinux 8, CentOS 8

NFS server configuration file in AlmaLinux 8, CentOS 8

The new configuration file for NFS server setup in AlmaLinux 8 is /etc/nfs.conf. /etc/sysconfig/nfs is deprecated and replaced by /etc/nfs.conf.

# cat /etc/nfs.conf
#
# This is a general configuration for the
# NFS daemons and tools
#
[general]# pipefs-directory=/var/lib/nfs/rpc_pipefs
#
[exportfs]# debug=0
#
[gssd]# use-memcache=0
# use-machine-creds=1
use-gss-proxy = yes
# avoid-dns=1
# limit-to-legacy-enctypes=0
# context-timeout=0
# rpc-timeout=5
# keytab-file=/etc/krb5.keytab
# cred-cache-directory=
# preferred-realm=
#
[lockd]# port=0
# udp-port=0
#
[mountd]# debug=0
# manage_gids=n
# descriptors=0
# port=0
# threads=1
# reverse-lookup=n
# state-directory-path=/var/lib/nfs
# ha-callout=
#
[nfsdcltrack]# debug=0
# storagedir=/var/lib/nfs/nfsdcltrack
#
[nfsd]# debug=0
# threads=8
# host=
# port=0

# grace-time=90
# lease-time=90
# tcp=y
# vers2=n
# vers3=y
# vers4=y
# vers4.0=y
# vers4.1=y
# vers4.2=y
# rdma=n
#
[statd]# debug=0
# port=0
# outgoing-port=0
# name=
# state-directory-path=/var/lib/nfs/statd
# ha-callout=
#
[sm-notify]# debug=0
# retry-time=900
# outgoing-port=
# outgoing-addr=
# lift-grace=y

Leave a Reply