今天发现一台Linux服务器的syslog里不停的出现下列的报错:

Apr 16 16:38:59 Linux_Server kernel:   The failed "Read Subchannel" packet command was:
Apr 16 16:38:59 Linux_Server kernel:   "42 02 40 01 00 00 00 00 10 00 00 00 00 00 00 00 "
Apr 16 16:39:00 Linux_Server kernel: hda: packet command error: status=0x51 { DriveReady SeekComplete Error }
Apr 16 16:39:00 Linux_Server kernel: hda: packet command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
Apr 16 16:39:00 Linux_Server kernel: ide: failed opcode was: unknown
Apr 16 16:39:00 Linux_Server kernel: ATAPI device hda:
Apr 16 16:39:00 Linux_Server kernel:   Error: Illegal request -- (Sense key=0x05)
Apr 16 16:39:00 Linux_Server kernel:   Cannot read medium - incompatible format -- (asc=0x30, ascq=0x02)

      hda在这台服务器上是cd-rom,从日志上看应该是和cd-rom相关的错误。想起来上次同事放进去一张DVD,一直都没有拿出来。我umount掉cd-rom,然后再看日志,报错没有了。在网上搜索了一下,发现了一个相关的帖子:[url]http://www.linuxquestions.org/questions/linux-software-2/annoying-cd-rom-driver-error-messages-295058/[/url]

      这个问题的出现可能是因为某个进程在使用cd-rom时候出错了,解决问题的办法就是要找出来哪个进程,然后做相应的处理,可以用如下命令:

fuser –a /dev/hda
ps aux | grep <pid>