miriup.de

...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
host0:1
host1:2
host4:5
host5:6

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

 

Comments   

 
0 #414 Guest 2016-09-27 09:20
It does not require me to buy a bunch of special foods or be puritanical in my consuming habits.


Also visit my page healthy eating blogs recipes; www.zespolvolare.pl,
Quote
 
 
0 #413 Guest 2016-09-25 05:28
Hi, i feel that i saw you visited my site thus i came to go back the desire?.I'm trying to to find things to improve my site!I
assume its good enough to make use of some of
your concepts!!

My page :: landingpage
Quote
 
 
0 #412 Guest 2016-09-23 11:04
Dalam pengembangan chakra satu contoh, semua chakra tidak dapat dikembangkan dan dibangkitkan dengan satu tehnik yoga,
karena tiap chakra memiliki system dan fungsi yang berbeda,
dan memiliki efek yang berbeda dalam tubuh, sehingga dalam pengembangannya, memerlukan sestem yoga
healing
yang berbeda pula.
Quote
 
 
0 #411 Guest 2016-09-20 16:06
La familia va a deber respetar a esta persona, pues
seguramente la disforia de genero pueda crearle problemas
con sus compa├▒eros de clase y en su vida en general.


Feel free to visit my weblog :: travestis
peruanas
Quote
 
 
0 #410 Guest 2016-09-19 19:46
I do not write a leave a response, however after reading
through some of the responses on this page Mapping Linux
kernel ATA errors to a device. I actually do have some questions for you
if it's allright. Is it simply me or does it appear like a
few of the comments look as if they are written by brain dead individuals?
:-P And, if you are writing on additional online sites,
I would like to keep up with anything new you have
to post. Could you list of all of your public sites like your Facebook page, twitter feed,
or linkedin profile?

Here is my site: Anne
Quote
 
 
0 #409 Guest 2016-09-19 05:36
I every time spent my half an hour to read this blog's content all the time along
with a cup of coffee.

Also visit my website ... youtube seo
Quote
 
 
0 #408 Guest 2016-09-19 05:06
I really like what you guys tend to be up too. This sort of
clever work and coverage! Keep up the great works guys
I've incorporated you guys to blogroll.

Here is my homepage: youtube seo
Quote
 
 
0 #407 Guest 2016-09-11 06:22
Excellent post. I was checking continuously this blog and I'm inspired!
Very useful info specifically the last phase :) I handle such information a lot.

I was seeking this certain info for a long time.
Thanks and good luck.

Stop by my web-site: connecticut airport shuttle
Quote
 
 
0 #406 Guest 2016-09-09 15:12
Incredible points. Outstanding arguments. Keep up the amazing spirit.


Here is my weblog biotin for hair loss
Quote
 
 
0 #405 Guest 2016-09-09 12:06
Can I just say what a relief to uncover somebody that really understands what they are
talking about on the web. You actually realize how to bring an issue to light and make it important.
More people have to check this out and understand this side of the story.
It's surprising you're not more popular since you definitely have the gift.


Look at my homepage: trade12 reviews
Quote
 
 
0 #404 Guest 2016-09-07 10:46
Hi! I simply would like to offer you a huge thumbs up for your great info you have right here on this post.

I will be coming back to your blog for more soon.

Here is my web page; Animated Gif
Quote
 
 
0 #403 Guest 2016-09-01 19:53
I all the time emailed this web site post page to all my associates, because if
like to read it afterward my links will too.

Feel free to visit my homepage; LINK BUILDING
Quote
 
 
0 #402 Guest 2016-08-28 21:42
Hello! I could have sworn I've visited this blog before but after going through many of the
posts I realized it's new to me. Anyways, I'm certainly happy I discovered it and I'll be book-marking it and checking back regularly!



Check out my homepage - audio productions
Quote
 
 
0 #401 Guest 2016-08-28 16:12
Hi! I've been reading your website for a long time now and finally got the courage to go ahead and give you a shout
out from Dallas Texas! Just wanted to tell you keep up the excellent job!


Here is my blog ... website ranking
Quote
 
 
0 #400 Guest 2016-08-28 15:47
It's wonderful that you are getting thoughts from
this post as well as from our discussion made here.



Also visit my site website ranking
Quote
 
 
0 #399 Guest 2016-08-25 16:27
Good article. I will be going through a few
of these issues as well..

my web site; casino Spiele
Quote
 
 
0 #398 Guest 2016-08-18 00:48
For the reason that the admin of this web site is
working, no hesitation very soon it will be renowned, due
to its quality contents.

Feel free to visit my blog post - absolutely free reverse cell phone lookup
Quote
 
 
0 #397 Guest 2016-08-17 14:07
Sweet blog! I found it while searching on Yahoo News.

Do you have any suggestions on how to get listed in Yahoo News?
I've been trying for a while but I never seem to get
there! Appreciate it

Also visit my web-site - check out my site
Quote
 
 
0 #396 Guest 2016-08-17 07:02
Hey there! I could have sworn I've been to this blog before but after
reading through some of the post I realized it's new to me.
Nonetheless, I'm definitely glad I found it and I'll be bookmarking and checking back often!

My blog post - check out my site
Quote
 
 
0 #395 Guest 2016-08-15 19:56
Hey There. I found your blog using msn. This is
a really well written article. I'll be sure to bookmark it and return to read more of your useful
information. Thanks for the post. I'll certainly return.

Take a look at my web site: Fiverr Gig promotion
Quote
 

Add comment


Security code
Refresh