[Ilugc] problem with subversion/berkelydb

  • From: abhas@xxxxxxxxxxxxxx (Abhas Abhinav)
  • Date: Wed May 2 16:17:00 2007

On Wednesday 02 May 2007 7:58:49 am Kenneth Gonsalves wrote:

i have a server with several subversion repositories. I keep getting
berkelydb errors and have to run svnadmin recover, sometimes more
than once a week. Although all the repostiories are under the same
directory, they get clobbered at different times. There doesnt seem
to be any correlation between size of repo or amount of use and
number of times it gets corrupt. Any clues - this is driving me nuts.

We had faced the same problem many times before! About a year back we migrated 
out of using BerkleyDB as the filesystem for the SVN repository to using FSFS 
as the filesystem. FSFS uses plain files (on your filesystem) to store the 
repository and does not require or use BerkleyDB at all. Our repository size 
and number of users have only grown after our shift we've not seen any 
performance drop. We have, however, got rid of those nasty BerleyDB errors.

To convert your existing repository to the FSFS format, you will need to first 
take a dump of your repository (svnadmin dump), then create a new repository 
with FSFS format (svnadmin create /repos/path --fs-type fsfs) and then import 
the earlier SVN dump (svnadmin load).

You should not face these problems with your SVN again.

Hope this helps...

Cheers, Abhas.
-- 
i-take-charge at DeepRoot Linux
http://www.deeproot.in / +91 ;(80) 4112 4784 / 85
Getting GNU/Linux to work for you. Faster. Better. Today. Every way.

Other related posts: