very long delay, or "RPC: Timed out" when mounting exports in a client which is not in server's /etc/hosts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Fix Released
|
Medium
|
Unassigned | ||
nfs-utils (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
It took a while for me to figure out what's wrong with this.
My configuration is the following:
192.168.0.2 is the server with Kubuntu 5.10, nfs-kernel-server installed,
sharing a couple of directories to my other computers.
The clients that access the nfs exports are assigned the ips 192.168.0.3 and .4.
When I hadn't given names for the client machines in the server's /etc/hosts,
trying to mount the exports in the clients usually resulted in "RPC: Timed out"
error, or took *very* long to mount. The weird thing is that the mounting
*sometimes*, but very rarely worked, only the delay was very long.
So, a workaround for this is to add entries to the server's /etc/hosts for each IPs
you want to mount the nfs exports to. I added entries like this to /etc/hosts:
192.168.0.3 armada
192.168.0.4 nestori
After which the NFS exports seem to mount reliably. I think it's a bug somewhere,
but not sure in which package really.
Working fine here without any such entries in /etc/hosts; perhaps a problem with your DNS server?