I think 4 VLANs for the SAN environment is overkill and it will be a pain to manage in the future
Our environment is split into a LAN VLAN and a SAN VLAN using the same switches. We don't have Starwind HA at this time, but the settings below should work.
I would change your Sync network to something completely different from your SAN network, maybe it's just me, but using 192.168.xxx for everything just gives me more opportunities for mistakes.
Use a 10.xx or a 172.xx
I like using 10.xx network because they are much easier to type

I know there are recommendations to split physical switches for performance, but that is a waste of ports & money.
Here is what I use through Putty and SSH into on each ESXi server to create the config, change IPs as needed.
I enable everything through console, I guess you can run it through PowerCLI, I just haven't had the time to learn it all yet.
- Code: Select all
esxcfg-vswitch -a vSwitch1
esxcfg-vswitch -m 9000 vSwitch1
esxcfg-vswitch -A iSCSI0 vSwitch1
esxcfg-vmknic -a -i 10.0.0.20 -n 255.255.255.0 -m 9000 iSCSI0
esxcfg-vswitch -A iSCSI1 vSwitch1
esxcfg-vmknic -a -i 10.0.1.20 -n 255.255.255.0 -m 9000 iSCSI1
esxcfg-vswitch -A iSCSI2 vSwitch1
esxcfg-vmknic -a -i 10.0.2.20 -n 255.255.255.0 -m 9000 iSCSI2
esxcfg-vswitch -A iSCSI3 vSwitch1
esxcfg-vmknic -a -i 10.0.3.20 -n 255.255.255.0 -m 9000 iSCSI3
esxcfg-vswitch -A iSCSI4 vSwitch1
esxcfg-vmknic -a -i 10.0.0.120 -n 255.255.255.0 -m 9000 iSCSI4
esxcfg-vswitch -A iSCSI5 vSwitch1
esxcfg-vmknic -a -i 10.0.1.120 -n 255.255.255.0 -m 9000 iSCSI5
esxcfg-vswitch -A iSCSI6 vSwitch1
esxcfg-vmknic -a -i 10.0.2.120 -n 255.255.255.0 -m 9000 iSCSI6
esxcfg-vswitch -A iSCSI7 vSwitch1
esxcfg-vmknic -a -i 10.0.3.120 -n 255.255.255.0 -m 9000 iSCSI7
esxcfg-vswitch -L vmnic4 vSwitch1
esxcfg-vswitch -L vmnic5 vSwitch1
esxcfg-vswitch -L vmnic6 vSwitch1
esxcfg-vswitch -L vmnic7 vSwitch1
esxcfg-vswitch -p iSCSI0 -N vmnic5 vSwitch1
esxcfg-vswitch -p iSCSI1 -N vmnic5 vSwitch1
esxcfg-vswitch -p iSCSI0 -N vmnic6 vSwitch1
esxcfg-vswitch -p iSCSI1 -N vmnic6 vSwitch1
esxcfg-vswitch -p iSCSI0 -N vmnic7 vSwitch1
esxcfg-vswitch -p iSCSI1 -N vmnic7 vSwitch1
esxcfg-vswitch -p iSCSI2 -N vmnic4 vSwitch1
esxcfg-vswitch -p iSCSI3 -N vmnic4 vSwitch1
esxcfg-vswitch -p iSCSI2 -N vmnic6 vSwitch1
esxcfg-vswitch -p iSCSI3 -N vmnic6 vSwitch1
esxcfg-vswitch -p iSCSI2 -N vmnic7 vSwitch1
esxcfg-vswitch -p iSCSI3 -N vmnic7 vSwitch1
esxcfg-vswitch -p iSCSI4 -N vmnic4 vSwitch1
esxcfg-vswitch -p iSCSI5 -N vmnic4 vSwitch1
esxcfg-vswitch -p iSCSI4 -N vmnic5 vSwitch1
esxcfg-vswitch -p iSCSI5 -N vmnic5 vSwitch1
esxcfg-vswitch -p iSCSI4 -N vmnic7 vSwitch1
esxcfg-vswitch -p iSCSI5 -N vmnic7 vSwitch1
esxcfg-vswitch -p iSCSI6 -N vmnic4 vSwitch1
esxcfg-vswitch -p iSCSI7 -N vmnic4 vSwitch1
esxcfg-vswitch -p iSCSI6 -N vmnic5 vSwitch1
esxcfg-vswitch -p iSCSI7 -N vmnic5 vSwitch1
esxcfg-vswitch -p iSCSI6 -N vmnic6 vSwitch1
esxcfg-vswitch -p iSCSI7 -N vmnic6 vSwitch1
esxcli swiscsi nic add -n vmk1 -d vmhba38
esxcli swiscsi nic add -n vmk2 -d vmhba38
esxcli swiscsi nic add -n vmk3 -d vmhba38
esxcli swiscsi nic add -n vmk4 -d vmhba38
esxcli swiscsi nic add -n vmk5 -d vmhba38
esxcli swiscsi nic add -n vmk6 -d vmhba38
esxcli swiscsi nic add -n vmk7 -d vmhba38
esxcli swiscsi nic add -n vmk8 -d vmhba38
I put this script in /etc/rc.local for MPIO
- Code: Select all
# Fixing iSCSI MPIO througput limited to 1G.
esxcli nmp device list | grep ^eui |
while read device ; do
esxcli nmp device setpolicy --psp VMW_PSP_RR --device ${device}
esxcli nmp roundrobin setconfig --type "iops" --iops 3 --device ${device}
done
If your SAN NIC's are Intel's and support VMDQ, you should enable:
http://kb.vmware.com/selfservice/micros ... 0160190099http://kb.vmware.com/selfservice/micros ... Id=1004593- Code: Select all
esxcfg-module -e igb
esxcfg-module -s "IntMode=2,2,2,2 VMDQ=4,4,4,4" igb
I also use these recommended settings from Starwind:
starwind-f5/recommended-settings-for-esx-iscsi-initiator-t2296.htmlstarwind-f5/recommended-tcp-settings-t2293.html