防止文件系统重新挂载
当CPU过于繁忙的时候,会导致硬盘inquery超时,从而导致重新挂载硬盘,但是这个时候是以只读的方式挂载的硬盘。
如何防止出现这种情况呢?
1.增加scsi的timeout时间?
2.修改超时的动作?
哪位大侠给提点意见。
下面是硬盘超时后的内核输出:
sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT,SUGGEST_OK
end_request: I/O error, dev sda, sector 709327459
Buffer I/O error on device sda7, logical block 340960253
lost page write due to I/O error on sda7
sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT,SUGGEST_OK
end_request: I/O error, dev sda, sector 709329031
Buffer I/O error on device sda7, logical block 340961039
lost page write due to I/O error on sda7
sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT,SUGGEST_OK
end_request: I/O error, dev sda, sector 709329877
Buffer I/O error on device sda7, logical block 340961462
lost page write due to I/O error on sda7
Aborting journal on device sda7.
ext3_abort called.
EXT3-fs error (device sda7): ext3_journal_start_sb: Detected aborted journal
Remounting filesystem read-only
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
回复 1# 瀚海书香
怎么没人回复啊?
难道大家都没有遇到过这个问题?
增加超时时间试试吧
scsi驱动里光盘和磁带机的超时时间就比较长
我遇到过,但是不清楚是怎么回事。在出现这个之前硬盘老是重连:
ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
ata2.00: cmd c8/00:01:d0:fc:f3/00:00:00:00:00/e1 tag 0 dma 512 in
res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata2.00: status: { DRDY }
=======:1,2
ata2: hard resetting link
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 310)
#############time:5,count:1!
ata2.00: configured for UDMA/33
ata2: EH complete
#############time:5,count:1!
sd 1:0:0:0: [sda] 3907029168 512-byte hardware sectors (2000399 MB)
#############time:5,count:1!
sd 1:0:0:0: [sda] Write Protect is off
#############time:5,count:1!
#############time:5,count:1!
sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
偶尔接着出这个打印:
sd 1:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT,SUGGEST_OK
end_request: I/O error, dev sda, sector 30933855
经过很多次后重连失败:
ata2: exception Emask 0x10 SAct 0x0 SErr 0x90000 action 0xa frozen
ata2: irq_stat 0x00400000, PHY RDY changed
ata2: SError: { PHYRdyChg 10B8B }
ata2: hard resetting link
lib_venc.c@tl_venc_read: select time out
lib_venc.c@tl_venc_minor_read: select time out
ata2: COMRESET failed (errno=-32)
ata2: reset failed, giving up
ata2.00: disabled
ata2: EH complete
再去对硬盘进行文件检索操作的话就狂打印这个了:
sd 1:0:0:0: [sda] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK,SUGGEST_OK
end_request: I/O error, dev sda, sector 238503
还请版主帮忙分析下,谢谢!