nfsv4.exportd(8)
π NAME π
nfsv4.exportd β NFSv4 Server Mount Daemon
Yes bestie, you are reading nfsv4.exportd(8), the manual page. Buckle up. π
β¨ SYNOPSIS β¨
/usr/sbin/nfsv4.exportd [options]
π¦ DESCRIPTION π¦
okay so nfsv4.exportd is the whole entire girlboss in charge of managing NFSv4 exports. Here's the vibe: the NFS server (nfsd) keeps a little cache of authentication and authorization info, and that cache is what it uses to figure out who is making each request, and then what access permissions that source has to any local filesystem. main character detective work, honestly. π
But when the info it needs isn't in the cache? It doesn't just guess, it does not have that energy. It sends a request over to nfsv4.exportd to fill in the missing deets. π
And how does nfsv4.exportd answer? It pulls from a table of information stored in /var/lib/nfs/etab β a table that's maintained by exportfs(8), possibly based on the contents of exports(5) β and uses that to respond to each request. slay. β¨
π OPTIONS π
-dkind or--debugkind β turn on debugging, we love a debug era. valid kinds are:all,auth,call,generalandparse.-lor--log-authβ enables logging of the responses to authentication and access requests coming fromnfsd. Each response then gets cached by the kernel for 30 minutes (or as set by--ttlbelow, iykyk), and it'll be refreshed after 15 minutes β that's half the ttl time β if the relevant client is still active. π
heads up:-lis equivalent to-d auth, so you can also turn it on in/etc/nfs.confwith"debug = auth"in the[exportd]section. two paths, same slay.
-ior--cache-use-ipaddrβ normally, each client IP address gets matched against every host identifier (name, wildcard, netgroup etc) found in/etc/exports, and a combined identity is formed from all the matching identifiers. Often lots of clients will map to the same combined identity, so doing this mapping reduces how many distinct access details the kernel has to store β very efficient, very demure. specifying-isuppresses that mapping, so access to each filesystem is requested and cached separately for each client IP address. doing this can increase the burden of updating the cache slightly, but it can make the log messages produced by the-loption easier to read. tradeoffs, bestie. π-Tor--ttlβ provide a time-to-live (TTL) for cached information given to the kernel. the kernel will normally request an update if the info is needed after half of this time has expired. increasing the provided number β which is in seconds β reduces the rate of cache update requests, and this is especially noticeable when those requests are logged with-l. BUT increasing it also means changes to hostname-to-address mappings can take longer to be noticed. π the default TTL is1800(30 minutes).-For--foregroundβ run in the foreground (do not daemonize). stay present. π«Ά-hor--helpβ display the usage message. the classic.-tN or--num-threads=Nor--num-threads Nβ this option specifies the number of worker threads thatnfsv4.exportsspawns. (yes, the page saysnfsv4.exports, we do not make the rules π) the default is1thread, which is probably enough. more threads are usually only needed for NFS servers that have to handle mount storms of hundreds of NFS mounts in a few seconds, or when your DNS server is slow or unreliable. π-gor--manage-gidsβ accept requests from the kernel to map user id numbers into lists of group id numbers, for use in access control. an NFS request will normally (except when using Kerberos or other cryptographic authentication) contain a user-id and a list of group-ids. due to a limitation in the NFS protocol, at most 16 group ids can be listed. if you use the-gflag, then the list of group ids received from the client gets replaced by a list of group ids determined by an appropriate lookup on the server. note that the 'primary' group id is not affected, so anewgroupcommand on the client will still be effective. this function requires a Linux Kernel with version at least2.6.21. π§-Lor--no-netlinkβ disable the use of netlink for kernel communication and force the use of the legacy/proc/net/rpcinterfaces instead. this can be useful for debugging or for working around kernel netlink issues. π§
π CONFIGURATION FILE π
Many of the options you can set on the command line can also be controlled through values set in the [exportd] section β or, in some cases, the [nfsd] section β of the /etc/nfs.conf configuration file. πβ¨
Values recognized in the [exportd] section include cache-use-ipaddr, ttl, manage-gids, no-netlink, and debug β and each one has the same effect as the option with the same name. no cap. π€
π FILES π
/etc/exportsβ input file forexportfs, listing exports, export options, and access control lists.
β SEE ALSO β
exportfs(8), exports(5), showmount(8), nfs.conf(5), firewall-cmd(1),
RFC 7530 β "Network File System (NFS) Version 4 Protocol"
RFC 8881 β "Network File System (NFS) Version 4 Minor Version 1 Protocol"
and that's the whole page, bestie!! π this was the nfsv4.exportd(8) page from the System Manager's Manual, dated 02 Feb 2021. go forth and export your filesystems responsibly. mwah. πβ¨π¦
π¦ where this page comes from
- arch rolling: nfs-utils 3.1.1-1 Β· GPL-2.0-or-later
- Copyright (C) 2021 Red Hat <nfs@redhat.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms