Start a Conversation

Unsolved

This post is more than 5 years old

2341

March 10th, 2008 12:00

Command to know the device lun number

hi guys..

how to find out the lun number of the devices ( hdisks ) attached to open systems ( AIX ) and AS/400 from DMX ...is there any flag with inquiry utitity to get the device lun numbers ???

thank you,

-Pctech

2 Intern

 • 

20.4K Posts

March 10th, 2008 12:00

from host perspective ?

for AIX you could try: inq -sym_wwn

92 Posts

March 10th, 2008 13:00

yaa..when i run the symdev show on both i get the same symm column
value see..

Courne1/root: / > symdev show 04F3 -sid XXXX
Front Director Paths (1):
{
----------------------------------------------------------------------
POWERPATH DIRECTOR PORT LUN
--------- ---------- ---- -------- ---------
PdevName Type Type Num Sts VBUS TID SYMM Host
----------------------------------------------------------------------
Not Visible N/A FA 14A:1 RW 000 00 003 N/A
}

Courne1/root: / > symdev show 04E3 -sid XXX

Front Director Paths (1):
{
----------------------------------------------------------------------
POWERPATH DIRECTOR PORT LUN
--------- ---------- ---- -------- ---------
PdevName Type Type Num Sts VBUS TID SYMM Host
----------------------------------------------------------------------
Not Visible N/A FA 14A:1 RW 000 03 003 N/A
}


i never done that lun offsetting during assigniong the devices to hosts ..
do i need to add any flags while mapping devices for lun offsetting ??
can u tell me briefly how it works ?.

thankx

2 Intern

 • 

1.3K Posts

March 10th, 2008 13:00

but the TID is diffent there

92 Posts

March 10th, 2008 13:00

tried that command already but it doesn't giving the lun number

Courne1/root: /tmp/prod > ./inq.aix64_51 -sym_wwn
Inquiry utility, Version V7.3-623 (Rev 0.0) (SIL Version V6.0.0.0 (Edit Level 623)
Copyright (C) by EMC Corporation, all rights reserved.
For help type inq -h.
...............................................................................
.....
-----------------------------------------------------------------------------
Symmetrix Device Symm Serial # Device # WWN
-----------------------------------------------------------------------------
/dev/rhdiskpower0 XXXXXX 0236 60060480000187431359464241323336
/dev/rhdiskpower1 XXXXXX 0237 60060480000187431359464241323337
/dev/rhdiskpower2 XXXXXX 0238 60060480000187431359464241323338
/dev/rhdiskpower3 XXXXXX 0239 60060480000187431359464241323339
/dev/rhdiskpower4 XXXXXX 023A 60060480000187431359464241323341

the symcfg with available addresss option gave me some result ..
but i didn't understand one thing in my output , it showing me that lun number 000 is already used
still that same number 000 is in state of AVAILABLE , what it means there can me multiple of same lun number
on single FA ???

thank you,

2 Intern

 • 

20.4K Posts

March 10th, 2008 13:00

you are not doing any kind of lun offsetting ? Does symdev show output shows the same value in the SYMM column for both devices ?

2 Intern

 • 

20.4K Posts

March 10th, 2008 13:00

how about writing a loop and use symdev show, something like this:

symdev show -sid 123 7DC | grep FA | awk '{print $9}'

92 Posts

March 10th, 2008 13:00

i forgot to post symcfg output..here it is

Courne1/root: / > symcfg list -sid XXX -fa 3A -p 1 -addresses -available

Symmetrix ID: XXXXX

Director Device Name Attr Address
---------------------- ----------------------------- ---- --------------
Ident Symbolic Port Sym Physical VBUS TID LUN
------ -------- ---- ---- ----------------------- ---- --- ---

FA-3A 03A 1 - AVAILABLE 0 00 000 *
0657 Not Visible (M) 0 03 000
065B Not Visible (M) 0 03 001
065F Not Visible (M) 0 03 002

92 Posts

March 10th, 2008 13:00

great . its working
i write a small script with that awk line to get all other devices..
can u guys help to clarify that second thing about the same lumber issue ,
here is info about one more FA , it using same lun number ( 003 ) twice for
different devices

Courne1/root: / > symcfg list -sid XXX -fa 14A -p 1 -addresses -available

Symmetrix ID: XXXXX

Director Device Name Attr Address
---------------------- ----------------------------- ---- --------------
Ident Symbolic Port Sym Physical VBUS TID LUN
------ -------- ---- ---- ----------------------- ---- --- ---

FA-14A 14A 1 038B Not Visible (M) 0 00 000
- AVAILABLE 0 00 001 *
04F3 Not Visible (M) 0 00 003
04F7 Not Visible (M) 0 00 004
AVAILABLE 0 00 008 *
0507 Not Visible (M) 0 01 000
- AVAILABLE 0 01 001 *
04E3 Not Visible (M) 0 03 003

thank you,

-Pctech

2 Intern

 • 

20.4K Posts

March 10th, 2008 13:00

good eyes santhosh ...

92 Posts

March 10th, 2008 14:00

hi santhosh,

can u tell whats the Target id thing , how it differs for same lun number ????

thank you,

-Pctech

2 Intern

 • 

20.4K Posts

March 10th, 2008 14:00

santhosh pointed out ..you are using target id 3 for 04E3 device.

2 Intern

 • 

1.3K Posts

March 10th, 2008 18:00

we have three combination of VBUS + TID +LUN.

For each VBUS there can be 128 devices(16*8 TID and LUN combination) configured that is 00-FF for TID and 000-007 for LUN.


These three combination plays an importnat role for deciding the X,Y, and Z values in /dev/dsk/cXtYdZ.


In your case the actual LUN numbers are 04FE and 04F3 and you dont need to worrry about the 003 number you pointed; Those VBUS + TID +LUN combination comes by default by looking the next available address (those will be marked by a *) by the system automatically..

2 Intern

 • 

2.8K Posts

March 11th, 2008 07:00

good eyes santhosh ...


maybe you need glasses 8-)

2 Intern

 • 

20.4K Posts

March 11th, 2008 07:00

nah ..i am fine for now.

2 Intern

 • 

2.8K Posts

March 11th, 2008 07:00

pctech321 let me guess .. storage port is configured for HPUX hosts and you are using either "symmask set heterogeneous" or "symmask set hba_flags" to change FA behaviour for your AIX hosts that share the same HPUX ports ??
No Events found!

Top