VMware Scripts for better performance

 

Dell MEM Installation

–          Download and install vSphere CLI

–          Download DELL MEM and extract

–          Open vSphere CLI and CD to the directory of the extracted files then run the following

–          setup.pl -install -server=172.22.0.31 -username=root -password=password

–          Configure the Nics

  • setup.pl –configure –server=172.22.0.31 –vswitch=vSwitchISCSI –mtu=9000 –nics=vmnic1,vmnic3,vmnic10,vmnic8 –ips=192.168.200.10,192.168.200.11,192.168.200.12,192.168.200.13 –netmask=255.255.255.0 –vmkernel=iSCSI -enableswiscsi –nohwiscsi –groupip=192.168.200.200

–          USE THE FOLLOWING ONLY IF YOU HAVE ENTERPRISE OR ENTERPRISE PLUS LICENSES

  • esxcli equallogic param set –name=VolumeSessions –value=9
  • esxcli equallogic param set –name=MemberSessions –value=4

**NOTE MEM is only functional with Enterprise or Enterprise Plus Licensing**

For all other Licenses use the following script

–          This script, will set the default policy for EQL devices to Round Robin and set any EQL volumes to 3 IOPs.   As you add volumes or RDMs, you will have to re-run this script on all the nodes.   That’s another benefit to MEM, new EQL volumes are automatically optimized.

–          *** NOTE THIS WILL ONLY WORK IF ALL VOLUMES ARE CREATED WITH THE GROUP MANAGER. IF YOU USE THE EQL-VSM THEN IT WILL NOT RUN PROPERLY***

  • esxcli storage nmp satp set –default-psp=VMW_PSP_RR –satp=VMW_SATP_EQL ; for i in `esxcli storage nmp device list | grep EQLOGIC|awk ‘{print $7}’|sed ‘s/(//g’|sed ‘s/)//g’` ; do esxcli storage nmp device set -d $i –psp=VMW_PSP_RR ; esxcli storage nmp psp roundrobin deviceconfig set -d $i -I 3 -t iops ; done
  • Make sure to check that it is successful
    • Esxcli storage nmp device list

–          Use the below if LUNs/Datastores were created with EQL-VSM

  • esxcli storage nmp satp set –default-psp=VMW_PSP_RR –satp=VMW_SATP_EQL ; for i in `ls /vmfs/devices/disks | grep naa.60`; do esxcli storage nmp device set -d $i –psp=VMW_PSP_RR ; esxcli storage nmp psp roundrobin deviceconfig set -d $i -I 3 -t iops ; done

–          You can manually do this as well by

  • Getting the Identifiers
    • esxcli storage nmp device list | grep naa.60
  • esxcli storage nmp psp roundrobin deviceconfig set -d naa.devicename –iops 3 –type iops

 

 

 

Other common settings to check for best performance.               

– Delayed ACK disabled

– Large Receive Offload (LRO) disabled

                –  esxcfg-advcfg -s 0 /Net/TcpipDefLROEnabled

–  On VMs with multiple VMDKs or RDMs, create additional Virtual SCSI adapters in those VMs.

One more common enhancement that gets missed often is creating a virtualized SCSI adapter for each VMDK (or RDM) in each VM.  (Up to 4x controllers) If you look in the VM settings, each VMDK/RDM shows a “Virtual node” It will say 0:0, for first drive, then 0:1, 0:2, etc…   Shutdown the VM, change the other VMDK/RDMs from 0:1 to 1:0, then 0:2 to 2:0 and so on.   This will tell ESX to create new SCSI controllers for each disk.  Really helps with Exchange/SQL/Sharepoint.   Things that have databases and logs or fileservers that have multiple VMDKs/RDMs

Advertisements