You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Curtis Stiebler <CS...@Navegate.com> on 2014/06/03 22:06:09 UTC
Repository Recovery
To all, we had a power flicker which in turn caused out Server that we use for our Visual VSN recovery to reboot. Once it rebooted, we are unable to get to our repository either through our Visual Studio Environment or through the VisualSVN server tool. In the server tool, when we go the projects node in the tree, it gives us an error saying unable to access \\.....\db\current<file:///\\.....\db\current> end of file found. We do not have a backup of the repository structure and in need of recovering the repository and we are looking for some guidance.
Please feel free to give me a call at 651-294-4505 or send me an email.
Thank you,
curtis stiebler
[logo-116-25]
www.navegate.com<http://www.navegate.com/>
cstiebler@navegate.com<ma...@navegate.com>
612-889-3711
Re: Repository Recovery
Posted by Henrik Carlqvist <hc...@poolhem.se>.
On Wed, 4 Jun 2014 17:51:49 +0100
Andreas Stieger <an...@gmx.de> wrote:
> Preaching backup during an uncovered recovery scenario may be fun and
> make you feel smirk, but it is rarely useful for the particular problem.
As backups are only useful when taken before the disaster a backup will
not help in this case. However, if done right, a backup might be useful
the next time. There will be a next time. Sooner or later, for some reason
there will be a next time.
> Your advice jumps from generic (image and scan fs) to speculative (data
> recovery firms). Would it not be better to address the specific problem?
The most important part in my advice for this case is to stop any
operation that might be writing to the disk with a corrupted file system.
In the unix world, the file system should be unmounted or at least mounted
read-only. As this seems like Windows to me with backslashes in the path I
have no better advice than shutting down the machine and remove the disk.
> db/current contains exactly the following:
> 1. Highest revision in plain text
> 2. LF (0x0a, Unix file ending format)
> Find the highest revision in db/revs/N (depending on sharding).
> If that is the only file affected it may very well resolve the issue
> immediately. Verify using svnadmin verify. Failing that, you could
> dismiss the last revision by the same means, or re-create it if you have
> the committing wc or a diff. It may also be dangling as a transaction.
Those commands might be useful, or they might become the commands which
overwrite the part of disk that contains some important data but is marked
as unused by the broken file system. Before applying these or any other
data rescue attempts, be sure to work only on disposable copies of the
crashed file system!
But IMHO this is not a subversion problem. This is a filesystem problem.
First the file system should be fixed. Then any lost data should be
recovered. Once we start recovering data it might become a subversion
problem considering the structure and contents of the repository.
regards Henrik
Re: Repository Recovery
Posted by Andreas Stieger <an...@gmx.de>.
Preaching backup during an uncovered recovery scenario may be fun and make you feel smirk, but it is rarely useful for the particular problem. Your advice jumps from generic (image and scan fs) to speculative (data recovery firms). Would it not be better to address the specific problem?
db/current contains exactly the following:
1. Highest revision in plain text
2. LF (0x0a, Unix file ending format)
Find the highest revision in db/revs/N (depending on sharding).
If that is the only file affected it may very well resolve the issue immediately. Verify using svnadmin verify. Failing that, you could dismiss the last revision by the same means, or re-create it if you have the committing wc or a diff. It may also be dangling as a transaction.
Andreas
> On 4 Jun 2014, at 08:07, Henrik Carlqvist <hc...@poolhem.se> wrote:
>
> On Tue, 3 Jun 2014 20:06:09 +0000
> Curtis Stiebler <CS...@Navegate.com> wrote:
>> we had a power flicker
>
> Power flicker, physical hard disk crashes, fires, shit happens every now
> and then...
>
>> We do not have a backup of the repository structure
>
> I was once told that the 3 most important tasks for a sysadm is:
>
> 1) backup
> 2) backup
> 3) backup
>
> It really does seem as if you need a sysadm who takes his job seriously.
>
>> need of recovering the repository and we are looking for some guidance.
>
> First of all, shut down the machine and remove the disk. Every write that
> happens to the disk from now on might cause you to lose more data that
> otherwise would have been possible to recover.
>
> Next, create an image file of the disk and start working with copies of
> that image. Try tools to fix the file system, if those tools are not
> enough, try data recovery tools, sometimes called forensics tools.
>
> You could also give this as a work to some professional data recovery
> company. That will cost a lot of $$$, but still you can not be sure to
> recover all data.
>
> Or, you could simply face the fact that you have lost your repository in
> lack of backup and in this case a choice of an untrusty file system. Next
> time you might want to choose some kind of journalling file system, but
> even with better file systems you should not neglect the need for backup.
>
> Even with the repository lost you probably have not lost all your source.
> Most likely you can create a new repository and check in the source you
> have checked out in a working copy. The history will be lost, but at least
> you have something resembling the last version of your source.
>
> No matter how you solve this it might be a good idea to consider the
> advices at http://www.taobackup.com/
> Even though those pages are made to sell some software the thoughts are
> really worth considering.
>
>
> regards Henrik
Re: Repository Recovery
Posted by Stefan Sperling <st...@elego.de>.
On Wed, Jun 04, 2014 at 09:07:30AM +0200, Henrik Carlqvist wrote:
> I was once told that the 3 most important tasks for a sysadm is:
>
> 1) backup
> 2) backup
> 3) backup
>
> It really does seem as if you need a sysadm who takes his job seriously.
Wasn't step 2 supposed to be 'test restore'? :)
Re: Repository Recovery
Posted by Henrik Carlqvist <hc...@poolhem.se>.
On Tue, 3 Jun 2014 20:06:09 +0000
Curtis Stiebler <CS...@Navegate.com> wrote:
> we had a power flicker
Power flicker, physical hard disk crashes, fires, shit happens every now
and then...
> We do not have a backup of the repository structure
I was once told that the 3 most important tasks for a sysadm is:
1) backup
2) backup
3) backup
It really does seem as if you need a sysadm who takes his job seriously.
> need of recovering the repository and we are looking for some guidance.
First of all, shut down the machine and remove the disk. Every write that
happens to the disk from now on might cause you to lose more data that
otherwise would have been possible to recover.
Next, create an image file of the disk and start working with copies of
that image. Try tools to fix the file system, if those tools are not
enough, try data recovery tools, sometimes called forensics tools.
You could also give this as a work to some professional data recovery
company. That will cost a lot of $$$, but still you can not be sure to
recover all data.
Or, you could simply face the fact that you have lost your repository in
lack of backup and in this case a choice of an untrusty file system. Next
time you might want to choose some kind of journalling file system, but
even with better file systems you should not neglect the need for backup.
Even with the repository lost you probably have not lost all your source.
Most likely you can create a new repository and check in the source you
have checked out in a working copy. The history will be lost, but at least
you have something resembling the last version of your source.
No matter how you solve this it might be a good idea to consider the
advices at http://www.taobackup.com/
Even though those pages are made to sell some software the thoughts are
really worth considering.
regards Henrik