内核异常操作 0x6 冻结失败命令:FLUSH CACHE

内核异常操作 0x6 冻结失败命令:FLUSH CACHE

几个月以来,我们的服务器会定期挂起一两分钟。日志显示以下错误:

May 15 20:01:02 www kernel: ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 15 20:01:02 www kernel: ata2.00: failed command: FLUSH CACHE
May 15 20:01:02 www kernel: ata2.00: cmd e7/00:00:00:00:00/00:00:00:00:00/a0 tag 0
May 15 20:01:02 www kernel:         res 40/00:00:00:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)
May 15 20:01:02 www kernel: ata2.00: status: { DRDY }
May 15 20:01:02 www kernel: ata2: hard resetting link
May 15 20:01:03 www kernel: ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
May 15 20:01:03 www kernel: ata2.00: configured for UDMA/133
May 15 20:01:03 www kernel: ata2.00: retrying FLUSH 0xe7 Emask 0x4
May 15 20:01:03 www kernel: ata2.00: device reported invalid CHS sector 0
May 15 20:01:03 www kernel: ata2: EH complete

这些错误发生的时间很奇特,总是在整点后的几分钟:

May 15 00:06:02 www kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 15 10:05:02 www kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 15 20:01:02 www kernel: ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 16 00:04:01 www kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 16 04:01:02 www kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 16 07:02:02 www kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 16 07:03:03 www kernel: ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 16 11:02:02 www kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 16 12:06:02 www kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 16 13:06:01 www kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 16 20:04:02 www kernel: ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 17 06:03:01 www kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 17 09:06:02 www kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 17 14:04:02 www kernel: ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 17 17:03:01 www kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 18 02:02:01 www kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 18 10:03:01 www kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 18 11:05:03 www kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 18 13:03:02 www kernel: ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 18 16:06:01 www kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 18 18:02:01 www kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
May 19 00:01:02 www kernel: ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen

我尝试过 smartctl,但健康测试显示已通过。日志中也没有错误。

SMART Error Log Version: 1
No Errors Logged

突袭信息显示:

cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] [faulty]
md1 : active raid1 sda1[0] sdb1[1] sdc1[2]
  20478912 blocks [3/3] [UUU]
md2 : active raid1 sda2[0] sdb2[1] sdc2[2]
  96211904 blocks [3/3] [UUU]

有什么想法可以解决吗?错误似乎与硬件有关,但时间对我来说意味着软件错误。

答案1

最有可能的是,您的系统每小时都在运行一个 cron 作业,有时它会使用位于坏扇区的数据,从而导致出现错误消息。

您应该运行smartctl,它位于smartmontools您硬盘上的 Debian / Ubuntu 发行版的软件包中。您可以通过这种方式检查设备上记录的错误状态。应该有关于您的硬盘驱动器的错误的信息。

相关内容