Find /dev/sd block device of ata device - ata6: SATA link up 1.5 Gbps (SStatus 113 SControl 310) ata6.00: qc timeout (cmd 0xec) ata6.00: failed to IDENTIFY (I/O error, err_mask=0x4) ata6.00: revalidation failed (errno=-5)

[1481082.784899] ata6: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[1481087.792922] ata6.00: qc timeout (cmd 0xec)
[1481087.792934] ata6.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[1481087.792965] ata6.00: revalidation failed (errno=-5)
[1481088.107288] ata6: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[1481095.385983] ata6.00: configured for UDMA/133

We can clearly see from the errors above that something is going wrong with ata6 or perhaps port "SAS/SATA port 6" but which might that be?

Use this handy script to find out

ATAPORT=ata6

ls /sys/class/ata_port/$ATAPORT/../../host*/target*/*/block/

If you don't have a nice enclosure that makes it clear which bay has which drive, you'll need to physically check inside the server or chassis.

In my case it said "sdj" so the next step is something like this:

smartctl -a /dev/sdj|grep -i serial

This way we'll know we've checked/replaced the correct drive by matching the serial.

In my cases like this actual example though the problem could be a power problem, or even more likely a bad SATA/SAS cable.

Here is the full quick script to find the drive that causes the error and get its serial:

Remebmer to change ata6 to the ata# of your error.

 

ATAPORT=ata6
drive=`ls /sys/class/ata_port/$ATAPORT/../../host*/target*/*/block/`  
smartctl -a /dev/$drive|grep -i serial


Tags:

dev, ata, sata, gbps, sstatus, scontrol, qc, timeout, cmd, xec, err_mask, revalidation, errno, configured, udma, errors, quot, sas, ataport, ls, sys, ata_port, enclosure, ll, server, chassis, sdj, smartctl, grep, ve, replaced, matching, remebmer,

Latest Articles

  • Virtualbox VBox Guest-utils drag and drop files stops working with Windows VMs
  • How To Remove Ubuntu Netplan and Go Back to /etc/network/interfaces
  • How To Force Flash an AMD Instinct GPU To Another Model Using Debian Ubuntu Mint Linux
  • How To compile ollama from source to use unsupported AMD GPU with rocm in Ubuntu Debian
  • QEMU KVM Virtio GPU Windows Cannot Select 1080P
  • Linux Gnome Desktop Ubuntu Mint Debian Gets Slower After Weeks
  • Firefox How to Save Full Page As Screenshot/PDF
  • Nvidia Datacenter Driver Tesla Slow nvidia-smi response and high utilization with 0 usage
  • ffmpeg how to normalize / increase the volume of your audio
  • kdenlive audio blips pops cracks artifacts solution fix
  • haproxy / nginx certbot SSL issues
  • nginx how to see the real IP when behind a CDN
  • Docker how to find real container child process ID
  • Alibaba Aliyun how to reset password solution 'Setup does not meet the requirements, please resetting'
  • RTL88X Series 80Mhz hostapd mode for Linux Debian Kali
  • How To Deploy Your Own Mastodon Server in Docker
  • ffmpeg burning subtitles in non-English errors [Parsed_subtitles_0 @ 0x561d3a0b3b80] Glyph 0x6709 not found, selecting one more font for (Sans, 700, 0)
  • rsyslog in container config
  • Interesting Whisper AI CPU vs GPU Test
  • How to install pytorch with cuda capability for AI acceleration with Nvidia Tesla etc.. GPUs