Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2020 13:26:13 -0400
From:      Greg Veldman <freebsd@gregv.net>
To:        Norman Gray <norman.gray@glasgow.ac.uk>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Documentation and debugging for NFSv4
Message-ID:  <20200526172613.GN1068@aurora.gregv.net>
In-Reply-To: <AD3C4097-8DEF-41E1-81FE-4C4CD9DC4FA0@glasgow.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 22, 2020 at 07:43:02PM +0100, Norman Gray wrote:
[snip]
> 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 
> (rw,relatime,vers=4.1,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=130.209.202.212,local_lock=none,addr=130.209.45.61)
>      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.

-- 
Greg Veldman



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200526172613.GN1068>