Subscribe

script to add initiators to netapp luns

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?

Re: script to add initiators to netapp luns

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.

Re: script to add initiators to netapp luns

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

Re: script to add initiators to netapp luns

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