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?