From dac8be336d49ed66d7b7353f75ab65bc47944760 Mon Sep 17 00:00:00 2001 From: Mateusz Sylwestrzak Date: Sun, 27 Jul 2025 23:20:43 +0200 Subject: [PATCH] config/network-filesystems.md: document NFSv4-only server setup --- src/config/network-filesystems.md | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/src/config/network-filesystems.md b/src/config/network-filesystems.md index 6ccc11db6..fb8c14acb 100644 --- a/src/config/network-filesystems.md +++ b/src/config/network-filesystems.md @@ -4,12 +4,12 @@ ### Mounting an NFS Share -To mount an NFS share, start by installing the `nfs-utils` and `sv-netmount` -packages. - -Before mounting an NFS share, [enable](./services/index.md#enabling-services) -the `statd`, `rpcbind`, and `netmount` services. If the server supports `nfs4`, -the `statd` service isn't necessary. +To mount an NFS share, install the `nfs-utils` package. If desired, the +`sv-netmount` package provides a simple service that will automatically mount +network filesystems at boot. Clients and servers using NFSv3 or older protocols +require that the `rpcbind` and `statd` service be +[enabled](./services/index.md#enabling-services). Clients and servers using +NFSv4 exclusively do not require these services. To mount an NFS share: @@ -68,4 +68,16 @@ server status: ``` You can use [nfs.conf(5)](https://man.voidlinux.org/nfs.conf.5) to configure -your server. +your server. In particular, to disable legacy protocol versions and support only +NFSv4, add the following section: + +``` +[nfsd] +vers3=n +vers4=y +vers4.1=y +vers4.2=y +``` + +You can verify the configured list of supported versions by inspecting the +contents of the file `/proc/fs/nfsd/versions`.