On 26/02/2021 16:48, Jerome Lille wrote:
On Thu, 2021-02-25 at 13:19 -0400, George N. White III wrote:
On Sun, 21 Feb 2021 at 12:46, Jerome Lille jerome.lille@ownbay.net wrote:
I tried to simply change type from nfs to nfs4 in the fstab in the client. Unfortunately I then get the response
mount.nfs4: access denied by server while mounting ...
There is nothing in the server logs about this. And it is not the firewall, because even when I turned it off, I get the same access denied.
Anything else I have to change?
My exportfs is very simple, just /path/to/export client(rw)
I haven't used CentOS7 for several years, so I was ignoring this thread in the hope others could answer.
My not very trustworthy memory is that "/etc/exports" on the server needs the "insecure" option for NFS4 to work, see: https://access.redhat.com/solutions/3773891 for explanation and some diagnostic tests. My take on diagnostics is:
I modified the options from (rw) to (rw,sync,no_root_squash,insecure) and after that I finally could mount it in version 4. I've tested earlier to add the insecure option, but I'm not sure if I then remembered to restart nfs after the changes or not. Or if it is in the combination with the other options that made it possible.
Good that you now have it working.
Now, to go figure out why I can mount just fine when my exports file has
/home/egreshko 2001:b030:112f:2::0/64(rw)
"Logic" tells me it should fail like it was failing for you. :-) :-)