HP QR516B manual Multipath Failover Considerations and I/O Load Balancing, # cat /etc/rc.local

Page 37

NOTE: VMware and HP recommend the LSI logic adapter emulation for Windows 2003 Servers. The LSI Logic adapter is also the default option for Windows 2003 when creating a new virtual machine. HP testing has noted a high incidence of Windows 2003 virtual machine failures during an ESX multipath failover/failback event when the BUS Logic adapter is used with Windows 2003 VMs.

NOTE: HP testing indicates that the SCSI timeout value for virtual machine guest operating systems should be 60 seconds in order to successfully ride out path failovers at the ESX layer. Most guest operating systems supported by VMware have a default SCSI timeout value of 60 seconds, but this value should be checked and verified for each GOS installation. In particular, Red Hat 4.x guest operating systems should have their SCSI timeout value changed from their default value of 30 seconds to 60 seconds.

This command line can be used to set the SCSI timeout on all SCSI devices presented to a Red Hat

4.x virtual machine to 60 seconds:

find /sys -name timeout grep "host.*target.*timeout" xargs -n 1 echo "echo 60 >"sh

This must be added as a line in /etc/rc.local of the Red Hat 4.x guest OS in order for the timeout change to be maintained with a virtual machine reboot.

Example of a modified /etc/rc.local file:

#cat /etc/rc.local

#!/bin/sh

#

#This script will be executed *after* all the other init scripts.

#You can put your own initialization stuff in here if you don't

#want to do the full Sys V style init stuff.

find /sys -name timeout grep "host.*target.*timeout" xargs -n 1 echo "echo 60 >"shtouch /var/lock/subsys/local

Multipath Failover Considerations and I/O Load Balancing

NOTE: This section about multipathing and configuring to Round Robin policy applies to all

connectivity types: FC, FCoE, and iSCSI.

VMware ESX 3.0 - 3.5 includes failover with multipath support to maintain a constant connection between the ESX host and the HP 3PAR StoreServ Storage array. VMware terms this multipath support with a choice of two "path policies" called "FIXED" or "MRU". As of ESX 4.0, a third path policy choice of "round robin" is available. The path policies can be modified on a per-HP 3PAR StoreServ Storage-volume (LUN) basis by right-clicking the device listing and selecting the "properties" function from the VI/vSphere client menu. A pop-up window allows you to 'manage paths' whereby the properties of the paths to the volume that was previously selected can be modified. Using this control, you can select the path policy, and specify which path is the active preferred path to a volume on the storage array, or which path is the standby path within the FIXED path policy scheme. Additionally, paths can be disabled to prevent any traffic over a specific path to a volume on the storage array.

The VI/vSphere client GUI allows for settings to be changed only on a volume-by-volume (LUN-by-LUN) basis. The GUI is appropriate and preferred for use in managing I/O paths within the FIXED path policy scheme. See “Configuring Round Robin Multipathing on ESX 4.x or later for

Multipath Failover Considerations and I/O Load Balancing 37

Image 37
Contents HP 3PAR VMware ESX Implementation Guide Acknowledgments Contents Allocating Storage for Access by the ESX Host Configuring the Host for an iSCSI ConnectionTarget Support and Other ResourcesDocumentation feedback Introduction Supported ConfigurationsRequired RequiredAudience HP 3PAR OS Upgrade ConsiderationsSetting Up the Ports Configuring the HP 3PAR StoreServ Storage for Fibre Channel# showport -par # showhost -listpersona Creating the Host Definition# showhost -persona # showhost# controlport persona 7 nodeslotport # createhost ESXserver1 10000000C9724AB2 10000000C97244FE Setting Up and Zoning the FabricHP 3PAR Coexistence Configuration Guidelines for Fabric VendorsAdminportcfgfillword Target Port Limits and SpecificationsHP 3PAR Priority Optimization Persistent Ports # showport Persistent Ports Setup and Connectivity GuidelinesPersistent Ports Limitations Unsupported ConfigurationsSetting Up the Ports for an iSCSI Connection Configuring the HP 3PAR StoreServ Storage for iSCSI# controlport config iscsi # showport Software iSCSI Support# vmkping # showport -iscsi# controliscsiport ping 10.1.1.10 ESX1 Setting Up and Configuring Chap Authentication Chap Authentication in ESX Chap Credentials in ESX/ESXi 4.x or ESX/ESXi For ESX 4.x # showhost -chap Hardware iSCSI SupportSetting a Static IP Address Showiscsisession Chap Configuration for One-Way Chap Chap Configuration for Mutual Chap HP 3PAR Priority Optimization Target Port Limits and Specifications# controlport config fcoe # showport 031 Configuring the HP 3PAR StoreServ Storage for FCoE# showport -i 031 # showport -fcoe# controlport offline Showport Turn off the iSCSI portsCreating the Host Definition Target Port Limits and Specifications Installing the HBA and Drivers Configuring the Host for a Fibre Channel Connection# esxcli brocade bcu --command=port --list # esxcli brocade bcu --command=vhba --query 1/0Http//kb.vmware.com Installing Virtual Machine Guest Operating System# cat /etc/rc.local Multipath Failover Considerations and I/O Load BalancingConfiguring the Host for a Fibre Channel Connection Multipath Failover Considerations and I/O Load Balancing LUN Set to Round Robin Vmwpsprr Vmwpspfixed Vmwpspmru To remove the above Alua custom Satp rule ESX/ESXi 4.0 GA 4.0 UxESXi ESX/ESXi 4.1 GA 4.1 UxDefault Satp Rules and Their Current Default PSP Satp Info CommandsShow Device Information Satp Custom Rules and Associated Defined Parameters# esxcli nmp satp listrules grep -i 3par # esxcli storage nmp device list naa.50002ac0000a0124# esxcli storage nmp device list -d naa.50002ac0005800ac # esxcli nmp device list naa.50002ac000b40125VMware ESX Releases through ESX 3.5 Update Performance Considerations for Multiple Host Configurations# esxcli nmp device list -d naa.50002ac0005800ac VMware ESXi Release VMware ESX Release 3.5 Update 4 through ESX 4.x and ESXi# esxcli storage core device list Esxcli storage core device list --device devicename497 / 16 = 31.xxx recommended max target port queue depth = Lpfcdd7xx Lpfcdd732 Lpfc740 Storage I/O Control ESX/ESXi 4.1, ESXi 5.x Additional Feature ConsiderationsVStorage APIs for Array Integration Vaai HP 3PAR Vaai Plugin 2.2.0 for ESXi HP 3PAR Vaai Plugin 1.1.1 for ESXiUnmap Space Reclaim Storage Hardware Support for ESXi # cd /vmfs/volumes/volune-nameOut-of-Space Condition for ESX 4.1 and ESXi # mount -t ext4 -o discard /dev/sda2 /mnt# showalert Additional New Primitives Support on ESXi Vaai and New Feature Support Table# esxcli storage core plugin list Vaai Plugin Verification# esxcfg-scsidevs -l naa.50002ac0002200d7 Vaai Status supported# esxcli storage core plugin list Plugin name Plugin class # esxcfg-scsidevs -l naa.50002ac003da00ebHardware Acceleration for HP 3PAR devices VMware All Paths DownUsing system Bios to configure FCoE Configuring the FCoE SwitchConfiguring FCoE Configuring the PCI Slots Exiting the Bios Utility Configuring Initiator FCoE to FC TargetInitiator FCoE to FC Target Configuring Initiator FCoE to Target FCoEInitiator FCoE to Target FCoE Installing iSCSI on VMware ESX Configuring the Host for an iSCSI ConnectionConfiguring the Host for an iSCSI Connection Creating a VMkernel Port Configuring the Host for an iSCSI Connection Click OK to complete Click Next Configuring the Host for an iSCSI Connection Page Configuring the VMware iSCSI Initiator Configuring the VMware iSCSI Initiator Configuring the Host for an iSCSI Connection Configuring the VMware iSCSI Initiator # showhost ESX/ESXi Additional Feature Considerations Creating Virtual Volumes for HP 3PAR OS 2.2.4 and Later Allocating Storage for Access by the ESX HostUsing the HP 3PAR Management Console Using the HP 3PAR OS CLIExporting LUNs to an ESX Host Creating Virtual Volumes for HP 3PAR OS 2.2.3 or Earlier# createaldvv options vvname.index sizegGtT # createaldvv -cnt 5 TESTLUNs 5G# createvlun options VVname VVset LUN nodeslotport Creating a Vlun for Export# createvlun options VVname VVset LUN hostname/set # createvlun options VVname VVset LUN nodeslotport/hostnameDiscovering LUNs on VMware ESX Hosts Removing VolumesEventlog and Host Log Messages Host and Storage UsageHost and Storage Usage Page Contacting HP Support and Other ResourcesHP 3PAR documentation Reference Storage Physical Planning HP 3PAR branding information Typographic conventionsDocumentation feedback