Operating System - HP-UX
1821646 Members
2977 Online
109633 Solutions
New Discussion юеВ

Translate device hex to cXtYdZ

 
SOLVED
Go to solution
Alzhy
Honored Contributor

Translate device hex to cXtYdZ

CAn't seem to recall how to map device depiced in hex like: 1f894000 to its corresponding HW path o cXtYdZ.

Anyone remember?

Wanting to tranalste the error message to pinpoint the exact device. Here's the error message:

SCSI: Unexpected Disconnect -- lbolt: 1578226975, dev: 1f894000, io_id: 897afda9
SCSI: Unhandled phase mismatch -- lbolt: 1578226975, dev: 1f894000

Hakuna Matata.
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: Translate device hex to cXtYdZ

Hi:

The device format is: MMBBTLFF

Where : MM = Major number
BB = Bus number
T = Target
L = LUN
FF = Flags

Regards!

...JRF...
Nido
Trusted Contributor

Re: Translate device hex to cXtYdZ

Hi,

ll /dev/dsk |grep 894000

Cheers!!
" Let Villagers Be Happy!! "
Matti_Kurkela
Honored Contributor
Solution

Re: Translate device hex to cXtYdZ

The two left-most hex digits in the dev: value are the major device number. 1f = 31 in decimal.

Looks like your assumption is correct and this is a /dev/dsk device. /dev/rdsk would have a different major number (off the top of my head, maybe 205 or thereabouts in decimal?).

The rest (894000) is the minor device number, whuch can be used as-is because HP-UX convention is to always display the minor numbers in hex, with a "0x" prefix.

The command:

ll /dev/dsk | grep 0x894000

should easily find the device.

MK
MK
Sharma Sanjeev
Respected Contributor

Re: Translate device hex to cXtYdZ

It should be c137t4d0

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Alzhy
Honored Contributor

Re: Translate device hex to cXtYdZ

Just remembered:

dev: 1f894000

1f
Means it is the device class (DEC 31) -- lsdev|grep31 yields sdisk/disk -- so it is a disk device

894000 is the device major, minor, etc..

ls -l /dev/rdsk/*|grep 894000

yields the cXtYdZ of the disk device.

Hakuna Matata.