[KLUG Members] NFS and time travel

Robert G. Brown members@kalamazoolinux.org
Sun, 28 Dec 2003 11:59:52 -0500


On Sun, 28 Dec 2003 01:18:45 -0500, Adam Williams <awilliam@whitemice.org> wrote:
>> I have one machine here that is still running Red Hat 5.2 (that's a 2.0.36
>> kernel), which came out in the middle of the second Clinton administration.
>> It's been quite stable and a great performer, but somehow even I am coming
>> to beleive that it's best days are behind it......
>The NFS implementation in the 2.0.x kernels was just plain B-A-D.  But
>it should work.  Perfomance will suck.
Works is important, performance doesn't matter (within reason), this is a
lifecycle-ending change that will help to migrate stuff off the host.

>> But first, I thought it would be interesting to see why it's so hard to get
>> NFS to work with the other hosts, because it doesn't. My question really is:
>> Why? I would think it would interoperate seamlessly, but it doesn't...

>If the old box is operating as a server it is exporting NFSv2.  Specify
>NFS version 2 when you try to mount from a current box.
>nfsvers=2
>Also go for a small block size.
>rsize=1024,wsize=1024
>
>If I recall these old NFS versions had issues with block sizes larger
>than 4k;  current NFS implementations like block size of 8k or even
>larger.

So your sugggestion is....
[root@gummo root]# mount harpo:/home/bob /harpo -o nfsvers=2,rsize=1024,wsize=1024

and the response I get is...
mount: harpo:/home/bob failed, reason given by server: Permission denied


>Have you tried setting the exports as insecure (last resort).
No, not until now...
>like: /pub            (ro,insecure,all_squash)
>This does some whacked thing with how ports are assigned, etc...  I've
>had to fall back to this to get differing NFS implementations to play
>nice.
Change to /etc/exports....
/home/bob       gummo(ro,insecure,all_squash) groucho-dva(rw)
/mnt            gummo(insecure,rw,all_squash) groucho-dva(rw)

Then I go back to harpo and issue:
[root@gummo root]# mount harpo:/home/bob /harpo -o nfsvers=2,rsize=1024,wsize=1024
and get a....

mount: harpo:/home/bob failed, reason given by server: Permission denied

/var/log/messages on harpo...(I folded the messages )
Dec 28 11:45:50 harpo mountd[264]: NFS mount of /home/bob attempted from 
                                   192.168.24.100
Dec 28 11:45:50 harpo mountd[264]: Unauthorized access by NFS client 
                                   192.168.24.100.
Dec 28 11:45:50 harpo mountd[264]: Blocked attempt of 192.168.24.100 to 
                                   mount /home/bob

Very odd... like...who's blocking?

Doesn't look promising just yet...
							Regards,
							---> RGB <---