Documentation and debugging for NFSv4
freebsd at gregv.net
Tue May 26 17:26:14 UTC 2020
On Fri, May 22, 2020 at 07:43:02PM +0100, Norman Gray wrote:
> I now go to another CentOS 7.8 machine
> client3# mount -tnfs server:/astro/norman /mnt
> client3# mount|grep /mnt
> server:/astro/norman on /mnt type nfs4
> client3# ls /mnt
> ls: reading directory /mnt: Input/output error
> Nothing! The same thing -- an apparently successful mount, and then
> an I/O error -- happens when I let the automounter do the work.
Based on this and your subsequent response to Doug/Remy, I
think the next thing I'd check would be the idmap settings.
It sounds like you may have a domain mismatch. All the idmap
daemons on both client and server must be running and must agree
on the domain name (doesn't really matter what it is, they just
have to agree). On FreeBSD this is specified with the -domain
arg to nfsuserd (which looks like it can also be put in rc.conf).
On Linux it's set with the Domain keyword in /etc/idmapd.conf.
Various implementations of the software attempt to calculate a
default domain if none is given, using different methods to do
so. It's much safer to pick something yourself and explicitly
set it everywhere.
More information about the freebsd-questions