[KLUG Members] NFS and time travel

Bruce Smith members@kalamazoolinux.org
Sun, 28 Dec 2003 15:39:55 -0500


> >How's your resolver?  Can it find the server/client by name?
> >Try IP addresses in your exports file instead of names.
> I didn't try this, but I did try to ping hapro from gummo and vice-versa. 
> 
> Sure enough, there was an old entry for gummo in the /etc/hosts file on
> harpo! I made sure that I could ping cleanly both ways, and one of the
> mount commands (with harpo as the client) now works:
> 
> [root@harpo /root]# mount gummo:/home/bob /gummo
> [root@harpo /root]# df
> Filesystem         1024-blocks  Used Available Capacity Mounted on
> ....
> gummo:/home/bob      2682828  122445   2560383      6%   /gummo
> 
> However, harpo as a server is still a no-go....
... 
> --- harpo.whizdomsoft.com ping statistics ---
> 3 packets transmitted, 3 received, 0% packet loss, time 2018ms
> rtt min/avg/max/mdev = 0.672/0.693/0.712/0.027 ms
> [root@gummo root]# mount harpo:/home/bob /harpo -o nfsvers=2,rsize=1024,wsize=1024
> mount: harpo:/home/bob failed, reason given by server: Permission denied
> 
> The results are no different if I use IP addresses now.

Try IP's anyway, if you haven't.  Especially on /etc/exports.
I've had weird problems that's solved before - to the point I _always_
use IP addresses in /etc/exports now.  (and "permission denied" is
almost always a /etc/exports problem)

Other things to watch out for: 

Symbolic links _anywhere_ in your exported path - you need to export and
mount the _real_ directory, NOT the link.

Make sure you restart nfs server, or run exportfs with correct options,
after changing /etc/exports.

Make sure portmapper is running, along with mountd & nfsd (on server).

Make sure there are no firewall rules or /etc/hosts.deny rules blocking
anything necessary.

Did you check the format for /etc/exports on the old server?  Did it
change since then, or am I thinking of HPUX ... can't remember.

> Nice improvement... at least there's some connectivity now....

One server at a time.  :-)

 - BS