Thursday, September 08, 2011

svnadmin: Couldn't perform atomic initialization database is locked

I was trying to use a CIFS (Windows) path as the svn repository but I was having locking issues:

$ sudo svnadmin load /repo/path < ~/svn_dump
<<< Started new transaction, based on original revision 1
    * adding path : projects ... done.
svnadmin: Couldn't perform atomic initialization
svnadmin: database is locked

Taking a look at man pages I gave option "nobrl" a try and that seemed to solve the problem which apparently is that our NetApp SAN does not support byte range locks.

Using the below did the trick then:
mount -t cifs //windows.box/path /mnt/local/path -o credentials=/root/cifs/cifs_credentials.txt,domain=COMPANYX,file_mode=0600,dir_mode=0700,uid=admin,gid=admin,nobrl

2 comments:

blink said...

Spot on, thanks a lot! nobrl is what I needed.I think I got away in the past by using the options '-pre-1.6-compatible --fs-type fsfs' at the repository creation but using this mount option looks much more attractive to me. Some would call it 'the magick of widows networking'

ste said...

thank !
useful hint that solve also my problem.

urka

Followers