Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|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

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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