I'm trying to add another vm host to our SAN and I don't have good notes on how I got this working last time. (dumb mistake) I've pieced my steps together from a script I had for our production environment.
esxcfg-vswitch.pl -a vSwitch2
esxcfg-vswitch.pl -m 9000 vSwitch2
esxcfg-vswitch.pl -A iSCSI1 vSwitch2
esxcfg-vswitch.pl -A iSCSI2 vSwitch2
esxcfg-vmknic.pl -a -i xxx.xxx.xxx.xxx -n 255.255.255.0 -m 9000 iSCSI1
esxcfg-vmknic.pl -a -i xxx.xxx.xxx.xxx -n 255.255.255.0 -m 9000 iSCSI2
vicfg-iscsi.pl --swiscsi --enable
(go in and edit NIC Teaming - Move adaptors "extra" adapter to Unused for each vmk)
esxcli swiscsi nic add -n vmk1 -d vmhba38
esxcli swiscsi nic add -n vmk2 -d vmhba38
Once I do this I can add an address for dynamic discovery and it will find static discovery locations, but I can't add any datastores. any ideas?
Turns out I was dumb and on my testing LUN i didn't enable simultaneous connections from initators with different IQN names, on the LUN and I had another Host connected to it. The log files told me what I needed to fix, I should have looked there sooner.