我的服务器是否有坏块?

我的服务器今天崩溃了。 它将/ sda8设备(/ home)切换为只读,日志中显示“ext3_xattr_block_get:inode 590080:坏块6”

从救援模式(我的托pipe服务提供商提供的操作系统从networking加载的东西)我运行e2fsck -c在违规(卸载)的设备上。

结果是:

/home: Updating bad block inode. Pass 1: Checking inodes, blocks, and sizes Inode 590080 has a bad extended attribute block 6. Clear<y>? yes Inode 590080 has illegal block(s). Clear<y>? yes Illegal block #6 (3225896002) in inode 590080. CLEARED. Illegal indirect block (161766104) in inode 590080. CLEARED. Illegal triple indirect block (161776560) in inode 590080. CLEARED. Inode 590080, i_size is 693150323631456341, should be 4096. Fix<y>? yes Deleted inode 8669125 has zero dtime. Fix<y>? yes Pass 2: Checking directory structure Entry '1362510759.H198758P4400' in /mail/tmp (8666577) has deleted/unused inode 8669125. Clear<y>? yes Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information Block bitmap differences: -8685568 -8687060 Fix<y>? yes Free blocks count wrong for group #265 (5593, counted=5595). Fix<y>? yes Free blocks count wrong (7313501, counted=7313503). Fix<y>? yes Inode bitmap differences: -8669125 Fix<y>? yes Free inodes count wrong for group #265 (29385, counted=29386). Fix<y>? yes Free inodes count wrong (11764285, counted=11764286). Fix<y>? yes /home: ***** FILE SYSTEM WAS MODIFIED ***** /home: 630530/12394816 files (4.3% non-contiguous), 5076620/12390123 blocks 

我不是很明白,但是这听起来像是发现了一些错误。

但是当我运行“dumpe2fs -b / dev / sda8”时,并没有列出任何坏块。

那么有坏块吗? 如果是,他们在哪里? 如果不是,服务器在抱怨什么?

这只是普通的旧的文件系统损坏。

你没有给出足够的关于你的环境的信息来猜测发生了什么,但是我见过的最常见的原因是:

  • 不安装更新。 旧的内核,特别是EL5和旧版本,有许多文件系统相关的错误,这些错误已经被修复并且被更新了。 如果你不在EL5.9 / EL6.x那么你做错了。
  • 系统处于活动状态时断电,文件系统处于不确定状态。 你会希望知道这样的事件是否发生。