This post is more than 5 years old
2 Intern
•
220 Posts
0
5851
October 1st, 2012 22:00
Symmetrix Host Lun Number
Hi
Can you please tell how to calculate the hostlun number on the Array Side. For Example below command list all the Lun number for the Symdevice
symcfg -sid xxx123 list -dir all -address
Symmetrix ID: 000190103742
Director Device Name Attr Address
---------------------- ----------------------------- ---- --------------
Ident Symbolic Port Sym Physical VBUS TID LUN
------ -------- ---- ---- ----------------------- ---- --- ---
FA-8A 08A 0 09F5 Not Visible VCM 0 00 000
0CB5 Not Visible (M) 0 00 001
0CD3 Not Visible (M) 0 00 002
0B0B Not Visible (M) 0 00 003
0705 Not Visible (M) 0 00 004
006C Not Visible (M) 0 00 005
00B2 Not Visible (M) 0 00 006
00D4 Not Visible (M) 0 00 007
00D7 Not Visible (M) 0 01 000
00EC Not Visible (M) 0 01 001
00FD Not Visible (M) 0 01 002
0109 Not Visible (M) 0 01 003
0119 Not Visible (M) 0 01 004
0129 Not Visible (M) 0 01 005
00B5 Not Visible (M) 0 01 006
00B8 Not Visible (M) 0 01 007
00BE Not Visible (M) 0 02 000
00CA Not Visible (M) 0 02 001
00DA Not Visible (M) 0 02 002
00E3 Not Visible (M) 0 02 003
0238 Not Visible (M) 0 02 004
016F Not Visible (M) 0 02 005
017F Not Visible (M) 0 02 006
018F Not Visible (M) 0 02 007
09FF Not Visible 0 03 000
0A00 Not Visible 0 03 001
03D3 Not Visible (M) 0 0A 000
03D6 Not Visible (M) 0 0A 001
0446 Not Visible (M) 0 0A 002
04C0 Not Visible (M) 0 0A 003
04D0 Not Visible (M) 0 0A 004
051B Not Visible (M) 0 0A 005
052E Not Visible (M) 0 0A 006
0680 Not Visible (M) 0 0A 007
0690 Not Visible (M) 0 0B 000
06E8 Not Visible (M) 0 0B 001
06F8 Not Visible (M) 0 0B 002
0736 Not Visible (M) 0 0B 003
07B2 Not Visible (M) 0 0B 004
081B Not Visible (M) 0 0B 005
0850 Not Visible (M) 0 0B 006
0852 Not Visible (M) 0 0B 007
0854 Not Visible (M) 0 0C 000
0856 Not Visible (M) 0 0C 001
0780 Not Visible (M) 0 0C 002
0797 Not Visible (M) 0 0C 003
032B Not Visible (M) 0 0C 004
093C Not Visible 0 0F 007
093D Not Visible 1 00 000
093E Not Visible 1 00 001
093F Not Visible 1 00 002
0940 Not Visible 1 00 003
0941 Not Visible 1 00 004
0942 Not Visible 1 00 005
0943 Not Visible 1 00 006
0944 Not Visible 1 00 007
If the TID and BUS is 0, then i don't have any issues and i totally rely on the lun nbr for host mapping of the lun. If TID and BUS is not zero then , i need to know the way how get the lun number.
0238 Symdevice is shown as 24 as the lun number on the host side. It has 004 as lun number and 02 as TID and 0 as Bus Number. I don't know how it calculates the Host Lun number.
03D3 is shown as 33 as Lun number on the Host Side.
1. I need a Formula how to map the lun number from Arrayside to the host side. For example 03D3 Sym device as 000 as Lun Number and 0A as TID and 00 as Bus ID. How it shows up as 33 as lun number on the Host side.
2. How to Calculate if Bus number is 1 and TID is 0 and and lun number is 007 (0944 Sym device listed above). What will be Host lun number for the 0944 Symdevice. How to calculate it.
Basically i need if i see TID and Bus number for Symdevice.. Then the Host lun number has differnt claculation on the host side. How we need to calculate the lun number.?
Any help Much appreciated.
Thanks
Naren
naren23-3_uew
2 Intern
•
220 Posts
0
October 3rd, 2012 10:00
Hi Dynamox
It is working. I am able to get the Lun Number. Is there is any way i get all the lun number as one shot command instead of querying for each wwn which you have posted above.
Thanks
Naren
naren23-3_uew
2 Intern
•
220 Posts
0
October 1st, 2012 22:00
Luns are presented to linux.
Even i ran sym inq command on the linux box i got the 33 as lun number t for the for 03d3 symdevice.
Command: inq -btl
------------------------------------------------------------------------------------------------
DEVICE :VEND :PROD :REV :SER NUM :CAP(kb) :Bus :Tid :Lun
------------------------------------------------------------------------------------------------
/dev/sdbq :EMC :SYMMETRIX :5772 :42003d3000 : 15096960: 0: 0: 33
dynamox
9 Legend
•
20.4K Posts
0
October 1st, 2012 22:00
are these LUNs presented to HPUX only ?
naren23-3_uew
2 Intern
•
220 Posts
0
October 2nd, 2012 13:00
is somebody can help me to figure out the solution for the above issue.
dynamox
9 Legend
•
20.4K Posts
0
October 2nd, 2012 14:00
there is not dynamic_lun masking ..is there ?
naren23-3_uew
2 Intern
•
220 Posts
0
October 2nd, 2012 14:00
Yes , The Dynamic address is enabled for that host
Originator Port wwn : 22000005e601afa1
Type : Fibre
User-generated Name : 22000005e601afa1/22000005e601afa1
Visibility : No
FCID Lockdown : No
Lun Offset : No
Heterogeneous Host : No
Port Flag Overrides : Yes
Enabled : Disable_Q_Reset_on_UA(D)
SCSI_3(SC3)
SPC2_Protocol_Version(SPC2)
Disabled : Volume_Set_Addressing(V)
Dynamic Addressing : Yes
Authentication State : N/A
Devices : 00EC 00FD 0109 0119 0129 016F 017F 018F
019F 01AF 01BF 01CF 01DF 01EF 023E 0244
025A 028E 02C2 02D6 02E5 02EE 02F8 02FE
0304 030A 032B 03BF:03C0 03C2 03C4 03C6
03CE 03D3 03D6 03EB 03FE 0914 0938
Then how should i go about?
dynamox
9 Legend
•
20.4K Posts
0
October 2nd, 2012 14:00
i don't remember in what version it got introduced but when you mask devices to a host you can specify -dynamic_lun and all devices will start number from 0, regardless of their address on the FA. You can check if you are using it:
symmaskdb -sid 123 list db -wwn 22000005e601afa1 -v
can you post ouput for these lines:
Heterogeneous Host : No
Port Flag Overrides : No
Dynamic Addressing : No
naren23-3_uew
2 Intern
•
220 Posts
0
October 2nd, 2012 14:00
What is dynamic Lun Masking?
dynamox
9 Legend
•
20.4K Posts
0
October 2nd, 2012 16:00
symmaskdb -sid 123 list devs -wwn 22000005e601afa1
Number under Host column represent the LUN id that you see on the host (number is in hex so convert to decimal)
Message was edited by: dynamox
naren23-3_uew
2 Intern
•
220 Posts
0
October 2nd, 2012 17:00
Thanks Dynamox. I will try the command and let you know
dynamox
9 Legend
•
20.4K Posts
0
October 3rd, 2012 11:00
not that i am aware off
Kennedy_Doss
79 Posts
0
October 4th, 2012 07:00
Dynamox:
Cool - This is good to know.
2 Questions:
a) How do we change this Lun Offset Value from "No" to "Yes".
b) Do we need to have all the hosts attached to that FA offline to make this change?
dynamox
9 Legend
•
20.4K Posts
0
October 4th, 2012 08:00
a) why do you need to enable Lun Offset ?
b) what are you trying to do/solve ?
Kennedy_Doss
79 Posts
0
October 4th, 2012 08:00
Dynamox: Just academic interest. I wanted to play with this in my lap environment and see how a Linux and HP-UX box paths/device numbers change. I was just wondering if this "Lun Offset" can be dynamically changed. Because some of the parameters like Volume Set Addressing requires all the hosts attached to a FA to be offline when we change it.
dynamox
9 Legend
•
20.4K Posts
0
October 4th, 2012 08:00
Lun Offset was used back in the days to do the same thing that dynamic lun masking does today (and does it better). It essentially gave you an ability to "obscure" physical address of a device on an FA, device could be mapped to address 1F0 but if your host could not see past address 256 you would never be able to discover that device. With Lun Offset you could say everything add address 1F0 and up will start at LUN id 0 for this particular host. Dynamic Lun does the same thing but has less restrictions, you have to explicitly specify for DMX3/4 and on VMAX it's on by default. I have never changed from static to dynamic lun masking in production, i have in a test environment and it was not pretty. Device got renumbered on the host side and system crashed, had to reboot (this was a windows box).
As far as setting other host flags, you no longer need to set them at the FA level, you can set flags at HBA level using hba_flags commands.