【请教】硬盘的hard error和media error到底是什么概念,他们表示什么?
在使用iostat -E命令时,结果会显示每个硬盘的hard error和media error,当然还有其他的。
从字面意思理解,hard error是硬件错误,media error是介质错误。
但是我现在对这两个的概念不是很清晰,也不清楚是什么大体是些什么原因导致的这种错误?
等待高手解疑!!!谢谢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
回复 3# icyfish28
谢谢指教!!!
这个不错
这个讲的比较明白了点
iostat -E 的输出即kernel stastics中该设备的错误统计。
假设硬盘的instance name是sd0,此数据也可用 kstat -n sd0,err 或 netstat -k sd0,err (Solaris 10不可用) 来查看。
(转)For scsi disk drives,
Device Not Ready: The drive returned the sense key 0x2 (Not ready).
Media Error: The drive returned the sense key 0x3(Medium Error).
No Device: The drive returned the sense key 0x6 (Unit Attention) or in the case of a removable device it must have happened multiple times.
Hard Errors: All the above conditions are counted as Hard errors with the addition of the SCSI sense key 0x4 (Hardware Error).
Illegal Request: The drive returned the sense key 0x5 (Illegal Request). This also treats as a Soft Error and that kstat is also incremented.
Recoverable: The drive returned the sense key 0x1 (Recovered Error) to indicate that the last command completed successfully but some recovery action had to be taken by the drive. This also treats as a Soft Error and that kstat is also incremented.
Predictive Failure Analysis: The drive returned sense key 0x6 (Unit Attention) with and ASC (Additional Sense Code) of 0x5D indicating that the drive has exceeded it's predictive failure threshold. This is treated as a soft error.
Transport Error: This error occurs for a number of reasons all related to being unable to transport the command. The command could have been timed out or reset or the host bus adapter unable to put the command onto the SCSI bus. This is neither as soft nor a hard error.
me too