[KLUG Members] NFS and time travel

Robert G. Brown members@kalamazoolinux.org
Sun, 28 Dec 2003 16:18:54 -0500


On Sun, 28 Dec 2003 15:39:55 -0500, Bruce Smith <bruce@armintl.com>wrote:

>>>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.  
I have, whch is why I wrote what I did. I'm reporting, not speculating.

>Especially on /etc/exports.
Like this?
Note: 
harpo is 192.168.24.11
gummo is 192.168.24.100

[root@harpo /root]# cat /etc/exports
/home/bob       192.168.24.100(ro,insecure,all_squash)
and then...
[root@gummo root]# mount 192.168.24.11:/home/bob /harpo -o nfsvers=2,rsize=1024,wsize=1024
# Voila!
[root@gummo root]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda2              2682828   2323764    222784  92% /
/dev/hda1                97570      9205     83327  10% /boot
none                     79176         0     79176   0% /dev/shm
192.168.24.11:/home/bob
                       1015022    925508     37067  97% /harpo

Might be fun t tighten upthe mount a bit, see where the other stuff helps.

>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)
It looks like some odd problem with DNS, maybe reverse lookups or
something [??].

>Other things to watch out for: 
Nice to have this checklist, for general reference...

>Symbolic links _anywhere_ in your exported path - you need to export and
>mount the _real_ directory, NOT the link.
No links involved. Everything's real.

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

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

>Make sure there are no firewall rules or /etc/hosts.deny rules blocking
>anything necessary.
Stated in previous posts. /etc/hosts.deny has no non-comment lines.
There's no firewalling rules. In fact, I think firewalling isn't even in 
this kernel.

>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.
I've show the whole file in previous posts, and as fair as I can see from 
the documentation, the foramt has not changed in a long time, if ever.

>>Nice improvement... at least there's some connectivity now....
>One server at a time.  :-)
Is this the netadmin's equivalent of the old boxing adage:
"He's only got two hands" ? :)

							Thanks and Regards,
							---> RGB <---