On Tue, 2021-02-23 at 23:16 +0800, Ed Greshko wrote:
[mountd]
debug=all
And then restart the server.
After doing the mount from the client, check the journal for rpc.mountd
messages.
Ok, what I got when doing 'mount -v server:/path /path' (i.e. it tried
v4 first then succeeded on v3) was
rpc.mountd[20558]: auth_unix_ip: inbuf 'nfsd 192.168.1.103'
rpc.mountd[20558]: v4root_create: path '/' flags 0x12405
rpc.mountd[20558]: v4root_create: path '/mnt' flags 0x10405
rpc.mountd[20558]: v4root_create: path '/mnt/raid' flags 0x10405
rpc.mountd[20558]: v4root_create: path '/' flags 0x12405
rpc.mountd[20558]: v4root_create: path '/mnt' flags 0x10405
rpc.mountd[20558]: v4root_create: path '/mnt/raid' flags 0x10405
rpc.mountd[20558]: auth_unix_ip: client 0x55a049adcdb0 'desktop'
rpc.mountd[20558]: nfsd_fh: inbuf 'desktop 1 \x00000000'
rpc.mountd[20558]: nfsd_fh: found 0x55a049ade800 path /
rpc.mountd[20558]: nfsd_export: inbuf 'desktop /mnt'
rpc.mountd[20558]: nfsd_export: found 0x55a049aded00 path /mnt
rpc.mountd[20558]: nfsd_fh: inbuf 'desktop 7
\xa167010400000000a30d293e41ca4977a19736ba24947eb6'
rpc.mountd[20558]: nfsd_fh: found 0x55a049aded10 path /mnt
rpc.mountd[20558]: nfsd_export: inbuf 'desktop /mnt/raid'
rpc.mountd[20558]: nfsd_export: found 0x55a049adf210 path /mnt/raid
rpc.mountd[20558]: nfsd_fh: inbuf 'desktop 6
\x0fe5fb05c7864830a8a9dbe250c2f2ed'
rpc.mountd[20558]: nfsd_fh: found 0x55a049adf220 path /mnt/raid
rpc.mountd[20558]: from_local: updating local if addr list
rpc.mountd[20558]: from_local: checked 7 local if addrs; incoming
address not found
rpc.mountd[20558]: check_default: access by 192.168.1.103 ALLOWED
rpc.mountd[20558]: Received NULL request from 192.168.1.103
rpc.mountd[20558]: check_default: access by 192.168.1.103 ALLOWED
(cached)
rpc.mountd[20558]: Received NULL request from 192.168.1.103
rpc.mountd[20558]: check_default: access by 192.168.1.103 ALLOWED
(cached)
rpc.mountd[20558]: Received MNT3(/mnt/raid/media) request from
192.168.1.103
rpc.mountd[20558]: authenticated mount request from 192.168.1.103:774
for /mnt/raid/media (/mnt/raid/media)
rpc.mountd[20558]: nfsd_fh: inbuf 'desktop 7
\x01005610000000000fe5fb05c7864830a8a9dbe250c2f2ed'
rpc.mountd[20558]: nfsd_fh: found 0x55a049addd80 path /mnt/raid/media
Could it be that v4 differs from v3 in how it does IP <-> hostname
resolution? On the server I have the IP of the client/desktop in the
/etc/hosts file and the /etc/exports has only the hostname
/Jerome