ich wollte mir gemäß der Debian Anleitung [1] einen NFS4 only Server konfigurieren.
Wenn ich jedoch den schritten in "NFSv4 only" folge und den rpcbind im systemd deaktiviere startet der NFS Server überhaupt nicht mehr:
Code: Alles auswählen
root@sandbox:~# systemctl status nfs-server.service
× nfs-server.service - NFS server and services
Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Tue 2024-02-06 13:17:53 CET; 36s ago
Process: 563 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
Process: 564 ExecStart=/usr/sbin/rpc.nfsd (code=exited, status=1/FAILURE)
Process: 575 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
Process: 581 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
Main PID: 564 (code=exited, status=1/FAILURE)
CPU: 7ms
Feb 06 13:17:53 sandbox systemd[1]: Starting nfs-server.service - NFS server and services...
Feb 06 13:17:53 sandbox rpc.nfsd[564]: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
Feb 06 13:17:53 sandbox rpc.nfsd[564]: rpc.nfsd: unable to set any sockets for nfsd
Feb 06 13:17:53 sandbox systemd[1]: nfs-server.service: Main process exited, code=exited, status=1/FAILURE
Feb 06 13:17:53 sandbox systemd[1]: nfs-server.service: Failed with result 'exit-code'.
Feb 06 13:17:53 sandbox systemd[1]: Stopped nfs-server.service - NFS server and services.
Der rpcbind macht so viele Ports auf die ich gar nicht brauche:
Code: Alles auswählen
root@sandbox:/etc# rpcinfo -p
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100005 1 udp 54553 mountd
100024 1 udp 58864 status
100024 1 tcp 42105 status
100005 1 tcp 45721 mountd
100005 2 udp 42083 mountd
100005 2 tcp 58385 mountd
100005 3 udp 59353 mountd
100005 3 tcp 49867 mountd
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 3 tcp 2049 nfs_acl
100021 1 udp 56336 nlockmgr
100021 3 udp 56336 nlockmgr
100021 4 udp 56336 nlockmgr
100021 1 tcp 44471 nlockmgr
100021 3 tcp 44471 nlockmgr
100021 4 tcp 44471 nlockmgr
[1] https://wiki.debian.org/NFSServerSetup