You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "JS.staff" <js...@ecclescollege.ac.uk> on 2004/10/09 16:20:14 UTC

Meaning of fsfs files

Is there a reference somewhere explaining what the various files in an fsfs repos are used for?
 
I've noticed some files '__db.002' etc that don't get copied when I hotcopy.. what do they do?
 
Also, is there advice on what to do if a fsfs repos gets broken? (not that mine is!) does 'svnadmin recover' work? i thought someone said it was a no-op.
 
Thanks,
 
John

Re: Meaning of fsfs files

Posted by stephen meechan <mg...@dsl.pipex.com>.
> On Oct 9, 2004, at 11:20 AM, JS.staff wrote:
> >
> > I've noticed some files '__db.002' etc that don't get copied when I
> > hotcopy.. what do they do?
>
> Huh?  There are no __db.* files in an fsfs repsository.  That comes
> from a BerkeleyDB repository.
>
> $ ls -lR fsfs_repos/db
> total 24
> -rw-r--r--  1 sussman  sussman    6  9 Oct 12:14 current
> -rw-r--r--  1 sussman  sussman    5  9 Oct 12:14 fs-type
> drwxr-xr-x  3 sussman  sussman  102  9 Oct 12:14 revprops/
> drwxr-xr-x  3 sussman  sussman  102  9 Oct 12:14 revs/
> drwxr-xr-x  2 sussman  sussman   68  9 Oct 12:14 transactions/
> -rw-r--r--  1 sussman  sussman   37  9 Oct 12:14 uuid
>
> [...]
>

Odd, I also noticed some db files appearing on the backup, I just assumed
they were meant to be there:

 Directory of F:\svn-repositories\Release4\db

31/08/2004  21:38       <DIR>          .
31/08/2004  21:38       <DIR>          ..
07/10/2004  19:26                   14 current
27/08/2004  18:14                    5 fs-type
27/08/2004  18:25                   37 uuid
27/08/2004  18:25                    0 write-lock
31/08/2004  21:38       <DIR>          transactions
31/08/2004  21:38       <DIR>          revs
31/08/2004  21:49       <DIR>          revprops
20/09/2004  13:48                8,192 __db.001
20/09/2004  13:46              270,336 __db.002
20/09/2004  13:48               98,304 __db.003
20/09/2004  13:48              368,640 __db.004
20/09/2004  13:48               16,384 __db.005
20/09/2004  13:45                   64 log.0000000001
              10 File(s)        761,976 bytes
               5 Dir(s)   5,660,696,576 bytes free


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

Re: Meaning of fsfs files

Posted by Ben Collins-Sussman <su...@collab.net>.
On Oct 9, 2004, at 11:20 AM, JS.staff wrote:
>
> I've noticed some files '__db.002' etc that don't get copied when I 
> hotcopy.. what do they do?

Huh?  There are no __db.* files in an fsfs repsository.  That comes 
from a BerkeleyDB repository.

$ ls -lR fsfs_repos/db
total 24
-rw-r--r--  1 sussman  sussman    6  9 Oct 12:14 current
-rw-r--r--  1 sussman  sussman    5  9 Oct 12:14 fs-type
drwxr-xr-x  3 sussman  sussman  102  9 Oct 12:14 revprops/
drwxr-xr-x  3 sussman  sussman  102  9 Oct 12:14 revs/
drwxr-xr-x  2 sussman  sussman   68  9 Oct 12:14 transactions/
-rw-r--r--  1 sussman  sussman   37  9 Oct 12:14 uuid

[...]

>
> Also, is there advice on what to do if a fsfs repos gets broken?

It doesn't get broken.  It's not a journalling database, so it can't 
get 'wedged' in an inconsistent state like BerkeleyDB does.  'svnadmin 
recover' is meaningless for fsfs repositories.


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

Re: Meaning of fsfs files

Posted by Greg Hudson <gh...@MIT.EDU>.
> Someone mentioned that if a backup copies the /rev files before
> 'current' it could require some slight manual repare on restore.

> I wondered what that repair was.

You'd change the first field of db/current to refer to the most recent
complete rev.  (You could then remove any partially-written rev files
after that, or just let them be overwritten as commits are made.)

"svnadmin recover" may learn how to do this on FSFS some day, although
mechanistically determining the most recent complete rev is a little
tricky as things stand.

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

Re: Meaning of fsfs files

Posted by "js.staff" <js...@ecclescollege.ac.uk>.
Greg Hudson <ghudson <at> MIT.EDU> writes:

> > I've noticed some files '__db.002' etc that don't get copied when I
> > hotcopy.. what do they do?
> 
> These can show up if you attempt to access the repository with old
> server code, or if you run "svnadmin list-dblogs" or "svnadmin
> list-unused-dblogs" on the repository.  They're harmless and can be
> deleted.


Thanks!

Someone mentioned that if a backup copies the /rev files before 'current' it 
could require some slight manual repare on restore.

I wondered what that repair was.

John




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

Re: Meaning of fsfs files

Posted by Greg Hudson <gh...@MIT.EDU>.
> I've noticed some files '__db.002' etc that don't get copied when I
> hotcopy.. what do they do?

These can show up if you attempt to access the repository with old
server code, or if you run "svnadmin list-dblogs" or "svnadmin
list-unused-dblogs" on the repository.  They're harmless and can be
deleted.

(In a more perfect world we would have been more careful about those
things, but it never seemed like a high priority.)

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