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 #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
 
 
0 #333 Guest 2016-04-22 12:04
I was suggested this web site by my cousin. I am not sure whether tis post iss written by him as nno one else know such detasiled about my trouble.
Youu are wonderful! Thanks!

Jangan lupa untuk Kunjungi site Ane untuk mendaparkan Info lebih komplit teentang
klinik
dokter gigi anak jakarta selatan terbaik
. Thanks ya
Quote
 
 
0 #332 Guest 2016-04-22 04:04
It's remarkable tto visit this web site and reading the
views of all friends regarding this piece of writing, while I amm also keen of getting know-how.


Jangan lupa untuk Kunjungi web Ane untuk dapat Informasi lebih kommplit tentang jasa
anti rayap profesional
. Thanks ya
Quote
 
 
0 #331 Guest 2016-04-20 21:19
After the success that the Air Jordan line had many
other NBA players have also signed endorsement deals with the company.
While spending a few hundred dollars on one pair of shoes may seem excessive you simply cannot put a price on protecting your feet.
Comfort - when getting a sneaker to Zumba in, it is very important that the shoe
is comfortable. The business can make each and every
boot in line with people drive, should you obtain tailor made shoes or boots they are provided.


My webpage รองเท้าผ้าใบผู้ชาย
Quote
 
 
0 #330 Guest 2016-04-20 17:52
is the main food staple of river communities in the Amazon estuary,' says the agronomist Oscar Nogueira.
Around 70 percent of men using it reported some improvement in achieving and maintaining an erection. A number of
individuals prefer to use herbal medications because these products are supposedly free of side effects compared to prescription medicines and over-the-counter drugs.


Look at my homepage - www.generiqueviagrafr.fr/achat-viagra-cialis-france
Quote
 
 
0 #329 Guest 2016-04-20 11:55
I’m not that much of a internet reader to be
honest but your sites really nice, keep it up! I'll go ahead and bookmark
your site to come back later. All the best

My site :: equipment financing companies; Winston,
Quote
 
 
0 #328 Guest 2016-04-18 23:43
I'm extremely inspired together with your writing abilities as neatly as with the format for
your weblog. Is that this a paid topic or did you modify it your self?
Either way stay up the nice high quality writing, it is rare to see
a nice blog like this one nowadays..

My web blog canadian pharmacy
Quote
 
 
0 #327 Guest 2016-04-18 23:12
Reclaimed rubber, organic cotton, recycled bottles- and many more such materials are used in the manufacture of a wide array of trendy sneakers.
Sneakers have become the most sought after footwear these days
and to let you know more about your favorite shoes, here are some interesting
facts related to the your favorite shoes:. This New Balance shoe has been compared to wearing training wheels
and sells for around $100. Skirts are also common,
and many Spanish women enjoy playing with different
fabrics, prints and textures, as well as layering during transition periods between seasons.


Look at my web page; รองเท้าผ้าใบ
Quote
 
 
0 #326 Guest 2016-04-18 10:00
It's remarkable designed for me to have a website, which is helpful in favor of my
experience. thanks admin

my web site unlock iphone 6s
Quote
 
 
0 #325 Guest 2016-04-17 14:59
My brother suggested I may like this blog.
He used to be totally right. This post actually made my day.
You cann't imagine just how so much time I had spent for this info!
Thank you!

Here is my web blog unlock samsung galaxy
Quote
 
 
0 #324 Guest 2016-04-14 23:30
Let's assume you have a robot that performs well in a
range bound market.

Check out my weblog - Top 30 Ranking - Best Forex EA's
Quote
 
 
0 #323 Guest 2016-04-14 18:12
Wassp People !! The name is MARYANN COLEMAN. I reside in McHenry.
This june i will be 42. My school's name is The New Academy of Fascinating Education situated in Bridgeport.
I want to become a Lyricist. I also like to Casino Gambling.
My dad name is Peter and he is a Archivist. My mother is a Statistician.

Feel free to surf to my web page umbrella companies uk (Lesley)
Quote
 
 
0 #322 Guest 2016-04-14 10:32
Hi !! I am AIKO KIM. I have a house in Fontana.

This may i will be 31. I might join The Confidential Boarding School
located in Lakeland. I am working as Taikonaut. My hobby is Swimming.

My daddy name is Christopher and he is a Manual Therapist. My mummy is a Tanner.


Look into my page ... Umbrella.Com
Quote
 
 
0 #321 Guest 2016-04-10 15:34
Plus 7 other PPC machines with the 100+ keywords was a tremendously frustrating and tedious task until we purchased Bid Maximizer
for Yahoo!

Feel free to surf to my webpage: Google ppc tutorial
Quote
 
 
0 #320 Guest 2016-03-29 11:24
I'm gone to convey my little brother, that he should also pay a quick visit this
web site on regular basis to get updated from latest
reports.

Feel free to surf to my web-site ... internet video marketing
Quote
 
 
0 #319 Guest 2016-03-24 00:23
I know this website provides quality based articles and extra data, is
there any other web page which provides these kinds of stuff in quality?


My website - increase breast
size
Quote
 

Add comment


Security code
Refresh