vsphere availability guide esx 4 - vmware · 2011-02-10 · vsphere availability guide update 1 esx...

54
vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product listed and supports all subsequent versions until the document is replaced by a new edition. To check for more recent editions of this document, see http://www.vmware.com/support/pubs. EN-000265-04

Upload: others

Post on 13-Apr-2020

75 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

vSphere Availability GuideUpdate 1

ESX 4.0ESXi 4.0

vCenter Server 4.0

This document supports the version of each product listed andsupports all subsequent versions until the document is replacedby a new edition. To check for more recent editions of thisdocument, see http://www.vmware.com/support/pubs.

EN-000265-04

Page 2: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

vSphere Availability Guide

2 VMware, Inc.

You can find the most up-to-date technical documentation on the VMware Web site at:

http://www.vmware.com/support/

The VMware Web site also provides the latest product updates.

If you have comments about this documentation, submit your feedback to:

[email protected]

Copyright © 2009–2011 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright andintellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.

VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. All other marksand names mentioned herein may be trademarks of their respective companies.

VMware, Inc.3401 Hillview Ave.Palo Alto, CA 94304www.vmware.com

Page 3: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Contents

Updated Information 5

About This Book 7

1 Business Continuity and Minimizing Downtime 9

Reducing Planned Downtime 9Preventing Unplanned Downtime 10VMware HA Provides Rapid Recovery from Outages 10VMware Fault Tolerance Provides Continuous Availability 11

2 Creating and Using VMware HA Clusters 13

How VMware HA Works 13VMware HA Admission Control 15Creating a VMware HA Cluster 21Customizing VMware HA Behavior 25Best Practices for VMware HA Clusters 27

3 Providing Fault Tolerance for Virtual Machines 31

How Fault Tolerance Works 31Fault Tolerance Use Cases 32Fault Tolerance Configuration Requirements 33Fault Tolerance Interoperability 34Preparing Your Cluster and Hosts for Fault Tolerance 35Turning On Fault Tolerance for Virtual Machines 37Viewing Information About Fault Tolerant Virtual Machines 39Fault Tolerance Best Practices 40VMware Fault Tolerance Configuration Recommendations 41Troubleshooting Fault Tolerance 42

Appendix: Fault Tolerance Error Messages 45

Index 51

VMware, Inc. 3

Page 4: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

vSphere Availability Guide

4 VMware, Inc.

Page 5: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Updated Information

This vSphere Availability Guide is updated with each release of the product or when necessary.

This table provides the update history of the vSphere Availabiility Guide.Revision Description

EN-000265-04 Edited note in “Creating a VMware HA Cluster,” on page 21 to indicate that automatic startup is notsupported when used with VMware HA.

EN-000265-03 The section “Failure Detection and Host Network Isolation,” on page 14 is updated to change the sentence"By default, the isolated host leaves its virtual machines powered on, but you can change the host isolationresponse to Shut Down VM or Power Off VM." to "By default, the isolated host shuts down its virtualmachines, but you can change the host isolation response to Leave powered on or Power off."

EN-000265-02 Added new information on VMXNET3 driver and Paravirtualized SCSI (PVSCSI) adapter in Table 3-1 inthe topic “Other Features Incompatible with Fault Tolerance,” on page 34.

EN-000265-01 Minor updates.

EN-000265-00 Initial release.

VMware, Inc. 5

Page 6: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

vSphere Availability Guide

6 VMware, Inc.

Page 7: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

About This Book

The vSphere Availability Guide describes solutions that provide business continuity, including how to establishVMware® High Availability (HA) and VMware Fault Tolerance.

Intended AudienceThis book is for anyone who wants to provide business continuity through the VMware HA and Fault Tolerancesolutions. The information in this book is for experienced Windows or Linux system administrators who arefamiliar with virtual machine technology and datacenter operations.

Document FeedbackVMware welcomes your suggestions for improving our documentation. If you have comments, send yourfeedback to [email protected].

vSphere DocumentationThe vSphere® documentation consists of the combined VMware vCenter Server and ESX/ESXi documentationset. The vSphere Availability Guide covers ESX®, ESXi, and vCenter® Server.

Technical Support and Education ResourcesThe following technical support resources are available to you. To access the current version of this book andother books, go to http://www.vmware.com/support/pubs.

Online and TelephoneSupport

To use online support to submit technical support requests, view your productand contract information, and register your products, go to http://www.vmware.com/support.

Customers with appropriate support contracts should use telephone supportfor the fastest response on priority 1 issues. Go to http://www.vmware.com/support/phone_support.html.

Support Offerings To find out how VMware support offerings can help meet your business needs,go to http://www.vmware.com/support/services.

VMware ProfessionalServices

VMware Education Services courses offer extensive hands-on labs, case studyexamples, and course materials designed to be used as on-the-job referencetools. Courses are available onsite, in the classroom, and live online. For onsitepilot programs and implementation best practices, VMware Consulting

VMware, Inc. 7

Page 8: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Services provides offerings to help you assess, plan, build, and manage yourvirtual environment. To access information about education classes,certification programs, and consulting services, go to http://www.vmware.com/services.

vSphere Availability Guide

8 VMware, Inc.

Page 9: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Business Continuity and MinimizingDowntime 1

Downtime, whether planned or unplanned, brings with it considerable costs. However, solutions to ensurehigher levels of availability have traditionally been costly, hard to implement, and difficult to manage.

VMware software makes it simpler and less expensive to provide higher levels of availability for importantapplications. With vSphere, organizations can easily increase the baseline level of availability provided for allapplications as well as provide higher levels of availability more easily and cost effectively. With vSphere, youcan:

n Provide higher availability independent of hardware, operating system, and applications.

n Eliminate planned downtime for common maintenance operations.

n Provide automatic restart in cases of failure.

vSphere makes it possible to reduce planned downtime, prevent unplanned downtime, and recover rapidlyfrom outages.

This chapter includes the following topics:

n “Reducing Planned Downtime,” on page 9

n “Preventing Unplanned Downtime,” on page 10

n “VMware HA Provides Rapid Recovery from Outages,” on page 10

n “VMware Fault Tolerance Provides Continuous Availability,” on page 11

Reducing Planned DowntimePlanned downtime typically accounts for over 80% of datacenter downtime. Hardware maintenance, servermigration, and firmware updates all require downtime for physical servers. To minimize the impact of thisdowntime, organizations are forced to delay maintenance until inconvenient and difficult-to-scheduledowntime windows.

vSphere makes it possible for organizations to dramatically reduce planned downtime. Because workloads ina vSphere environment can be dynamically moved to different physical servers without downtime or serviceinterruption, server maintenance can be performed without requiring application and service downtime. WithvSphere organizations can:

n Eliminate downtime for common maintenance operations.

n Eliminate planned maintenance windows.

n Perform maintenance at any time without disrupting users and services.

VMware, Inc. 9

Page 10: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

The VMotion® and Storage VMotion functionality in vSphere makes it possible for organizations todramatically reduce planned downtime because workloads in a VMware environment can be dynamicallymoved to different physical servers or to different underlying storage without service interruption.Administrators can perform faster and completely transparent maintenance operations, without being forcedto schedule inconvenient maintenance windows.

Preventing Unplanned DowntimeWhile an ESX/ESXi host provides a robust platform for running applications, an organization must also protectitself from unplanned downtime caused from hardware or application failures. vSphere builds importantcapabilities into datacenter infrastructure that can help you prevent unplanned downtime.

These vSphere capabilities are part of virtual infrastructure and are transparent to the operating system andapplications running in virtual machines. These features can be configured and utilized by all the virtualmachines on a physical system, reducing the cost and complexity of providing higher availability. Key fault-tolerance capabilities are built into vSphere:

n Shared storage. Eliminate single points of failure by storing virtual machine files on shared storage, suchas Fibre Channel or iSCSI SAN, or NAS. The use of SAN mirroring and replication features can be usedto keep updated copies of virtual disk at disaster recovery sites.

n Network interface teaming. Provide tolerance of individual network card failures.

n Storage multipathing. Tolerate storage path failures.

In addition to these capabilities, the VMware HA and Fault Tolerance features can minimize or eliminateunplanned downtime by providing rapid recovery from outages and continuous availability, respectively.

VMware HA Provides Rapid Recovery from OutagesVMware HA leverages multiple ESX/ESXi hosts configured as a cluster to provide rapid recovery from outagesand cost-effective high availability for applications running in virtual machines.

VMware HA protects application availability in two ways:

n It protects against a server failure by automatically restarting the virtual machines on other hosts withinthe cluster.

n It protects against application failure by continuously monitoring a virtual machine and resetting it in theevent that a failure is detected.

Unlike other clustering solutions, VMware HA provides the infrastructure to protect all workloads with theinfrastructure:

n No special software needs to be installed within the application or virtual machine. All workloads areprotected by VMware HA. After VMware HA is configured, no actions are required to protect new virtualmachines. They are automatically protected.

n VMware HA can be combined with VMware Distributed Resource Scheduler (DRS) not only to protectagainst failures but also to provide load balancing across the hosts within a cluster.

vSphere Availability Guide

10 VMware, Inc.

Page 11: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

VMware HA has a number of advantages over traditional failover solutions:

Minimal setup After a VMware HA cluster is set up, all virtual machines in the cluster getfailover support without additional configuration.

Reduced hardware costand setup

The virtual machine acts as a portable container for the applications and it canbe moved among hosts. Administrators avoid duplicate configurations onmultiple machines. When you use VMware HA, you must have sufficientresources to fail over the number of hosts you want to protect with VMwareHA. However, the vCenter Server system automatically manages resourcesand configures clusters.

Increased applicationavailability

Any application running inside a virtual machine has access to increasedavailability. Because the virtual machine can recover from hardware failure, allapplications that start at boot have increased availability without increasedcomputing needs, even if the application is not itself a clustered application.By monitoring and responding to VMware Tools heartbeats and resetting non-responsive virtual machines, it also protects against guest operating systemcrashes.

DRS and VMotionintegration

If a host fails and virtual machines are restarted on other hosts, DRS can providemigration recommendations or migrate virtual machines for balanced resourceallocation. If one or both of the source and destination hosts of a migration fail,VMware HA can help recover from that failure.

VMware Fault Tolerance Provides Continuous AvailabilityVMware HA provides a base level of protection for your virtual machines by restarting virtual machines inthe event of a host failure. VMware Fault Tolerance provides a higher level of availability, allowing users toprotect any virtual machine from a host failure with no loss of data, transactions, or connections.

Fault Tolerance uses the VMware vLockstep technology on the ESX/ESXi host platform to provide continuousavailability. This is done by ensuring that the states of the Primary and Secondary VMs are identical at anypoint in the instruction execution of the virtual machine. vLockstep accomplishes this by having the Primaryand Secondary VMs execute identical sequences of x86 instructions. The Primary VM captures all inputs andevents -- from the processor to virtual I/O devices -- and replays them on the Secondary VM. The SecondaryVM executes the same series of instructions as the Primary VM, while only a single virtual machine image (thePrimary VM) is seen executing the workload.

If either the host running the Primary VM or the host running the Secondary VM fails, a transparent failoveroccurs whereby the host that is still functioning seamlessly becomes the host of the Primary VM. Withtransparent failover, there is no data loss and network connections are maintained. After a transparent failoveroccurs, a new Secondary VM is automatically respawned and redundancy is re-established. The entire processis transparent and fully automated and occurs even if vCenter Server is unavailable.

Chapter 1 Business Continuity and Minimizing Downtime

VMware, Inc. 11

Page 12: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Figure 1-1. Primary VM and Secondary VM in Fault Tolerance Pairprimary

client

secondary

VMware

Nondeterministic events• Input (network, user),

asynchronous I/O (disk,devices) CPU timer events

RECORD

logging traffic

Nondeterministic events• Result = repeatable

virtual machine execution

REPLAY

applications

guest operatingsystem

VMware

applications

guest operatingsystem

vSphere Availability Guide

12 VMware, Inc.

Page 13: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Creating and Using VMware HAClusters 2

VMware HA clusters enable a collection of ESX/ESXi hosts to work together so that, as a group, they providehigher levels of availability for virtual machines than each ESX/ESXi host could provide individually. Whenyou plan the creation and usage of a new VMware HA cluster, the options you select affect the way that clusterresponds to failures of hosts or virtual machines.

Before creating a VMware HA cluster, you should be aware of how VMware HA identifies host failures andisolation and responds to these situations. You also should know how admission control works so that youcan choose the policy that best fits your failover needs. After a cluster has been established, you can customizeits behavior with advanced attributes and optimize its performance by following recommended best practices.

This chapter includes the following topics:

n “How VMware HA Works,” on page 13

n “VMware HA Admission Control,” on page 15

n “Creating a VMware HA Cluster,” on page 21

n “Customizing VMware HA Behavior,” on page 25

n “Best Practices for VMware HA Clusters,” on page 27

How VMware HA WorksVMware HA provides high availability for virtual machines by pooling them and the hosts they reside on intoa cluster. Hosts in the cluster are monitored and in the event of a failure, the virtual machines on a failed hostare restarted on alternate hosts.

Primary and Secondary Hosts in a VMware HA ClusterWhen you add a host to a VMware HA cluster, an agent is uploaded to the host and configured to communicatewith other agents in the cluster. The first five hosts added to the cluster are designated as primary hosts, andall subsequent hosts are designated as secondary hosts. The primary hosts maintain and replicate all clusterstate and are used to initiate failover actions. If a primary host is removed from the cluster, VMware HApromotes another host to primary status.

Any host that joins the cluster must communicate with an existing primary host to complete its configuration(except when you are adding the first host to the cluster). At least one primary host must be functional forVMware HA to operate correctly. If all primary hosts are unavailable (not responding), no hosts can besuccessfully configured for VMware HA.

VMware, Inc. 13

Page 14: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

One of the primary hosts is also designated as the active primary host and its responsibilities include:

n Deciding where to restart virtual machines.

n Keeping track of failed restart attempts.

n Determining when it is appropriate to keep trying to restart a virtual machine.

If the active primary host fails, another primary host replaces it.

Failure Detection and Host Network IsolationAgents communicate with each other and monitor the liveness of the hosts in the cluster. This is done throughthe exchange of heartbeats, by default, every second. If a 15-second period elapses without the receipt ofheartbeats from a host, and the host cannot be pinged, it is declared as failed. In the event of a host failure, thevirtual machines running on that host are failed over, that is, restarted on the alternate hosts with the mostavailable unreserved capacity (CPU and memory.)

NOTE In the event of a host failure, VMware HA does not fail over any virtual machines to a host that is inmaintenance mode, because such a host is not considered when VMware HA computes the current failoverlevel. When a host exits maintenance mode, the VMware HA service is reenabled on that host, so it becomesavailable for failover again.

Host network isolation occurs when a host is still running, but it can no longer communicate with other hostsin the cluster. With default settings, if a host stops receiving heartbeats from all other hosts in the cluster formore than 12 seconds, it attempts to ping its isolation addresses. If this also fails, the host declares itself asisolated from the network.

When the isolated host's network connection is not restored for 15 seconds or longer, the other hosts in thecluster treat it as failed and attempt to fail over its virtual machines. However, when an isolated host retainsaccess to the shared storage it also retains the disk lock on virtual machine files. To avoid potential datacorruption, VMFS disk locking prevents simultaneous write operations to the virtual machine disk files andattempts to fail over the isolated host's virtual machines fail. By default, the isolated host shuts down its virtualmachines, but you can change the host isolation response to Leave powered on or Power off. See “VirtualMachine Options,” on page 23.

NOTE If you ensure that your network infrastructure is sufficiently redundant and that at least one networkpath is available at all times, host network isolation should be a rare occurrence.

Using VMware HA and DRS TogetherUsing VMware HA in conjunction with Distributed Resource Scheduler (DRS) combines automatic failoverwith load balancing. This combination can result in faster rebalancing of virtual machines after VMware HAhas moved virtual machines to different hosts.

When VMware HA performs failover and restarts virtual machines on different hosts, its first priority is theimmediate availability of all virtual machines. After the virtual machines have been restarted, those hosts onwhich they were powered on might be heavily loaded, while other hosts are comparatively lightly loaded.VMware HA uses the CPU and memory reservation to determine failover, while the actual usage might behigher.

In a cluster using DRS and VMware HA with admission control turned on, virtual machines might not beevacuated from hosts entering maintenance mode. This is because of the resources reserved to maintain thefailover level. You must manually migrate the virtual machines off of the hosts using VMotion.

vSphere Availability Guide

14 VMware, Inc.

Page 15: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

When VMware HA admission control is disabled, failover resource constraints are not passed on to DRS andVMware Distributed Power Management (DPM). The constraints are not enforced.

n DRS does evacuate virtual machines from hosts and place the hosts in maintenance mode or standby moderegardless of the impact this might have on failover requirements.

n VMware DPM does power off hosts (place them in standby mode) even if doing so violates failoverrequirements.

For more information about DRS, see Resource Management Guide.

VMware HA Admission ControlvCenter Server uses admission control to ensure that sufficient resources are available in a cluster to providefailover protection and to ensure that virtual machine resource reservations are respected.

Including VMware HA, there are three types of admission control.

Host Ensures that a host has sufficient resources to satisfy the reservations of allvirtual machines running on it.

Resource pool Ensures that a resource pool has sufficient resources to satisfy the reservations,shares, and limits of all virtual machines associated with it.

VMware HA Ensures that sufficient resources in the cluster are reserved for virtual machinerecovery in the event of host failure.

Admission control imposes constraints on resource usage and any action that would violate these constraintsis not permitted. Examples of actions that could be disallowed include:

n Powering on a virtual machine.

n Migrating a virtual machine onto a host or into a cluster or resource pool.

n Increasing the CPU or memory reservation of a virtual machine.

Of the three types of admission control, only VMware HA admission control can be disabled. However, withoutit there is no assurance that all virtual machines in the cluster can be restarted after a host failure. VMwarerecommends that you do not disable admission control, but you might need to do so temporarily, for thefollowing reasons:

n If you need to violate the failover constraints when there are not enough resources to support them (forexample, if you are placing hosts in standby mode to test them for use with DPM).

n If an automated process needs to take actions that might temporarily violate the failover constraints (forexample, as part of an upgrade directed by VMware Update Manager).

n If you need to perform testing or maintenance operations.

Host Failures Cluster ToleratesYou can configure VMware HA to tolerate a specified number of host failures. With the Host Failures ClusterTolerates admission control policy, VMware HA ensures that a specified number of hosts can fail and sufficientresources remain in the cluster to fail over all the virtual machines from those hosts.

With the Host Failures Cluster Tolerates policy, VMware HA performs admission control in the following way:

1 Calculates the slot size.

A slot is a logical representation of the memory and CPU resources that satisfy the requirements for anypowered-on virtual machine in the cluster.

2 Determines how many slots each host in the cluster can hold.

Chapter 2 Creating and Using VMware HA Clusters

VMware, Inc. 15

Page 16: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

3 Determines the Current Failover Capacity of the cluster.

This is the number of hosts that can fail and still leave enough slots to satisfy all of the powered-on virtualmachines.

4 Determines whether the Current Failover Capacity is less than the Configured Failover Capacity (providedby the user).

If it is, admission control disallows the operation.

NOTE The maximum Configured Failover Capacity that you can set is four. Each cluster has up to five primaryhosts and if all fail simultaneously, failover of all hosts might not be successful.

Slot Size CalculationSlot size is comprised of two components, CPU and memory. VMware HA calculates these values.

n The CPU component by obtaining the CPU reservation of each powered-on virtual machine and selectingthe largest value. If you have not specified a CPU reservation for a virtual machine, it is assigned a defaultvalue of 256 MHz (this value can be changed using the das.vmCpuMinMHz advanced attribute.)

n The memory component by obtaining the memory reservation (plus memory overhead) of each powered-on virtual machine and selecting the largest value.

If your cluster contains any virtual machines that have much larger reservations than the others, they willdistort slot size calculation. To avoid this, you can specify an upper bound for the CPU or memory componentof the slot size by using the das.slotCpuInMHz or das.slotMemInMB advanced attributes, respectively.

When using these advanced attributes, there is a risk of resource fragmentation where virtual machines largerthan the slot size are assigned multiple slots. In a cluster that is close to capacity, there might be enough slotsin aggregate for a virtual machine to be failed over. However, those slots could be located on multiple hostsand are unusable by a virtual machine assigned multiple slots because a virtual machine can run on only asingle ESX/ESXi host at a time.

Using Slots to Compute the Current Failover CapacityAfter the slot size is calculated, VMware HA determines each host's CPU and memory resources that areavailable for virtual machines. These amounts are those contained in the host's root resource pool, not the totalphysical resources of the host. Resources being used for virtualization purposes are not included. Only hoststhat are connected, not in maintenance mode, and have no VMware HA errors are considered.

The maximum number of slots that each host can support is then determined. To do this, the host’s CPUresource amount is divided by the CPU component of the slot size and the result is rounded down. The samecalculation is made for the host's memory resource amount. These two numbers are compared and the loweris the number of slots that the host can support.

The Current Failover Capacity is computed by determining how many hosts (starting from the largest) can failand still leave enough slots to satisfy the requirements of all powered-on virtual machines.

Advanced Runtime InfoWhen you select the Host Failures Cluster Tolerates admission control policy, the Advanced Runtime Infolink appears in the VMware HA section of the cluster's Summary tab in the vSphere Client. Click this link todisplay the following information about the cluster:

n Slot size.

n Total slots in cluster. The sum of the slots supported by the good hosts in the cluster.

n Used slots. The number of slots assigned to powered-on virtual machines. It can be more than the numberof powered-on virtual machines if you have defined an upper bound for the slot size using the advancedoptions.

vSphere Availability Guide

16 VMware, Inc.

Page 17: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

n Available slots. The number of slots available to power on additional virtual machines in the cluster.VMware HA automatically reserves the required number of slots for failover. The remaining slots areavailable to power on new virtual machines.

n Total powered on VMs in cluster.

n Total hosts in cluster.

n Total good hosts in cluster. The number of hosts that are connected, not in maintenance mode, and haveno VMware HA errors.

Example: Admission Control Using Host Failures Cluster Tolerates PolicyThe way that slot size is calculated and utilized with this admission control policy can be shown with anexample. Make the following assumptions about a cluster:

n The cluster is comprised of three hosts, each with a different amount of available CPU and memoryresources. The first host (H1) has 9GHz of available CPU resources and 9GB of available memory, whileHost 2 (H2) has 9GHz and 6GB and Host 3 (H3) has 6GHz and 6GB.

n There are five powered-on virtual machines in the cluster with differing CPU and memory requirements.VM1 needs 2GHz of CPU resources and 1GB of memory, while VM2 needs 2GHz and 1GB, VM3 needs1GHz and 2GB, VM4 needs 1GHz and 1GB, and VM5 needs 1GHz and 1GB.

n The Host Failures Cluster Tolerates is set to one.

Chapter 2 Creating and Using VMware HA Clusters

VMware, Inc. 17

Page 18: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Figure 2-1. Admission Control Example with Host Failures Cluster Tolerates Policy

6 slots remainingif H1 fails

slot size2GHz, 2GB

2GHz 1GB

2GHz 1GB

1GHz 2GB

1GHz 1GB

1GHz 1GB

VM1

9GHz 9GB

4 slots

H1

9GHz 6GB

3 slots

H2

6GHz 6GB

3 slots

H3

VM2 VM3 VM4 VM5

1 Slot size is calculated by comparing both the CPU and memory requirements of the virtual machines andselecting the largest.

The largest CPU requirement (shared by VM1 and VM2) is 2GHz, while the largest memory requirement(for VM3) is 2GB. Based on this, the slot size is 2GHz CPU and 2GB memory.

2 Maximum number of slots that each host can support is determined.

H1 can support four slots. H2 can support three slots (which is the smaller of 9GHz/2GHz and 6GB/2GB)and H3 can also support three.

3 Current Failover Capacity is computed.

The largest host is H1 and if it fails, six slots remain in the cluster, which is sufficient for all five of thepowered-on virtual machines. If both H1 and H2 fail, only three slots remain, which is insufficient.Therefore, the Current Failover Capacity is one.

The cluster has one available slot (the six slots on H2 and H3 minus the five used slots). VMware HA admissioncontrol allows you to power on one additional virtual machine (that does not exceed the slot size).

Percentage of Cluster Resources ReservedYou can configure VMware HA to perform admission control by reserving a specific percentage of clusterresources for recovery from host failures.

With the Percentage of Cluster Resources Reserved admission control policy, VMware HA ensures that aspecified percentage of aggregate cluster resources is reserved for failover.

With the Cluster Resources Reserved policy, VMware HA performs admission control.

1 Calculates the total resource requirements for all powered-on virtual machines in the cluster.

2 Calculates the total host resources available for virtual machines.

3 Calculates the Current CPU Failover Capacity and Current Memory Failover Capacity for the cluster.

4 Determines if either the Current CPU Failover Capacity or Current Memory Failover Capacity is less thanthe Configured Failover Capacity (provided by the user).

If so, admission control disallows the operation.

vSphere Availability Guide

18 VMware, Inc.

Page 19: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

It uses the actual reservations of the virtual machines. If a virtual machine does not have reservations, meaningthat the reservation is 0, a default of 0MB memory and 256MHz CPU is applied. This is controlled by the sameHA advanced options used for the failover level policy.

Computing the Current Failover CapacityThe total resource requirements for the powered-on virtual machines is comprised of two components, CPUand memory. VMware HA calculates these values.

n The CPU component by summing the CPU reservations of the powered-on virtual machines. If you havenot specified a CPU reservation for a virtual machine, it is assigned a default value of 256 MHz (this valuecan be changed using the das.vmCpuMinMHz advanced attribute.)

n The memory component by summing the memory reservation (plus memory overhead) of each powered-on virtual machine.

The total host resources available for virtual machines is calculated by summing the hosts' CPU and memoryresources. These amounts are those contained in the host's root resource pool, not the total physical resourcesof the host. Resources being used for virtualization purposes are not included. Only hosts that are connected,not in maintenance mode, and have no VMware HA errors are considered.

The Current CPU Failover Capacity is computed by subtracting the total CPU resource requirements from thetotal host CPU resources and dividing the result by the total host CPU resources. The Current Memory FailoverCapacity is calculated similarly.

Example: Admission Control Using Percentage of Cluster Resources ReservedPolicyThe way that Current Failover Capacity is calculated and utilized with this admission control policy can beshown with an example. Make the following assumptions about a cluster:

n The cluster is comprised of three hosts, each with a different amount of available CPU and memoryresources. The first host (H1) has 9GHz of available CPU resources and 9GB of available memory, whileHost 2 (H2) has 9GHz and 6GB and Host 3 (H3) has 6GHz and 6GB.

n There are five powered-on virtual machines in the cluster with differing CPU and memory requirements.VM1 needs 2GHz of CPU resources and 1GB of memory, while VM2 needs 2GHz and 1GB, VM3 needs1GHz and 2GB, VM4 needs 1GHz and 1GB, and VM5 needs 1GHz and 1GB.

n The Configured Failover Capacity is set to 25%.

Figure 2-2. Admission Control Example with Percentage of Cluster Resources Reserved Policy

total resource requirements7GHz, 6GB

total host resources24GHz, 21GB

2GHz 1GB

2GHz 1GB

1GHz 2GB

1GHz 1GB

1GHz 1GB

VM1

9GHz 9GB

H1

9GHz 6GB

H2

6GHz 6GB

H3

VM2 VM3 VM4 VM5

Chapter 2 Creating and Using VMware HA Clusters

VMware, Inc. 19

Page 20: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

The total resource requirements for the powered-on virtual machines is 7GHz and 6GB. The total host resourcesavailable for virtual machines is 24GHz and 21GB. Based on this, the Current CPU Failover Capacity is 70%((24GHz - 7GHz)/24GHz). Similarly, the Current Memory Failover Capacity is 71% ((21GB-6GB)/21GB).

Because the cluster's Configured Failover Capacity is set to 25%, 45% of the cluster's total CPU resources and46% of the cluster's memory resources are still available to power on additional virtual machines.

Specify a Failover HostYou can configure VMware HA to designate a specific host as the failover host.

With the Specify a Failover Host admission control policy, when a host fails, VMware HA attempts to restartits virtual machines on a specified failover host. If this is not possible, for example the failover host itself hasfailed or it has insufficient resources, then VMware HA attempts to restart those virtual machines on anotherhost in the cluster.

To ensure that spare capacity is available on the failover host, you are prevented from powering on virtualmachines or using VMotion to migrate virtual machines to the failover host. Also, DRS does not use the failoverhost for load balancing.

The Current Failover Host is displayed in the VMware HA section of the cluster's Summary tab in the vSphereClient. The status icon next to the host can be green, yellow, or red.

n Green. The host is connected, not in maintenance mode, and has no VMware HA errors. Also, no powered-on virtual machines reside on the host.

n Yellow. The host is connected, not in maintenance mode, and has no VMware HA errors. However,powered-on virtual machines reside on the host.

n Red. The host is disconnected, in maintenance mode, or has VMware HA errors.

Choosing an Admission Control PolicyYou should choose a VMware HA admission control policy based on your availability needs and thecharacteristics of your cluster.

When choosing an admission control policy, you should consider a number of factors.

Avoiding Resource FragmentationResource fragmentation occurs when there are enough resources in aggregate for a virtual machine to be failedover. However, those resources are located on multiple hosts and are unusable because a virtual machine canrun on one ESX/ESXi host at a time. The Host Failures Cluster Tolerates policy avoids resource fragmentationby defining a slot as the maximum virtual machine reservation. The Percentage of Cluster Resources policydoes not address the problem of resource fragmentation. With the Specify a Failover Host policy, resourcesare not fragmented because a single host is reserved for failover.

Flexibility of Failover Resource ReservationAdmission control policies differ in the granularity of control they give you when reserving cluster resourcesfor failover protection. The Host Failures Cluster Tolerates policy allows you to set the failover level from oneto four hosts. The Percentage of Cluster Resources policy allows you to designate up to 50% of cluster resourcesfor failover. The Specify a Failover Host policy only allows you to specify a single failover host.

Heterogeneity of ClusterClusters can be heterogeneous in terms of virtual machine resource reservations and host total resourcecapacities. In a heterogeneous cluster, the Host Failures Cluster Tolerates policy can be too conservativebecause it only considers the largest virtual machine reservations when defining slot size and assumes thelargest hosts fail when computing the Current Failover Capacity. The other two admission control policies arenot affected by cluster heterogeneity.

vSphere Availability Guide

20 VMware, Inc.

Page 21: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Creating a VMware HA ClusterVMware HA operates in the context of a cluster of ESX/ESXi hosts. You must create a cluster, populate it withhosts, and configure VMware HA settings before failover protection can be established.

When you create a VMware HA cluster, you must configure a number of settings that determine how thefeature works. Before you do this, first identify your cluster's nodes. These are the ESX/ESXi hosts that willprovide the resources to support virtual machines and that VMware HA will use for failover protection. Thenyou should determine how those nodes are to be connected to one another and to the shared storage whereyour virtual machine data resides. After that networking architecture is in place, you can add the hosts to thecluster and finish configuring VMware HA.

You can enable and configure VMware HA before you add host nodes to the cluster. However, until the hostsare added your cluster is not fully operational and some of the cluster settings are unavailable. For example,the Specify a Failover Host admission control policy is unavailable until there is a host that can be designatedas the failover host.

NOTE The Virtual Machine Startup and Shutdown (automatic startup) feature is disabled for all virtualmachines residing on hosts that are in (or moved into) a VMware HA cluster. Automatic startup is notsupported when used with VMware HA.

Create a VMware HA ClusterYour cluster can be enabled for VMware HA, and a VMware HA-enabled cluster is a prerequisite for FaultTolerance. VMware recommends that you first create an empty cluster. After you have planned the resourcesand networking architecture of your cluster, you can use the vSphere Client to add hosts to the cluster andspecify the cluster's VMware HA settings.

Connect vSphere Client to vCenter Server using an account with cluster administrator permissions.

Prerequisites

All virtual machines and their configuration files must reside on shared storage. So that you can power on thevirtual machines using different hosts in the cluster, the hosts must be configured to access that shared storage.

Each host in a VMware HA cluster must have a host name assigned and a static IP address associated witheach of the virtual NICs.

Hosts must be configured to have access to the virtual machine network.

VMware recommends redundant network connections for VMware HA.

n For ESX, set up redundant service console networking.

n For ESXi, set up redundant VMkernel networking.

For information about setting up network redundancy, see “Network Path Redundancy,” on page 29.

Procedure

1 Select the Hosts & Clusters view.

2 Right-click the Datacenter in the Inventory tree and click New Cluster.

3 Complete the New Cluster wizard.

Do not enable VMware HA (or DRS) at this time.

4 Click Finish to close the wizard and create the cluster.

You have created an empty cluster.

Chapter 2 Creating and Using VMware HA Clusters

VMware, Inc. 21

Page 22: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

5 Based on your plan for the resources and networking architecture of the cluster, use the vSphere Clientto add hosts to the cluster.

6 Right-click the cluster and click Edit Settings.

The cluster's Settings dialog box is where you can modify the VMware HA (and other) settings for thecluster.

7 On the Cluster Features page , select Turn On VMware HA.

8 Configure the VMware HA settings as appropriate for your cluster.

n Host Monitoring Status

n Admission Control

n Virtual Machine Options

n VM Monitoring

9 Click OK to close the cluster's Settings dialog box.

A configured VMware HA cluster, populated with hosts, is created.

Cluster FeaturesThe first panel in the New Cluster wizard allows you to specify basic options for the cluster.

In this panel you can specify the cluster name and choose one or both cluster features.

Name Specifies the name of the cluster. This name appears in the vSphere Clientinventory panel. You must specify a name to continue with cluster creation.

Turn On VMware HA If this check box is selected, virtual machines are restarted on another host inthe cluster if a host fails. You must turn on VMware HA to enable VMwareFault Tolerance on any virtual machine in the cluster.

Turn On VMware DRS If this check box is selected, DRS balances the load of virtual machines acrossthe cluster. DRS also places and migrates virtual machines when they areprotected with HA.

You can change any of these cluster features at a later time.

Host Monitoring StatusAfter you create a cluster, enable Host Monitoring so that VMware HA can monitor heartbeats sent by ESX/ESXihosts in the cluster.

If Enable Host Monitoring is selected, each ESX/ESXi host in the cluster is checked to ensure it is running. Ifa host failure occurs, virtual machines are restarted on another host. Host Monitoring is also required for theVMware Fault Tolerance recovery process to work properly.

If you need to perform network maintenance that might trigger host isolation responses, VMware recommendsthat you first suspend VMware HA by disabling Host Monitoring. After the maintenance is complete, reenableHost Monitoring.

vSphere Availability Guide

22 VMware, Inc.

Page 23: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Enabling or Disabling Admission ControlThe New Cluster wizard allows you to enable or disable admission control for the VMware HA cluster andchoose a policy for how it is enforced.

You can enable or disable admission control for the HA cluster.

Prevent VMs from beingpowered on if theyviolate availabilityconstraints

Enables admission control and enforces availability constraints and preservesfailover capacity. Any operation on a virtual machine that decreases theunreserved resources in the cluster and violates availability constraints is notpermitted.

Allow VMs to be poweredon even if they violateavailability constraints

Disables admission control. If you select this option, virtual machines can, forexample, be powered on even if that causes insufficient failover capacity. Whenthis is done, no warnings are presented, and the cluster does not turn red. If acluster has insufficient failover capacity, VMware HA can still performfailovers and it uses the VM Restart Priority setting to determine which virtualmachines to power on first.

VMware HA provides three policies for enforcing admission control, if it is enabled.

n Host failures cluster tolerates

n Percentage of cluster resources reserved as failover spare capacity

n Specify a failover host

NOTE See “Choosing an Admission Control Policy,” on page 20 for more information about how VMware HAadmission control works.

Virtual Machine OptionsDefault virtual machine settings control the order in which virtual machines are restarted and how VMwareHA responds if hosts lose network connectivity with other hosts. These settings apply to all virtual machinesin the cluster in the case of a host failure or isolation. You can configure exceptions for each virtual machine.

VM Restart PriorityVM restart priority determines the relative order in which virtual machines are restarted after a host failure.Such virtual machines are restarted sequentially on new hosts, with the highest priority virtual machines firstand continuing to those with lower priority until all virtual machines are restarted or no more cluster resourcesare available. If the number of hosts failures or virtual machines restarts exceeds what admission controlpermits, the virtual machines with lower priority might not be restarted until more resources become available.Virtual machines are restarted on the failover host, if one is specified, or on the host with the highest percentageof available resources.

The values for this setting are: Disabled, Low, Medium (the default), and High. If Disabled is selected, VMwareHA is disabled for the virtual machine, meaning that it is not restarted on other ESX/ESXi hosts if its ESX/ESXihost fails. If Disabled is selected, this does not affect virtual machine monitoring, which means that if a virtualmachine fails on a host that is functioning properly, that virtual machine is reset on that same host. You canchange this property for individual virtual machines.

The restart priority settings for virtual machines vary depending on user needs. VMware recommends thatyou assign higher restart priority to the virtual machines that provide the most important services.

Chapter 2 Creating and Using VMware HA Clusters

VMware, Inc. 23

Page 24: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

For example, in the case of a multitier application you might rank assignments according to functions hostedon the virtual machines.

n High. Database servers that will provide data for applications.

n Medium. Application servers that consume data in the database and provide results on web pages.

n Low. Web servers that receive user requests, pass queries to application servers, and return results tousers.

Host Isolation ResponseHost isolation response determines what happens when a host in a VMware HA cluster loses its service consolenetworks (or VMkernel networks, in ESXi) connection but continues running. Host isolation responses requirethat Host Monitoring Status is enabled. If it is disabled, host isolation responses are also suspended. A hostdetermines that it is isolated when it stops receiving heartbeats from all other hosts and it is unable to ping itsisolation addresses. When this occurs, the host executes its isolation response. The responses are: Leavepowered on, Power off, and Shut down (the default). You can customize this property for individual virtualmachines.

To use the Shut down VM setting, you must install VMware Tools in the guest operating system of the virtualmachine. Shutting down the virtual machine provides the advantage of preserving its state. This is better thanpowering it off, which does not flush most recent changes to disk or commit transactions. Virtual machinesthat are shut down will take longer to fail over while the shutdown completes. Virtual Machines that have notshut down in 300 seconds, or the time specified in the advanced attribute das.isolationShutdownTimeoutseconds, are powered off.

NOTE After you create a VMware HA cluster, you can override the default cluster settings for Restart Priorityand Isolation Response for specific virtual machines. Such overrides are useful for virtual machines that areused for special tasks. For example, virtual machines that provide infrastructure services like DNS or DHCPmight need to be powered on before other virtual machines in the cluster.

VM MonitoringVM Monitoring restarts individual virtual machines if their VMware Tools heartbeats are not received withina set time. You can configure the degree to which VMware HA is sensitive to such non-responsiveness.

If you select Enable VM Monitoring, the VM Monitoring service (using VMware Tools) evaluates whethereach virtual machine in the cluster is running by checking for regular heartbeats from the VMware Toolsprocess running inside the guest. If no heartbeats are received, this is most likely because the guest operatingsystem has failed or VMware Tools is not being allocated any time to complete tasks. In such a case, the VMMonitoring service determines that the virtual machine has failed and the virtual machine is rebooted to restoreservice.

You can also configure the level of monitoring sensitivity. Highly sensitive monitoring results in a more rapidconclusion that a failure has occurred. While unlikely, highly sensitive monitoring might lead to falselyidentifying failures when the virtual machine in question is actually still working, but heartbeats have not beenreceived due to factors such as resource constraints. Low sensitivity monitoring results in longer interruptionsin service between actual failures and virtual machines being reset. Select an option that is an effectivecompromise for your needs.

After failures are detected, VMware HA resets virtual machines. This helps ensure that services remainavailable. To avoid resetting virtual machines repeatedly for nontransient errors, by default virtual machineswill be reset only three times during a certain configurable time interval. After virtual machines have beenreset three times, VMware HA makes no further attempts to reset the virtual machines after any subsequentfailures until after the specified time has elapsed. You can configure the number of resets using the Maximumper-VM resets custom setting.

vSphere Availability Guide

24 VMware, Inc.

Page 25: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Occasionally, virtual machines that are still functioning properly stop sending heartbeats. Toavoid unnecessarily resetting such virtual machines, the VM Monitoring service also monitors a virtualmachine's I/O activity. If no heartbeats are received within the failure interval, the I/O stats interval (a cluster-level attribute) is checked. The I/O stats interval determines if any disk or network activity has occurred forthe virtual machine during the previous two minutes (120 seconds). If not, the virtual machine is reset. Thisdefault value (120 seconds) can be changed using the advanced attribute das.iostatsInterval.

NOTE The VM Monitoring settings cannot be configured though advanced attributes. Modify settings in theVM Monitoring page of the cluster’s Settings dialog box.

The default settings for VM Monitoring sensitivity are described in the table.

Table 2-1. VM Monitoring Settings

Setting Failure Interval (seconds) Reset Period

High 30 1 hour

Medium 60 24 hours

Low 120 7 days

You can specify custom values for both VM Monitoring sensitivity and the I/O stats interval, as described in “Customizing VMware HA Behavior,” on page 25.

Customizing VMware HA BehaviorAfter you have established a cluster, you can modify the specific attributes that affect how VMware HAbehaves. You can also change the cluster default settings inherited by individual virtual machines.

This section guides you through setting advanced attributes for VMware HA and lists a few attributes youmight want to set. Because these attributes affect the functioning of HA, change them with caution. Reviewthe advanced settings you can use to optimize the VMware HA clusters in your environment.

Table 2-2. VMware HA Attributes

Attribute Description

das.isolationaddress[...] Sets the address to ping to determine if a host is isolated fromthe network. This address is pinged only when heartbeats arenot received from any other host in the cluster. If notspecified, the default gateway of the console network is used.This default gateway has to be a reliable address that isavailable, so that the host can determine if it is isolated fromthe network. You can specify multiple isolation addresses(up to 10) for the cluster: das.isolationaddressX, whereX = 1-10. Typically you should specify one per serviceconsole. Specifying too many addresses makes isolationdetection take too long and can affect VMware HA behavior.

das.usedefaultisolationaddress By default, VMware HA uses the default gateway of theconsole network as an isolation address. This attributespecifies whether or not this default is used (true|false).

das.failuredetectiontime Changes the default failure detection time for hostmonitoring. The default is 15000 milliseconds (15 seconds).This is the time period, when a host has received noheartbeats from another host, that it waits before declaringthat host as failed.

das.failuredetectioninterval Changes the heartbeat interval among VMware HA hosts. Bydefault, this occurs every 1000 milliseconds (1 second).

Chapter 2 Creating and Using VMware HA Clusters

VMware, Inc. 25

Page 26: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Table 2-2. VMware HA Attributes (Continued)

Attribute Description

das.defaultfailoverhost Defines the host that VMware HA tries to fail virtualmachines over to. Use this option only if the VMware HAadmission control policy is failover level or cluster resourcepercentage. If this option is used with the failover hostadmission control policy, it takes precedence over thefailover host named in the policy. You can define only onefailover host.

das.isolationShutdownTimeout The period of time the system waits for a virtual machine toshut down before powering it off. This only applies if thehost's isolation response is Shut down VM. Default value is300 seconds.

das.slotMemInMB Defines the maximum bound on the memory slot size. If thisoption is used, the slot size is the smaller of this value or themaximum memory reservation plus memory overhead ofany powered-on virtual machine in the cluster.

das.slotCpuInMHz Defines the maximum bound on the CPU slot size. If thisoption is used, the slot size is the smaller of this value or themaximum CPU reservation of any powered-on virtualmachine in the cluster.

das.vmMemoryMinMB Defines the default memory resource value assigned to avirtual machine if its memory reservation is not specified orzero. This is used for the Host Failures Cluster Toleratesadmission control policy. If no value is specified, the defaultis 0 MB.

das.vmCpuMinMHz Defines the default CPU resource value assigned to a virtualmachine if its CPU reservation is not specified or zero. Thisis used for the Host Failures Cluster Tolerates admissioncontrol policy. If no value is specified, the default is 256MHz.

das.iostatsInterval Changes the default I/O stats interval for VM monitoringsensitivity. The default is 120 (seconds). Can be set to anyvalue greater than, or equal to 0. Setting to 0 disables thecheck.

NOTE If you change the value of any of the following advanced attributes, you must disable and then re-enableVMware HA before your changes take effect.

n das.isolationaddress[...]

n das.usedefaultisolationaddress

n das.failuredetectiontime

n das.failuredetectioninterval

n das.isolationShutdownTimeout

Set Advanced VMware HA OptionsTo customize VMware HA behavior, set advanced VMware HA options.

Prerequisites

A VMware HA cluster for which to modify settings.

Cluster administrator privileges.

vSphere Availability Guide

26 VMware, Inc.

Page 27: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Procedure

1 In the cluster’s Settings dialog box, select VMware HA.

2 Click the Advanced Options button to open the Advanced Options (HA) dialog box.

3 Enter each advanced attribute you want to change in a text box in the Option column and enter a valuein the Valuecolumn.

4 Click OK.

The cluster uses options you added or modified.

Customize VMware HA Behavior for an Individual Virtual MachineEach virtual machine in a VMware HA cluster is assigned the cluster default settings for VM Restart Priority,Host Isolation Response, and VM Monitoring. You can specify specific behavior for each virtual machine bychanging these defaults. If the virtual machine leaves the cluster, these settings are lost.

Cluster administrator privileges.

Procedure

1 Select the cluster and select Edit Settings from the right-click menu.

2 Select Virtual Machine Options under VMware HA.

3 In the Virtual Machine Settings pane, select a virtual machine and customize its VM Restart Priority orHost Isolation Response setting.

4 Select VM Monitoring under VMware HA.

5 In the Virtual Machine Settings pane, select a virtual machine and customize its VM Monitoring setting.

6 Click OK.

The virtual machine’s behavior now differs from the cluster defaults for each setting you changed.

Best Practices for VMware HA ClustersTo help ensure optimal VMware HA cluster performance, VMware recommends that you follow certain bestpractices. Also, networking configuration and redundancy are important when designing and implementingyour cluster.

Setting Alarms to Monitor Cluster ChangesWhen VMware HA or Fault Tolerance take action to maintain availability, for example, a virtual machinefailover, you might need to be notified about such changes. You can configure alarms in vCenter Server to betriggered when these actions are taken, and have alerts, such as emails, sent to a specified set of administrators.

Monitoring Cluster ValidityA valid cluster is one in which the admission control policy has not been violated.

A cluster enabled for VMware HA becomes invalid (red) when the number of virtual machines powered onexceeds the failover requirements, that is, the current failover capacity is smaller than configured failovercapacity. If admission control is disabled, clusters do not become invalid.

The cluster's Summary page in the vSphere Client displays a list of configuration issues for clusters. The listexplains what has caused the cluster to become invalid or over-committed (yellow).

DRS behavior is not affected if a cluster is red because of a VMware HA issue.

Chapter 2 Creating and Using VMware HA Clusters

VMware, Inc. 27

Page 28: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Networking Best PracticesVMware recommends some best practices for the configuration of host NICs and network topology forVMware HA. This includes recommendations not only for your ESX/ESXi hosts, but also for cabling, switches,routers, and firewalls.

Network Configuration and MaintenanceThe following network maintenance suggestions can help you avoid the accidental detection of failed hostsand network isolation due to dropped VMware HA heartbeats.

n When making changes to the network(s) that your clustered ESX/ESXi hosts are on, VMware recommendsthat you suspend the Host Monitoring feature. Changing your network hardware or networking settingscan interrupt the heartbeats that VMware HA uses to detect host failures, and this might result inunwanted attempts to fail over virtual machines.

n When you change the networking configuration on the ESX/ESXi hosts themselves, for example, addingport groups, or removing vSwitches, VMware recommends that in addition to suspending HostMonitoring, you place the host in maintenance mode.

NOTE Because networking is a vital component of VMware HA, if network maintenance needs to be performedthe VMware HA administrator should be informed.

Networks Used for VMware HA CommunicationsTo identify which network operations might disrupt the functioning of VMware HA, you should be aware ofwhich network(s) are being used for heart beating and other VMware HA communications.

n On ESX hosts in the cluster, VMware HA communications travel over all networks that are designated asservice console networks. VMkernel networks are not used by these hosts for VMware HAcommunications.

n On ESXi hosts in the cluster, VMware HA communications, by default, travel over VMkernel networks,except those marked for use with VMotion. If there is only one VMkernel network, VMware HA sharesit with VMotion, if necessary. With ESXi 4.0, you must also explicitly enable the Management Networkcheckbox for VMware HA to use this network.

Cluster-Wide Networking ConsiderationsFor VMware HA to function, all hosts in the cluster must have compatible networks. The first node added tothe cluster dictates the networks that all subsequent hosts allowed into the cluster must also have. Networksare considered compatible if the combination of the IP address and subnet mask result in a network thatmatches another host's. If you attempt to add a host with too few, or too many, networks, or if the host beingadded has incompatible networks, the configuration task fails, and the Task Details pane specifies thisincompatibility.

For example, if the first host you add to the cluster has two networks being used for VMware HAcommunications, 10.10.135.0/255.255.255.0 and 10.17.142.0/255.255.255.0, all subsequent hosts must have thesame two networks configured and used for VMware HA communications.

Network Isolation AddressesA network isolation address is an IP address that is pinged to determine if a host is isolated from the network.This address is pinged only when a host has stopped receiving heartbeats from all other hosts in the cluster.If a host can ping its network isolation address, the host is not network isolated, and the other hosts in thecluster have failed. However, if the host cannot ping its isolation address, it is likely that the host has becomeisolated from the network and no failover action is taken.

vSphere Availability Guide

28 VMware, Inc.

Page 29: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

By default, the network isolation address is the default gateway for the host. There is only one default gatewayspecified, regardless of how many service console networks have been defined, so you should use thedas.isolationaddress[...] advanced attribute to add isolation addresses for additional networks. For example,das.isolationAddress2 to add an isolation address for your second network, das.isolationAddress3 for thethird, up to a maximum of das.isolationAddress9 for the ninth.

When you specify additional isolation address, VMware recommends that you increase the setting for thedas.failuredetectiontime advanced attribute to 20000 milliseconds (20 seconds) or greater. A node that isisolated from the network needs time to release its virtual machine's VMFS locks if the host isolation responseis to fail over the virtual machines (not to leave them powered on.) This must happen before the other nodesdeclare the node as failed, so that they can power on the virtual machines, without getting an error that thevirtual machines are still locked by the isolated node.

For more information on VMware HA advanced attributes, see “Customizing VMware HA Behavior,” onpage 25.

Other Networking ConsiderationsConfiguring Switches. If the physical network switches that connect your servers support the PortFast (or anequivalent) setting, enable it. This setting prevents a host from incorrectly determining that a network isisolated during the execution of lengthy spanning tree algorithms.

Host Firewalls. On ESX/ESXi hosts, VMware HA needs and automatically opens the following firewall ports.

n Incoming port: TCP/UDP 8042-8045

n Outgoing port: TCP/UDP 2050-2250

Port Group Names and Network Labels. Use consistent port group names and network labels on VLANs forpublic networks. Port group names are used to reconfigure access to the network by virtual machines. If youuse inconsistent names between the original server and the failover server, virtual machines are disconnectedfrom their networks after failover. Network labels are used by virtual machines to reestablish networkconnectivity upon restart.

Network Path RedundancyNetwork path redundancy between cluster nodes is important for VMware HA reliability. A single serviceconsole network ends up being a single point of failure and can result in failovers although only the networkhas failed.

If you have only one service console network, any failure between the host and the cluster can cause anunnecessary (or false) failover situation. Possible failures include NIC failures, network cable failures, networkcable removal, and switch resets. Consider these possible sources of failure between hosts and try to minimizethem, typically by providing network redundancy.

You can implement network redundancy at the NIC level with NIC teaming, or at the service console (orVMkernel port on ESXi) level. In most implementations, NIC teaming provides sufficient redundancy, but youcan use or add service console (or VMkernel port) redundancy if required. Redundant service consolenetworking on ESX (or VMkernel networking) allows the reliable detection of failures and prevents isolationconditions from occurring, because heartbeats can be sent over multiple networks.

Configure the fewest possible number of hardware segments between the servers in a cluster. The goal beingto limit single points of failure. Additionally, routes with too many hops can cause networking packet delaysfor heartbeats, and increase the possible points of failure.

Chapter 2 Creating and Using VMware HA Clusters

VMware, Inc. 29

Page 30: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Network Redundancy Using NIC TeamingUsing a team of two NICs connected to separate physical switches improves the reliability of a service console(or, in ESXi, VMkernel) network. Because servers connected through two NICs (and through separate switches)have two independent paths for sending and receiving heartbeats, the cluster is more resilient. To configure aNIC team for the service console, configure the vNICs in vSwitch configuration for Active or Standbyconfiguration. The recommended parameter settings for the vNICs are:

n Default load balancing = route based on originating port ID

n Failback = No

After you have added a NIC to a host in your VMware HA cluster, you must reconfigure VMware HA on thathost.

Network Redundancy Using a Secondary NetworkAs an alternative to NIC teaming for providing redundancy for heartbeats, you can create a secondary serviceconsole (or VMkernel port for ESXi), which is attached to a separate virtual switch. The primary service consoleis used for network and management purposes. When the secondary service console network is created,VMware HA sends heartbeats over both the primary and secondary service consoles. If one path fails, VMwareHA can still send and receive heartbeats over the other path.

vSphere Availability Guide

30 VMware, Inc.

Page 31: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Providing Fault Tolerance for VirtualMachines 3

You can enable VMware Fault Tolerance for your virtual machines to ensure business continuity with higherlevels of availability and data protection than is offered by VMware HA.

Fault Tolerance is built on the ESX/ESXi host platform (using the VMware vLockstep functionality) and itprovides continuous availability by having identical virtual machines run in virtual lockstep on separate hosts.

To obtain the optimal results from Fault Tolerance you should be familiar with how it works, how to enableit for your cluster and virtual machines, the best practices for its usage, and troubleshooting tips.

This chapter includes the following topics:

n “How Fault Tolerance Works,” on page 31

n “Fault Tolerance Use Cases,” on page 32

n “Fault Tolerance Configuration Requirements,” on page 33

n “Fault Tolerance Interoperability,” on page 34

n “Preparing Your Cluster and Hosts for Fault Tolerance,” on page 35

n “Turning On Fault Tolerance for Virtual Machines,” on page 37

n “Viewing Information About Fault Tolerant Virtual Machines,” on page 39

n “Fault Tolerance Best Practices,” on page 40

n “VMware Fault Tolerance Configuration Recommendations,” on page 41

n “Troubleshooting Fault Tolerance,” on page 42

How Fault Tolerance WorksVMware Fault Tolerance provides continuous availability for virtual machines by creating and maintaining aSecondary VM that is identical to, and continuously available to replace, the Primary VM in the event of afailover situation.

You can enable Fault Tolerance for most mission critical virtual machines. A duplicate virtual machine, calledthe Secondary VM, is created and runs in virtual lockstep with the Primary VM. VMware vLockstep capturesinputs and events that occur on the Primary VM and sends them to the Secondary VM, which is running onanother host. Using this information, the Secondary VM's execution is identical to that of the Primary VM.Because the Secondary VM is in virtual lockstep with the Primary VM, it can take over execution at any pointwithout interruption, thereby providing fault tolerant protection.

VMware, Inc. 31

Page 32: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

The Primary and Secondary VMs continuously exchange heartbeats. This allows the virtual machine pair tomonitor the status of one another to ensure that Fault Tolerance is continually maintained. A transparentfailover occurs if the host running the Primary VM fails, in which case the Secondary VM is immediatelyactivated to replace the Primary VM. A new Secondary VM is started and Fault Tolerance redundancy isreestablished within a few seconds. If the host running the Secondary VM fails, it is also immediately replaced.In either case, users experience no interruption in service and no loss of data.

A fault tolerant virtual machine and its secondary copy are not allowed to run on the same host. Fault Toleranceuses anti-affinity rules, which ensure that the two instances of the fault tolerant virtual machine are never onthe same host. This ensures that a host failure cannot result in the loss of both virtual machines.

Fault Tolerance avoids "split-brain" situations, which can lead to two active copies of a virtual machine afterrecovery from a failure. Atomic file locking on shared storage is used to coordinate failover so that only oneside continues running as the Primary VM and a new Secondary VM is respawned automatically.

NOTE The anti-affinity check is performed when the Primary VM is powered on. It is possible that the Primaryand Secondary VMs can be on the same host when they are both in a powered-off state. This is normal behaviorand when the Primary VM is powered on, the Secondary VM is started on a different host at that time.

Fault Tolerance Use CasesSeveral typical situations can benefit from the use of VMware Fault Tolerance.

Fault Tolerance provides a higher level of business continuity than VMware HA. When a Secondary VM iscalled upon to replace its Primary VM counterpart, the Secondary VM immediately takes over the PrimaryVM’s role with the entire state of the virtual machine preserved. Applications are already running, and datastored in memory does not need to be re-entered or reloaded. This differs from a failover provided by VMwareHA, which restarts the virtual machines affected by a failure.

This higher level of continuity and the added protection of state information and data informs the scenarioswhen you might want to deploy Fault Tolerance.

n Applications that need to be available at all times, especially those that have long-lasting client connectionsthat users want to maintain during hardware failure.

n Custom applications that have no other way of doing clustering.

n Cases where high availability might be provided through custom clustering solutions, which are toocomplicated to configure and maintain.

On-Demand Fault ToleranceAnother key use case for protecting a virtual machine with Fault Tolerance can be described as On-DemandFault Tolerance. In this case, a virtual machine is adequately protected with VMware HA during normaloperation. During certain critical periods, you might want to enhance the protection of the virtual machine.For example, you might be executing a quarter-end report which, if interrupted, might delay the availabilityof mission critical information. With VMware Fault Tolerance, you can protect this virtual machine prior torunning this report and then turn off or disable Fault Tolerance after the report has been produced. You canuse On-Demand Fault Tolerance to protect the virtual machine during a critical time period and return theresources to normal during non-critical operation.

vSphere Availability Guide

32 VMware, Inc.

Page 33: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Fault Tolerance Configuration RequirementsFor VMware Fault Tolerance (FT) to perform as expected, the configuration of your cluster, hosts, and virtualmachines must meet specific requirements.

Cluster PrerequisitesUnlike VMware HA which, by default, protects every virtual machine in the cluster, VMware Fault Toleranceis enabled on individual virtual machines. For a cluster to support VMware Fault Tolerance, the followingprerequisites must be met:

n VMware HA must be enabled on the cluster. Host Monitoring should also be enabled. If it is not, whenFault Tolerance uses a Secondary VM to replace a Primary VM no new Secondary VM is created andredundancy is not restored.

n Host certificate checking must be enabled for all hosts that will be used for Fault Tolerance. See “EnableHost Certificate Checking,” on page 36.

n Each host must have a VMotion and a Fault Tolerance Logging NIC configured. See “ConfigureNetworking for Host Machines,” on page 36.

n At least two hosts must have processors from the same compatible processor group. While Fault Tolerancesupports heterogeneous clusters (a mix of processor groups), you get the maximum flexibility if all hostsare compatible. See the VMware knowledge base article at http://kb.vmware.com/kb/1008027 forinformation on supported processors.

n All hosts must have the same ESX/ESXi version and patch level.

n All hosts must have access to the virtual machines' datastores and networks.

To confirm the compatibility of the hosts in the cluster to support Fault Tolerance, run profile compliancechecks.

NOTE VMware HA includes the resource usage of Fault Tolerance Secondary VMs when it performs admissioncontrol calculations. For the Host Failures Cluster Tolerates policy, a Secondary VM is assigned a slot, and forthe Percentage of Cluster Resources policy, the Secondary VM's resource usage is accounted for whencomputing the usable capacity of the cluster. See “VMware HA Admission Control,” on page 15.

Host PrerequisitesA host can support fault tolerant virtual machines if it meets the following requirements.

n A host must have processors from the FT-compatible processor group. See the VMware knowledge basearticle at http://kb.vmware.com/kb/1008027.

n A host must be certified by the OEM as FT-capable. Refer to the current Hardware Compatibility List(HCL) for a list of FT-supported servers (see http://www.vmware.com/resources/compatibility/search.php).

n The host configuration must have Hardware Virtualization (HV) enabled in the BIOS. Some hardwaremanufacturers ship their products with HV disabled. The process for enabling HV varies among BIOSes.See the documentation for your hosts' BIOSes for details on how to enable HV. If HV is not enabled,attempts to power on a fault tolerant virtual machine produce an error and the virtual machine does notpower on.

Review the Host Configuration Section of “Fault Tolerance Best Practices,” on page 40 to select host optionsthat best support VMware Fault Tolerance.

Chapter 3 Providing Fault Tolerance for Virtual Machines

VMware, Inc. 33

Page 34: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Virtual Machine RequirementsBefore Fault Tolerance can be turned on, a virtual machine must meet minimum requirements.

n Virtual machine files must be stored on shared storage. Acceptable shared storage solutions include FibreChannel, (hardware and software) iSCSI, NFS, and NAS.

n Virtual machines must be stored in virtual RDM or virtual machine disk (VMDK) files that are thickprovisioned with the Cluster Features option. If a virtual machine is stored in a VMDK file that is thinprovisioned or thick provisioned without clustering features enabled and an attempt is made to enableFault Tolerance, a message appears indicating that the VMDK file must be converted. Users can acceptthis automatic conversion (which requires the virtual machine to be powered off), allowing the disk to beconverted and the virtual machine to be protected with Fault Tolerance. The amount of time needed forthis conversion process can vary depending on the size of the disk and the host's processor type.

n Virtual machines must be running on one of the supported guest operating systems. See the VMwareknowledge base article at http://kb.vmware.com/kb/1008027 for more information.

Fault Tolerance InteroperabilityBefore configuring VMware Fault Tolerance, you should be aware of the features and products Fault Tolerancecannot interoperate with.

Fault Tolerance and vSphere Features Not SupportedThe following vSphere features are not supported for fault tolerant virtual machines.

n Snapshots. Snapshots must be removed or committed before Fault Tolerance can be enabled on a virtualmachine. In addition, it is not possible to take snapshots of virtual machines on which Fault Tolerance isenabled.

n Storage VMotion. You cannot invoke Storage VMotion for virtual machines with Fault Tolerance turnedon. To migrate the storage, you should temporarily turn off Fault Tolerance, and perform the storageVMotion action. When this is complete, you can turn Fault Tolerance back on.

n DRS features. A fault tolerant virtual machine is automatically configured as DRS-disabled. DRS doesinitially place a Secondary VM, however, DRS does not make recommendations or load balance Primaryor Secondary VMs when load balancing the cluster. The Primary and Secondary VMs can be manuallymigrated during normal operation.

Other Features Incompatible with Fault ToleranceFor a virtual machine to be compatible with Fault Tolerance, the Virtual Machine must not use the followingfeatures or devices.

Table 3-1. Features and Devices Incompatible with Fault Tolerance and Corrective Actions

Incompatible Feature or Device Corrective Action

Symmetric multiprocessor (SMP) virtual machines. Onlyvirtual machines that support a single vCPU are compatiblewith Fault Tolerance.

Reconfigure the virtual machine as a single vCPU. Manyworkloads have good performance configured as a singlevCPU.

Physical Raw Disk mapping (RDM). If you want to use RawDisk Mapping (RDM) for your virtual disks, only virtualRDMs are supported.

Reconfigure virtual machines with physical RDM-backedvirtual devices to use virtual RDMs instead.

CD-ROM or floppy virtual devices backed by a physical orremote device.

Remove the CD-ROM or floppy virtual device or reconfigurethe backing with an ISO installed on shared storage.

Paravirtualized guests. If paravirtualization is not required, reconfigure the virtualmachine without a VMI ROM.

vSphere Availability Guide

34 VMware, Inc.

Page 35: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Table 3-1. Features and Devices Incompatible with Fault Tolerance and Corrective Actions (Continued)

Incompatible Feature or Device Corrective Action

USB and sound devices. Remove these devices from the virtual machine.

N_Port ID Virtualization (NPIV). Disable the NPIV configuration of the virtual machine.

NIC passthrough. This feature is not supported by Fault Tolerance so it mustbe turned off.

Network interfaces for legacy network hardware. While some legacy drivers are not supported, FaultTolerance does support the VMXNET2 driver. You mightneed to install VMware tools to access the VMXNET2 driverinstead of vlance in certain guest operating systems.

Virtual disks backed with thin-provisioned storage or thick-provisioned disks that do not have clustering featuresenabled.

When you turn on Fault Tolerance, the conversion to theappropriate disk format is performed by default. The virtualmachine must be in a powered-off state to take this action.

Hot-plugging devices. The hot plug feature is automatically disabled for faulttolerant virtual machines. To hot plug devices (either addingor removing), you must momentarily turn off FaultTolerance, perform the hot plug, and then turn on FaultTolerance.NOTE When using Fault Tolerance, changing the settings ofa virtual network card while a virtual machine is running isa hot-plug operation, since it requires "unplugging" thenetwork card and then "plugging" it in again. For example,with a virtual network card for a running virtual machine, ifyou change the network that the virtual NIC is connected to,FT must be turned off first.

Extended Page Tables/Rapid Virtualization Indexing(EPT/RVI).

EPT/RVI is automatically disabled for virtual machines withFault Tolerance turned on.

VMXNET3 driver. Remove the VMXNET3 driver and replace it with asupported driver. A few examples of the supported driversare the e1000 driver, the VMXNET2 driver, and the VMXNETdriver.

Paravirtualized SCSI (PVSCSI) adapter. Remove the PVSCSI adapter and replace it with a supportedadapter. A few examples of the supported adapters are theLSILogic adapter and the BusLogic driver.

Preparing Your Cluster and Hosts for Fault ToleranceTo enable VMware Fault Tolerance for your cluster, you must meet the feature's prerequisites and you mustperform certain configuration steps on your hosts. After those steps are accomplished and your cluster hasbeen created, you can also check that your configuration complies with the requirements for enabling FaultTolerance.

The tasks you should complete before attempting to enable Fault Tolerance for your cluster include:

n Enable host certificate checking (if you are upgrading from a previous version of Virtual Infrastructure)

n Configure networking for each host

n Create the VMware HA cluster, add hosts, and check compliance

After your cluster and hosts are prepared for Fault Tolerance, you are ready to turn on Fault Tolerance foryour virtual machines. See “Turn On Fault Tolerance for Virtual Machines,” on page 38.

Chapter 3 Providing Fault Tolerance for Virtual Machines

VMware, Inc. 35

Page 36: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Enable Host Certificate CheckingUsing host certificate checking, you can configure ESX/ESXi hosts to verify each other's identities, therebyhelping to ensure a more secure environment. This is required for ESX/ESXi hosts on which fault tolerantvirtual machines reside. If you installed VMware vCenter Server version 4.0, this enablement is performedautomatically. If you upgraded from a previous version, you must perform the procedure manually. Duringthis procedure, you will be presented with the list of hosts and their certificates for verification. You can verifythe host certificate before committing the certificate checking enablement. Hosts not verified in this step mustbe manually verified and reconnected.

Procedure

1 Connect vSphere Client to vCenter Server.

2 Select Administration and select vCenter Server Settings.

The vCenter Server Settings window appears.

3 Click SSL Settings in the left pane.

4 Select the Check host certificates box.

5 Click OK.

Configure Networking for Host MachinesOn each host that you intend to add to a VMware HA cluster, you must configure two different networkingswitches so that the host can also support VMware Fault Tolerance.

Prerequisites

Multiple gigabit Network Interface Cards (NICs) are required. For each host supporting Fault Tolerance, youneed a total of two VMkernel gigabit NICs: one dedicated to Fault Tolerance logging and one dedicated toVMotion. The VMotion and FT logging NICs must be on different subnets. Additional NICs are recommendedfor virtual machine and management network traffic.

Procedure

1 Connect vSphere Client to vCenter Server.

2 In the vCenter Server inventory, select the host and click the Configuration tab.

3 Select Networking under Hardware, and click the Add Networking link.

The Add Network wizard appears.

4 Select VMkernel under Connection Types and click Next.

5 Select Create a virtual switch and click Next.

6 Provide a label for the switch, and select either Use this port group for VMotion or Use this port groupfor fault tolerance logging.

7 Click Next.

8 Provide an IP address and subnet mask and click Next.

9 Click Finish.

To enable Fault Tolerance for a host, VMware recommends that you complete this procedure twice, oncefor each port group option to ensure that sufficient bandwidth is available for Fault Tolerance logging.Select one option, finish this procedure, and repeat the procedure a second time, selecting the other portgroup option.

vSphere Availability Guide

36 VMware, Inc.

Page 37: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

After you have created both a VMotion and Fault Tolerance logging virtual switch, you should add the hostto the cluster and complete any steps needed to turn on Fault Tolerance.

What to do next

To confirm that you successfully enabled both VMotion and Fault Tolerance on the host, view its Summarytab in the vSphere Client. In the General pane, the fields VMotion Enabled and Fault Tolerance Enabledshould show yes.

NOTE If you configure networking to support Fault Tolerance but subsequently disable it, pairs of fault tolerantvirtual machines that are already powered on remain so. However, if a failover situation occurs, when thePrimary VM is replaced by its Secondary VM a new Secondary VM is not started, causing the new PrimaryVM to run in a Not Protected state.

Create VMware HA Cluster and Check ComplianceVMware Fault Tolerance is used in the context of a VMware HA cluster. After you have configured networkingon each host, create the VMware HA cluster and add the hosts to it. You can check to see if the cluster isconfigured correctly and complies with the requirements for the successful enablement of Fault Tolerance.

Procedure

1 Connect vSphere Client to vCenter Server.

2 In the vCenter Server inventory, select the cluster and click the Profile Compliance tab.

3 Click Check Compliance Now to run the compliance tests.

To view the tests that are run, click Description.

The results of the compliance test appear at the bottom of the screen. A host is labeled as either Compliant orNoncompliant.

NOTE For a detailed discussion of how to create a VMware HA cluster, see Chapter 2, “Creating and UsingVMware HA Clusters,” on page 13.

Turning On Fault Tolerance for Virtual MachinesAfter you have taken all of the required steps for enabling VMware Fault Tolerance for your cluster, you canturn on the feature for individual virtual machines.

The option to turn on Fault Tolerance is unavailable (grayed out) if any of these conditions apply:

n The virtual machine resides on a host that does not have a license for the feature.

n The virtual machine resides on a host that is in maintenance mode or standby mode.

n The virtual machine is disconnected or orphaned (its .vmx file cannot be accessed).

n The user does not have permission to turn the feature on.

If the option to turn on Fault Tolerance is available, this task still must be validated and can fail if certainrequirements are not met.

Validation Checks for Turning On Fault ToleranceA number of validation checks are performed on a virtual machine before Fault Tolerance can be turned on.

n SSL certificate checking must be enabled in the vCenter Server settings.

n The host must be in a VMware HA cluster or a mixed VMware HA and DRS cluster.

n The host must have ESX/ESXi 4.0 or greater installed.

Chapter 3 Providing Fault Tolerance for Virtual Machines

VMware, Inc. 37

Page 38: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

n The virtual machine must not have multiple vCPUs.

n The virtual machine must not have snapshots.

n The virtual machine must not be a template.

n The virtual machine must not have VMware HA disabled.

A number of additional validation checks are performed for powered-on virtual machines (or those beingpowered on).

n The BIOS of the hosts where the fault tolerant virtual machines reside must have HardwareVirtualization (HV) enabled.

n The host that supports the Primary VM must have a processor that supports Fault Tolerance.

n The host that supports the Secondary VM must have a processor that supports Fault Tolerance and is thesame CPU family or model as the host that supports the Primary VM.

n The combination of the virtual machine's guest operating system and processor must be supported byFault Tolerance (for example, 32-bit Solaris on AMD-based processors is not currently supported).

n The configuration of the virtual machine must be valid for use with Fault Tolerance (for example, it mustnot contain any unsupported devices).

When your effort to turn on Fault Tolerance for a virtual machine passes the validation checks, the SecondaryVM is created and the entire state of the Primary VM is copied. The placement and immediate status of theSecondary VM depends upon whether the Primary VM was powered-on or powered-off when you turned onFault Tolerance.

If the Primary VM is powered on:

n The Secondary VM is created, placed on a separate compatible host, and powered on if it passes admissioncontrol.

n The Fault Tolerance Status displayed on the virtual machine's Summary tab in the vSphere Client isProtected.

If the Primary VM is powered off:

n The Secondary VM is immediately created and registered to a host in the cluster (it might be re-registeredto a more appropriate host when it is powered on.)

n The Secondary VM is not powered on until after the Primary VM is powered on.

n The Fault Tolerance Status displayed on the virtual machine's Summary tab in the vSphere Client is NotProtected, VM not Running.

n When you attempt to power on the Primary VM after Fault Tolerance has been turned on, the additionalvalidation checks listed above are performed. To power on properly, the virtual machine must not useparavirtualization (VMI).

After these checks are passed, the Primary and Secondary VMs are powered on, placed on separate,compatible hosts and the Fault Tolerance Status displayed on the virtual machine's Summary tab in thevSphere Client is Protected.

Turn On Fault Tolerance for Virtual MachinesYou can turn on VMware Fault Tolerance through the vSphere Client.

NOTE When Fault Tolerance is turned on, vCenter Server unsets the virtual machine's memory limit and setsthe memory reservation to the memory size of the virtual machine. While Fault Tolerance remains turned on,you cannot change the memory reservation, size, limit, or shares. When Fault Tolerance is turned off, anyparameters that were changed are not reverted to their original values.

vSphere Availability Guide

38 VMware, Inc.

Page 39: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Connect vSphere Client to vCenter Server using an account with cluster administrator permissions.

Procedure

1 Select the Hosts & Clusters view.

2 Right-click a virtual machine and select Fault Tolerance > Turn On Fault Tolerance.

The specified virtual machine is designated as a Primary VM and a Secondary VM is established on anotherhost. The Primary VM is now fault tolerant.

Viewing Information About Fault Tolerant Virtual MachinesYou can view fault tolerant virtual machines in the vCenter Server inventory using the vSphere Client.

NOTE You cannot disable Fault Tolerance from the Secondary VM.

A VMware Fault Tolerance section (pane) is provided in the Summary tab for the Primary VM and includesinformation about the virtual machine.

Fault Tolerance Status Indicates the Fault Tolerance status of the virtual machine.

n Protected. Indicates that the Primary and Secondary VMs are powered onand running as expected.

n Not Protected. Indicates that the Secondary VM is not running. Possiblereasons are listed in the table.

Table 3-2. Reasons for Primary VM Not Protected Status

Reason for Not Protected Status Description

Starting Fault Tolerance is in the process ofstarting the Secondary VM. Thismessage is only visible for a shortperiod of time.

Need Secondary VM The Primary VM is running without aSecondary VM, so the Primary VM iscurrently not protected. This generallyoccurs when there is no compatiblehost in the cluster available for theSecondary VM. Correct this bybringing a compatible host online. Ifthere is a compatible host online in thecluster, further investigation might berequired. Under certain circumstances,disabling Fault Tolerance and then re-enabling it corrects this problem.

Disabled Fault Tolerance is currently disabled(no Secondary VM is running). Thishappens when Fault Tolerance isdisabled by the user or when vCenterServer disables Fault Tolerance afterbeing unable to power on theSecondary VM.

VM not Running Fault Tolerance is enabled but thevirtual machine is powered off. Poweron the virtual machine to reachProtected state.

Secondary location Displays the ESX/ESXi host on which the Secondary VM is hosted.

Chapter 3 Providing Fault Tolerance for Virtual Machines

VMware, Inc. 39

Page 40: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Total Secondary CPU Indicates the CPU usage of the Secondary VM, displayed in MHz.

Total SecondaryMemory

Indicates the memory usage of the Secondary VM, displayed in MB.

vLockstep Interval The time interval (displayed in seconds) needed for the Secondary VM to matchthe current execution state of the Primary VM. Typically, this interval is lessthan one-half of one second.

Log Bandwidth The amount of network capacity being used for sending VMware FaultTolerance log information from the host running the Primary VM to the hostrunning the Secondary VM.

Fault Tolerance Best PracticesTo help ensure optimal Fault Tolerance results, VMware recommends that you follow certain best practices.

Host ConfigurationObserve the following best practices when configuring your hosts.

n Hosts running the Primary and Secondary VMs should operate at approximately the same processorfrequencies, otherwise the Secondary VM might be restarted more frequently. Platform powermanagement features which do not adjust based on workload (for example, power capping and enforcedlow frequency modes to save power) can cause processor frequencies to vary greatly. If Secondary VMsare being restarted on a regular basis, disable all power management modes on the hosts running faulttolerant virtual machines or ensure that all hosts are running in the same power management modes.

n Apply the same instruction set extension configuration (enabled or disabled) to all hosts. The process forenabling or disabling instruction sets varies among BIOSes. See the documentation for your hosts' BIOSesfor details on how to configure instruction sets.

Homogeneous ClustersVMware Fault Tolerance can function in clusters with non-uniform hosts, but it works best in clusters withcompatible nodes. When constructing your cluster, all hosts should have the following:

n Processors from the same compatible processor group.

n Common access to datastores used by the virtual machines.

n The same virtual machine network configuration.

n The same ESX/ESXi version.

n The same BIOS settings for all hosts.

Run Check Compliance to identify incompatibilities and correct them.

PerformanceTo increase the bandwidth available for the logging traffic between Primary and Secondary VMs use a 10GbitNIC rather than 1Gbit NIC, and enable the use of jumbo frames.

Store ISOs on Shared Storage for Continuous AccessISOs that are accessed by virtual machines with Fault Tolerance enabled should be stored on shared storagethat is accessible to both instances of the fault tolerant virtual machine. If this configuration is used, the CD-ROM in the virtual machine continues operating normally, even if there is a failover.

vSphere Availability Guide

40 VMware, Inc.

Page 41: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

For virtual machines with Fault Tolerance enabled, you might use ISO images that are accessible only to thePrimary VM. In such a case, the Primary VM is able to access the ISO, but if a failover occurs, the CD-ROMreports errors as if there is no media. This situation might be acceptable if the CD-ROM is being used for atemporary, non-critical operation such as an installation.

Upgrade Hosts Used for Fault ToleranceWhen you upgrade hosts that contain fault tolerant virtual machines, ensure that the Primary and SecondaryVMs continue to run on hosts with the same ESX/ESXi version and patch level.

Prerequisites

Cluster administrator privileges.

Sets of four or more ESX/ESXi hosts that are hosting fault tolerant virtual machines which are powered on. Ifthe virtual machines are powered off, the Primary and Secondary VMs can be relocated to hosts with differentbuilds.

NOTE This upgrade procedure is for a minimum four-node cluster. The same instructions can be followed fora smaller cluster, though the unprotected interval will be slightly longer.

Procedure

1 Using VMotion, migrate the fault tolerant virtual machines off of two hosts.

2 Upgrade the two evacuated hosts to the same ESX/ESXi build.

3 Disable Fault Tolerance on the Primary VM.

4 Using VMotion, move the disabled Primary VM to one of the upgraded hosts.

5 Re-enable Fault Tolerance on the Primary VM that was moved.

6 Repeat Step 1 to Step 5 for as many fault tolerant virtual machine pairs as can be accommodated on theupgraded hosts.

7 Using VMotion, redistribute the fault tolerant virtual machines.

All ESX/ESXi hosts in a cluster are upgraded.

VMware Fault Tolerance Configuration RecommendationsVMware recommends that you observe certain guidelines when configuring Fault Tolerance.

n In addition to non-fault tolerant virtual machines, you should have no more than four fault tolerant virtualmachines (primaries or secondaries) on any single host. The number of fault tolerant virtual machines thatyou can safely run on each host is based on the sizes and workloads of the ESX/ESXi host and virtualmachines, all of which can vary.

n If you are using NFS to access shared storage, use dedicated NAS hardware with at least a 1Gbit NIC toobtain the network performance required for Fault Tolerance to work properly.

n Ensure that a resource pool containing fault tolerant virtual machines has excess memory above thememory size of the virtual machines. Fault tolerant virtual machines use their full memory reservation.Without this excess in the resource pool, there might not be any memory available to use as overheadmemory.

n VMware recommends that you use a maximum of 16 virtual disks per fault tolerant virtual machine.

n To ensure redundancy and maximum Fault Tolerance protection, VMware recommends that you have aminimum of three hosts in the cluster. In a failover situation, this provides a host that can accommodatethe new Secondary VM that is created.

Chapter 3 Providing Fault Tolerance for Virtual Machines

VMware, Inc. 41

Page 42: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Troubleshooting Fault ToleranceTo maintain a high level of performance and stability for your fault tolerant virtual machines and also tominimize failover rates, you should be aware of certain troubleshooting topics.

The troubleshooting topics discussed focus on issues that you might encounter when using the VMware FaultTolerance feature on your virtual machines. The topics also describe how to resolve problems.

You can use the information provided in the appendix Fault Tolerance Error Messages to help you troubleshootFault Tolerance. The topic contains a list of error messages that you might encounter when you attempt to usethe feature and, where applicable, advice on how to resolve each error.

Unexpected Virtual Machine FailoversYou might need to troubleshoot VMware Fault Tolerance by determining the reason for unexpected virtualmachine failovers. This type of failover is when your Primary or Secondary VM has failed over and redundancyis reestablished, even though its ESX/ESXi host has not crashed. In such cases, virtual machine execution is notinterrupted, but redundancy is temporarily lost.

Partial Hardware Failure Related to StorageThis problem can arise when access to storage is slow or completely down for one of the hosts. When thisoccurs there are many storage errors listed in the VMkernel log. To resolve this problem you must addressyour storage-related issues.

Partial Hardware Failure Related to NetworkIf the logging NIC is not functioning or connections to other hosts through that NIC are down, this can triggera fault tolerant virtual machine to be failed over so that redundancy can be reestablished. To avoid this problem,dedicate a separate NIC each for VMotion and FT logging traffic and perform VMotion migrations only whenthe virtual machines are less active.

Insufficient Bandwidth on the Logging NIC NetworkThis can happen because of too many fault tolerant virtual machines being on a host. To resolve this problem,more broadly distribute pairs of fault tolerant virtual machines across different hosts.

VMotion Failures Due to Virtual Machine Activity LevelIf the VMotion migration of a fault tolerant virtual machine fails, the virtual machine might need to be failedover. Usually, this occurs when the virtual machine is too active for the migration to be completed with onlyminimal disruption to the activity. To avoid this problem, perform VMotion migrations only when the virtualmachines are less active.

Too Much Activity on VMFS Volume Can Lead to Virtual Machine FailoversWhen a number of file system locking operations, virtual machine power ons, power offs, or VMotionmigrations occur on a single VMFS volume, this can trigger fault tolerant virtual machines to be failed over.A symptom that this might be occurring is receiving many warnings about SCSI reservations in the VMkernellog. To resolve this problem, reduce the number of file system operations or ensure that the fault tolerant virtualmachine is on a VMFS volume that does not have an abundance of other virtual machines that are regularlybeing powered on, powered off, or migrated using VMotion.

Lack of File System Space Prevents Secondary VM StartupCheck whether or not your /(root) or /vmfs/<datasource> file systems have available space. These file systemscan become full for many reasons, and a lack of space might prevent you from being able to start a newSecondary VM.

vSphere Availability Guide

42 VMware, Inc.

Page 43: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Other Fault Tolerance Troubleshooting IssuesYou might need to troubleshoot issues that are adversely affecting the functioning of your fault tolerant virtualmachines.

Hardware Virtualization Must Be EnabledWhen attempting to power on a virtual machine with VMware Fault Tolerance enabled, an error messagemight appear. This is often the result of Hardware Virtualization (HV) not being available on the ESX/ESXiserver on which you are attempting to power on the virtual machine. HV might not be available either becauseit is not supported by the ESX/ESXi server hardware or because HV is not enabled in the BIOS.

If the ESX/ESXi server hardware supports HV, but HV is not currently enabled, enable HV in the BIOS on thatserver. The process for enabling HV varies among BIOSes. See the documentation for your hosts' BIOSes fordetails on how to enable HV.

If the ESX/ESXi server hardware does not support HV, switch to hardware that uses processors that supportFault Tolerance.

Compatible Secondary Hosts Must Be AvailableAfter powering on a virtual machine with Fault Tolerance enabled, an error message might appear in the RecentTask Pane:

Secondary VM could not be powered on as there are no compatible hosts that can accommodate it.

This can occur for a variety of reasons including that there are no other hosts in the cluster, there are no otherhosts with HV enabled, data stores are inaccessible, there is no available capacity, or hosts are in maintenancemode. If there are insufficient hosts, add more hosts to the cluster. If there are hosts in the cluster, ensure theysupport HV and that HV is enabled. The process for enabling HV varies among BIOSes. See the documentationfor your hosts' BIOSes for details on how to enable HV. Check that hosts have sufficient capacity and that theyare not in maintenance mode.

Secondary VM on Overcommitted Host Degrades Performance of Primary VMIf a Primary VM appears to be executing slowly, even though its host is lightly loaded and retains idle CPUtime, check the host where the Secondary VM is running to see if it is heavily loaded. A Secondary VM runningon a host that is overcommitted for CPU resources might not get the same amount of CPU resources as thePrimary VM. When this occurs, the Primary VM frequently must slow down to allow the Secondary VM tokeep up, effectively reducing its execution speed to the slower speed of the Secondary VM.

Further evidence of this problem could be if the vLockstep Interval on the Primary VM's Fault Tolerance panelis yellow or red. This means that the Secondary VM is running several seconds behind the Primary VM. Insuch cases, Fault Tolerance slows down the Primary VM. If the vLockstep Interval remains yellow or red foran extended period of time, this is a strong indication that the Secondary VM is not getting enough CPUresources to keep up with the Primary VM.

To resolve this problem, set an explicit CPU reservation for the Primary VM at a MHz value sufficient to runits workload at the desired performance level. This reservation is applied to both the Primary and SecondaryVMs ensuring that both are able to execute at a specified rate. For guidance setting this reservation, view theperformance graphs of the virtual machine (prior to Fault Tolerance being enabled) to see how much CPUresources it used under normal conditions.

Very Large Virtual Machines Can Prevent Use of Fault ToleranceEnabling Fault Tolerance or migrating a running fault tolerant virtual machine using VMotion can fail if thevirtual machine is too large (greater than 15GB) or if memory is changing at a rate faster than VMotion cancopy over the network. This occurs if, due to the virtual machine’s memory size, there is not enough bandwidthto complete the VMotion switchover operation within the default timeout window (8 seconds).

Chapter 3 Providing Fault Tolerance for Virtual Machines

VMware, Inc. 43

Page 44: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

To resolve this problem, before you enable Fault Tolerance, power off the virtual machine and increase itstimeout window by adding the following line to the vmx file of the virtual machine:

ft.maxSwitchoverSeconds = "30"

where 30 is the timeout window in number in seconds. Enable Fault Tolerance and power the virtual machineback on. This solution should work except under conditions of very high network activity.

NOTE If you increase the timeout to 30 seconds, the fault tolerant virtual machine might become unresponsivefor a longer period of time (up to 30 seconds) when enabling FT or when a new Secondary VM is created aftera failover.

Secondary VM CPU Usage Appears ExcessiveIn some cases, you might notice that the CPU usage for a Secondary VM is higher than for its associated PrimaryVM. This is because replaying events (such as timer interrupts) on the Secondary VM can be slightly moreexpensive than recording them on the Primary VM. This additional overhead is small. When the Primary VMis idle, this relative difference between the Primary and Secondary VMs might seem large, but examining theactual CPU usage shows that very little CPU resource is being consumed by the Primary VM or the SecondaryVM.

vSphere Availability Guide

44 VMware, Inc.

Page 45: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Appendix: Fault Tolerance Error Messages

You might encounter error messages when trying to use VMware Fault Tolerance (FT). The table lists some ofthese error messages. For each error message there is a description and information about resolving the error,if applicable.

Table A-1. Fault Tolerance Error Messages

Error Message Description and Solution

This host contains virtual machines(VMs) with Fault Tolerance turnedOn; therefore, this host cannot bemoved out of its current cluster. Tomove the host to another cluster, firstmigrate the VMs with FaultTolerance turned On to a differenthost

This host cannot be moved out of the cluster because it contains virtual machineswith FT turned on. To move the host to another cluster, first migrate the fault tolerantvirtual machines to a different host.

Cannot add a host with virtualmachines that have Fault Toleranceturned On to a non-HA enabledcluster

FT requires the cluster to be enabled for VMware HA. Edit your cluster settings andturn on VMware HA.

Cannot add a host with virtualmachines that have Fault Toleranceturned On as a stand-alone host

FT cannot be enabled on a stand-alone host. While the host is in the VMware HA-enabled cluster, right-click each virtual machine on the host and select Turn Off FaultTolerance. Once FT is disabled, the host can be made into a stand-alone host.

Fault Tolerance is enabled on one ormore VMs on this host and must bedisabled to move the host out of thecurrent cluster

This host cannot be moved out of the cluster until FT is turned off. To turn off FT,right-click the fault tolerant virtual machines and select Turn Off Fault Tolerance.

Fault Tolerance is enabled on VM{vmName}. Disable Fault Toleranceto move the VM from the current[Resource pool, Cluster]

To move the virtual machine to another cluster or to a standalone host, first turn offFT.

The host {hostName} has VMs withFault Tolerance turned On. Beforedisconnecting the host, the hostshould be put into maintenancemode or turn Off Fault Toleranceprotection on these VMs

This host cannot be disconnected until it is placed in maintenance mode or until FTis turned off. To turn off FT, right-click the fault tolerant virtual machines and selectTurn Off Fault Tolerance.

Virtual machines in the same FaultTolerance pair cannot be on the samehost

You have attempted to VMotion a Secondary VM to the same host a Primary VM ison. A Primary VM and its Secondary VM cannot reside on the same host. Select adifferent destination host for the Secondary VM.

VMware, Inc. 45

Page 46: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Table A-1. Fault Tolerance Error Messages (Continued)

Error Message Description and Solution

The unused disk blocks of the virtualmachine's disks have not beenscrubbed on the file system. This isneeded to support features like FaultTolerance

You have attempted to turn on FT on a powered-on virtual machine which has thickformatted disks with the property of being lazy-zeroed. FT cannot be enabled onsuch a virtual machine while it is powered on. Power off the virtual machine, thenturn on FT and power the virtual machine back on. This changes the disk format ofthe virtual machine when it is powered back on. Turning on FT could take some timeto complete if the virtual disk is large.

The disk blocks of the virtualmachine's disks have not been fullyprovisioned on the file system. Thisis needed to support features likeFault Tolerance

You have attempted to turn on FT on a powered-on virtual machine with thinprovisioned disks. FT cannot be enabled on such a virtual machine while it ispowered on. Power off the virtual machine, then turn on FT and power the virtualmachine back on. This changes the disk format of the virtual machine when it ispowered back on. Turning on FT could take some time to complete if the virtual diskis large.

Unsupported virtual machineconfiguration for Fault Tolerance

The virtual machine has a virtual device that does not support FT. The specific reasonfor the incompatibility (for example, multiple vCPUs) is specified in the sub-fault ofthis message. This error also occurs when you attempt to reconfigure a fault tolerantvirtual machine with an unsupported operation, for example, extend disk.

There are configuration issues for theFault Tolerance operation. Refer tothe errors and warnings list fordetails

There are FT operation issues. To troubleshoot this issue, in the vSphere Client selectthe failed FT operation in either the Recent Tasks pane or the Tasks & Events taband click the View details link that appears in the Details column.

This operation is not supported on aSecondary VM of a Fault Tolerantpair

An unsupported operation was performed directly on the Secondary VM. Typicallythis operation would come from an API. FT does not allow direct interaction withthe Secondary VM (except for relocating or migrating it to a different host). Mostoperations must be performed on the Primary VM.

The Secondary VM withinstanceUuid '{instanceUuid}' hasalready been enabled

An attempt was made to enable FT for a virtual machine on which FT was alreadyenabled. Typically, such an operation would come from an API.

The Secondary VM withinstanceUuid '{instanceUuid}' hasalready been disabled

An attempt was made to disable FT for a Secondary VM on which FT was alreadydisabled. Typically, such an operation would come from an API.

Cannot power On the FaultTolerance Secondary VM for virtualmachine {vmName}. Refer to theerrors list for details

An attempt to power on the Secondary VM failed. To troubleshoot this issue, in thevSphere Client select the failed FT operation in either the Recent Tasks pane or theTasks & Events tab and click the View details link that appears in the Detailscolumn.

Host {hostName} does not supportvirtual machines with FaultTolerance turned on. This VMwareproduct does not support FaultTolerance

The product you are using is not compatible with Fault Tolerance. To use the productyou must turn Fault Tolerance off. This error message primarily appears whenvCenter Server is managing a host with an earlier version of ESX/ESXi or if you areusing VMware Server.

Host {hostName} does not supportvirtual machines with FaultTolerance turned on. This productsupports Fault Tolerance, but thehost processor does not

This hosts' processor does not support Fault Tolerance. Use a host with supportedhardware to use FT. See the VMware knowledge base article at http://kb.vmware.com/kb/1008027 for information on supported processors.

Host {hostName} has some FaultTolerance issues for virtual machine{vmName}. Refer to the errors list fordetails

vCenter Server has detected FT issues on the host. To troubleshoot this issue, in thevSphere Client select the failed FT operation in either the Recent Tasks pane or theTasks & Events tab and click the View details link that appears in the Detailscolumn.

No suitable host can be found toplace the Fault Tolerance SecondaryVM for virtual machine {vmName}

FT requires that the hosts for the Primary and Secondary VMs use the same CPUmodel or family and have the same ESX/ESXi host version and patch level. EnableFT on a virtual machine registered to a host with a matching CPU model or familywithin the cluster. If no such hosts exist, you must add one.

vSphere Availability Guide

46 VMware, Inc.

Page 47: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Table A-1. Fault Tolerance Error Messages (Continued)

Error Message Description and Solution

Operation to power On the FaultTolerance Secondary VM for{vmName} could not be completedwithin {timeout} seconds

The attempt to start the Secondary VM by copying the state of the Primary VM failedwith a timeout. Default timeout is 300 seconds. Determine what is preventing theSecondary VM from powering on. Check if the FT logging NIC on the Primary VM'shost and those tried for the Secondary VM is being shared with other network trafficYou can reduce traffic on the logging NIC of the Primary and Secondary VMs bymoving virtual machines with high network traffic to another host.

The Fault Tolerance Secondary VMwas not powered On because theFault Tolerance Primary VM couldnot be powered On

The Secondary VM was not powered on due to a failure to power on the PrimaryVM. This error displays when the vSphere Client is used to attempt to power on aPrimary VM or if an SDK client invokes the vim.Datacenter.PowerOnVM() API.You must address the issue that prevented the Primary VM from powering onbecause vCenter Server attempts to power on the Secondary VM only after it haspowered on the Primary VM.

DRS Disabled is the only supportedDRS behavior for Fault Tolerancevirtual machine {vmName}

An SDK client attempted to set a DRS automation level override for a Primary orSecondary VM. vCenter Server blocks all such attempts to change the DRSautomation level of fault tolerant virtual machines.

Host CPU is incompatible with thevirtual machine's requirementsmismatch detected for these features:CPU does not match

FT requires that the hosts for the Primary and Secondary VMs use the same CPUmodel, family, and stepping. Enable FT on a virtual machine registered to a host witha matching CPU model, family, and stepping within the cluster. If no such hostsexist, you must add one. This error also occurs when you attempt to migrate a faulttolerant virtual machine to a different host.

Record/Replay is not supported forGuest OS XP/PRO on this CPU

This error occurs when you attempt to power on an FT virtual machine that does notmeet all of the configuration requirements for FT. See “Turning On Fault Tolerancefor Virtual Machines,” on page 37.

The Fault Tolerance configuration ofthe entity {entityName} has an issue:HA is not enabled on the virtualmachine

This virtual machine is on a host that is not in a VMware HA cluster or it has hadVMware HA disabled. Fault Tolerance requires VMware HA.

The Fault Tolerance configuration ofthe entity {entityName} has an issue:Secondary VM already exists

The Primary VM already has a Secondary VM. Do not attempt to create multipleSecondary VMs for the same Primary VM.

The Fault Tolerance configuration ofthe entity {entityName} has an issue:Template virtual machine

FT cannot be enabled on virtual machines which are templates. Use a non-templatevirtual machine for FT.

The Fault Tolerance configuration ofthe entity {entityName} has an issue:Virtual machine with multiplevirtual CPUs

FT is only supported on virtual machines with a single vCPU configured. Use a singlevCPU virtual machine for FT.

The Fault Tolerance configuration ofthe entity {entityName} has an issue:Host is inactive

You must enable FT on an active host. An inactive host is one that is disconnected,in maintenance mode, or in standby mode.

The Fault Tolerance configuration ofthe entity {entityName} has an issue:Fault Tolerance not supported byhost hardware

FT is only supported on specific processors and BIOS settings with HardwareVirtualization (HV) enabled. To resolve this issue, use hosts with supported CPUmodels and BIOS settings.

The Fault Tolerance configuration ofthe entity {entityName} has an issue:Fault Tolerance not supported byVMware Server 2.0

Upgrade to VMware ESX or ESXi 4.0 or later.

The Fault Tolerance configuration ofthe entity {entityName} has an issue:No VMotion license or no virtual NICconfigured for VMotion

Verify that you have correctly configured networking on the host. See “ConfigureNetworking for Host Machines,” on page 36. If it is, then you might need to acquirea VMotion license.

Appendix: Fault Tolerance Error Messages

VMware, Inc. 47

Page 48: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Table A-1. Fault Tolerance Error Messages (Continued)

Error Message Description and Solution

The Fault Tolerance configuration ofthe entity {entityName} has an issue:No virtual NIC configured for FaultTolerance logging

An FT logging NIC has not been configured. See “Configure Networking for HostMachines,” on page 36 for instructions.

The Fault Tolerance configuration ofthe entity {entityName} has an issue:Check host certificates flag not set forvCenter Server

The "check host certificates" box is not checked in the SSL settings for vCenter Server.You must check that box. See “Enable Host Certificate Checking,” on page 36.

The Fault Tolerance configuration ofthe entity {entityName} has an issue:The virtual machine has one or moresnapshots

FT does not support virtual machines with snapshots. Enable FT on a virtual machinewithout snapshots or use the snapshot manager to delete all snapshots associatedwith this virtual machine.

The Fault Tolerance configuration ofthe entity {entityName} has an issue:No configuration information for thevirtual machine

vCenter Server has no information about the configuration of the virtual machine.Determine if it is misconfigured. You can try removing the virtual machine from theinventory and re-registering it.

The Fault Tolerance configuration ofthe entity {entityName} has an issue:Record and replay functionality notsupported by the virtual machine

Upgrade the hardware the virtual machine is running on and then turn on FT.Potential configuration issues include:n Software virtualization with FT is unsupported.n FT is not supported for SMP virtual machines.n Paravirtualization (VMI) with FT is not supported.n VM has device that is not supported with FT.n Combination of guest operating system, CPU type and configuration options is

incompatible with FT.See “Fault Tolerance Interoperability,” on page 34 for more details about theserequirements.

The Fault Tolerance configuration ofthe entity {entityName} has an issue:The virtual machine's currentconfiguration does not support FaultTolerance

This error occurs when you attempt to turn on FT for a powered-on virtual machinethat does not meet all of the configuration requirements for FT. Power off the virtualmachine, address the configuration issue, then Turn On Fault Tolerance. Potentialconfiguration issues include:n Software virtualization with FT is unsupported.n FT is not supported for SMP virtual machines.n Paravirtualization (VMI) with FT is not supported.n VM has device that is not supported with FT.n Combination of guest operating system, CPU type and configuration options is

incompatible with FT.See “Fault Tolerance Interoperability,” on page 34 for more details about theserequirements.

The virtual machine has {numCpu}virtual CPUs and is not supported forreason: Fault Tolerance

This error occurs when you attempt to reconfigure a Primary VM with more thanone vCPU. You must modify the number of vCPUs to one.

The file backing ({backingFilename})for device Virtual Floppy is notsupported for Fault Tolerance

FT is not supported on a virtual machine with a virtual floppy device that has filebacking not accessible to the host upon which the Secondary VM resides. To turn onFT for this virtual machine, first remove the unsupported device.

The file backing ({backingFilename})for device Virtual CDROM is notsupported for Fault Tolerance

FT is not supported on a virtual machine with a virtual CDROM device that has filebacking not accessible to the host upon which the Secondary VM resides. To turn onFT for this virtual machine, first remove the unsupported device.

The file backing ({backingFilename})for device Virtual serial port is notsupported for Fault Tolerance

FT is not supported on a virtual machine with a virtual serial port device that hasfile backing not accessible to the host upon which the Secondary VM resides. To turnon FT for this virtual machine, first remove the unsupported device.

The file backing ({backingFilename})for device Virtual parallel port is notsupported for Fault Tolerance

FT is not supported on a virtual machine with a virtual parallel port device that hasfile backing not accessible to the host upon which the Secondary VM resides. To turnon FT for this virtual machine, first remove the unsupported device.

vSphere Availability Guide

48 VMware, Inc.

Page 49: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Table A-1. Fault Tolerance Error Messages (Continued)

Error Message Description and Solution

The file backing ({backingFilename})for device Virtual disk is notsupported for Fault Tolerance

FT is not supported on a virtual machine with a physical disk that has file backingnot accessible to the host upon which the Secondary VM resides. To turn on FT forthis virtual machine, first remove the unsupported device.

vCenter disabled Fault Tolerance onVM {vmName} because theSecondary VM could not be poweredon

To diagnose why the Secondary VM could not be powered on, see “TroubleshootingFault Tolerance,” on page 42.

Starting the Secondary VM{vmName} timed out within{timeout} ms

You might be experiencing network latency that is causing the timeout. See “Troubleshooting Fault Tolerance,” on page 42.

Resynchronizing Primary andSecondary VMs

Fault Tolerance has detected a difference between the Primary and Secondary VMs.This can be caused by transient events which occur due to hardware or softwaredifferences between the two hosts. FT has automatically started a new SecondaryVM, and no action is required. If you see this message frequently, you should alertsupport to determine if there is an issue.

NOTE For errors related to CPU compatibility, see the VMware knowledge base article at http://kb.vmware.com/kb/1008027 for information on supported processors.

Appendix: Fault Tolerance Error Messages

VMware, Inc. 49

Page 50: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

vSphere Availability Guide

50 VMware, Inc.

Page 51: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Index

Aadmission control

enabling 23policy 23types 15VMware HA 15

admission control policychoosing 20Host Failures Cluster Tolerates 15Percentage of Cluster Resources

Reserved 18Specify a Failover Host 20

advanced attributes, VMware HA 25Advanced Runtime Info 15affinity rules 31anti-affinity rules 31

Bbest practices

Fault Tolerance 40VMware HA clusters 27VMware HA networking 28

business continuity 9

Ccluster settings 21cluster validity 27compliance check, Fault Tolerance 37Configured Failover Capacity 15, 18configuring VMware HA advanced options 26creating a VMware HA cluster 21Current Failover Capacity 15, 18Current Failover Host 20customizing VMware HA 25

Ddas.defaultfailoverhost 25das.failuredetectioninterval 25das.failuredetectiontime 25, 28das.iostatsInterval 24, 25das.isolationaddress 25, 28das.isolationShutdownTimeout 23, 25das.slotCpuInMHz 15, 25das.slotMemInMB 15, 25das.usedefaultisolationaddress 25

das.vmCpuMinMHz 15, 18, 25das.vmMemoryMinMB 25default gateway 28Distributed Power Management (DPM) 13, 15Distributed Resource Scheduler (DRS)

and Fault Tolerance 34Fault Tolerance errors 45turning on 22using with VMware HA 13

downtimeplanned 9unplanned 10

Eeducational support 7error messages, Fault Tolerance 45events and alarms, setting 27Extended Page Tables (EPT) 34

Ffailover host 20Fault Tolerance

anti-affinity rules 31best practices 40compliance check 37configuration recommendations 41continuous availability 11enabling 35error messages 45interoperability 34Log Bandwidth 39logging 36, 42networking configuration 36overview 31prerequisites 33restrictions for turning on 37secondary location 39Total Secondary CPU 39Total Secondary Memory 39troubleshooting 42, 43turning on 38use cases 32validation checks 37vLockstep Interval 39vSphere configuration 33

VMware, Inc. 51

Page 52: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

Fault Tolerance statusDisabled 39Need Secondary VM 39Starting 39VM not Running 39

firewall ports 28ft.maxSwitchoverSeconds 43

HHardware Virtualization (HV) 33, 37, 43host certificate checking 33, 36Host Failures Cluster Tolerates 15Host Isolation Response setting 23Host Monitoring 33Host Monitoring feature 22, 28hosts

maintenance mode 13network isolation 13

II/O stats interval 24interoperability, Fault Tolerance 34iSCSI SAN 33ISO images 40

MMaximum per-VM resets 24minimizing downtime 9modifying cluster settings 21monitoring VMware HA 27

NN_Port ID Virtualization (NPIV) 34network isolation address 28network labels 28networking configuration, Fault Tolerance 36NIC teaming 29

OOn-Demand Fault Tolerance 32

Pparavirtualization 34Percentage of Cluster Resources Reserved 18planned downtime 9planning a VMware HA cluster 13port group names 28PortFast 28prerequisites, Fault Tolerance 33primary hosts in clusters 13

RRapid Virtualization Indexing (RVI) 34RDM 33, 34resource fragmentation 20

Ssecondary hosts in clusters 13slot 15slot size calculation 15snapshots 34Specify a Failover Host 20storage

iSCSI 33NAS 33, 41NFS 33, 41

Storage VMotion 9, 34suspending VMware HA 22Symmetric multiprocessor (SMP) 34

Ttechnical support 7tolerating host failures 15transparent failover 11, 31troubleshooting Fault Tolerance 42turning on VMware HA 22

Uunplanned downtime 10updated information 5upgrading hosts with FT virtual machines 41use cases, Fault Tolerance 32

Vvalidation checks 37virtual machine overrides 23, 27Virtual Machine Startup and Shutdown

feature 21VM Monitoring 24VM Monitoring sensitivity 24VM Restart Priority setting 23VMDK 33VMFS 13, 28, 42VMware HA

advanced attributes 25advantages 10cluster settings 21customizing 25monitoring 27recovery from outages 10suspending 22turning on 22

vSphere Availability Guide

52 VMware, Inc.

Page 53: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

VMware HA clusteradmission control 15best practices 27creating 21, 37heterogeneity 20planning 13primary hosts 13secondary hosts 13

VMware HA networkingbest practices 28path redundancy 29

VMware Tools 24VMware vLockstep 11, 31

Index

VMware, Inc. 53

Page 54: vSphere Availability Guide ESX 4 - VMware · 2011-02-10 · vSphere Availability Guide Update 1 ESX 4.0 ESXi 4.0 vCenter Server 4.0 This document supports the version of each product

vSphere Availability Guide

54 VMware, Inc.