Re: New kernel errors after last update, Fedora 33

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 21 Feb 2021 at 12:46, Jerome Lille <jerome.lille@xxxxxxxxxx> 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:

1) find the ports used for nfs4 tcp:
rpcinfo -p <server_IP> | awk '/ 4 /'          
    100000    4   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100003    4   tcp   2049  nfs
    100021    4   udp  35759  nlockmgr
    100021    4   tcp  38583  nlockmgr
2) use telnet on the client to verify that you can connect to ports
111 and 2049 on the server:
% telnet <server_IP> 111                    
Trying <server_IP> ...
Connected to <server_IP>. 
Escape character is '^]'.
^]
telnet> quit
Connection closed.
% telnet <server_IP> 2049                   
Trying <server_IP>...
Connected to <server_IP>.
Escape character is '^]'.
^]
telnet> quit
Connection closed.
3. verify the exported filesystems:
% showmount -e <server_IP>
Export list for <server_IP>: /path/to/export client
Fedora 33 doesn't appear to need the "insecure" option.   For CentOS7, see
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/ch-nfs.

--
George N. White III

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux