首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >关于lvm的reiserfsck

关于lvm的reiserfsck
EN

Server Fault用户
提问于 2010-02-03 06:20:37
回答 1查看 1.2K关注 0票数 2

在服务器的最后一次重新启动期间,我的文件系统似乎以某种方式损坏了。我不能再fsck一些逻辑卷了。设置:

代码语言:javascript
复制
root@rescue ~ # cat /mnt/rescue/etc/fstab 
proc /proc proc defaults 0 0
/dev/md0 /boot ext3 defaults 0 2
/dev/md1 / ext3 defaults,errors=remount-ro 0 1

/dev/systemlvm/home /home reiserfs defaults 0 0
/dev/systemlvm/usr /usr reiserfs defaults   0 0
/dev/systemlvm/var /var reiserfs defaults   0 0
/dev/systemlvm/tmp /tmp reiserfs noexec,nosuid 0 2

/dev/sda5 none swap defaults,pri=1 0 0
/dev/sdb5 none swap defaults,pri=1 0 0

更新第一个问题:我应该检查哪些“部分”是坏块?逻辑卷,底层的/dev/md还是低于它的/dev/sdx?做我正在做的事情是正确的吗?在检查/dev/systemlvm/usr时,/UPDATE是错误消息:

代码语言:javascript
复制
root@rescue ~ # reiserfsck /dev/systemlvm/usr 
reiserfsck 3.6.19 (2003 www.namesys.com)
[...]
Will read-only check consistency of the filesystem on /dev/systemlvm/usr
Will put log info to 'stdout'

Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
###########
reiserfsck --check started at Wed Feb  3 07:10:55 2010
###########
Replaying journal..
Reiserfs journal '/dev/systemlvm/usr' in blocks [18..8211]: 0 transactions replayed
Checking internal tree..

Bad root block 0. (--rebuild-tree did not complete)

Aborted

到目前为止,让我们尝试一下--rebuild-tree

代码语言:javascript
复制
root@rescue ~ # reiserfsck --rebuild-tree /dev/systemlvm/usr 
reiserfsck 3.6.19 (2003 www.namesys.com)

[...]

Will rebuild the filesystem (/dev/systemlvm/usr) tree
Will put log info to 'stdout'

Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
Replaying journal..
Reiserfs journal '/dev/systemlvm/usr' in blocks [18..8211]: 0 transactions replayed
###########
reiserfsck --rebuild-tree started at Wed Feb  3 07:12:27 2010
###########
Pass 0:
####### Pass 0 #######
Loading on-disk bitmap .. ok, 269716 blocks marked used
Skipping 8250 blocks (super block, journal, bitmaps) 261466 blocks will be read
0%....20%....40%....60%....80%....100%                       left 0, 11368 /sec
52919 directory entries were hashed with "r5" hash.
        "r5" hash is selected
Flushing..finished
        Read blocks (but not data blocks) 261466
                Leaves among those 13086
                Objectids found 53697

Pass 1 (will try to insert 13086 leaves):
####### Pass 1 #######
Looking for allocable blocks .. finished
0%                                                           left 12675, 0 /sec
The problem has occurred looks like a hardware problem (perhaps
memory). Send us the bug report only if the second run dies at
the same place with the same block number.

mark_block_used: (39508) used already
Aborted

坏的。但让我们再做一次,就像前面提到的:

代码语言:javascript
复制
[...]
Flushing..finished
        Read blocks (but not data blocks) 261466
                Leaves among those 13085
                Objectids found 54305

Pass 1 (will try to insert 13085 leaves):
####### Pass 1 #######
Looking for allocable blocks .. finished
0%...                                                      left 12127, 958 /sec
The problem has occurred looks like a hardware problem (perhaps
memory). Send us the bug report only if the second run dies at
the same place with the same block number.

build_the_tree: Nothing but leaves are expected. Block 196736 - internal

Aborted

每次都会发生同样的情况,只有实际的错误消息才会发生更改。有时我会得到mark_block_used: (somenumber) used already,其他时候块号会改变。好像有些东西真的坏了。我是否有机会让分区再次工作?这是一个我无法直接访问的服务器(托管服务器)。

提前感谢!

EN

回答 1

Server Fault用户

回答已采纳

发布于 2010-02-03 12:17:17

嗯,经过几个小时的reiserfsck处理后,似乎重复了这三个步骤。

代码语言:javascript
复制
reiserfsck --check ...
reiserfsck --rebuild-sb ...
reiserfsck --rebuild-tree ...

最终解决了问题。我仍然不知道问题的原因,因为似乎没有在任何驱动器上的坏块,我也不知道有多少数据丢失,但毕竟,我很确定这是不应该发生的。一个分区仍然在“重放它的日志”,但是一旦我能够重新启动计算机,我会告诉它成功(或失败)。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/109061

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档