我的服务器是否有坏块?

我的服务器是否有坏块?

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

从救援模式(我的托管服务提供商提供的从网络加载操作系统的模式)我在有问题的(未安装的)设备上运行了 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”时,它没有列出任何坏块。

那么是否存在坏块?如果有,它们在哪里?如果没有,服务器抱怨的是什么?

答案1

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

您没有提供足够的有关您的环境的信息来对发生的事情做出有根据的猜测,但我见过的最常见原因是:

  • 未安装更新。旧内核(尤其是 EL5 及更早版本)有许多与文件系统相关的错误,这些错误已得到修复并已推送更新。如果您没有使用 EL5.9 / EL6.x,那么您做错了。
  • 系统处于活动状态时断电,因此文件系统处于不确定状态。如果发生此类事件,您希望知道。

相关内容