As a follow up to my original post "Configuring VMKernel port with an MTU of 9000 bytes" I thought that it would make more sense to include more of the configuration commands that are included in the VMware vSphere 4.0 iSCSI SAN Configuration document.
In the original post I only included the commands that enable you to create a vmkernel port with an MTU of 9000 bytes. In this post it includes the details from the original post as well as the configuration of the virtual switch and a second vmkernel port. In addition to that there are commands that bind the vmkernel ports to the software iSCSI adapter and removes a physical uplink from each vmkernel port.
In this example there are four physical network interfaces in the vSphere host, vmnic0 through vmnic3. Vmnics 0 and 1 are one physical adapter and vmnics 2 and 3 are another. We will be using vmnics 0 and 2 for vSwitch0, that way we have some redundany between physical adapters. You can configure vSwitch0 with vmnics 0 and 2 using the virtual infrastructure client.
Once you have finished configuring the vSphere host you should use the virtual infrastructure client, configuration tab, storage adapters, and rescan for new storage devices and VMFS volumes. The result should be that the existing LUNs will continue to be available except for the fact that the details of those LUNs will indicate that they have multiple paths.
#!/bin/bash
#
# Change the MTU to 9000 bytes on vSwitch0
#
esxcfg-vswitch -m 9000 vSwitch0
#
# Create a portgroup named iSCSI_01 on vSwitch0
esxcfg-vswitch -A iSCSI_01 vSwitch0
#
# Assign VLAN 100 to the iSCSI portgroup
esxcfg-vswitch -p iSCSI_01 -v 100 vSwitch0
#
# Create a portgroup named iSCSI_02 on vSwitch0
esxcfg-vswitch -A iSCSI_02 vSwitch0
#
# Assign VLAN 100 to the iSCSI_02 portgroup
esxcfg-vswitch -p iSCSI_02 -v 100 vSwitch0
#
# Add a vmkernel port with an IP Address, Subnet Mask,
# and MTU value to the iSCSI_01 portgroup
esxcfg-vmknic -a vmk0 -i 10.0.0.10 -n 255.255.255.0 -m 9000 -p iSCSI_01
#
# Add a vmkernel port with an IP Address, Subnet Mask,
# and MTU value to the iSCSI_02 portgroup
esxcfg-vmknic -a vmk1 -i 10.0.0.100 -n 255.255.255.0 -m 9000 -p iSCSI_02
#
# Remove an uplink port from vmkernel port vmk0
esxcfg-vswitch -N vmnic2 -p iSCSI_01 vSwitch0
#
# Remove an uplink port from vmkernel port vmk1
esxcfg-vswitch -N vmnic0 -p iSCSI_02 vSwitch0
#
# Bind the vmkernel port vmk0 to the iSCSI software adapter vmhba32
esxcli swiscsi nic add -n vmk0 -d vmhba32
#
# Bind the vmkernel port vmk1 to the iSCSI software adapter vmhba32
esxcli swiscsi nic add -n vmk1 -d vmhba32
#
# Verify that the vmkernel ports have been bound to the iSCSI software
esxcli swiscsi nic list -d vmhba32
#
# List the vmkernel ports to verify that vmk0 has 9000 byte MTU
#
esxcfg-vmknic -l
#
# List the vSwitch properties to verify that the vSwitches have been configured
# with a 9000 byte MTU
#
esxcfg-vswitch -l
#
Please reference the following VMware document if you continue to experience issues with the configuration of software iSCSI multipathing.
http://www.vmware.com/pdf/vsphere4/r40/vsp_40_iscsi_san_cfg.pdf
Saturday, March 20, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment