Skip to content

Commit 06460df

Browse files
slymattzahesford
authored andcommitted
config/network-filesystems.md: document NFSv4-only server setup
1 parent d6b3d1f commit 06460df

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

src/config/network-filesystems.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
### Mounting an NFS Share
66

7-
To mount an NFS share, start by installing the `nfs-utils` and `sv-netmount`
8-
packages.
9-
10-
Before mounting an NFS share, [enable](./services/index.md#enabling-services)
11-
the `statd`, `rpcbind`, and `netmount` services. If the server supports `nfs4`,
12-
the `statd` service isn't necessary.
7+
To mount an NFS share, install the `nfs-utils` package. If desired, the
8+
`sv-netmount` package provides a simple service that will automatically mount
9+
network filesystems at boot. Clients and servers using NFSv3 or older protocols
10+
require that the `rpcbind` and `statd` service be
11+
[enabled](./services/index.md#enabling-services). Clients and servers using
12+
NFSv4 exclusively do not require these services.
1313

1414
To mount an NFS share:
1515

@@ -68,4 +68,16 @@ server status:
6868
```
6969

7070
You can use [nfs.conf(5)](https://man.voidlinux.org/nfs.conf.5) to configure
71-
your server.
71+
your server. In particular, to disable legacy protocol versions and support only
72+
NFSv4, add the following section:
73+
74+
```
75+
[nfsd]
76+
vers3=n
77+
vers4=y
78+
vers4.1=y
79+
vers4.2=y
80+
```
81+
82+
You can verify the configured list of supported versions by inspecting the
83+
contents of the file `/proc/fs/nfsd/versions`.

0 commit comments

Comments
 (0)