flock failure on NFS from 5.3 client to 4.7 server
Kris Kennaway
kris at obsecurity.org
Thu Jan 13 18:47:00 PST 2005
On Thu, Jan 13, 2005 at 09:42:55PM -0500, Bruce Campbell wrote:
>
> NFS server: FreeBSD 4.7
> Old Mail server: FreeBSD 4.7, home directories mounted to NFS server
> New Mail server: FreeBSD 5.3, home directories mounted to NFS server
>
> After the mail server upgrade to 5.3, flock gives error "operation not supported"
> on nfs mounted home directories. Example:
>
> Jan 13 00:06:32 mail vacation[92816]: vacation: .vacation: Operation not supported
>
> output from "truss"
>
> open(".vacation.db",0x2,0640) = 3 (0x3)
> fstat(3,0xbfbfd350) = 0 (0x0)
> flock(0x3,0x2) ERR#45 'Operation not supported'
> close(3) = 0 (0x0)
>
> It appears someone else has done substantially more debugging than I:
>
> http://lists.freebsd.org/pipermail/freebsd-questions/2004-September/059777.html
>
> but is seemingly no further ahead.
>
> On our NFS server, rpc.statd is running, but rpc.lockd wasn't. Started
> it, still no worky. Killed it, other 4.7 clients still flock fine.
rpc.lockd needs to be running on *both* client *and* server.
4.x gets away with it because the rpc.lockd implementation does not in
fact implement locking on the client.
Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050113/4fac7767/attachment.bin
More information about the freebsd-questions
mailing list