Tuesday, December 27, 2011

How to Configure Jumbo for NFS vmkernel ports on a Distributed Switch

OK, so you want to use jumbo because it is faster and more efficient, but there is no way to configure this in the vSphere Client. You are correct. But, it can be configured from the CLI.

To do this, first set the MTU size to 9000 on the distributed swtitch
   Select "Manage this vNetwork distributed switch"
   Clik on "Advanced"
   enter 9000 for "Maximum MTU:"

Next, create a vmkernel port the way you normally would. This will provide you with a dvport ID which you will need to configurure this.

At this point, your vSwitch is configured for juimbo, but your vmkernel port is still at 1500. To change this, go to the command line on your server and do these steps:
  1) run esxcfg-vswitch -l to document your vmk port, dvport ID, IP, mask, and dv switch name.
  2) delete the vmkernel port  you just created with this command:
       esxcfg-vmknic -d -s "dvSwitch name"  -v 'dvport ID'
       (substitute in the name of your distributed switch  and your dvport ID you just documented)
  3) re-create your vmkernel port with this command:
       esxcfg-vmknic -a -i 'ip address' -n 'mask' -m 9000 -s "dvSwitch name" -v 'dvport ID'
       (where ip address = the IP address of the vmkernel port, mask = its mask)

You now have a jumbo frame vmkenel port.

Make sure your switches all along the way are configured for jumbo and that your storage is likewise configured for jumbo.

You can test this with the vmkping command.
    # vmkping -s 9000 'destination ip'
(your should see successful returns with a a frame size of 9000.

No comments:

Post a Comment