You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Gilbert Fine <gi...@gmail.com> on 2005/07/21 17:49:33 UTC

fails to convert bdb to fsfs

Hi All,

    We have a big svn repository (containing over 18000 revisions). We want
to convert it from bdb to fsfs. Because recently we found that this
repository needs to be recovered too often (almost every morning). And
fsfs seems save a lot of space.

    But we failed. "svnadmin load" on a certain revision, and it can be
reproduced. The failed revision is the same every time we tried.
svnadmin gave no error message, if I recalled correctly.

    Now we have another reason to convert. Today, after serval times of
sudden power off, the repository is corrupted and cannot be recovered.
We need to restore to some backup - thank god we backup every day.

   Our svn server is running on FreeBSD 4.x, with subversion 1.2.1, bdb-4.5.2


Gilbert

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: fails to convert bdb to fsfs

Posted by Gilbert Fine <gi...@gmail.com>.
Garrett Rooney,

    I retried again just now. Now I have more information.

    I splited the dump file in two parts, the first one is from rev 0
to rev 10909, the other is from rev 10910 to the end. I did this
because I knew it is the the rev 10910 that had failed. ( I use
'--incremental' option of svnadmin to create the 2nd dumpfile)

   I ran "svnadmin load" on the first dumpfile, all was OK. And for
the 2nd dumpfile, svnadmin reported:

svnadmin: File not found: transaction '10909-3', path 'products/xy2/design/?\230
?\149?\176?\229?\128?\188?\232?\174?\190?\229?\174?\154/?\231?\142?\169?\230?\17
9?\149?\231?\179?\187?\231?\187?\159/?\229?\143?\172?\229?\148?\164?\229?\133?\1
89/?\229?\143?\172?\229?\148?\164?\229?\133?\189?\231?\130?\188?\229?\166?\150?\
231?\179?\187?\231?\187?\159?\232?\161?\165?\229?\133?\133.xls'

Note: in fact, this message was from the 3rd time that I retried the
svnadmin load command. so there is '3' in message: '10909-3'.

And you can see, the path contains some special chars, that is
Chinese. We have other repositories containing Chinese file/dir names.
But converting these repositories was successful. And the revisions
before 10909 already contain many other Chinese file/dir names.

There is some trouble to display Chinese char in my Unix term. When I
am back in office, I will try to use windows to find more info about
that revision.


Gilbert
   

On 7/22/05, Garrett Rooney <ro...@electricjellyfish.net> wrote:
> Gilbert Fine wrote:
> > Hi All,
> >
> >     We have a big svn repository (containing over 18000 revisions). We want
> > to convert it from bdb to fsfs. Because recently we found that this
> > repository needs to be recovered too often (almost every morning). And
> > fsfs seems save a lot of space.
> >
> >     But we failed. "svnadmin load" on a certain revision, and it can be
> > reproduced. The failed revision is the same every time we tried.
> > svnadmin gave no error message, if I recalled correctly.
> 
> Well, I don't see how you expect us to debug the problem with zero
> information other than "it failed".  You're going to have to provide
> more information, like the exact commands you ran, and the exact output
> from when the failure ocurred.
> 
> -garrett
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: fails to convert bdb to fsfs

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
Gilbert Fine wrote:
> Hi All,
> 
>     We have a big svn repository (containing over 18000 revisions). We want
> to convert it from bdb to fsfs. Because recently we found that this
> repository needs to be recovered too often (almost every morning). And
> fsfs seems save a lot of space.
> 
>     But we failed. "svnadmin load" on a certain revision, and it can be
> reproduced. The failed revision is the same every time we tried.
> svnadmin gave no error message, if I recalled correctly.

Well, I don't see how you expect us to debug the problem with zero 
information other than "it failed".  You're going to have to provide 
more information, like the exact commands you ran, and the exact output 
from when the failure ocurred.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: fails to convert bdb to fsfs

Posted by Ulrich Eckhardt <ec...@satorlaser.com>.
Gilbert Fine wrote:
> "svnadmin load" on a certain revision, and it can be
> reproduced. The failed revision is the same every time we 
> tried. svnadmin gave no error message, if I recalled correctly.

The general procedure is to take a backup that contains this revision in a 
working state, load the new repo with revisions [0...x+1] and load the rest 
from the dump of the current repository.

> We need to restore to some backup - thank god we backup every day.

You didn't think VSS was a replacement for backups or magically made them 
unnecessary, did you? Subversion can't do that, it can only assure that data 
is stored in a certain way so that no information is lost if accesses go 
through the Subversion API. Direct accesses or hardware failure can't be 
intercepted that way.

Uli

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org