I have LUN ID, how to find disk relate to that LUN ID?

I have a list of LUN ID, my task is to find if disk has been added or not. How do I do that? I have been searching the forum and not able to find answer.

thanks

Hi,
it would be helpful if you could let us know which OS and what kind of storage you're using ?
Kind regards
zxmaus

sorry about that.

it is SunOS 5.9 and SAN Storage

---------- Post updated at 03:08 PM ---------- Previous update was at 03:07 PM ----------

root@production2p:${PWD}#/opt/QLogic_Corporation/SANsurferCLI/scli -do all rescan
The driver rescan operation finished successfully on HBA port 0.
The driver rescan operation finished successfully on HBA port 2.
The driver rescan operation finished successfully on HBA port 1.
The driver rescan operation finished successfully on HBA port 3.
root@production2p:${PWD}#vxdisk list | grep invalid
c3t4d39s2 auto:none - - online invalid
c3t4d40s2 auto:none - - online invalid
c3t4d104s2 auto:none - - online invalid
c3t4d150s2 auto:none - - online invalid
c3t14d52s2 auto:none - - online invalid
c3t14d53s2 auto:none - - online invalid
c3t18d51s2 auto:none - - online invalid
root@production2p:${PWD}#vxdisk list c3t4d150s2
Device: c3t4d150s2
devicetag: c3t4d150
type: auto
info: format=none
flags: online ready private autoconfig invalid
pubpaths: block=/dev/vx/dmp/c3t4d150s2 char=/dev/vx/rdmp/c3t4d150s2
guid: -
udid: IBM%5F2107%5F75DLKK1%5F6005076305FFC21400000000000060B3
site: -
Multipathing information:
numpaths: 2
c3t4d150s2 state=enabled
c4t5d150s2 state=enabled

look the LUN ID is supposed to be the number here:

for example:
c3t18d51s2

LUN ID = 51, because it is d51 (disk #51).

but be careful, it's tricky.

I suggest you trace your disks.

It seems that you have two controller (c3, c4)

and on C3, you have three targets:
t4, t14, t18

(PS: for detailed description, check your SAN to figure out why they appear as 3 targets, but that's not really important)

now your LUNs appear to be out of order:
d39, d40
d104,
d150, d151, d154

so try to MAP each LUN on your SAN to each d#..

I hope that helps !

ok, I see. I will give a try tomorrow. Thanks