How do I enable NFS file locking? How do I know if it is enabled?
System:
- NFS server: Trustix 2.2 (Linux 2.4.31)
- NFS client: Fedora Core 4 (Linux 2.6.15)
Specific problem:
OpenOffice.org file locking doesn't work. In OOo 2.0.1, it wouldn't access any files with OOo's locking enabled. In OOo 2.0.2, it opens all files on NFS as read-only with OOo's locking enabled. We have an office, so locking is important.
rpc info:
Code:
$ rpcinfo -p server
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100004 2 udp 990 ypserv
100004 1 udp 990 ypserv
100004 2 tcp 993 ypserv
100004 1 tcp 993 ypserv
100011 1 udp 632 rquotad
100011 2 udp 632 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100021 1 udp 33963 nlockmgr
100021 3 udp 33963 nlockmgr
100021 4 udp 33963 nlockmgr
100021 1 tcp 57032 nlockmgr
100021 3 tcp 57032 nlockmgr
100021 4 tcp 57032 nlockmgr
100005 1 udp 649 mountd
100005 1 tcp 652 mountd
100005 2 udp 649 mountd
100005 2 tcp 652 mountd
100005 3 udp 649 mountd
100005 3 tcp 652 mountd
$ rpcinfo -p client
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32768 status
100024 1 tcp 41306 status
100021 1 udp 32769 nlockmgr
100021 3 udp 32769 nlockmgr
100021 4 udp 32769 nlockmgr
100021 1 tcp 54344 nlockmgr
100021 3 tcp 54344 nlockmgr
100021 4 tcp 54344 nlockmgr
100007 2 udp 790 ypbind
100007 1 udp 790 ypbind
100007 2 tcp 793 ypbind
100007 1 tcp 793 ypbind
100011 1 udp 738 rquotad
100011 2 udp 738 rquotad
100011 1 tcp 753 rquotad
100011 2 tcp 753 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100005 1 udp 761 mountd
100005 1 tcp 773 mountd
100005 2 udp 761 mountd
100005 2 tcp 773 mountd
100005 3 udp 761 mountd
100005 3 tcp 773 mountd