1836444 Members
2450 Online
110100 Solutions
New Discussion

Re: HELP

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

HELP

When you get an error message like:

SCSI: Async write error -- dev: b 31 0x022000, errno: 16, resid: 8192,
blkno: 32, sectno: 64, offset: 32768, bcount: 8192.

How do you find out what device the message is talking about. I don't understand how to calc this: what is the secret?

Thanks,
Bob
UNIX IS GOOD
5 REPLIES 5
Patrick Wallek
Honored Contributor
Solution

Re: HELP

If I remember correctly...

You have 0x022000

Take off the 0x0 and the last 2 digits so you have 220.

The first 2 is the controller - c2
The second 2 is the target - t2
The 0 is the LUN / device - d0

So you have c2t2d0

A. Clay Stephenson
Acclaimed Contributor

Re: HELP

And the other part of the answer is to determine the major device. Do an lsdev and look under the Block Device column for 31 -> sdisk.
If it ain't broke, I can fix that.
Nobody's Hero
Valued Contributor

Re: HELP

Thank You,
Now I know.
UNIX IS GOOD
Patrick Wallek
Honored Contributor

Re: HELP

Anothing good thing to know...

If you get an error such as the following in your syslog:

SCSI request timed out LBOLT; 12345678, DEV;1F030000

Here's how you decode --

Don't worry about the LBOLT # it is a timestamp

Take the number after the DEV;

In this case 1F030000

First - take away the last 2 digits -- you don't need them.

YOu now have 1F0300 --> Note that this is in HEXADECIMAL notation

1F = Major Number - Hex 1F = Decimal 31 -> use this in your lsdev command

03 in Hex = 3 decimal = Controller 3 = c3

0 in hex = 0 decimal = target 0 = t0
(Note that this can be in the range 0-F Hex, or 0-15 decimal = the # of possible devices on FWD SCSI controller)

0 in hex = 0 decimal = lun 0 = d0
(Note that this also can be in the range 0-F Hex, or 0-15 decimal)

So this is c3t0d0


(Thanks to a gentleman at the HP Response Center that sent this to me long ago)

Sanjay_6
Honored Contributor

Re: HELP

Hi Robert and Patrick,

Here is the link from hp itrc on how to decode.

http://us-support2.external.hp.com/cki/bin/doc.pl/sid=7961aea81db513553c/screen=ckiDisplayDocument?docId=200000048373145

Hope this helps.

Regds