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?
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.
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
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