You are not logged in.

#1 2017-01-14 22:32:51

pgoetz
Member
From: Austin, Texas
Registered: 2014-02-21
Posts: 341

Why doesn't NFS post any log messages?

I'm trying to set up an arch client machine to mount an NFS4 share from another Arch machine.  I'm having the same problems described here:

[root@iguana ~]# mount -t nfs4 frog:/srv/nfs/media /data/media
mount.nfs4: access denied by server while mounting frog:/srv/nfs/media

and am similarly frustrated that there's nothing in the systemd journal about this.

Obviously something is misconfigured, but I can't figure out what without some error logs telling me why access is being denied.

Offline

#2 2017-01-14 22:55:53

pgoetz
Member
From: Austin, Texas
Registered: 2014-02-21
Posts: 341

Re: Why doesn't NFS post any log messages?

In case someone stumbles on this having the same problem I was having, I'll post the solution below.  I won't mark the issue as SOLVED because it's not solved that NFS doesn't post any logging information.

The solution to the NFS4 access denied problem was to use the hostname in `/etc/exports` instead of the IP address.  I changed this:

/srv/nfs 192.168.10(rw,fsid=root,no_subtree_check)
/srv/nfs/media 192.168.10(rw,no_subtree_check)
/srv/nfs/share 192.168.10(rw,no_subtree_check)

To this:

/srv/nfs iguana(rw,fsid=root,no_subtree_check)
/srv/nfs/media iguana(rw,no_subtree_check)
/srv/nfs/share iguana(rw,no_subtree_check)

This resulted in a slightly different problem:

[root@iguana data]# mount -t nfs4 frog:/srv/nfs/media /data/media
mount.nfs4: Protocol not supported

Apparently you are not supposed to include the NFS root path in the mount command.  This finally worked and mounted the volume:

[root@iguana data]# mount -t nfs4 frog:/media /data/media

This is extremely unclear in the NFS Troubleshooting Wiki entry; will fix.

Offline

Board footer

Powered by FluxBB