[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

locking issues over NFS mount

From: Jeff Spencer <jspencer999_at_yahoo.com>
Date: 2005-03-03 18:08:19 CET

Hello,

Version: svn 1.1.3

I am attempting to set up an svn repository over an
NFS mount. The repository was created successfully,
but running svnlook results in the following:

$ svnlook info /s2/svn
svn: Error opening db lockfile
svn: Can't get shared lock on file
'/s2/svn/locks/db.lock': No locks available

(I verified that running this using a repository
hosted locally on the machine did not demonstrate the
same problem.)

Using strace, the offending operation was tracked to:

fcntl64(3, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET,
start=0, len=0}) = -1 ENOLCK (No locks available)

Using a test program that makes this same fcntl()
call, I demonstrated that the issue (inability to lock
a file over NFS) occurs when the client is running
RedHat 7.3 or 9. This issue does NOT occur with RedHat
6.0.

One workaround is to symlink from the locks/ directory
in the repository to a local directory.

Anyone aware of why this occurs, and how it could be
fixed ?

Thanks in advance,
Jeff

        
                
__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 3 18:11:57 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.