adelolmo / hd-idle

Hard Disk Idle Spin-Down Utility
GNU General Public License v3.0
587 stars 32 forks source link

Bad SATA Cables? No, it is caused by hd-idle... #78

Closed henfri closed 1 year ago

henfri commented 2 years ago

Hello,

I have had regular errors of this kind:

[Fr Aug 26 22:01:01 2022] ata2.00: exception Emask 0x10 SAct 0x600000 SErr 0x850000 action 0x6 frozen
[Fr Aug 26 22:01:01 2022] ata2.00: irq_stat 0x08000000, interface fatal error
[Fr Aug 26 22:01:01 2022] ata2: SError: { PHYRdyChg CommWake LinkSeq }
[Fr Aug 26 22:01:01 2022] ata2.00: failed command: READ FPDMA QUEUED
[Fr Aug 26 22:01:01 2022] ata2.00: cmd 60/20:a8:60:07:3a/00:00:6a:03:00/40 tag 21 ncq dma 16384 in
[Fr Aug 26 22:01:01 2022] ata2.00: status: { DRDY }
[Fr Aug 26 22:01:01 2022] ata2.00: failed command: READ FPDMA QUEUED
[Fr Aug 26 22:01:01 2022] ata2.00: cmd 60/20:b0:e0:06:3a/00:00:6a:03:00/40 tag 22 ncq dma 16384 in
[Fr Aug 26 22:01:01 2022] ata2.00: status: { DRDY }
[Fr Aug 26 22:01:01 2022] ata2: hard resetting link
[Fr Aug 26 22:01:01 2022] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[Fr Aug 26 22:01:01 2022] ata2.00: ACPI cmd f5/00:00:00:00:00:00(SECURITY FREEZE LOCK) filtered out
[Fr Aug 26 22:01:01 2022] ata2.00: ACPI cmd b1/c1:00:00:00:00:00(DEVICE CONFIGURATION OVERLAY) filtered out
[Fr Aug 26 22:01:01 2022] ata2.00: ACPI cmd f5/00:00:00:00:00:00(SECURITY FREEZE LOCK) filtered out
[Fr Aug 26 22:01:01 2022] ata2.00: ACPI cmd b1/c1:00:00:00:00:00(DEVICE CONFIGURATION OVERLAY) filtered out
[Fr Aug 26 22:01:01 2022] ata2.00: configured for UDMA/133
[Fr Aug 26 22:01:01 2022] ata2: EH complete
[Fr Aug 26 22:01:05 2022] ata2: limiting SATA link speed to 3.0 Gbps
[Fr Aug 26 22:01:05 2022] ata2.00: exception Emask 0x10 SAct 0x40000 SErr 0x850000 action 0x6 frozen
[Fr Aug 26 22:01:05 2022] ata2.00: irq_stat 0x08000000, interface fatal error
[Fr Aug 26 22:01:05 2022] ata2: SError: { PHYRdyChg CommWake LinkSeq }
[Fr Aug 26 22:01:05 2022] ata2.00: failed command: READ FPDMA QUEUED
[Fr Aug 26 22:01:05 2022] ata2.00: cmd 60/20:90:60:60:14/00:00:f9:01:00/40 tag 18 ncq dma 16384 in
[Fr Aug 26 22:01:05 2022] ata2.00: status: { DRDY }
[Fr Aug 26 22:01:05 2022] ata2: hard resetting link
[Fr Aug 26 22:01:05 2022] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[Fr Aug 26 22:01:05 2022] ata2.00: ACPI cmd f5/00:00:00:00:00:00(SECURITY FREEZE LOCK) filtered out
[Fr Aug 26 22:01:05 2022] ata2.00: ACPI cmd b1/c1:00:00:00:00:00(DEVICE CONFIGURATION OVERLAY) filtered out
[Fr Aug 26 22:01:05 2022] ata2.00: ACPI cmd f5/00:00:00:00:00:00(SECURITY FREEZE LOCK) filtered out
[Fr Aug 26 22:01:05 2022] ata2.00: ACPI cmd b1/c1:00:00:00:00:00(DEVICE CONFIGURATION OVERLAY) filtered out
[Fr Aug 26 22:01:05 2022] ata2.00: configured for UDMA/133
[Fr Aug 26 22:01:05 2022] ata2: EH complete

When feeding google with that, most sources suggest that it is caused by bad SATA cables. But even after swapping those, I got these errors.

Finally, I decided to deactivate hd-idle. That solved it. Unfortunately, now my hdd does not spin down anymore.

Any ideas?

My Config: HD_IDLE_OPTS="-i 0 -a /dev/disk/by-id/ata-ST8000DM004-2CX188_ZCT00WR1 -i 600 -a /dev/disk/by-id/ata-WDC_WD120EMFZ-x -i 600 -a /dev/disk/by-id/ata-WDC_WD120EMFZ-x [.....] -l /var/log/hd-idle.log"

Best regards, Hendrik

adelolmo commented 1 year ago

I would suggest updating to v1.20 and open a new issue if the problem persist.