Wednesday, November 16, 2011

vSphere: iSCSI Multipath

Once again, I have just learned about iSCSI Multipathing and tested it out in my home lab using a openfiler as my iSCSI virtual SAN and with nested ESX 4.1 and ESXi 5.0.

Reason why I taken such a combination of different Hypervisor is to show how this can be done.  In vSphere 5, where ESXi 5.0, there is a GUI to perform the MPIO binding unlike in vSphere 4.x, this has to be done via the command line.  Even changing the MTU value has been made easy in vSphere 5.

You can also do a load balance by changing the path selection to round robin.

vSphere 5

vSphere 4

Update: After setting up the mutipath, reboot the esx host and the path would be shown correct.

iSCSI binding Commands
Changing a vSwitch with MTU 9000 (Optional)
>esxcfg-vswitch -m 9000 vSwitch0

Add a vmknic to a port group with MTU 9000
>esxcfg-vmknic -a -i -n -m 9000 "Port Group"
Where port group is the name of the port group. 

To view your vmknics for iSCSI 
>esxcfg-vmknics -l

My iSCSI adapter is vmhba33.  My vmknic are 1 and 2.
To bind the respective vmknic to adaptor 
>esxcli swiscsi nic add -n vmk1 -d vmhba33

>esxcli swiscsi nic add -n vmk2 -d vmhba33

To remove the vmknics, make sure the iSCSI is disabled and not datastore are connected.
To ensure a reboot is recommended.
>esxcli swiscsi nic remove -n vmk1 -d vmhba33
>esxcli swiscsi nic remove -n vmk2 -d vmhba33 

To see the vmknics associated with your adapter 
>esxcli swiscsi nic list -d vmhba35

Changing MTU for vSwitch and vmk
vSphere 4.x

vSphere 5

No comments:

VMUG Singapore VMC Session

With the launch of VMware Cloud (VMC) on AWS in Singapore back in April 2019, there has been lots of talk and questions. VMUG Singapore w...