Unsolved
This post is more than 5 years old
17 Posts
0
7628
February 28th, 2013 14:00
Setting VMAX LUN id for a dev in an SG
Can I set the LUN ID of a VMAX device to a number higher than 0 or 1 if there is only one dev in the SG? If so, how?
No Events found!
4_Aces
17 Posts
0
February 28th, 2013 14:00
I hate SMC, but thanks to both of you. I will be working on it tomorrow thanks.
Zikas
278 Posts
0
February 28th, 2013 14:00
Hi Aces,
you can set as well the LUN ID via the SMC.
4_Aces
17 Posts
0
February 28th, 2013 14:00
I can enter symaccess -sid 123 add devs -lun 2 even if they're aren't 2 devs in the SG?
If so, perfect thanks!
dynamox
9 Legend
•
20.4K Posts
0
February 28th, 2013 14:00
symaccess -sid 123 add devs -lun <#>
Zikas
278 Posts
0
February 28th, 2013 14:00
Totally agree Aces, but always you have to know hot to use the alternative way.
dynamox
9 Legend
•
20.4K Posts
0
February 28th, 2013 14:00
correct
4_Aces
17 Posts
0
March 20th, 2013 08:00
I tried "symaccess -sid 1234 -name Storage_Group_SG add dev 6AAA -type stor -lun D3"
Error message is: '-lun' invalid option, since Storage_Group_SG doesn't have a masking view.
And when I go create a masking view, it tells me "the specified storage group is empty."
So how can I create a view, with one dev in the SG, using the LUN id of my choosing?
dynamox
9 Legend
•
20.4K Posts
0
March 20th, 2013 12:00
use decimal, not hex
4_Aces
17 Posts
0
March 20th, 2013 15:00
So if I add the LUN first to SG, then create the VIEW, it will set the LUN # to what I want with the -lun option?
codyhosterman
286 Posts
0
March 20th, 2013 15:00
I am pretty sure it is supposed to be hex. Anyways, in this situation you can add the device to the storage group beforehand and when you create the view you can add the -lun option. Host lun addresses are only assigned when the view is created.
4_Aces
17 Posts
0
March 20th, 2013 15:00
? The array uses hex, no?
Anyway I had to add a random dev to the SG, remove dev 6AAA, re-add 6AAA with the commands above, and then remove the random dev. That got me the LUN ID I was looking for (D3 hex, or 211 dec).
codyhosterman
286 Posts
0
March 20th, 2013 16:00
Yep. So it would look like this:
symaccess -sid 83 create view -name temp_mv -sg temp_sg -ig ProductionTest_IG -pg 283_pg -lun 5
There is more info about this command in the Solutions Enabler 7.5 Array Control Guide. In short it says:
"When devices are added at the storage group creation time, do not specify a LUN address.
The LUN address is determined when the masking view is created.
LUN addresses should only be supplied if the storage group is already contained within a
view. In this case, a single LUN can be given, or one for each device range. If the LUN
address is not specified, the Symmetrix array will assign the LUN address."
create view -sid SymmID -name ViewName -sg StorageGroupName -pg PortGroupName -ig InitiatorGroupName [ < [-reserve_id ResvID[,ResvID[,ResvID...]]] [-lun Addr] [-ckd] [-celerra] [-rp]
chirswilson
34 Posts
0
March 21st, 2013 04:00
It's worth noting that if you have multiple devices in a storage group when you create a view, the the HLU's appear to be assigned in device order (only briefly tested this behaviour)
We use LUN 0 for boot devices and if for some reason the boot disk is not the lowest device number then the view is created with that device alone and then all other devices are added later.
Vaibhav2025
13 Posts
0
March 22nd, 2013 06:00
Hello Aces,
Try the following:
Create the Storage Group with the device:
symaccess -sid 1234 -name Storage_Group -type stor -dev 6AAA
Create the masking view and assign the LUN ID:
symaccess -sid 1234 create view -name Masking_View -sg Storage_Group -ig Initiator_Group -pg Port_Group -lun D3
Next time you want to add another device with some LUN ID in the sg Storage_Group:
symaccess -sid 1234 -name Storage_Group -type stor add dev 6AAB -lun E4
Done!!!