You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Johan Wiklund <jo...@isy.liu.se> on 2005/02/03 10:31:59 UTC

hot backup fails

We have been using subversion for about half a year, and it has been
working like a charm. But suddenly we got errors while doing hot
backup of one of the repositories.

We are using subversion ver 1.1.2, running on a solaris box.
The repositories are located on local disk.

The following shows the printout from the hotcopy operation:

 > svnadmin hotcopy repository/cvl backup/cvl
subversion/libsvn_subr/io.c:2345: (apr_err=70008)
svn: Can't read directory entry in 
'/export/subversion/repository/cvl/db': Partial results are valid but 
processing is incomplete
 >

Running 'svnadmin verify repository/cvl' goes ok. It doesn't seem
to be any problem with the repository, it's "only" the backup of it
that failes. We have some other repositories, for which the same backup
procedure works well.

The following is a file list of the directory mentioned in the error
message:

 > ls -la /export/subversion/repository/cvl/db
total 4545736
drwxr-xr-x   2 www      www          512 Feb  2 15:52 .
drwxr-xr-x   7 www      www          512 Mar 26  2004 ..
-rw-r--r--   1 www      www         1738 Mar 26  2004 DB_CONFIG
-rw-r--r--   1 www      www         8192 Feb  3 10:19 __db.001
-rw-r--r--   1 www      www       270336 Feb  3 08:13 __db.002
-rw-r--r--   1 www      www       327680 Feb  1 15:42 __db.003
-rw-r--r--   1 www      www       819200 Feb  3 08:13 __db.004
-rw-r--r--   1 www      www        16384 Feb  3 10:19 __db.005
-rw-r--r--   1 www      www      1818624 Feb  3 10:15 changes
-rw-r--r--   1 www      www        49152 Feb  3 10:15 copies
-rw-r--r--   1 www      www      1040799 Feb  2 15:52 log.0000002984
-rw-r--r--   1 www      www      1046946 Feb  2 15:52 log.0000002985
-rw-r--r--   1 www      www       931163 Feb  3 10:19 log.0000002986
-rw-r--r--   1 www      www      1343488 Feb  3 10:15 nodes
-rw-r--r--   1 www      www      1671168 Feb  3 10:15 representations
-rw-r--r--   1 www      www        40960 Feb  3 10:15 revisions
-rw-r--r--   1 www      www      2316492800 Feb  3 10:15 strings
-rw-r--r--   1 www      www       278528 Feb  3 10:15 transactions
-rw-r--r--   1 www      www        16384 Feb  3 10:15 uuids
 >

The file strings seems to be quite large (>2GB), may this be a problem?

The directory created by the failing hotcopy looks like this:

 > ls -la /export/subversion/backup/cvl
total 8
drwxr-xr-x   4 www      www          512 Feb  3 09:45 .
drwxr-x---  11 www      www          512 Feb  3 10:20 ..
drwxr-xr-x   2 www      www          512 Feb  3 09:45 conf
drwxr-xr-x   2 www      www          512 Feb  3 09:45 dav
 >

Does anyone have a clue why the hotcopy suddenly stopped working on
one of our repositories, and (most importantly) how to fix it?

Regards,

Johan


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

Re: hot backup fails

Posted by Johan Wiklund <jo...@isy.liu.se>.
Ben Collins-Sussman wrote:
> 
> On Feb 3, 2005, at 4:31 AM, Johan Wiklund wrote:
> 
>> We have been using subversion for about half a year, and it has been
>> working like a charm. But suddenly we got errors while doing hot
>> backup of one of the repositories.
>>
>> We are using subversion ver 1.1.2, running on a solaris box.
>> The repositories are located on local disk.
> 
> 
> Perhaps the APR is old?
> 
> FAQ:  http://subversion.tigris.org/faq.html#hotcopy-large-repos

Well, we are using the APR included in the subversion distribution,
which is 0.9.5

In the apr CHANGES file I found the following item:

  *) Remove apr_file_copy()'s 2Gb file size limit on some platforms.
     [Joe Orton]

Apparently the fix doesn't work on Solaris platforms. This seems odd to 
me, Solaris has been a stable 64-bit operating system for a long time
and shouldn't have any problem to handle large files.

I found in the CHANGES file of subversion a note about "added support
for any apr/apr-util 1.X". Does anyone know if the latest version (apr 
1.1.0) solves this problem on Solaris? I assume there is a reason why
the apr version 0.9.5 and not the apr 1.1.0 is bundled with the
subversion source distribution. Do you recommend downloading apr 1.1.0
and use that instead?

Regards,

Johan

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

Re: hot backup fails

Posted by Ben Collins-Sussman <su...@collab.net>.
On Feb 3, 2005, at 4:31 AM, Johan Wiklund wrote:

> We have been using subversion for about half a year, and it has been
> working like a charm. But suddenly we got errors while doing hot
> backup of one of the repositories.
>
> We are using subversion ver 1.1.2, running on a solaris box.
> The repositories are located on local disk.

Perhaps the APR is old?

FAQ:  http://subversion.tigris.org/faq.html#hotcopy-large-repos


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