设备环境:Intel BayTrail小主机,带两个SATA口,安装飞牛最新1.1.19,Linux N2840 6.12.18-trim #211 SMP PREEMPT_DYNAMIC Fri Jan 30 17:47:53 CST 2026 x86_64 GNU/Linux
BUG现象:web页面中偶尔报磁盘读写失败,但是还能继续使用。在ssh页面下查看dmesg日志,发现大量读写错误,类似这种:failed command: WRITE DMA,
出现频率:dmesg日志中经常出现。搜索网络发现linux下面这个问题比较常见,比如这一篇:缓解libata触发NCQ bug的内核参数(cmdline) https://github.com/RROrg/rr/issues/897
联系方式:
日志文件:
[ 479.777273] ata1: EH complete
[ 486.915460] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x40c0000 action 0xe frozen
[ 486.915542] ata1.00: irq_stat 0x00000040, connection status changed
[ 486.916989] ata1: SError: { CommWake 10B8B DevExch }
[ 486.918449] ata1.00: failed command: WRITE DMA
[ 486.920362] ata1.00: cmd ca/00:08:90:5a:1d/00:00:00:00:00/e2 tag 4 dma 4096 out
[ 486.923359] ata1.00: status: { DRDY }
[ 486.925067] ata1: hard resetting link
[ 487.639428] ata1: SATA link down (SStatus 0 SControl 310)
[ 492.763211] ata1: hard resetting link
[ 493.073548] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
更多日志见附件