1848366 Members
3283 Online
104024 Solutions
New Discussion

Re: Hardware address ?

 
SOLVED
Go to solution
Raj_Ranjan
Frequent Advisor

Hardware address ?

Is there any way to get the logical name (eg: /dev/dsk/c1t6d0) by seeing the hardware address(eg:0/0/2/1.6.0). of any device/ disk connected.
6 REPLIES 6
Sp4admin
Trusted Contributor

Re: Hardware address ?

I'm not sure waht you mean logical name. If you asking the see what volume group the disk belongs to "strings /etc/lvmtab".

Hope this helps!
sp,
Tim Nelson
Honored Contributor

Re: Hardware address ?

ioscan -kfnH 0/0/2/1.6.0 ??

Looking for something else ? Add some examples or more detail.



Raj_Ranjan
Frequent Advisor

Re: Hardware address ?

Hi Tim,

I tried the command you gave.

But what I mean to say was that as in linux we can tell that the disk connected to Primary/master is read as hda primary/secondary is hdb...so on. Is there any such ting in HPUX to remember???

Thanks in advance.
Torsten.
Acclaimed Contributor

Re: Hardware address ?

Still not sure about your question ...

As long as the system is running, you will see a disconnected / failed or whatever device with a stutus of NO_HW in ioscan.

You cannot say something like

/dev/dsk/c1t6d0

is

0/0/2/1.6.0

but vice versa.

If you have 0/0/2/1.6.0 you are able to say this is the device file cxtydz ...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Armin Kunaschik
Esteemed Contributor
Solution

Re: Hardware address ?

No you can't.
In this particular case the controler number 1 depends on many other things (e.g. first appearance in the system). The 2 other numbers are directly mapped from the hardware path (scsi id 6, lun id 0).
This applies to nearly all devices and is intended. E.g. you'll find the hardware paths printed on the machine/slot.

BTW: The analogy to Linux does not work well.
You refer to IDE devices... things work differently in the SCSI/FC world.
Especially if you attach SAN disks with multiply paths to a linux box your way of thinking does not work anymore. And I did not talk about how udev changes device names.

My 2 cents,
Armin

PS: Please assign points if you find answers useful!
And now for something completely different...
Raj_Ranjan
Frequent Advisor

Re: Hardware address ?

Thanks for clearing my doubts.