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 #353 Guest 2016-05-21 17:59
Unquestionably believe that which you said.

Your favorite justification appeared to be at the internet the
easiest thing to be aware of. I say to you, I definitely get annoyed even as other people consider concerns that
they plainly do not recognise about. You managed to hit the nail upon the highest and
defined out the entire thing with no need side-effects , people can take a signal.
Will likely be again to get more. Thank you

my webpage ... www.laviagraes.com/alcohol-y-viagra
Quote
 
 
0 #352 Guest 2016-05-17 12:37
Hi to all, how is the whole thing, I think every one is getting more from this web site, and your views
are fastidious in support of new visitors.

My blog :: Casino
Quote
 
 
0 #351 Guest 2016-05-16 19:22
Esses convites são os preferidos de muitas pequenos, depois do sucesso dos filmes Caro Malvado Favorito, tendo
decoração e também vários itens com festas infantis com esses personagens.


Here is my site ... www.festaminions.com/
Quote
 
 
0 #350 Guest 2016-05-08 07:43
I'm really enjoying the themedesign of your website. Do you ever run into any internet browser compatibility issues? A handful of my blog audience have complained about my site not operating correctly in Explorer but looks great in Firefox. Do you have any solutions to help fix this problem? bgbfddfeckacekdk
Quote
 
 
0 #349 Guest 2016-05-08 02:23
If you desire to improve your familiarity simply keep visiting this web
page and be updated with the hottest information posted here.



My homepage - Beste norske forbrukslån
Quote
 
 
0 #348 Guest 2016-05-07 07:32
Thank you, I have just been searching for information approximately this subject for ages and yours is the best I have came upon till now. But, what concerning the conclusion? Are you certain in regards to the supply? dbbbkkakfdcdedde
Quote
 
 
0 #347 Guest 2016-05-06 09:35
If you are going for best contents like me, only pay a visit this site all
the time since it offers feature contents,
thanks

my homepage :: Unlock
Samsung Galaxy Note
Quote
 
 
0 #346 Guest 2016-05-06 07:32
requirements. Recognitions pro suggestion like operative, balanced, explanatory as well as moreover exuberance thinkings about this issue to Gloria. ddekebkdkfgegdak
Quote
 
 
0 #345 Guest 2016-05-05 11:16
Thank you, I have just been searching for info about this subject for a long time and yours is the greatest I've found out so far. However, what about the bottom line? Are you positive concerning the supply? cecbgegeeekceakc
Quote
 
 
0 #344 Guest 2016-05-04 01:27
It's actually a cool and helpful piece of info. I'm satisfied that you shared this useful information with
us. Please keep us up to date like this. Thank you for sharing.


Look at my web page; unlock samsung galaxy
Quote
 
 
0 #343 Guest 2016-05-03 01:27
Um deles é uma muito bonita floresta ou bastante virente, e esta
vai poder ser a cor norteadora da sua decoração.


Also visit my web blog - www.festajardimencantado.Com/
Quote
 
 
0 #342 Guest 2016-04-30 22:41
March also fetes National Doctors Day and Peanut Butter Lover's
day. In a life span of people suffering from lots of problems, so obviously they will think about those problems.
This facility is helping many people to correct various medical issues and considering these facts there are many moving on with the bulk purchase
of drugs like Viagra as they will be able
to get hold of them at discount rates.

Check out my web-site ... www.laviagraes.com/como-se-debe-usar-la-viagra
Quote
 
 
0 #341 Guest 2016-04-30 17:43
I used to be recommended this website by my cousin. I am no longer ssure whether or not tbis publish is written byy
way of him as nobody else recognize such unique approximately my difficulty.
You're amazing! Thank you!

Look into my page :: dyson animal complete
Quote
 
 
0 #340 Guest 2016-04-30 03:03
Temas livres como tema de sua sarau com aniversário, casamento, himeneu,
brindes, imãs a geladeira, etc.

Here is my webpage - Festacirco.Com
Quote
 
 
0 #339 Guest 2016-04-29 18:12
Você poderá fazer download da música de que maneira acavalar bolo tema safari gratuitamente dentro de Palco
mp3.

Also visit my website ... lembrancinhas do safari
Quote
 
 
0 #338 Guest 2016-04-27 18:06
I loved as much as you'll receive carried out right here.

The sketch is attractive, your authored subject matter stylish.

nonetheless, you command get bought an impatience over that
you wish be delivering the following. unwell unquestionably come more formerly again since
exactly the same nearly very often inside
case you shield this hike.

Also visit my blog post: Unlock Samsung Galaxy Note
Quote
 
 
0 #337 Guest 2016-04-27 17:02
Thanks for some other informative web site. Where
else may just I am getting that type of info written in such a perfect approach?
I have a undertaking that I am simply now operating on, and I have been at the glance out for such information.

Also visit my site - online prescription
Quote
 
 
0 #336 Guest 2016-04-27 05:56
As sacolinha do caro malvado predilecto foram feitas para outra comprador, contudo
a fim de que a fotografia agrupei as duas ´peças formando
de forma um lindo estojo sarau dos minnions, para bissaco a fim de
que as crianças ate 8 anos e também sacomochila para os antepassados.



Also visit my webpage; www.festaminions.com
Quote
 
 
0 #335 Guest 2016-04-25 14:05
While an excelllent Forex Robot can limit those aspects bad effects on your profits or maybe abolish them, no one can predicct just
how much you can gain!

my web blpog - Best Forex
Robot 2016 - Free Expert Advisor Test
Quote
 
 
0 #334 Guest 2016-04-22 20:57
If your just starting to try to tackle premature ejaculation, the last thing that you need are a whole bunch of techniques in your mind that will only confuse you and make things worse
for you. Pills hardly ever deliver on their promises, while creams and sprays numb the penis a whole lot that it's apparent
you'll go longer, but that's because you won. Diesels
are great for short trips because their ignition is not affected by
temperature.

Stop by my web page: www.lastlongerinbedpillsus.com/low-testosterone-causes-premature-ejaculation.html
Quote
 

Add comment


Security code
Refresh