Start a Conversation

Unsolved

20 Posts

2517

October 1st, 2018 20:00

Managing Unity Host LUN IDs

Unity automatically picks a host LUN ID for the host, picking the next available host LUN ID for that host. To change the host LUN ID for a LUN mask, simply navigate to Access > Hosts, click on the host you wish the change the Host LUN ID for, the pencil icon to edit

Our issue is Unity  does not keep consistent LUN IDs on existing LUNs when a new host is added into the group.

When we assign a host with multiple LUN's random LUN ID 's get assigned to the LUN and we have to set up time to maunally change them.

Is there an automated way to do this ?


For example Lun 0036 should be assigned LUN ID 36

                      Lun 0037 should be assigned LUN ID 37 and so on.



108 Posts

October 3rd, 2018 06:00

You could script it using uemcli from the uemcli PDF:

Change the host LUN ID.

Note

This operation will fail if you try to assign a LUN ID that is already in use.

Format

/remote/host/hlu {-id } set –lunid

Object qualifier

Qualifier Description

-id Specifies the HLU.

Action qualifier

Qualifier Description

-lunid Specifies the new LUN ID for the LUN on the selected host.

Example

The following command changes the ID Host_3_sv_2_prod to LUN 0:

uemcli -d 10.0.0.1 -u Local/joe -p MyPassword456! /remote/host/hlu -id

Host_3_sv_2_prod set –lunid 0

4.5K Posts

October 3rd, 2018 08:00

The LUN Host ID is selected when you add a LUN to a host. If you add LUN ID 7 first, the Host ID will be zero, then the next LUN you add will be Host ID 1 and so on. The LUN does not keep track of the Host ID. If you add LUNs to a new host that have already added to another host, then add the LUNs to the new host in the same order as you add the LUNs to the  first host.

glen

No Events found!

Top