Thursday, June 7, 2012

VMware vSphere Fault Tolerance

VMware Fault Tolerance (FT) is a new feature that is available with vSphere 4.0. VMware FT is based on vLockstep technology and aims to provide zero downtime, zero data loss, and continuous availability for applications. FT provides this continuous availability for applications by creating a secondary, live shadow instance of a virtual machine (VM) that is in virtual lockstep with the primary VM instance.

Next, VMware FT builds on VMware High Availability (HA). Therefore, HA has to be running correctly in order to enable FT. VMware FT can be turned on or off for individual virtual machines with a click of the mouse. In addition, since it leverages existing VMware HA clusters with a maximum node limit of 16 servers, any number of virtual machines in the cluster can be protected with VMware FT.

Finally, if you have set up VMware HA cluster and meet the Prerequisites and Requirements below, enabling FT is only a few mouse clicks away. Check out the step-by-step screen captures of enabling FT and testing failover with FT enabled at FT Example Down Below.


VMware vSphere FT Prerequisites


For VMware FT to perform as expected, it must run in an environment that meets specific requirements.
  • The primary and secondary fault-tolerant virtual machines must be in a VMware HA cluster.
  • Primary and secondary virtual machines must not run on the same host. FT automatically places the secondary virtual machine on a different host.
  • Virtual machine files must be stored on shared storage.
  • Shared storage solutions include NFS, FC, and iSCSI.
  • For virtual disks on VMFS-3, the virtual disks must be thick, meaning they cannot be thin or sparsely allocated.
  • Turning on VMware FT automatically converts the virtual machine to thick-eager zeroed disks.
  • Virtual Raw Disk Mapping (RDM) is supported. Physical RDM is not supported.
  • Multiple gigabit Network Interface Cards (NICs) are required.
  • A minimum of two VMKernel Gigabit NICs must be dedicated to VMware FT Logging and vMotion.
  • The FT Logging interface is used for logging events from the primary virtual machine to the secondary FT virtual machines.
  • For best performance, use 10Gbit NIC rather than 1Gbit NIC, and enable the use of jumbo frames.
  • VMware FT requires that Hardware Virtualization (HV) be turned on in the BIOS. The process for enabling HV varies among BIOSs. Contact your vendor for specifics.

VMware vSphere FT Requirements


There are a number of requirements which must be met before FT can be set up:
  • CPUs: limited processors must be the same family (no mix/match).
  • Requires Intel 31xx, 33xx, 52xx, 54xx, 55xx, 74xx or AMD 13xx,23xx, 83xx series of processors.
  • SMP virtual machines are not supported.
  • Hardware Virtualization must be enabled in the BIOS.
  • Hosts must be in a VMware High Availability-enabled cluster.
  • Storage: shared storage (FC, iSCSI, or NAS).
  • Network: minimum of 3 NICs for various types of traffic (ESX Management/VMotion, virtual machine traffic, FT logging).
  • GigE required for vMotion and FT logging.
  • Minimized single points of failures in the environment. For example, NIC teaming, multiple network switches, storage multipathing.
  • Primary and secondary hosts must be running the same build of ESX.

http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=1010601&sliceId=1&docTypeID=DT_KB_1_1&dialogID=29660642&stateId=1%200%2029664181

Guest Operating Systems
The following table displays guest operating system support for VMware FT. For specific guest operating system version information, see the Guest Operating System Installation Guide at http://www.vmware.com/pdf/GuestOS_guide.pdf.
The following values appear in the table:
  • Yes - Virtual machine can be FT-enabled while powered on.
  • Yes/Off - Virtual machine must be powered off before FT is enabled.
  • No - Not supported by VMware FT.
Guest Operating System
Fault Tolerance Support
with Intel Xeon Based on 45nm Core 2 Microarchitecture
Fault Tolerance Support
with Intel Xeon Based on Core i7 Microarchitecture
Fault Tolerance Support
with AMD 3rd Generation Opteron
Windows Server 2008 Yes Yes/Off Yes/Off
Windows Vista Yes Yes/Off Yes/Off
Windows Server 2003 (64 bit) Yes Yes/Off
Yes/Off
Windows Server 2003 (32 bit) Yes Yes/Off
Yes/Off
(Requires Service Pack 2 or greater)
Windows XP (64 bit) Yes Yes/Off Yes/Off
Windows XP (32 bit) Yes Yes/Off No
Windows 2000 Yes/Off Yes/Off No
Windows NT 4.0 Yes/Off Yes/Off No
Linux (all ESX-supported distributions) Yes Yes/Off Yes/Off
Netware Server Yes/Off Yes/Off Yes/Off
Solaris 10 (64-bit) Yes Yes/Off
Yes/Off
(Requires Solaris U1)
Solaris 10 (32-bit) Yes Yes/Off No
FreeBSD (all ESX-supported distributions) Yes Yes/Off Yes/Off
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1008027


VMware vSphere FT Step by Step Example


1. Image depicting the Network configuration.


FT-Networking

2. Turning on FT.

FT-TurnOn

3. 54% through setting up FT.

FT-54percentFT

4. FT setup complete.

FT-TurnOnComplete

5. vLockstep Interval and Log Bandwidth information are now updated.

FT-vLocknBW

6. Primary VM is located on 10.10.10.146.

FT-TestFAbefore1

7. Secondary VM is running on the Secondary Host- 10.10.10.145.

FT-TestFAbefore2

8. Testing FT using the built in Test Failover command.

FT-TestFA

9. Failover test completes. Notice that 10.10.10.146 has become the secondary location.

FT-TestComplete

10. After the Failover Test, the primary host server is now 10.10.10.145 and the primary VM is running on it.

FT-TestFAafterComplete1

11. Furthermore, after the Failover Test, the secondary VM runs on the secondary host server, 10.10.10.146.

FT-TestFAafterComplete2

12. Failover test completion will result in showing the primary VM on the new primary host server and the new secondary host server with the accompanying vLockstep Interval and Log Bandwidth.

FT-TestComplete

13. Finally, VMware vSphere FT is ready to provide continuous protection to your VMs.
 

Tuesday, June 5, 2012

VMware ESXi 4: How to Add VMFS Datastore Using vSphere Client ( with Screenshots )

VMware ESXi 4: How to Add VMFS Datastore Using vSphere Client ( with Screenshots )

1. View Existing ESXi VMware Datastores
Launch vSphere Client -> Click on the top node in the left tree -> Configuration tab -> Click on the storage menu item under “Hardware” section, as shown below. This storage section, will display all available VMware datastores as shown below.
Fig: Vmware ESX Datastores
For example, the current VMware datastore1 on this ESXi server has following information.
  • Volume Label ( Datastore ): datastore1
  • device: locall dell disk ( naa.xxxx )
  • Capacity: 131 G
  • Free: 2.45 GB
  • File system: vmfs3
Please note that the VMS file system can be created across multiple partitions to form one logical VMFS volume.

2. Create VMFS Datastore – Select ESX Storage Type

Click on ‘Add Storage..’ link on the top right hand corner, which will display the “Add Storage” wizard.
The first step is to specicy the esx storage type for the new ESX VMFS datastore. Select Disk/LUN as shown below. (other option is to select network file system – nfs datastore)
Fig: Select ESXi Storage Type – Disk/LUN

3. Select Disk/LUN

This step will display all the available disk groups on the server. This is a dell poweredge 2950 server, which already has a raid-1 logical disk group created at the hardware raid level. The raid-1 diskgroup that was created at the hardware level is now visible to the ESXi server. If you have more than one diskgroup available to the hardware, they’ll be listed here.
Fig: vSphere VMware Select disk

4. Current Disk Layout Configuration

This is only a information screen that says that the hard disk is blank etc.,. Click on Next to continue
Fig: VMware VMFS Disk Layout Configuration

5. VMFS Datastore Name

Specify the VMFS datastore name in the properties screen.
Fig: VMFS datastore Name

6. Disk/LUN Formatting

Specify the maximum file size for this esx datastore. In this example, I selected 256GB as maximum file size with 1MB block size. Following options are available for the maximum file size:
  • 256 GB, Block size: 1 MB
  • 512 GB, Block size: 2 MB
  • 1024 GB, Block size: 4 MB
  • 2048 GB, Block size: 8 MB
Leave the capacity check-box as maximum capacity.
Fig: VMware Datastore Disk Formatting

7. Final confirmation – Ready to Complete

The final confirmation section confirms our selection as shown below.
Fig: VMware Datastore creation confirmation

8. New ESX datastore Created

The new datastore3 is created as shown below.