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

Re: Berkeley DB problem

From: Max Bowsher <maxb_at_ukf.net>
Date: 2004-12-04 20:48:25 CET

Klaus-J. Wolf wrote:
> On Saturday, 4. December 2004 19:39, Max Bowsher wrote:
>> throw away all the __db.* and log.* files.
>> db_recover
>> svnadmin dump
>> svnadmin load into a new repository
>> Verify that the HEAD revision is what you expect.
>> If it is, then everything's ok.
>
> Okay, okay, okay. Sorry. I should have done what you said.
> "svnadmin dump" is kind of slow. Slow written with capital letters.
>
> After processing about 30 checked-in revisions, it crashes with thousands
> of
> lines like:
>
> svn: bdb: DB_ENV->log_flush: LSN of 58/731750 past current end-of-log of
> 1/2750
> svn: bdb: Database environment corrupt; the wrong log files may have been
> removed or incompatible database files imported from another environment
>
> Help!

Ugh, yuck.

Usually BDB holds off long enough to complete a dump before these error
messages set in.

Try this little recipe instead:

rm log.* __db.*
for i in *s; do mv ${i} ${i}-old && db_dump ${i}-old | db_load ${i}; done
svnadmin recover ..

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Dec 4 20:50:54 2004

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.