john1214
2 Bronze

AIX lun reference

Jump to solution

We have AIX VIO servers connected to VMAX with PowePath multipath s/w installed.We are doing migrations from IBM array to VMAX. When I assign all the VIO Lpar volume group luns to  VIO server all at once from the SMC, how can the AIX admin keep track of which lun goes to which lpar volume group?

Does he see any lun ID or device name/logical device id on the AIX server. I know what devices are going to a particular Lpar , does he see the same device id on his system too. I am assuming powermt display dev=all  will give logical device id. Can I ask him to use it as a reference , is there any better alternative.

0 Kudos
1 Solution

Accepted Solutions
dynamox
6 Thallium

Re: AIX lun reference

Jump to solution

AIX is funky like that, it's hdisk number will not match LUN address you assigned on FA, for example here is output from lspv

hdiskpower8     00cb0d2fc39753f9                    tsmlogvg        active

now when i run "powermt display dev=all" i see this information (this is a test server with only one path to storage, typically you will see two hdisk devices)

Pseudo name=hdiskpower8
Symmetrix ID=000000100123
Logical device ID=2AF5
state=alive; policy=SymmOpt; priority=0; queued-IOs=0
==============================================================================
---------------- Host ---------------   - Stor -   -- I/O Path -  -- Stats ---
### HW Path                 I/O Paths    Interf.   Mode    State  Q-IOs Errors
==============================================================================
   0 fscsi0                    hdisk11   FA  8cA   active  alive      0      0

so as you can see my symmetrix device id is 2AF5, PowerPath device is hdiskpower8 and native AIX device is hdisk11. If i run "symdev show 2AF5 -sid 123" ..you will see this output (snipped for abrivity)

Front Director Paths (1):
        {
        ----------------------------------------------------------------------
                                 POWERPATH  DIRECTOR   PORT             LUN
                                 --------- ----------  ---- -------- ---------
        PdevName                 Type      Type Num    Sts  VBUS TID SYMM Host
        ----------------------------------------------------------------------
        Not Visible              N/A       FA   08C:0  RW   000  00  0B8  N/A
        }

    Mirror Set Type          : [RAID-5,RAID-5,N/A,N/A]

as you can see this device is mapped to address 0B8, when converted from hex to decimal is address 184. If you are using dynamic lun masking (it's default on VMAX) that address 0B8 may not mean anything because it's dynamically masking and uses the next available address for that particular host. I think vSphere and HPUX are the only platforms that show you the actual LUN address that matches your FA address. So i would say use powerpath output or inq utility to keep track of devices.

0 Kudos
19 Replies
SAN_AK
3 Argentium

Re: AIX lun reference

Jump to solution

Onething I can say is when you create LUN on the VMAX you will be assigning host LUN address either dynamically or manually, these addresses can be useful to keep track of the LUNs you provisioned, for example you have provisioned one LUN of 100 gig with LUN address from VMAX as "010" as this address is Hexadecimal always at VMAX end, your admin sees the LUN at the address "16" decimal on the host. That tells him you have provisioned a LUN of 100 gig at LUN address "16". I guess AIX shows this LUN at LUN address 16...Lets see how others will suggest this...

0 Kudos
dynamox
6 Thallium

Re: AIX lun reference

Jump to solution

AIX is funky like that, it's hdisk number will not match LUN address you assigned on FA, for example here is output from lspv

hdiskpower8     00cb0d2fc39753f9                    tsmlogvg        active

now when i run "powermt display dev=all" i see this information (this is a test server with only one path to storage, typically you will see two hdisk devices)

Pseudo name=hdiskpower8
Symmetrix ID=000000100123
Logical device ID=2AF5
state=alive; policy=SymmOpt; priority=0; queued-IOs=0
==============================================================================
---------------- Host ---------------   - Stor -   -- I/O Path -  -- Stats ---
### HW Path                 I/O Paths    Interf.   Mode    State  Q-IOs Errors
==============================================================================
   0 fscsi0                    hdisk11   FA  8cA   active  alive      0      0

so as you can see my symmetrix device id is 2AF5, PowerPath device is hdiskpower8 and native AIX device is hdisk11. If i run "symdev show 2AF5 -sid 123" ..you will see this output (snipped for abrivity)

Front Director Paths (1):
        {
        ----------------------------------------------------------------------
                                 POWERPATH  DIRECTOR   PORT             LUN
                                 --------- ----------  ---- -------- ---------
        PdevName                 Type      Type Num    Sts  VBUS TID SYMM Host
        ----------------------------------------------------------------------
        Not Visible              N/A       FA   08C:0  RW   000  00  0B8  N/A
        }

    Mirror Set Type          : [RAID-5,RAID-5,N/A,N/A]

as you can see this device is mapped to address 0B8, when converted from hex to decimal is address 184. If you are using dynamic lun masking (it's default on VMAX) that address 0B8 may not mean anything because it's dynamically masking and uses the next available address for that particular host. I think vSphere and HPUX are the only platforms that show you the actual LUN address that matches your FA address. So i would say use powerpath output or inq utility to keep track of devices.

0 Kudos
john1214
2 Bronze

Re: AIX lun reference

Jump to solution

SAN_AK,

Just to keep you updated. Different OS behave differently, whatever you said may apply to other operating system, maybe to Vsphere.

That is not true with AIX as Dynamox mentioned it clearly with an example.

Thanks Dynamox for you time and help!

0 Kudos
john1214
2 Bronze

Re: AIX lun reference

Jump to solution

Dynamox,

How do I get a list of lun id's and its size for symmetrix devices on AIX. PowerPath is only managing sym devices in our environment

powermt display dev=all   displays whole bunch of data and it does not show the size of the device.

for inq utility I think the command is

inq -sym_wwn  but its not listing the device size.

want to know the command that lists the symmetrix device id's and its size.


0 Kudos
dynamox
6 Thallium

Re: AIX lun reference

Jump to solution

if you look in the SER NUM column ...123 is the serial number of your array and Volume column is your symdev device.

<root@aixserver:/root > ./inq.aix64_51 -showvol -nodots
Inquiry utility, Version V7.3-1108 (Rev 0.0)      (SIL Version V7.2.0.0 (Edit Level 1108)
Copyright (C) by EMC Corporation, all rights reserved.
For help type inq -h.

-------------------------------------------------------------------------------------
DEVICE            :VEND    :PROD            :REV   :SER NUM    :Volume  :CAP(kb)
-------------------------------------------------------------------------------------
/dev/rhdiskpower0 :EMC     :SYMMETRIX       :5773  :1230890000 :   00890:    60315840
/dev/rhdiskpower1 :EMC     :SYMMETRIX       :5773  :1230891000 :   00891:    60315840
/dev/rhdiskpower2 :EMC     :SYMMETRIX       :5773  :1230892000 :   00892:    60315840
/dev/rhdiskpower3 :EMC     :SYMMETRIX       :5773  :1230893000 :   00893:    60315840
/dev/rhdiskpower4 :EMC     :SYMMETRIX       :5773  :1230894000 :   00894:    60315840
/dev/rhdiskpower5 :EMC     :SYMMETRIX       :5773  :1230895000 :   00895:    60315840
/dev/rhdiskpower6 :EMC     :SYMMETRIX       :5773  :1230896000 :   00896:    60315840
/dev/rhdiskpower7 :EMC     :SYMMETRIX       :5773  :1230897000 :   00897:    60315840
/dev/rhdiskpower8 :EMC     :SYMMETRIX       :5773  :1232af5000 :   02AF5:     8838720
/dev/rhdisk0      :IBM     :ST373207LC      :0     :0000039B21 :   00039:    71687000
/dev/rhdisk1      :IBM     :ST373207LC      :0     :0000039A62 :   00039:    71687000
/dev/rhdisk2      :EMC     :SYMMETRIX       :5773  :1230020000 :   00020:        2880
/dev/rhdisk3      :EMC     :SYMMETRIX       :5773  :1230890000 :   00890:    60315840
/dev/rhdisk4      :EMC     :SYMMETRIX       :5773  :1230891000 :   00891:    60315840
/dev/rhdisk5      :EMC     :SYMMETRIX       :5773  :1230892000 :   00892:    60315840
/dev/rhdisk6      :EMC     :SYMMETRIX       :5773  :1230893000 :   00893:    60315840
/dev/rhdisk7      :EMC     :SYMMETRIX       :5773  :1230894000 :   00894:    60315840
/dev/rhdisk8      :EMC     :SYMMETRIX       :5773  :1230895000 :   00895:    60315840
/dev/rhdisk9      :EMC     :SYMMETRIX       :5773  :1230896000 :   00896:    60315840
/dev/rhdisk10     :EMC     :SYMMETRIX       :5773  :1230897000 :   00897:    60315840
/dev/rhdisk11     :EMC     :SYMMETRIX       :5773  :1232af5000 :   02AF5:     8838720

SKT2
4 Tellurium

Re: AIX lun reference

Jump to solution

even on Hp-UX its not matching.  Also in addition to the inq , `sympd list` also returns the size, but the SE need installed for this.

0 Kudos
dynamox
6 Thallium

Re: AIX lun reference

Jump to solution

target and lun has always mached for me on HPUX

1-9-2011 8-26-25 PM.png

0 Kudos
john1214
2 Bronze

Re: AIX lun reference

Jump to solution

Is there any command on AIX which shows vg, pvid, and emc id information.

0 Kudos
dynamox
6 Thallium

Re: AIX lun reference

Jump to solution

i don't think there is one command that will do that, you can do this:

1) run lspv to list disks on the system:

<root@aixbox:~ > lspv | grep -i power
hdiskpower0     00cb0d2f2f3330cb                    tsmdbvg         active
hdiskpower1     00cb0d2f2f33326b                    tsmdbvg         active
hdiskpower2     00cb0d2f2f333400                    tsmstgpoolvg    active
hdiskpower3     00cb0d2f2f333597                    tsmstgpoolvg    active
hdiskpower4     00cb0d2f2f33373a                    tsmstgpoolvg    active
hdiskpower5     00cb0d2f2f3338de                    tsmstgpoolvg    active
hdiskpower6     00cb0d2f33af665a                    tsmstgpoolvg    active
hdiskpower7     00cb0d2f33af6816                    tsmstgpoolvg    active
hdiskpower8     00cb0d2fc39753f9                    tsmlogvg        active

2) use "powermt display dev=x" to see symmetrix device id:

<root@axibox:~ > powermt display dev=hdiskpower8
Pseudo name=hdiskpower8
Symmetrix ID=000000000123
Logical device ID=2AF5
state=alive; policy=SymmOpt; priority=0; queued-IOs=0
==============================================================================
---------------- Host ---------------   - Stor -   -- I/O Path -  -- Stats ---
###  HW Path                I/O Paths    Interf.   Mode    State  Q-IOs Errors
==============================================================================
   0 fscsi0                    hdisk11   FA  8cA   active  alive      0      0