【请教】硬盘的hard error和media error到底是什么概念,他们表示什么?

发布于 2022-09-01 10:00:42 字数 192 浏览 98 评论 5

在使用iostat -E命令时,结果会显示每个硬盘的hard error和media error,当然还有其他的。
从字面意思理解,hard error是硬件错误,media error是介质错误。
但是我现在对这两个的概念不是很清晰,也不清楚是什么大体是些什么原因导致的这种错误?

等待高手解疑!!!谢谢

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

月寒剑心 2022-09-04 20:14:14

回复 3# icyfish28

    谢谢指教!!!

镜花水月 2022-09-04 20:14:12

这个不错

情独悲 2022-09-04 20:12:02

这个讲的比较明白了点

装迷糊 2022-09-04 19:23:22

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.

青芜 2022-09-04 16:49:19

me too

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文