Unsolved
This post is more than 5 years old
92 Posts
0
2341
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
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
dynamox
2 Intern
2 Intern
•
20.4K Posts
0
March 10th, 2008 12:00
for AIX you could try: inq -sym_wwn
pctech321
92 Posts
0
March 10th, 2008 13:00
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
SKT2
2 Intern
2 Intern
•
1.3K Posts
0
March 10th, 2008 13:00
pctech321
92 Posts
0
March 10th, 2008 13:00
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,
dynamox
2 Intern
2 Intern
•
20.4K Posts
0
March 10th, 2008 13:00
dynamox
2 Intern
2 Intern
•
20.4K Posts
0
March 10th, 2008 13:00
symdev show -sid 123 7DC | grep FA | awk '{print $9}'
pctech321
92 Posts
0
March 10th, 2008 13:00
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
pctech321
92 Posts
0
March 10th, 2008 13:00
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
dynamox
2 Intern
2 Intern
•
20.4K Posts
0
March 10th, 2008 13:00
pctech321
92 Posts
0
March 10th, 2008 14:00
can u tell whats the Target id thing , how it differs for same lun number ????
thank you,
-Pctech
dynamox
2 Intern
2 Intern
•
20.4K Posts
0
March 10th, 2008 14:00
SKT2
2 Intern
2 Intern
•
1.3K Posts
0
March 10th, 2008 18:00
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..
xe2sdc
2 Intern
2 Intern
•
2.8K Posts
0
March 11th, 2008 07:00
maybe you need glasses 8-)
dynamox
2 Intern
2 Intern
•
20.4K Posts
0
March 11th, 2008 07:00
xe2sdc
2 Intern
2 Intern
•
2.8K Posts
0
March 11th, 2008 07:00