NFS locking and linux NFS server
Dan Nelson
dnelson at allantgroup.com
Sun Mar 25 20:40:18 UTC 2012
In the last episode (Mar 25), Christoph Egger said:
> Hi all!
>
> I have a Linux Host (2.6.32 kernel, Debian stable) providong NFS
> shares. Locking files on that share works fine for linux clients [0]
> while it fails on a freebsd 9.0-STABLE system. The interwebs indicate
> there have been problems witha buggy linux implementation back in 2006
> but no more hits for that problem in recent times so I assume it's
> fixed?
>
> root at freebsd /mnt/
> 11:27 0 # kldstat -v | grep nfs
> 341 nfscommon
> 386 nfslockd
> 344 nfsd
> 385 nfssvc
> 342 nfs
> 343 nfscl
> 384 nfslock
>
> root at freebsd /mnt/
> 11:28 0 # flock test -c ls
> flock: test: Operation not supported
>
> root at freebsd /mnt/
> 11:31 0 # mount | grep nfs
> 10.70.255.8:/home/ on /mnt/ (nfs)
Are you running statd and lockd (in rc.conf, rpc_statd_enable="YES" and
rpc_lockd_enable="YES")? Make sure that "rpcinfo localhost" and "rpcinfo
otherhost" both show "nlockmgr" and "status" services.
--
Dan Nelson
dnelson at allantgroup.com
More information about the freebsd-questions
mailing list