Scroll to navigation

GANESHA-CORE-CONFIG(8) NFS-Ganesha GANESHA-CORE-CONFIG(8)

NAME

ganesha-core-config - NFS Ganesha Core Configuration File

SYNOPSIS

/etc/ganesha/ganesha.conf

DESCRIPTION

NFS-Ganesha reads the configuration data from: | /etc/ganesha/ganesha.conf

This file lists NFS related core config options.

NFS_CORE_PARAM {}

Core parameters:

Port number used by NFS Protocol.
Port number used by MNT Protocol.
Port number used by NLM Protocol.
Port number used by Rquota Protocol.
The address to which to bind for our listening port.
RPC program number for NFS.
RPC program number for MNT.
RPC program number for NLM.
For NFSv3, whether to drop rather than reply to requests yielding I/O errors. It results in client retry.
For NFSv3, whether to drop rather than reply to requests yielding invalid argument errors. False by default and settable with Drop_Inval_Errors.
For NFSv3, whether to drop rather than reply to requests yielding delay errors. False by default and settable with Drop_Delay_Errors.
Path to the directory containing server specific modules
Whether to collect performance statistics. By default the performance counting is enabled. Enable_NFS_Stats can be enabled or disabled dynamically via ganesha_stats.
Whether to use fast stats. If enabled this will skip statistics counters collection for per client and per export.
Whether to count and collect FSAL specific performance statistics. Enable_FSAL_Stats can be enabled or disabled dynamically via ganesha_stats
Whether to count and collect "detailed statistics" for NFSv3. Enable_FULLV3_Stats can be enabled or disabled dynamically via ganesha_stats.
Whether to count and collect "detailed statistics" for NFSv4. Enable_FULLV4_Stats can be enabled or disabled dynamically via ganesha_stats.
Whether to count and collect statistics for all NFS operations requested by NFS clients. Enable_CLNT_AllOps_Stats can be enabled or disabled dynamically via ganesha_stats.
Whether to use short NFS file handle to accommodate VMware NFS client. Enable this if you have a VMware NFSv3 client. VMware NFSv3 client has a max limit of 56 byte file handles.
How long the server will trust information it got by calling getgroups() when "Manage_Gids = TRUE" is used in a export entry.
Frequency of dbus health heartbeat in ms.
Whether to support the Network Lock Manager protocol.
Polling interval for blocked lock polling thread
3, 4, NFS3, NFS4, V3, V4, NFSv3, NFSv4, 9P

The protocols that Ganesha will listen for. This is a hard limit, as this list determines which sockets are opened. This list can be restricted per export, but cannot be expanded.

Whether to use the supplied name rather than the IP address in NSM operations.
Whether this Ganesha is part of a cluster of Ganeshas. Its vendor specific option.
Whether to use device major/minor for fsid.
Whether to use Pseudo (true) or Path (false) for NFS v3 and 9P mounts.

This option defaults to false for backward compatibility, however, for new setups, it's strongly recommended to be set true since it then means the same server path for the mount is used for both v3 and v4.x.

Note that as an export related option, it seems very desirable to be able to change this on config reload, unfortunately, at the moment it is NOT changeable on config reload. A restart is necessary to change this.

DBus name prefix. Required if one wants to run multiple ganesha instances on single host. The prefix should be different for every ganesha instance. If this is set, the dbus name will be <prefix>.org.ganesha.nfsd
Whether to create UDP listeners for Mount, NFS, NLM, RQUOTA, and register them with portmapper. Set to false, e.g., to run as non-root. Set to Mount to enable only Mount UDP listener.
Maximum number of concurrent uid2grp requests that can be made by ganesha. In environments with a slow Directory Service Provider, where users are part of large number of groups, and Manage_Gids is set to True, uid2grp queries made by ganesha can fail if a large number of them are made in parallel. This option throttles the number of concurrent uid2grp queries that ganesha makes.
Set true to enforce when v3 file handle used for v4
Response size of readdir request. Suggested values are 4096,8192,16384 and 32768. Recommended 16384(16K) if readdir(ls command) operation performed on directory which has more files.
Maximum number of directory entries returned for a readdir request. Suggested values are 4096,8192,16384 and 32768. Recommended 16384(16K) if readdir(ls command) operation performed on directory which has more files.
Whether to call extra getattrs after read, in order to check file size and validate the EOF flag correctness. Needed for ESXi client compatibility when FSAL's don't set it correctly.

Parameters controlling TCP DRC behavior:

Whether to disable the DRC entirely.
Number of partitions in the tree for the TCP DRC.
Maximum number of requests in a transport's DRC.
Number of entries in the O(1) front-end cache to a TCP Duplicate Request Cache.
High water mark for a TCP connection's DRC at which to start retiring entries if we can.
Number of partitions in the recycle tree that holds per-connection DRCs so they can be used on reconnection (or recycled.)
How long to wait (in seconds) before freeing the DRC of a disconnected client.
Whether to use a checksum to match requests as well as the XID

Parameters controlling UDP DRC behavior:

Number of partitions in the tree for the UDP DRC.
Maximum number of requests in the UDP DRC.
Number of entries in the O(1) front-end cache to the UDP Duplicate Request Cache.
High water mark for the UDP DRC at which to start retiring entries if we can
Whether to use a checksum to match requests as well as the XID.

Parameters affecting the relation with TIRPC:


Parameters for TCP:

Whether tcp sockets should use SO_KEEPALIVE
Maximum number of TCP probes before dropping the connection
Idle time before TCP starts to send keepalive probes
Time between each keepalive probe

NFS_IP_NAME {}

Configuration for hash table for NFS Name/IP map.
Expiration time for ip-name mappings.

NFS_KRB5 {}

PrincipalName(string, default "nfs")

Kerberos keytab.
The ganesha credential cache.
Whether to activate Kerberos 5. Defaults to true (if Kerberos support is compiled in)

NFSv4 {}

Whether to disable the NFSv4 grace period.
The NFSv4 lease lifetime.
The NFS grace period.
Domain to use if we aren't using the nfsidmap.
Path to the idmap configuration file.
Whether to use local password (PAM, on Linux) rather than nfsidmap.
Whether to allow bare numeric IDs in NFSv4 owner and group identifiers.
Whether to ONLY use bare numeric IDs in NFSv4 owner and group identifiers.
Whether to allow delegations.
Delay after which server will retry a recall in case of failures
Whether this a pNFS MDS server. For FSAL Gluster, if this is true, set pnfs_mds in gluster block as well.
Whether this a pNFS DS server.
Use different backend for client info:
  • fs : filesystem
  • fs_ng: filesystem (better resiliency)
  • rados_kv : rados key-value
  • rados_ng : rados key-value (better resiliency)
  • rados_cluster: clustered rados backend (active/active)

Specify the root recovery directory for fs or fs_ng recovery backends.
Specify the recovery directory name for fs or fs_ng recovery backends.
Specify the recovery old directory name for fs recovery backend.
List of supported NFSV4 minor version numbers.
Size of the NFSv4.1 slot table
Set true to enforce valid UTF-8 for path components and compound tags
Specify a max limit on number of NFS4 ClientIDs supported by the server. With filesystem recovery backend, each ClientID translates to one directory. With certain workloads, this could result in reaching inode limits of the filesystem that /var/lib/nfs/ganesha is part of. The above limit can be used as a guardrail to prevent getting into this situation.
Specify the value which is common for all cluster nodes. For e.g., Name of the cluster or cluster-id.

RADOS_KV {}

Connection to ceph cluster, should be file path for ceph configuration.
User ID to ceph cluster.
RADOS Namespace in which to store objects
Pool for client info.
Name of the object containing the rados_cluster grace DB
Unique node identifier within rados_cluster

RADOS_URLS {}

Connection to ceph cluster, should be file path for ceph configuration.
User ID to ceph cluster.
rados:// URL to watch for notifications of config changes. When a notification is received, the server will issue a SIGHUP to itself.

January 20, 2023