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

Hardware failure, corrupt repo (including backups)

From: Roo <roo.watt_at_gmail.com>
Date: 2007-10-03 07:27:34 CEST

I am posting here in the hope that someone may be able top offer some advice.

Some details:
  * Ubuntu 6.06LTS
  * Subversion 1.3.1 (r19032) via apt-get
  * Apache 2.0.55 via apt-get

In short we had a hardware failure (faulty equipment shorted out the
mains supply) and this has led to a crash of the filesystem that the
repos were host hosted on.

When restoring the backup (N) we found that two repos would fail a
"svnadmin verify" with different errors:
  Repo 1 error: "svnadmin: Invalid diff stream: [new] insn 76
overflows the new data section"
  Repo 2 error: "svnadmin: Unexpected end of svndiff input"

A backup from the N-1 backup does verify properly.

I thought a FSFS svn repo does not alter previous revision files and I
guess this points to a potential FSFS corruption that had occurred
prior to the hardware failure as was backed up.

I have a number of questions of the experienced users that are
(hopefully) reading this:

1/ Is there a way to excise a corrupted revision and restore the repo
with a missing rev?

2/ Alternatively, is there a way to simply restore the HEAD revision
of the repo without all previous history?

3/ Is it recommended to run "svnadmin verify" on a live repo via cron,
or on a backedup repo?

Any thoughts, recommendations or otherwise are appreciated.

Cheers.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 3 07:27:52 2007

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.