UNSOLVED

pctech321

updated

18 years ago

P

pctech321

1 Rookie

92 Posts

0

2496

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
  • dynamox

    11 Legend

    20419 Posts

    87439 Points

    1077

    0

    Posted March 10th, 2008 12:00

    from host perspective ?

    for AIX you could try: inq -sym_wwn
  • pctech321

    1 Rookie

    92 Posts

    1079

    0

    Posted 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
  • SKT2

    2 Intern

    1340 Posts

    1079

    0

    Posted March 10th, 2008 13:00

    but the TID is diffent there
  • pctech321

    1 Rookie

    92 Posts

    1077

    0

    Posted 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,
  • dynamox

    11 Legend

    20419 Posts

    87439 Points

    1077

    0

    Posted 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 ?
  • dynamox

    11 Legend

    20419 Posts

    87439 Points

    1077

    0

    Posted 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}'
  • pctech321

    1 Rookie

    92 Posts

    1077

    0

    Posted 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
  • pctech321

    1 Rookie

    92 Posts

    1077

    0

    Posted 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
  • dynamox

    11 Legend

    20419 Posts

    87439 Points

    1079

    0

    Posted March 10th, 2008 13:00

    good eyes santhosh ...
  • pctech321

    1 Rookie

    92 Posts

    426

    0

    Posted 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