LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-10-2006, 01:02 PM   #1
ahz10
Member
 
Registered: Apr 2005
Distribution: Fedora,Trustix,FreeBSD
Posts: 62

Rep: Reputation: 15
How to enable NFS file locking?


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
 
Old 03-10-2006, 03:01 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,669
Blog Entries: 15

Rep: Reputation: 1580Reputation: 1580Reputation: 1580Reputation: 1580Reputation: 1580Reputation: 1580Reputation: 1580Reputation: 1580Reputation: 1580Reputation: 1580Reputation: 1580
Its been over a year so this information may no longer be valid:

At a prior job we were trying to use NAS devices on our RH Linux and found issues with file locking in NFS. On researching it I was told that RH 2x had flock for NFS but version 3x specifically left it out because it had been very unreliable in 2x.

At that job any process that required file locking we had to move to internal local drives rather than using NAS (which is essentially just NFS).

A few months ago a vendor trying to sell NAS here indicated complete ignorance of any such issue but we saw it with two different applications at that prior job.
 
Old 05-22-2006, 11:34 AM   #3
ahz10
Member
 
Registered: Apr 2005
Distribution: Fedora,Trustix,FreeBSD
Posts: 62

Original Poster
Rep: Reputation: 15
Solution:
/sbin/service nfslock start
chkconfig --levels 35 nfslock on
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS Locking.............FAILED xbill311x Fedora 13 11-16-2007 11:11 AM
NFS Locking? Meabert Linux - Software 5 11-30-2005 08:52 AM
Stopping NFS locking failed. travellers Linux - Software 1 11-28-2005 11:51 AM
NFS locking up jmickens Linux - Enterprise 1 10-13-2005 05:41 PM
Samba/NFS locking up. - HELP - grenobel Linux - Networking 0 02-25-2005 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration