问题
因为某些历史原因,当初使用服务器做了raid10运气不好坏了两块盘,导致seafile数据是存在问题的,猜测可能有损坏,所以seafile出现了有些同事的资料库无法打开的情况,报错 Library not found
尝试修复
seafile 还是提供了修复手段的,拿到资料库的id,然后使用 seaf-fsck.sh 脚本尝试修复,如果运气好的话很有可能恢复过来的
[root@localhost seafile-server-latest]# ./seaf-fsck.sh --repair 72e4c44c-5fe1-46a6-aaf6-3030ae9bbcff
Starting seaf-fsck, please wait ...
[07/08/24 10:57:15] fsck.c(602): Running fsck for repo 72e4c44c-5fe1-46a6-aaf6-3030ae9bbcff.
[07/08/24 10:57:15] repo-mgr.c(346): Commit b384d5fa0704d63d666799941b097396503a65c2 is missing
[07/08/24 10:57:15] fsck.c(619): Repo 72e4c44c HEAD commit is damaged, need to restore to an old version.
[07/08/24 10:57:15] fsck.c(507): Scanning available commits...
[07/08/24 10:57:24] fsck.c(567): Find available commit 5a6cbed9(created at 2023-11-08 20:22:22) for repo 72e4c44c.
[07/08/24 10:57:24] fsck.c(422): Checking file system integrity of repo 50 市民之家企业服务一站直通(72e4c44c)...
[07/08/24 11:00:18] fsck.c(398): Update repo 72e4c44c status to commit 9b93dcac.
[07/08/24 11:00:18] fsck.c(666): Fsck finished for repo 72e4c44c.
从输出可以看到,seafile 的修复流程当前版本如果能修复则修复,如果当前版本不行,则尝试修复历史版本
如果不幸所有历史版本都损坏,或者只有一个版本,只能祈祷数据有备份了
评论