什么会导致“设备未准备好(errno=-16),强制硬重置?

4 linux

kernel: [7179486.983633] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
kernel: [7179492.314726] ata1: link is slow to respond, please be patient (ready=0)
kernel: [7179497.408202] ata1: device not ready (errno=-16), forcing hardreset
kernel: [7179497.408217] ata1: soft resetting link
kernel: [7179500.160267] ata1.00: configured for UDMA/133
kernel: [7179500.160267] ata1: EH complete
kernel: [7179500.164272] sd 0:0:0:0: [sda] 976773168 512-byte hardware sectors (500108 MB)
kernel: [7179500.164272] sd 0:0:0:0: [sda] Write Protect is off
Run Code Online (Sandbox Code Playgroud)

这些是我们在运行 MySQL、apache 和其他一些 Web 程序的服务器上收到的消息。

任何建议将不胜感激!

Dav*_*ley 7

看来你的硬盘有问题,没有在内核想要的时间内响应。如果这是一次性事件,我不会太担心,因为似乎在重置后,操作已完成。如果经常发生,我会考虑更换你的硬盘。调查 smartctl 工具以检查硬盘的健康状况。我希望你在这台服务器上使用 RAID,所以你的磁盘不是单点故障。