Change LUN ID from CLI

squant
Posts: 17
Joined: Thu Mar 14, 2019 9:29 am

Change LUN ID from CLI

Post by squant »

Can this be done?
MammaGutt
Posts: 1577
Joined: Mon Sep 21, 2015 2:11 pm
Location: Europe

Re: Change LUN ID from CLI

Post by MammaGutt »

You can't change it. You can export the same VV with a new LUN ID and unexport the old one, but you can never make that change on an export.
The views and opinions expressed are my own and do not necessarily reflect those of my current or previous employers.
squant
Posts: 17
Joined: Thu Mar 14, 2019 9:29 am

Re: Change LUN ID from CLI

Post by squant »

So the only way to do this is clone the LUN? The clone will have the LUN ID desired?
MammaGutt
Posts: 1577
Joined: Mon Sep 21, 2015 2:11 pm
Location: Europe

Re: Change LUN ID from CLI

Post by MammaGutt »

squant wrote:So the only way to do this is clone the LUN? The clone will have the LUN ID desired?


Just to get the lingo right. The VLUN (export of a VV with a LUN ID over one path to a host) can't be modified. You have one VLUN per path per volume per host. You do not have to clone the VV as the VV itself and the VLUN are only linked together and not dependent of eachother.

For a server to see a volume with another LUN ID than it does today, you will have to create new VLUNs(export the same VV to the same host) using another LUN ID. Once the new export is active and the host has detected and acknowgded the new paths to the same volume, you should be okay to deleted the old VLUNs using the old LUN IDs.

I say "should" because I know that Microsoft has had multiple MPIO hotfixes for stuff like this over the year and I don't know if every possible OS supports accessing the sam volume over multiple LUN IDs. I've sucessfully changed it online, but it might not work in your environment.
The views and opinions expressed are my own and do not necessarily reflect those of my current or previous employers.
squant
Posts: 17
Joined: Thu Mar 14, 2019 9:29 am

Re: Change LUN ID from CLI

Post by squant »

showvv

1011 V20_test tpvv base --- 1011 RW normal 256 1024 1024 10240

I want to be able to change the ID "1011" to lets say 1012. Possible or not?

I think I was confusing you on what I want to accomplish.
MammaGutt
Posts: 1577
Joined: Mon Sep 21, 2015 2:11 pm
Location: Europe

Re: Change LUN ID from CLI

Post by MammaGutt »

Ahh, VV ID.

No, you can't change it and you can't to my knowledge set it.
The views and opinions expressed are my own and do not necessarily reflect those of my current or previous employers.
squant
Posts: 17
Joined: Thu Mar 14, 2019 9:29 am

Re: Change LUN ID from CLI

Post by squant »

That is what i was reading but wanted to see if someone found a work around.

thank you.
ailean
Posts: 392
Joined: Wed Nov 09, 2011 12:01 pm

Re: Change LUN ID from CLI

Post by ailean »

Think you can only set it manually during creation, it's used internally to track associations with the object so would probably break things if it was changed. Does allow for the name, wwn etc to be changed without upsetting stuff.

I'm not aware of it doing anything outside of the internal 3PAR systems so curious why you'd want to change it? :)
squant
Posts: 17
Joined: Thu Mar 14, 2019 9:29 am

Re: Change LUN ID from CLI

Post by squant »

We are migrating VMS disks from XP to 3par. The VV ID needs to match. But we can not migrate disks with same VV ID. The VMS system doesn't like it. So trying to figure out the best way to make a new disk with the correct ID. Thinking to clone? Any ideas?
MammaGutt
Posts: 1577
Joined: Mon Sep 21, 2015 2:11 pm
Location: Europe

Re: Change LUN ID from CLI

Post by MammaGutt »

FWIW I can't understand how VMS can read and/or complain about VV ID. Any OS I can think of only cares about WWN and LUN ID, but never VV ID.
The views and opinions expressed are my own and do not necessarily reflect those of my current or previous employers.
Post Reply