免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4725 | 回复: 9
打印 上一主题 下一主题

reiserfs文件系统恢复超级块 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-08-26 17:01 |只看该作者 |倒序浏览
本帖最后由 虔诚的墨鱼 于 2010-08-27 11:53 编辑

操作系统opensuse10.2
6T分区时raid5分区

下面是mount后message里面的信息

Aug 26 16:10:08 WACS3 kernel: ReiserFS: sdb1: using ordered data mode
Aug 26 16:10:08 WACS3 kernel: reiserfs: using flush barriers
Aug 26 16:10:08 WACS3 kernel: ReiserFS: sdb1: journal params: device sdb1, size                                              8192, journal first block 18, max trans len 1024, max batch 900, max commit age                                              30, max trans age 30
Aug 26 16:10:08 WACS3 kernel: ReiserFS: sdb1: checking transaction log (sdb1)
Aug 26 16:10:08 WACS3 kernel: attempt to access beyond end of device
Aug 26 16:10:08 WACS3 kernel: sdb1: rw=0, want=11341830920, limit=3127892410
Aug 26 16:10:08 WACS3 kernel: ReiserFS: sdb1: warning: vs-13070: reiserfs_read_l                                             ocked_inode: i/o failure occurred trying to find stat data of [1 2 0x0 SD]
Aug 26 16:10:08 WACS3 kernel: ReiserFS: sdb1: Using r5 hash to sort names
Aug 26 16:10:08 WACS3 kernel: ReiserFS: sdb1: warning: xattrs/ACLs enabled and c                                             ouldn't find/create .reiserfs_priv. Failing mount.

下面是执行了fsck后显示的信息
WACS3:/var/log # fsck -a /dev/sdb1
fsck 1.39 (29-May-2006)
bread: Cannot read the block (1464728367): (Invalid argument).

reiserfs_open: Your partition is not big enough to contain the
filesystem of (1464728367) blocks as was specified in the found super block.
Failed to open the filesystem.

If the partition table has not been changed, and the partition is
valid  and  it really  contains  a reiserfs  partition,  then the
superblock  is corrupted and you need to run this utility with
--rebuild-sb.

fsck.reiserfs /dev/sdb1 failed (status 0x8 ). Run manually!


那位大大可以帮我判断是是什么原因。

论坛徽章:
0
2 [报告]
发表于 2010-08-26 17:13 |只看该作者
顶起,大家别光看啊,给出出注意撒。5T 的数据不能丢啊

论坛徽章:
0
3 [报告]
发表于 2010-08-26 20:09 |只看该作者
可能分区表有问题了
之前有没有备份分区表或记录了分区表啊.
恢复份区表 或者 按照分区分重建分区

论坛徽章:
0
4 [报告]
发表于 2010-08-27 09:29 |只看该作者
没用过 ReiserFS

you need to run this utility with
--rebuild-sb.???

论坛徽章:
0
5 [报告]
发表于 2010-08-27 11:52 |只看该作者
根据从网上查到的信息,初步判断可能是超级块损坏了,
reiserfs_open: Your partition is not big enough to contain the
filesystem of (1464728367) blocks as was specified in the found super block.

但是我从没有做过超级块的恢复工作,谁了解怎么恢复超级块啊

论坛徽章:
0
6 [报告]
发表于 2010-08-27 11:59 |只看该作者
你可以fsck.reiserfs --rebuild-sb的,不过做之前,最好备份一下,我有失败经历

论坛徽章:
0
7 [报告]
发表于 2010-08-27 12:31 |只看该作者
怎么备份?可以说下具体操作么

论坛徽章:
0
8 [报告]
发表于 2010-08-27 14:37 |只看该作者
我一般是全盘备份,前提是你有足够的工具,用DD备份到另外设备

论坛徽章:
0
9 [报告]
发表于 2012-02-07 14:39 |只看该作者
分享三个reiserfsck命令的参数,也许对你有用

  --fix-fixable                 fix corruptions which can be fixed without
                                --rebuild-tree
  --rebuild-sb                  super block checking and rebuilding if needed
                                (may require --rebuild-tree afterwards)
  --rebuild-tree                force fsck to rebuild filesystem from scratch
                                (takes a long time)

初步感觉,应该先对磁盘进行修复,之后恢复超级块

论坛徽章:
0
10 [报告]
发表于 2012-02-07 14:41 |只看该作者
不要用系统的fsck,而用reiserfsck来进行修复

note:
修复前,注意磁盘数据备份,小心出现意外
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP