ONTAP Discussions

script to add initiators to netapp luns

TDUBB1234
3,378 Views

I have about 100 luns that I need to add 4 new initiators to. is there a way to script this from command line rather than doing it lun by lun?

3 REPLIES 3

georgevj
3,350 Views

You will add initiators to the "igroups", not "LUNs". Are those LUNs already mapped to any igroups? if so, adding the initiators to those igroups will map the LUNs to those hosts.

If the scenario is different,  we need to think about some other logic. It would be helpful if you can be precise about the requirement and your environment.

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Cannot find the answer you need? No need to open a support case - just CHAT and we’ll handle it for you.

TDUBB1234
3,338 Views

hi

 

I have an igroup that consit of 3 servers

 

but I am adding 4 new servers but each of them have there own igroup due to the fact that they are boot from san. 

 

 

each lun I have currently have the igroup pf the old servers.

 

I want to add these new igroups of these new servers to the existing luns

 

and I only know how to go uder each lun/initiator and add the igroup from there

TDUBB1234
3,162 Views

I have each servers intiators on their own igroup. So for every new server I bring up, there is a new igroup and I need to add these new igroups to existing luns

Public