21. Using VMware vSphere High Availability

In this lab you will learn how to create a cluster enabled for vSphere HA, add your ESXi host to a cluster, test vSphere HA functionality, Determine the vSphere HA cluster Resource Usage, Manage vSphere HA slot size, configure a vSphere HA cluster with strict admission control.

VMware vSphere High availability clusters enable a collection of VMware ESXi hosts to work together. A group of ESXi hosts can provide higher levels of availability for virtual machines than ESXi host can provide individually.

To create a cluster you have to go to vCenter > Host and clusters > right click on the data center and click on new cluster the following two below images will guide you through the steps you have to follow to create a new cluster.

when you get the cluster wizard type the name as Lab Cluster

1

turn on the vSphere HA which is next to vSphere HA, Host monitoring leave the default, leave the default settings for Admission control status, In policy click on Percentage of cluster resources reserved as failover spare capacity, leave the default settings for VM monitoring status / EVC / virtual SAN. and click ok.

2

When the cluster is created you can add your ESXi host to the cluster. Expand your Lab Servers Folder select your ESXi host drag it to your ESXi host to the lab cluster inventory object.

4

After vSphere HA is enabled  click on the Monitor tab and click on the vSphere HA tab you will be able to see the vSphere summary status. click on the configuration issues link to review the errors.

5

select your host inventory and navigate to manage > networking > VMkernel port , select vMotion VMkernel port you created click on edit settings and enable the Management Traffic check box and click ok.

6

7

To test the vSphere HA functionality you have to go to vCenter > Host and Clusters click on the related objects tab and click the virtual machine tab. now you have to reboot the Master ESXi to reboot the master ESXi host right click it and click on reboot. when you are going to reboot a warning message will appear to put your ESXi host on to maintenance mode. For the rebooting message type Testing vSphere HA and click ok. you can click monitor tab and click on the events tab if you need to check the events.

select the running ESXi host in the cluster and click on related objects tab and click on the Virtual Machines tab to see the machine that were running on the Master ESXi host will be running on the remaining host in the cluster.

8

9

To check the resource usage of the vSphere HA cluster you have to go to vCenter > Host and clusters > Select your lab cluster and click on the resource allocation tab you will get a view as in the below image.

10

11

1213

To manage the vSphere HA slot size you have to click on vCenter > Host and clusters > right click on your lab cluster and select settings. In your are on settings select vSphere HA and click on the edit button and click on admission control and expand it and ensure that you have selected Define failover capacity by static number of hosts policy is selected. and click ok.

14

click on Monitor tab click the vSphere HA and view the slot information in the Advanced Runtime Info you can see the CPU space and RAM.

15

Select vCenter  > VMs and Templates, right click on your virtual machine click on edit settings > expand CPU properties and set the reservation text box to 512MHz and click ok.

16

Right click on the lab clusters and select settings click edit expand the admission control options and select fixed slot size and type 300 and click on calculate.

17

18

to remove the vSphere HA fixed slot size right click on your lab cluster in the inventory settings and click on edit, expand the admission control options and select cover all powered-on virtual machines and click on ok.

19

In the previous task you defined your cluster with define failover capacity by static number of hosts you instructed vSphere HA to calculate slots.

now lets see how strict admission controls works first go to your vCenter>Host and Clusters >Lab Cluster > Related Objects > virtual machines and make sure you shut down all the machines. After every machine is turned off, then clicked on lab cluster and click on summary tab.

20

by looking at the image below you analyze total memory capacity and divide it by the number of esxi hosts in the cluster.

21

to assign memory reservation you should right click on your virtual machine and click on the resource allocation tab and select all vcenter Actions > Edit resource settings.

22

set the memory reservation to 384MB and click ok for the changes.

23

click on monitor tab and the vSphere HA and check the run time advance info you can check the number of slots in the cluster.

24

25

2627

After all the steps are completed successfully you are done with lab 21.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s