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

corrupt repository

From: Christopher L Merrill <chris_at_webperformance.com>
Date: 2006-03-21 20:24:55 CET

Subversion 1.1.3 on linux (RHES3) with Berkely db

First, how it happened:

We were getting low on disk space so we remapped the /opt hierarch (including
/opt/subversion where all our respositories are) and rsynced all the files
to the new area. This was done by our sysadmin who is pretty good. He assured
us that all timestamps and permissions were preserved and I have no reason to
doubt it.

He also shut down the svnserve service before the move.

Second, what happened:

After restarting subserve, most operations resulted in errors like:
$ svn log project.xml
svn: Berkeley DB error while opening environment for filesystem /opt/subversion/
DB_RUNRECOVERY: Fatal error, run database recovery
svn: bdb: Invalid log file: log.0000000001: No such file or directory
svn: bdb: PANIC: No such file or directory
svn: bdb: PANIC: DB_RUNRECOVERY: Fatal error, run database recovery

Third, what I've tried:

I shutdown svnserve and tried using "svnadmin recover". It generated errors, too.
So based on a FAQ entry, I deleted the log files and then "svnadmin recover" seemed
to work. Restarted SVN and a simple update worked. But then a few minutes
later I could not do a diff. So then I found this:
So I installed db42-utils (via yum, to ensure the dependencies were satisfied)
and then ran db_recover -c -v -h <path>. It said:
   [root@dev1 subversion]# db_recover -c -v -h /opt/subversion/Development/db/
   db_recover: Finding last valid log LSN: file: 1 offset 28
Can't tell if that is good or bad, but we still get errors like the one above.

Can anybody suggest what I should try next? I am pretty darn sure these
files did not get corrupted by the move process, but I'm starting to get
worried that we've lost our entire repository.


------------------------------------------------------------------------ -
Chris Merrill                           |  http://www.webperformance.com
Web Performance Inc.
Website Load Testing and Stress Testing Software & Services
------------------------------------------------------------------------ -
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 21 20:28:46 2006

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