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 #373 Guest 2016-07-01 13:25
If you wissh for to grow your experience only keep visiting this
web sote and be updated with the latest news posted here.


my web bllg :: nhhealthykids.com
Quote
 
 
0 #372 Guest 2016-06-30 07:32
Nice post. I was checking constantly this blog and I'm impressed!
Very useful info specifically the last part :
) I care for such info much. I was seeking this certain info for a long time.
Thank you and gokd luck.

my blog post ... Canadian pharmacies shipping to usa
Quote
 
 
0 #371 Guest 2016-06-27 23:46
Excellent post! We will be linking to this particularly great
content on our website. Keep up the great writing.

My weblog :: מערכת מיגון ואבטחה
Quote
 
 
0 #370 Guest 2016-06-27 05:08
You have observed very interesting details! ps decent internet site.


Also visit my blog: services website designing
Quote
 
 
0 #369 Guest 2016-06-26 16:07
Really high quality blog posts on this site, saved to fav.



Also visit my webpage ... garage Door lower Panel
Quote
 
 
0 #368 Guest 2016-06-22 22:52
However the fact nonetheless remains that these drugs aren't premature ejaculation medications.
The drug has adverse drug reactions like dizziness and
sneezing among others. According to the National
Institutes of Health (NIH), an increasing number of men are reporting problems with erectile dysfunction (ED), or
the recurrent inability to get or maintain an erection.

Here is my homepage: www.levitradosageus24.com/levitra-40-mg/
Quote
 
 
0 #367 Guest 2016-06-21 20:51
Excellent way of explaining, and fastidious article to take facts concerning my presentation subject, which i
am going to deliver in institution of higher education.

My website: Clickbank Marketplace Reputation
Quote
 
 
0 #366 Guest 2016-06-20 19:30
Put into your kitchen system will be to ensure the growth most typically associated with furnace,
some sort of harrow pit along with no toy stopping. There are several different types of solar induction heaters, each with their own characteristics
to deliver solar energy. Depending on the height it
can be gentle draught or heavy suction. Induction while using control keys may be communication-style, don't use an excessive
amount of force kiddy hands to touch calmly.

Here is my blog - อินดักชั่น
ฮีตเตอร์ คือ
Quote
 
 
0 #365 Guest 2016-06-17 17:17
Hello, I think your website might be having browser compatibility issues.

When I look at your website in Safari, it looks fine
but when opening in Internet Explorer, it has some overlapping.
I just wanted to give you a quick heads up! Other then that, awesome blog!


my homepage: Options xo
Quote
 
 
0 #364 Guest 2016-06-13 21:41
Samsung Wallet is among thᥱ mаny apps that appeared tߋ caise moге confusion tɦan assistance inn
tҺe cellular space.

mү web site ... Deanna
Quote
 
 
0 #363 Guest 2016-06-13 05:48
This is the reason why trailers are created using greater care and more diligence today than ever before before.
Movie trailers often times have the star actors and
actresses within them because that maybe what sells. The RE franchise, with 3 superb movie adaptations along with an New Upcoming Movies fifth installment, is renowned for producing the most horrifying zombies and monsters seen in a horror movie, aside
from a videogame.
Quote
 
 
0 #362 Guest 2016-06-07 23:50
Low and behold, I saw the Dudu Osun Black Soap, all stacked up nice and neat on the shelf.
They are natural and will never produce harmful effects on your skin. Your students will be
active learners gaining understanding of new science concepts in engaging and challenging ways.
The bath and body industry in Australia is constantly changing with the
discovery of new ingredients and combination of formulas that
produce lotions and moisturizers promising
the earth.

Also visit my web blog - สบู่กลูต้า
Quote
 
 
0 #361 Guest 2016-06-07 00:02
It's an awesome paragraph designed for all the
internet users; they will obtain benefit from it I am
sure.

my page: aerial drone camera
Quote
 
 
0 #360 Guest 2016-06-05 13:48
What's up colleagues, how is everything, and
what you desire to say on the topic of this post, in my view its really remarkable in support of me.


My homepage; find a phone location
Quote
 
 
0 #359 Guest 2016-06-04 18:02
смотреть онлайн видеоролики порно www.heicha888.com www.alicestonepets.hk/comment/html/index.php?page=1&id=60366 секреты одноклассников
Quote
 
 
0 #358 Guest 2016-06-03 01:02
ӏ'm extremely impressed wjth уour writing talents and аlso with the layout
for уour blog. Is thiѕ a paid topic ߋr did yoᥙ modify it үourself?
Eithᥱr way keep ᥙp the nice quality writing, іt is
rare to ⅼook a nice weblog ⅼike this one nowadays..


Also visit mу web blog business email database uk
Quote
 
 
0 #357 Guest 2016-06-02 22:34
Another way to figure out what people want is to look
at what’s already selling. It may help reduce the inflammation and discomfort for a time.
If you want your bathroom to be organized at all
times, then you should make sure that you have all
the necessary bathroom accessories and fixtures.
Actually occasionally you are able to clean aside the actual spot with no industrial quality solution.

My blog :: สบู่กลูต้า ราคาส่ง
Quote
 
 
0 #356 Guest 2016-05-30 13:22
I'd like to thank you for the efforts you've put in writing this blog.
I am hoping to view the same high-grade blog posts by you later
on as well. In fact, your creative writing abilities has encouraged me to get my very own website now ;)

Visit my website - Houston Real Estate
Quote
 
 
0 #355 Guest 2016-05-30 02:02
Low and behold, I saw the Dudu Osun Black Soap, all stacked
up nice and neat on the shelf. You can use a
large mold block (which you saw into bars after the soap is
completed), or small soap molds, whichever you like.
If you want your bathroom to be organized at all times, then you should make sure
that you have all the necessary bathroom accessories and fixtures.
The bath and body industry in Australia is constantly changing with the discovery of
new ingredients and combination of formulas that produce lotions and moisturizers promising the
earth.

Visit my web blog ... สบู่กลูต้า
Quote
 
 
0 #354 Guest 2016-05-29 08:02
When it comes to beauty soaps in the Philippines, Dove has
always been considered as number one. These clays are high in minerals and act as a gentle exfoliant and rejuvenate the skin. None of the products contain any
animal fats, sodium lauryl sulphate or propylene glycol.
Going with soap nuts is sort of unknown, given that
protecting the planet from harmful substances is one thing that lots of individuals have not taken into account until recently.



Here is my website สบู่กลูต้า
Quote
 

Add comment


Security code
Refresh