Kernel 6.17.0-20-generic causing SATA drive disconnect
https://askubuntu.com/questions/1565523/kernel-6-17-0-20-generic-causing-sata-drive-disconnectMy Headless Ubuntu 24.04.4 LTS was running happily on 6.17.0-19-generic,the server was rebooted yesterday, and clearly 6.17.0.20-generic became the running kernel.
I started to then have havoc with my video surveillance and NFS drives..
journalctl logged...
Apr 07 06:14:42 hal kernel: ata2.00: status: { DRDY }
Apr 07 06:14:42 hal kernel: ata2.00: failed command: READ FPDMA QUEUED
Apr 07 06:14:42 hal kernel: ata2.00: cmd 60/00:d8:58:e6:44/01:00:81:01:00/40 tag 27 ncq dma 131072 in
res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x50 (ATA bus error)
Apr 07 06:14:42 hal kernel: ata2.00: status: { DRDY }
Apr 07 06:14:42 hal kernel: ata2.00: failed command: READ FPDMA QUEUED
Apr 07 06:14:42 hal kernel: ata2.00: cmd 60/08:e8:00:15:85/00:00:ff:02:00/40 tag 29 ncq dma 4096 in
res 40/00:01:00:00:00/00:00:00:00:00/00 Emask 0x50 (ATA bus error)
Apr 07 06:14:42 hal kernel: ata2.00: status: { DRDY }
Apr 07 06:14:42 hal kernel: ata2: hard resetting link
Apr 07 06:14:42 hal kernel: ata2: SATA link down (SStatus 0 SControl 300)
Apr 07 06:14:48 hal kernel: ata2: hard resetting link
Apr 07 06:14:48 hal kernel: ata2: SATA link down (SStatus 0 SControl 300)
Apr 07 06:14:48 hal kernel: ata2: limiting SATA link speed to <unknown>
Apr 07 06:14:54 hal kernel: ata2: hard resetting link
Apr 07 06:14:54 hal kernel: ata2: SATA link down (SStatus 0 SControl 3F0)
Apr 07 06:14:54 hal kernel: ata2.00: disable device
This happens on two Toshiba NAS drives (SDB and SDD)
I suspect this may be caused by 6.17.0-20-generic applying power management aggressively, and as I have m2, ssd and NAS drives power management clearly annoys them.
I have reverted to 6.17.0-19-generic and everything is stable again.
I assume the simple solution is to run around /sys/block//device/power/control and set them all to off?
Any advice would be appreciated... as this is a server, stable is happy...
Regards John










