SVN 存储库崩溃

发布于 2024-07-09 12:00:01 字数 798 浏览 3 评论 0原文

今天,我们存储 SVN 存储库的虚拟 W2003 服务器也变得非常非常繁忙。 结果发现C:盘只剩下88KB的可用空间。 没那么好。 由于访问问题,我们重新启动它的唯一方法是从任务管理器(McAffee、SqlServer、services.exe)中终止繁忙的进程,然后正常重新启动。 我们释放了一些空间,机器又恢复正常了,但是我们的 SVN 存储库不再可用。

如果我从客户端连接,它会显示消息“在 'svn://[mymachine]/repos/[myapp]' 中找不到存储库” 但是,从服务器我可以使用“svnlook tree [rootFolder]”命令查看内容。

如果我使用 Windows 资源管理器导航到根文件夹,则以下文件夹为空(我不知道这是否正常):

  • [rootFolder]/trunk
  • [rootFolder]/tags
  • [rootFolder]/branches

但是,[rootFolder]/db 包含许多具有相应修订名称的文件。 头部的大小应该在 600MB 左右,但我们也有许多分支。 [rootFolder] 的总大小现在约为 600MB。 我们是否松动了树枝? 明天我们也会知道我们的备份系统是否运行良好。 无论如何,有人有任何想法吗?

[找到解决方案后更新]

感谢所有提交答案的人,他们对于解决问题非常有用。 崩溃期间,SVN 服务遭到破坏,但数据完好无损。 重新安装服务已解决问题。

Today our virtual W2003 server storing our SVN repository (too) became very-very busy. It turned out that it had only 88KB free space left on the C: drive. Not that good. Due to access problems, the only way we could reboot it by killing the busy processes from task manager (McAffee, SqlServer, services.exe) and then gracefully reboot. We freed up some space, the machine is happy again, but our SVN repository is not available anymore.

If I connect from the client, it gives the message "No repository found in 'svn://[mymachine]/repos/[myapp]' "
However, from the server I can see the content using "svnlook tree [rootFolder]" command.

If I navigate to the root folder using Windows Explorer, the following folders are empty (I have no clue if that is normal):

  • [rootFolder]/trunk
  • [rootFolder]/tags
  • [rootFolder]/branches

However, the [rootFolder]/db contains many files with the corresponding revision name. The size of the head should be around 600MB but we have also a number of branches. The total size of the [rootFolder] is now ~600MB. Did we loose the branches? Tomorrow we will also know if our backup system worked well. Anyway, does anyone has any idea?

[Update after solution found]

Thanx for all who submitted answers, they were very useful in resolving the trouble.
During the crash, the SVN service got corrupted, while the data remained intact. Reinstallation of the service has solved the problem.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

无妨# 2024-07-16 12:00:01

在存储库框中,尝试修复和验证。

svnadmin repair [rootFolder]
svnadmin verify [rootFolder]

如果这没有帮助,希望你的备份有效。

不用太担心头部的大小。 分支就像符号链接,只存储通常相当小的差异。

On the repository box, try a repair and a verify.

svnadmin repair [rootFolder]
svnadmin verify [rootFolder]

If that doesn't help, hopefully your backup works.

Don't worry too much about the size being about the size of the head. Branches are like symlinks and only store the diffs which are often fairly small.

蓝天 2024-07-16 12:00:01

听起来您只需要重新启动 svnserve 即可。

如果您遵循 Subversion Book 使用 sc 设置服务:

net start [service]

net start subversion

或者直接:(理论上...我使用了 scnet,我)

svnserve.exe --service -r [rootFolder]

Sounds like you just need to restart svnserve.

If you followed the Subversion Book in setting up a service with sc:

net start [service]

net start subversion

Or, directly: (theoretically...I used sc and net, myself)

svnserve.exe --service -r [rootFolder]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文