nfs3 problem: aix-server, amd, linux 2.4.10 - 2.4.17pre8 client
Hi,
forgot to cc this to linux-kernel and amd-dev.
You might remember:
(http://www.uwsg.indiana.edu/hypermail/linux/kernel/0111.2/0562.html)
The bug is still hiding somewhere between nfs3 client (or server?) and amd....
To: Ion Badulescu <[email protected]>, [email protected]
Date: Mon, 17 Dec 2001 19:18:29 +0100
Hi Ion and Trond,
Quoted 3 lines · Ion Badulescu
So, can you try to get the same
/proc/mountsline while mounting by hand, and see if the problem re-appears? The command should be something like mount -o nosuid,nodev,vers=3,tcp,intr,hard,rsize=32768,wsize=32768 ...
ok, done. But there was no lock-up.
Quoted 12 lines
The reason I'm not really suspecting amd, but rather the kernel NFS client, is because amd is only involved in mounting the server, it doesn't do much after that. So unless there is a race condition somewhere which involves quickly unmounting and remounting the same share, I don't see how amd could be the cause here.
Quoted 5 lines
It's not only the bug in the TCP/IP or NFS driver that is interesting. I guess for tracing it, it would be cool to have some hint on what triggers the bug. So far I could not reproduce it with manual mounts (I've printed out the man page and tried all kinds of mount options allready :-).
Quoted 4 lines
Well, try the above. If that mount command doesn't reproduce the lock-up, then try forcing amd to keep the share mounted (simply have a shell chdir'ed into that directory) and see if it still locks up. If it does, then I'm at a loss...
The cp was started after cd'ing into the target directory - and it locked up -> there is almost surely no race condition, caused by quickly mounting and umounting the share. (btw. we would have seen that in the tcpdump). I even "ls -l"'ed in another shell and saw that the file size grew up to 786432 bytes until cp locked up. The remainder of the file was copied in one go.
The lock-up cannot be reproduced in a trivial way without amd; and the share is not umounted during the copy attempt. I have no clue how to nail down the bug; unless Trond finds something by inspecting the nfs-related changes from Linux 2.4.9 to 2.4.10.... (hint, hint :-) 2.4.9 and older don't show this behaviour...
An idea for a possible (and ugly) work around, that came up here, was to tell amd to use the mount command rather than the mount system call. This can be done by editing the NIS map. I find this rather inconvenient for our purpose - to say the least :-/. Would it be possible to invent an amd.conf option (i.e. 'nfs_program=mount') that tells amd to use the mount/umount programs rather than the system calls? Or can I replace the mount system call in conf/mount/mount_linux.c by a system("mount ...") call and recompile? :-)
Cheers,
Birger
Quoted 1 line · Birger Lammering
[...]
Quoted 9 lines
An idea for a possible (and ugly) work around, that came up here, was to tell amd to use the mount command rather than the mount system call. This can be done by editing the NIS map. I find this rather inconvenient for our purpose - to say the least :-/. Would it be possible to invent an amd.conf option (i.e. 'nfs_program=mount') that tells amd to use the mount/umount programs rather than the system calls? Or can I replace the mount system call in
conf/mount/mount_linux.cby asystem("mount ...")call and recompile? :-)
Both ideas, as you say, are ugly workarounds. The problem is elsewhere (and it's possible it already got fixed by a patch Ion committed to am-utils very recently).
I don't like the idea of an amd.conf option to override what should really be in the mount maps. How would you tell it which entries to override?
If the problem is that /bin/mount does something that amd's own mount(2) call doesn't, then Ion and I will fix the linux mounting code in am-utils.
Quoted 2 lines
Cheers,
Birger
Erez.