Operating System - HP-UX
1834484 Members
3524 Online
110067 Solutions
New Discussion

Re: how to indentify the diffrent special device name that may belong to the same disk

 
SOLVED
Go to solution
study unix
Regular Advisor

how to indentify the diffrent special device name that may belong to the same disk

hi ,how to indentify the diffrent device name that may belong to the same disk?
for example,if c2t3d4 and c5t3d4 points to the same disk, how to indentify it,
please kindly introduce it, many thanks!
16 REPLIES 16
Torsten.
Acclaimed Contributor

Re: how to indentify the diffrent special device name that may belong to the same disk

SAM does a good job in doing this because of some special internal scripts.

Other tools like evainfo or xpinfo do the same, but are product specific.

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!   
singh sanjeev
Trusted Contributor

Re: how to indentify the diffrent special device name that may belong to the same disk

c2t3d4 and c5t3d4

for above target and device [t3d4] is same then i can say both path for same disk. t3d4
Sanjeev Singh
Torsten.
Acclaimed Contributor

Re: how to indentify the diffrent special device name that may belong to the same disk

This is just an assumption.

What if I have let's say 2 different arrays in my SAN and present a LUN7 from each to the same server?

Don't make assumptions here in this context.

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!   
singh sanjeev
Trusted Contributor

Re: how to indentify the diffrent special device name that may belong to the same disk



if disk are not on seperate EMC boxs then it may point to different disk.

for complete surety use :

Storage command to check:

:syminq for EMC storage type

and command mention by torsten

Sanjeev Singh
study unix
Regular Advisor

Re: how to indentify the diffrent special device name that may belong to the same disk

thanks for all reply!
if they is from the same array, c2t3d4 and c5t3d4 are one disk?
Torsten.
Acclaimed Contributor
Solution

Re: how to indentify the diffrent special device name that may belong to the same disk

You cannot say.

The hardware path will show a better picture (ioscan -fn).

But better use SAM or the other specific tools.

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!   
study unix
Regular Advisor

Re: how to indentify the diffrent special device name that may belong to the same disk

hi Torsten,
I don't understand it fully,
if it uses SAM or ioscan -fn, then it can indentify them,if you can give one example,thanks!
Torsten.
Acclaimed Contributor

Re: how to indentify the diffrent special device name that may belong to the same disk

Could you please post your

# ioscan -fn

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!   
study unix
Regular Advisor

Re: how to indentify the diffrent special device name that may belong to the same disk

I will attach it tomorrow, many thanks!
Torsten.
Acclaimed Contributor

Re: how to indentify the diffrent special device name that may belong to the same disk

Example for EVA:

# evainfo -W
Lun WWN: 6005-08B4-1234-66FC-0009-E000-0077-0000
/dev/rdsk/c1t1d4
/dev/rdsk/c3t1d4
/dev/rdsk/c17t1d4
/dev/rdsk/c19t1d4


ioscan:

disk 9 0/4/1/0.7.1.0.0.1.4 sdisk CLAIMED DEVICE HP HSV200
/dev/dsk/c1t1d4 /dev/rdsk/c1t1d4

disk 8 0/4/1/0.7.5.0.0.1.4 sdisk CLAIMED DEVICE HP HSV200
/dev/dsk/c3t1d4 /dev/rdsk/c3t1d4

disk 7 0/4/1/1.7.1.0.0.1.4 sdisk CLAIMED DEVICE HP HSV200
/dev/dsk/c17t1d4 /dev/rdsk/c17t1d4

disk 6 0/4/1/1.7.5.0.0.1.4 sdisk CLAIMED DEVICE HP HSV200
/dev/dsk/c19t1d4 /dev/rdsk/c19t1d4


From hardware path you can see the connections are over the same switch (domain ID), different ports, same LUN number.


The evainfo output is much better.

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!   
study unix
Regular Advisor

Re: how to indentify the diffrent special device name that may belong to the same disk

HI Torsten,
ioscan -fnC disk as below,
pls help me check if c2t0d1 and c0t0d1 are the same disk, if yes ,why ?
and you explains "From hardware path you can see the connections are over the same switch (domain ID), different ports, same LUN number", and if you can provide some details regarding path component, thanks!

Class I H/W Path Driver S/W State H/W Type Description
===========================================================================
disk 3 0/0/6/1/0.1.1.0.0.0.1 sdisk CLAIMED DEVICE HP HSV200
/dev/dsk/c0t0d1 /dev/rdsk/c0t0d1
disk 4 0/0/6/1/0.1.2.0.0.0.1 sdisk CLAIMED DEVICE HP HSV200
/dev/dsk/c2t0d1 /dev/rdsk/c2t0d1
disk 0 1/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 146 GST3146854LC
/dev/dsk/c6t6d0 /dev/rdsk/c6t6d0
disk 1 1/0/0/3/1.2.0 sdisk CLAIMED DEVICE _NEC DVD_RW ND-3550A
/dev/dsk/c7t2d0 /dev/rdsk/c7t2d0
disk 2 1/0/1/1/0/1/1.6.0 sdisk CLAIMED DEVICE HP 146 GHUS153014VL3800
/dev/dsk/c9t6d0 /dev/rdsk/c9t6d0
disk 6 1/0/14/1/0.1.1.0.0.0.1 sdisk CLAIMED DEVICE HP HSV200
/dev/dsk/c10t0d1 /dev/rdsk/c10t0d1
disk 5 1/0/14/1/0.1.2.0.0.0.1 sdisk CLAIMED DEVICE HP HSV200
/dev/dsk/c12t0d1 /dev/rdsk/c12t0d1
Mohd Rasidi Che Mat
Frequent Advisor

Re: how to indentify the diffrent special device name that may belong to the same disk

u can use get_pv_id script ( sure to find it if you google)
Torsten.
Acclaimed Contributor

Re: how to indentify the diffrent special device name that may belong to the same disk

disk 3 0/0/6/1/0.1.1.0.0.0.1 sdisk CLAIMED DEVICE HP HSV200
/dev/dsk/c0t0d1 /dev/rdsk/c0t0d1
disk 4 0/0/6/1/0.1.2.0.0.0.1 sdisk CLAIMED DEVICE HP HSV200
/dev/dsk/c2t0d1 /dev/rdsk/c2t0d1


0/0/6/1/0 is the path to the FC adapter
1 is the switch domain ID
1 or 2 is the port, where EVA is connected
0.0.1 is LUN 1

So you see here LUN 1 via 4 different paths.


Try evainfo (from web)!



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!   
study unix
Regular Advisor

Re: how to indentify the diffrent special device name that may belong to the same disk

Hello Torsten,
Many thanks for your support, I can understand it
study unix
Regular Advisor

Re: how to indentify the diffrent special device name that may belong to the same disk

Hello Mohd Rasidi Che Mat ,
I find this script as below,if I can unserstand which runs this script will find more disks from this path "c10t2d4",thanks!




#
# @(#) get_pv_id - get the unique id of a physical volume
#
#
if [ $# -lt 1 ]; then
echo "ERROR- no physical volume given"
echo "ex. get_pv_id c10t2d4"
echo ""
exit 1
fi
if [ -x /dev/dsk/$1 ]
then
od -N 20000 /dev/dsk/$1 | head -3 | tail -1 | cut -f 10 -d " "
else
echo "ERROR- invalid physical volume given"
echo "ex. get_pv_id c10t2d4"
echo ""
exit 2
fi
study unix
Regular Advisor

Re: how to indentify the diffrent special device name that may belong to the same disk

Hi Torsten,
there questions,one is how to use evainfo,it need to be installed then to use ?

two is what does 3 mean as below ?
disk 3 0/0/6/1/0.1.1.0.0.0.1

there is what doese device file format for FC-disk?
many thanks for your support!