...because open source matters

  • Increase font size
  • Default font size
  • Decrease font size

Mapping Linux kernel ATA errors to a device

E-mail Print

I found it quite difficult to map Linux kernel ATA warnings to a particular device. These article gives some insights.

I have a dying drive in my system and I'm getting Linux kernel warnings like those ones:

[ 3180.294013] ata6: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[ 3180.316290] ata6.00: configured for UDMA/33
[ 3180.316294] ata6: EH complete
[ 3180.547232] ata6: exception Emask 0x50 SAct 0x0 SErr 0x90800 action 0xe frozen
[ 3180.547234] ata6: irq_stat 0x00400000, PHY RDY changed
[ 3180.547238] ata6: SError: { HostInt PHYRdyChg 10B8B }
[ 3180.547244] ata6: hard resetting link
[ 3182.698012] ata6: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[ 3182.736664] ata6.00: configured for UDMA/33
[ 3182.736667] ata6: EH complete
[ 3182.864164] ata6.00: exception Emask 0x50 SAct 0x1 SErr 0x90800 action 0xe frozen
[ 3182.864167] ata6.00: irq_stat 0x00400000, PHY RDY changed
[ 3182.864170] ata6: SError: { HostInt PHYRdyChg 10B8B }
[ 3182.864173] ata6.00: failed command: READ FPDMA QUEUED
[ 3182.864179] ata6.00: cmd 60/cutout/00:00:02:00:00/40 tag 0 ncq 4096 in
[ 3182.864181]          res 40/cutout/00:00:02:00:00/40 Emask 0x50 (ATA bus error)
[ 3182.864183] ata6.00: status: { DRDY }
[ 3182.864189] ata6: hard resetting link
To figure out who is ata6 I had to look at my drives in the /sys file-system:
dirk@topo ~ $ ls -l /sys/block/sd{a,b,c,d}
lrwxrwxrwx 1 root root 0 Apr  9 01:24 /sys/block/sda -> ../devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda
lrwxrwxrwx 1 root root 0 Apr  9 01:24 /sys/block/sdb -> ../devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0/block/sdb
lrwxrwxrwx 1 root root 0 Apr  9 01:24 /sys/block/sdc -> ../devices/pci0000:00/0000:00:1f.2/host4/target4:0:0/4:0:0:0/block/sdc
lrwxrwxrwx 1 root root 0 Apr  9 01:24 /sys/block/sdd -> ../devices/pci0000:00/0000:00:1f.2/host5/target5:0:0/5:0:0:0/block/sdd

On PCI bus 1, PCI device 00:1f.2 is my SATA controller, a Intel Corporation 82801HB (ICH8) 4 port SATA AHCI Controller (rev 02). It provides 4 hosts to each of which I have attached a disk.

To get that ID, Instead of looking into the target structure, we're looking into the scsi_host structure. It has a directory for the host and in it a file unique_id. That's the ID appended to ata.

So for each of the hosts above I can display the ID like this:

dirk@topo ~ $ for host in 0 1 4 5; do echo -n host${host}:; cat /sys/devices/pci0000:00/0000:00:1f.2/host${host}/scsi_host/host${host}/unique_id; done

So going back to where we came, ata6 is host5, which hosts sdd.



0 #222 Guest 2015-11-25 11:47
Hi there would you mind letting me know which webhost you're utilizing?
I've loaded your blog in 3 completely different web browsers and I must say this blog loads
a lot quicker then most. Can you recommend a good
hosting provider at a fair price? Kudos, I appreciate it!

Also visit my web page :: online allure formula
0 #221 Guest 2015-11-23 13:02
Sa vezi escorte bucuresti ce stiu sa codeze :)
0 #220 Guest 2015-11-23 10:54
If I recognized that would I be resting here publishing these perfectly enjoyable
material or would I be having a dinner party for many my Hollywood friends.

Feel free to surf to my web blog: www.website24.club/forum/3-releases-and-updates/947-know-about-play-gambling-online-with-these-suggestions
0 #219 Guest 2015-11-23 05:52
Within the absence of facing your competitors directly on the
desk, you are less likely to want to be afflicted with emotions
and thoughts, which frequently contributes to erroneous judgements.

Feel free to visit my webpage: Santiago
0 #218 Guest 2015-11-23 04:10
Write more, thats all I have to say. Literally, it seems as though you
relied on the video to make your point. You definitely know
what youre talking about, why waste your intelligence
on just posting videos to your weblog when you could be giving us something enlightening to read?

my blog post ... ร้านดอกไม้
0 #217 Guest 2015-11-23 04:05
It's also one that will last for years and years to come.
For the tech savvy out there, the Sonata has a "smart alternator. Hydrates within the coating release their water content, and maintain a temperature near the boiling point of 100 degrees Celsius. One of the most common applications of Induction Heating Machines are for sealing the anti-tamper seals that are stuck to the top of medicine and drinks bottles.

My blog post - อินดักชั่น ฮีตเตอร์
0 #216 Guest 2015-11-23 03:23
Wow! This blog looks exactly like my old
one! It's on a totally different subject but it has pretty much the same page
layout and design. Wonderful choice of colors!

my web-site: Home Wealth Profits
0 #215 Guest 2015-11-21 06:47
Their intelligence and professionalism holxs strong attract them who're lookking for ffine and quality services.
Let me dscover how your wedding goes'and how well your stationey worked out.
The models will ensure thatt you enjoy on the fullest.

my blog - chick clitoris
0 #214 Guest 2015-11-20 11:45
High voltage electrodes placed in the gas path ionise the ash particles which collects
on collecting electrodes and falls into ash hoppers. Other
companies can also use such tools for pottery and ceramics.
The hardening depth is improved by an increase in the heating time.
In contrast, active fire protection systems require
a certain degree of motion to contain a fire threat.

My web blog อินดักชั่น ฮีตเตอร์
0 #213 Guest 2015-11-19 00:45
The agreement among most specialists within the discipline agree that it's a really
positive boost for that poker industry in general.

Have a look at my web-site ... blog
0 #212 Guest 2015-11-18 08:55
They contain many anti-oxidants that can stop and reverse skin damage.
In short, Maxo - Lip(TM) is for every woman who does not have perfect lips, which likely
describes the overwhelming majority of the female
population. Here are some easy-to-do tips on how to use makeup and flaunt the best that fair skin has to offer.
Start dating someone, and make sure that your ex boyfriend
is aware of him.

Here is my site; ครีมทาปากชมพู
0 #211 Guest 2015-11-18 01:47
The Heating Company introduces you top quality Floor Heating at affordable rates in NZ.
Infrared heating is the best option for these spaces in winters.

Flame Hardening: In this process, a high concentration oxy-acetylene
flame is directed on the selective area. Soft char producers are often employed in thin film intumescents
for the fireproofing of structural steel and fire stop pillows.

Also visit my blog: อินดักชั่น ฮีตเตอร์
0 #210 Guest 2015-11-17 01:48
Our hack is working with and with out jailbreak, work's on adroid and iOS and all kind of units iphone,
ipad, samsung each cell system.

Here is my site; Mobile Strike
hack no download or survey
0 #209 Guest 2015-11-15 17:05
This procedure is still new, coming out in 2009 in Singapore.
Endoscopic browlifts are performed via small incisions in the hair-bearing scalp.
Thailand truly has everything for your skin-care needs.
Over time some results may become cumulative so you may need fewer treatments and results could last a bit longer.

my website; ulthera
0 #208 Guest 2015-11-15 14:26
Hey there! This post could not be written any better! Reading this post reminds me of my good
old room mate! He always kept chatting about this.
I will forward this article to him. Pretty sure he will have a good read.

Thank you for sharing!

Also visit my blog - Muscle HD
0 #207 Guest 2015-11-14 20:41
The winding should be cleaned with chemical agents like electro-solve and dried.

Actually, it's better than everything out there except
maybe the Mazda6 (until it too gets that grinning Mazda grille).
Companies should supply premier quality of induction heating equipment and
systems for the market. This can be a process that's common with steel alloys.

Here is my web page - อินดักชั่น ฮีตเตอร์ราคาถูก
0 #206 Guest 2015-11-14 10:31
Hi just wanted to give you a brief heads up and let
you know a few of the pictures aren't loading
correctly. I'm not sure why but I think its
a linking issue. I've tried it in two different browsers and both show the
same results.

My web-site - horny women
0 #205 Guest 2015-11-14 06:59
The system not only cools and dehumidifies the air but also cleans the carbon content normally present in the
atmosphere, helping the environment to become healthier and pollution free.
The induction heating systems are appropriate to be used with carbon and alloy steels which have
a carbon content that's equal. Companies should supply premier quality of induction heating equipment and systems for
the market. Soft char producers are often employed in thin film intumescents for the fireproofing
of structural steel and fire stop pillows.

my webpage อินดักชั่น ฮีตเตอร์
0 #204 Guest 2015-11-12 21:06
Hey! This is my 1st comment here so I just wanted to give a quick shout out and
say I genuinely enjoy reading your articles.
Can you suggest any other blogs/websites/forums that cover the same subjects?
Thanks a lot!

My page: jocurifriv.org/
0 #203 Guest 2015-11-12 09:59
Hi I am so glad I found your site, I really found you by mistake, while I was searching on Yahoo for something else, Nonetheless I am here now and would just like to
say kudos for a marvelous post and a all round interesting blog (I also love the
theme/design), I don't have time to go through it all at the minute but I have book-marked it and also
added your RSS feeds, so when I have time I will be
back to read a great deal more, Please do keep up the
awesome work.

Feel free to surf to my page: disposable
shoe covers

Add comment

Security code