From: Wilton W. <ww...@ha...> - 2002-07-16 22:38:10
|
I'm currently having the same difficulty here with NFS locking, I can tell what the problem is and I can give you a "cheap and dirty" solution. The problem with NFS locking is not with lockd it's with rpc.statd (lockd is usually automagically started by the kernel anyways). The current rpc.statd (at least un my nfs-utils package tried to drop privaleges and run it self as "rpcuser" or "nobody" but unless you have ldap/nis running on your nodes getpwuid(rpcuser) and getpwuid(nobody) will return 0, and rpc.statd will silently exit failing to setuid(). Quickest fix: uses files in nsswitch.conf instead of bproc and copy over the passwd/group files from the master node to the cluster node. Quick fix: use nis/nis+/ldap on the master node and configure nsswitch.conf etc.. on the cluster node accordingly. Hack fix: Remove the drop-privs patches from the nfs-utils package, not a bad idea since we are supposedly running on a "secure" network anyways. Best fix: add functinality to beonss - Wilton PS. any other suggestions are welcome ;) On Tue, 16 Jul 2002, Larry Baker wrote: > Thank you for your help. > > I am neither a Unix nor a Linux expert, so I don't know how to determine > which features were compiled into the kernel. NFS works fine, so I assume > the nfs module is there. It is just NFS locking that does not work. I am > using the Clustermatic bproc kernel. Is there a list of modules that are > built into the kernel somewhere? After I find that, where is the list of > modules that must be added (using modprobe) to get full NFS locking support? > I can hack the Clustermatic setup_fs script from there. > > Larry Baker > > on 7/16/02 2:09 AM, Wilton Wong at ww...@ha... wrote: > > > > > Have you inserted the lockd/nfs/sunrpc modules on the node ? ie: "modprobe -N > > 0 > > nfs", then run portmap then try mounting without the "nolock" option ? > > > > "lockdsvc: Function not implemented" seems to indicate that the lockd module > > wasn't loaded or NFS file locking was not compiled into the kernel. > > > > - Wilton > > > > ----[ Wilton William Wong ]--------------------------------------------- > > 11060-166 Avenue Ph : 01-780-456-9771 High Performance UNIX > > Edmonton, Alberta FAX: 01-780-456-9772 and Linux Solutions > > T5X 1Y3, Canada URL: http://www.harddata.com > > -------------------------------------------------------[ Hard Data Ltd. ]---- > > > > -- > ----[ Wilton William Wong ]--------------------------------------------- 11060-166 Avenue Ph : 01-780-456-9771 High Performance UNIX Edmonton, Alberta FAX: 01-780-456-9772 and Linux Solutions T5X 1Y3, Canada URL: http://www.harddata.com -------------------------------------------------------[ Hard Data Ltd. ]---- |