I’m trying to get NFS going on two Fedora 40 servers. NFS Server is at 192.168.2.101 and the client is at 192.168.2.100.
I have setup the NFS server and this is what I see at the showmount command:
root@dell-kvmhost:~# showmount -e 192.168.2.101
Export list for 192.168.2.101:
/data/nfs_share *
All good except for the fact it took 2 mins for this response to show
When I try to mount the share it times out
root@dell-kvmhost:~# sudo mount 192.168.2.101:/data/nfs_share /mnt/nfs_share
mount.nfs: Connection timed out for 192.168.2.101:/data/nfs_share on /mnt/nfs_share
Both servers are not really loaded and I have temporarily disabled the firewalls.
I can ping in both directions, rpcbind is running on the NFS server.
If everything went as it should, the OP’s problem would not have arisen in the first place, but here we are, and that delayed response is quite typical for network related issues.
For RFC 5227 to work properly, all involved hosts must support it, including server IPMI/BMC if any, otherwise it may fail due to race conditions.
I can ping both servers and both IP addresses are static. Is IPv6 still relevant in that case? I’m not using IPv6 on the LAN. How would I activate this?
I haven’t updated /etc/fstab yet as I can’t mount the share; i.e. mount 192.168.2.101:/mnt/nfs_share /mnt/nfs_share times out and showmount takes about 2 mins to respond with the export list
root@dell-kvmhost:~# sudo mount 192.168.2.101:/mnt/nfs_share /mnt/nfs_share -o v3
mount.nfs: access denied by server while mounting 192.168.2.101:/mnt/nfs_share
I have temporarily disabled firewalld on both the client and the server. Also temporarily disabled SELinux
root@acer-bkp-server:~# sudo journalctl -u nfs-server.service
-- Boot 2cf493de239a42b8aa6e431fd02a9e10 --
Sep 29 23:57:30 acer-bkp-server systemd[1]: Starting nfs-server.service - NFS server and services...
Sep 29 23:57:31 acer-bkp-server systemd[1]: Finished nfs-server.service - NFS server and services.
Oct 01 22:12:36 acer-bkp-server systemd[1]: Stopping nfs-server.service - NFS server and services...
Oct 01 22:12:36 acer-bkp-server systemd[1]: nfs-server.service: Deactivated successfully.
Oct 01 22:12:36 acer-bkp-server systemd[1]: Stopped nfs-server.service - NFS server and services.
Oct 01 22:12:36 acer-bkp-server systemd[1]: Starting nfs-server.service - NFS server and services...
Oct 01 22:12:37 acer-bkp-server systemd[1]: Finished nfs-server.service - NFS server and services.
Oct 01 22:15:58 acer-bkp-server systemd[1]: Stopping nfs-server.service - NFS server and services...
Oct 01 22:15:58 acer-bkp-server systemd[1]: nfs-server.service: Deactivated successfully.
Oct 01 22:15:58 acer-bkp-server systemd[1]: Stopped nfs-server.service - NFS server and services.
Oct 01 22:15:58 acer-bkp-server systemd[1]: Starting nfs-server.service - NFS server and services...
Oct 01 22:15:59 acer-bkp-server systemd[1]: Finished nfs-server.service - NFS server and services.
root@acer-bkp-server:~#