Hi,
As per nfs.systemd97) it should be possible to mask rpcbind for a pure
NFSv4 setup. However:
1. rpcbind has both a service and a socket, masking only the service
results in errors, so both must be masked.
2. rpc.mountd refuses to start unless setting 'vers3=off' in section
[nfsd] of nfs.conf.
3. With vers3=off rpc.mountd still complains loudly ("Failed to register...")
unless TCP=off and UDP=off are also set.
Kid regards,
Andrei
systemd[1]: Starting nfs-mountd.service - NFS Mount Daemon...
rpc.mountd[994]: Failed to register (mountd, 1, udp): svc_reg() err: RPC: Remote system error - Connection refused
rpc.mountd[994]: Failed to register (mountd, 1, tcp): svc_reg() err: RPC: Remote system error - Connection refused
rpc.mountd[994]: Failed to register (mountd, 1, udp6): svc_reg() err: RPC: Remote system error - Connection refused
rpc.mountd[994]: Failed to register (mountd, 1, tcp6): svc_reg() err: RPC: Remote system error - Connection refused
rpc.mountd[994]: Failed to register (mountd, 2, udp): svc_reg() err: RPC: Remote system error - Connection refused
rpc.mountd[994]: Failed to register (mountd, 2, tcp): svc_reg() err: RPC: Remote system error - Connection refused
rpc.mountd[994]: Failed to register (mountd, 2, udp6): svc_reg() err: RPC: Remote system error - Connection refused
rpc.mountd[994]: Failed to register (mountd, 2, tcp6): svc_reg() err: RPC: Remote system error - Connection refused
rpc.mountd[994]: Failed to register (mountd, 3, udp): svc_reg() err: RPC: Remote system error - Connection refused
rpc.mountd[994]: Failed to register (mountd, 3, tcp): svc_reg() err: RPC: Remote system error - Connection refused
rpc.mountd[994]: Failed to register (mountd, 3, udp6): svc_reg() err: RPC: Remote system error - Connection refused
rpc.mountd[994]: Failed to register (mountd, 3, tcp6): svc_reg() err: RPC: Remote system error - Connection refused
rpc.mountd[994]: mountd: No V2 or V3 listeners created!
rpc.mountd[995]: Version 2.8.4 starting
systemd[1]: Started nfs-mountd.service - NFS Mount Daemon.
systemd[1]: Starting nfs-server.service - NFS server and services...
kernel: svc: failed to register nfsdv3 RPC service (errno 111).
kernel: svc: failed to register nfsaclv3 RPC service (errno 111).
kernel: svc: failed to register nfsdv3 RPC service (errno 97).
kernel: svc: failed to register nfsaclv3 RPC service (errno 97).
sh[1000]: nfsdctl: Error: Address family not supported by protocol
sh[1000]: nfsdctl: Error: Invalid argument
kernel: svc: failed to register nfsdv3 RPC service (errno 111).
kernel: svc: failed to register nfsaclv3 RPC service (errno 111).
sh[1001]: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
sh[1001]: rpc.nfsd: unable to set any sockets for nfsd
systemd[1]: nfs-server.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: nfs-server.service: Failed with result 'exit-code'.
systemd[1]: Stopped nfs-server.service - NFS server and services.
systemd[1]: Stopping nfs-mountd.service - NFS Mount Daemon...
rpc.mountd[995]: Caught signal 15, un-registering and exiting.