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?

link|improve this question

are you using chap credentials on your iSCSI LUNs? – JakeRobinson May 5 '11 at 1:20
No, 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. – Peter May 5 '11 at 4:04
@Peter: You should post your last comment as an answer and accept it. – Evan Anderson May 5 '11 at 14:51
A nitpick, if I may: best practice is to have two vswitches, one for each iSCSI VLAN, then for each vswitch connect a single pnic and create a single vmknic. – Max Alginin May 5 '11 at 18:20
@ynguldyn why would you use iscsi vlans if you have a completely separate Storage network with Redundant switches? just in case of a brocast flood or something along those lines? – Peter May 12 '11 at 5:16
show 1 more comment
feedback

1 Answer

up vote 1 down vote accepted

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.