Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

Nfs export works but showmount -e does not

Symptom

An nfs client runs this command with no output.

showmount -e 10.10.15.55

But the mount itself actually works. What gives?

Resolution

You have to make sure all the ports are open on the server.

firewall-cmd --permanent --add-service=rpc-bind
firewall-cmd --permanent --add-service=mountd
firewall-cmd --permanent --add-service=nfs
firewall-cmd --permanent --add-service=nfs3
firewall-cmd --reload

That's ports 111, 2049, and 20048 on both tcp and udp. Ripped off from RPC: Port mapper failure - Unable to receive: errno 113 (No route to host) [unix.stackexchange.com]

Comments