Date: Mon, 14 Apr 2003 14:35:06 +1000 From: Shao Zhang <shaoz@activesky.com> To: Doug Barton <DougB@FreeBSD.org> Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: kern/50807: NFS file locking as client deos not working Message-ID: <kfsmslhf2d.fsf@shaoz.activesky.com.au> In-Reply-To: <20030413212145.D28372@znfgre.tberna.bet> (Doug Barton's message of "Sun, 13 Apr 2003 21:22:51 -0700 (PDT)") References: <200304110718.h3B7IIbJ027995@shaoz.activesky.com.au> <20030411210755.G3888@gamplex.bde.org> <kfisthappc.fsf@shaoz.activesky.com.au> <20030413212145.D28372@znfgre.tberna.bet>
next in thread | previous in thread | raw e-mail | index | archive | help
On [Sun, 13 Apr 2003 21:22:51 -0700 (PDT)], Doug Barton <DougB@FreeBSD.org> wrote: > On Mon, 14 Apr 2003, Shao Zhang wrote: > >> My understanding is that you only need to enable lockd and statd for the >> server. According to man rc.conf: > > Unfortunately, the rc docs haven't been updated properly in this regard. > The nature of RPC services pretty much requires rpc.statd. If you're using > locking, you definitely need it on both the client and server. I have tried to enable both rpc.lockd and rpc.statd on FreeBSD. The Linux file server runs rpc.lockd in kernel mode and rpc.statd is running as well. Now any program that requires file locking simply hangs on FreeBSD. I verified this using bogofilter -s < ~/Mail/spam, or just mutt -f ~/Mail/spam. If you do a strace on it, it hangs on fcntl(..., O_FSETLK, ...) Currently, I am using nolockd in /etc/fstab as a workaround. Regards, Shao.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?kfsmslhf2d.fsf>