Upgraded to F25 a couple of months ago and nfs stopped working. I was
hoping there would be a fix by now, but the problem persists. I had nfs
running on F24 and earlier with no issues, now it won't even start. Both
systemctl start nfs-server.service
systemctl stop nfs-server.service
hang. If I do systemctl start, after a while I have to do Ctrl-C, then
status shows
10) root:~> systemctl status nfs-server.service
● nfs-server.service - NFS server and services
Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled;
vendor preset: disabled)
Drop-In: /run/systemd/generator/nfs-server.service.d
└─order-with-mounts.conf
Active: activating (start) since Sat 2017-07-01 19:58:26 EDT; 1min 8s
ago
Process: 31864 ExecStopPost=/usr/sbin/exportfs -f (code=exited,
status=0/SUCCESS)
Process: 31862 ExecStopPost=/usr/sbin/exportfs -au (code=exited,
status=0/SUCCESS)
Process: 31968 ExecStartPre=/usr/sbin/exportfs -r (code=exited,
status=0/SUCCESS)
Main PID: 31970 (rpc.nfsd)
Tasks: 4 (limit: 4915)
CGroup: /system.slice/nfs-server.service
├─25729 /usr/sbin/rpc.nfsd 8
├─27750 /usr/sbin/rpc.nfsd 8
├─31701 /usr/sbin/rpc.nfsd --udp 8
└─31970 /usr/sbin/rpc.nfsd --udp 8
Jul 01 19:58:26 alpha systemd[1]: nfs-server.service: Failed with result
'timeout'.
Jul 01 19:58:26 alpha systemd[1]: Starting NFS server and services...
I googled and I found this answer:
https://serverfault.com/questions/848410/nfs-server-did-not-start-anymore-
on-fedora-25-after-resent-update/848415
which says nfs-utils have UDP support disabled by default and that --udp
must be added to RPCNFSDARGS in /etc/sysconfig/nfs in order to get it to
work. I did that and it still hangs.
I have a feeling this must be a known issue (I mean, really, nfs not
working on a major distribution?) but I can't find anything useful on the
web about it.
Any ideas? Thanks!