On 07/02/17 08:00, Amadeus W.M. wrote: > 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! > Well, all of my NFS clients use only NFSv4. I didn't have an F25 system running an NFS server so I did the following on a VM. Edited /etc/exports to add.... /home/egreshko 192.168.1.0/24(rw,async,no_wdelay,no_root_squash) Ran.... [root@f25f etc]# exportfs -a [root@f25f etc]# exportfs /home/egreshko 192.168.1.0/24 I then edited /etc/idmapd.conf to match that on the system where I would be mounting the file system. I also enable nfs and mountd on the firewall. I then did ... systemctl enable nfs systemctl start nfs and it started just fine. [egreshko@f25f ~]$ systemctl status nfs ● 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: active (exited) since Sun 2017-07-02 11:39:43 CST; 11min ago Process: 3779 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SUCCESS) Process: 3778 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS) Main PID: 3779 (code=exited, status=0/SUCCESS) Tasks: 0 (limit: 4915) CGroup: /system.slice/nfs-server.service Jul 02 11:39:43 f25f.greshko.com systemd[1]: Starting NFS server and services... Jul 02 11:39:43 f25f.greshko.com systemd[1]: Started NFS server and services. On the remote system I then did.... [root@meimei ~]# mount 192.168.1.198:/home/egreshko /mnt And finally tested.... [egreshko@meimei ~]$ df -T | grep mnt 192.168.1.198:/home/egreshko nfs4 29692928 9942528 18295552 36% /mnt [egreshko@meimei ~]$ cd /mnt [egreshko@meimei mnt]$ ls andhere bin dir-server gohere Public ser-before Templates band2.mp3 cmds Documents Music seli session-error Videos band.mp3 Desktop Downloads Pictures ser-after setting [egreshko@meimei mnt]$ touch x [egreshko@meimei mnt]$ ls andhere bin dir-server gohere Public ser-before Templates band2.mp3 cmds Documents Music seli session-error Videos band.mp3 Desktop Downloads Pictures ser-after setting x -- Fedora Users List - The place to go to speculate endlessly
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx