Re: Mounting from Linux NFS server with Solaris workstation

Patrick J. LoPresti (patl@cag.lcs.mit.edu)
08 Sep 1998 14:49:31 -0400


>>>>> "rjones" == Richard Jones <rjones@orchestream.com> writes:

rjones> We've had this exact same problem for about a year. It seems
rjones> to be a fault in unfsd (the server), not in Solaris, since if
rjones> you tcpdump the packets doing over the network, they
rjones> definitely show the incorrect S_IFDIR attribute being
rjones> attached to the file.

I spent a while trying to debug this a few weeks ago. It is
definitely a bug on the Linux side of things, but I do not think it is
in the unfsd server per se; I think it is in either the kernel itself
or (more likely) in the RPC libraries which unfsd uses.

I instrumented the unfsd code to output tons of logging info. The
problem is that the file handle which the Sun tries to use is not the
one which the unfsd code sees. The problem is easiest to reproduce
when there is other simultaneous NFS activity, ideally from a
different client; the file handle which unfsd sees refers to some
other file (or directory) in active use at the time, I think.

My current theory is that somehow the RPC libraries (which are from
Sun) are incompatible with the way Linux handles some system call
under some (rare) situation. For example, perhaps it is the differing
BSD/Linux "recvfrom" semantics discussed on linux-kernel a few weeks
back.

I reported this problem to Alan Cox last week, and he expressed
interest in knowing the actual problem, but I really don't have the
time to track things down further. If anyone out there DOES have time
and is able to reproduce the problem, send me Email and I will provide
more details about what I know (e.g., my logging patches). You should
probably be or become familiar with the unfsd code if you want to
tackle this.

rjones> If you do find a solution, then please let me know!

Dropping rsize and wsize on the Solaris box to 2048 or lower makes the
problem go away. Maybe it's just hiding the problem, but it works for
us.

Alan also wanted to know whether dropping just rsize or just wsize
helps, but I haven't even had time to try that. If you do, please let
me (and him!) know the result.

- Pat
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu