Devoted to Virtualization Technologies

Site to share knowledge about VMware and related Technologies

Microsoft Clusters in Virtual Environment

Clustering Virtual machines can reduce the hardware costs as compared to traditional costing on Physical machines.

Cluster Components

   1) Virtual Machines

   2) Network card

      a. One Private card for cluster communication

      b. One Public

   3) Shared disks

   4) Supported Operating System

   5) Supported disk format

Types of Cluster

There are three types of Cluster configuration supported by VMware.

   1) Clustering Virtual Machine on a single Host

Cluster in a host

Figure1: This figure is taken from VMware’s MSCS Guide

   2) Clustering Virtual Machines Across Physical Hosts

VM clustered across hosts

Figure2: This figure is taken from VMware’s MSCS Guide

   3) Clustering Physical Machines with Virtual Machines

Clustering Physical and Virtual Machines

Figure3: This figure is taken from VMware’s MSCS Guide

 

Hardware, Software & Storage requirement for MSCS

No matter which type of Cluster you use there are few common settings that you have to do to make VMs work in a cluster environment.
 

Component Requirement
Virtual SCSI Adapter LSI Logic Parallel for Windows 2003
  LSI Logic SAS for Windows 2008
Operating System Windows 2003 SP2
  Windows 2008 R2
Virtual NIC Use the default type for all guest OS. Add this before adding of the other disks used in Cluster
I/O timeout        

Set to 60 seconds or more. Modify HKEY_LOCAL_MACHINE\System\CurrentControlSet
\Services\Disk\TimeOutValue

If you reconfigure your cluster the system might reset this I/O timeout value. You will have to reset the value in that case.

Disk format Use eagerzeroedthich format either by selecting Support clustering features such as Fault Tolerance OR use vmkfstools cmd
NTP Server Synchronize domain controllers and cluster nodes with a common NTP server, and disable host based time synchronization when using clustering in the guest.
VM Hardware Version                                 7
Adding additional disks for Cluster Always use a new SCSI controller for example (SCSI (1:0)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Storage Requirement

Storage Type

Cluster in a Box Cluster Across Boxes Standby Clustering
Virtual Disks Yes (recommended) No No
Pass-through RDM (Physical Compatibility mode) No Yes (recommended) Yes
Non-Pass-through RDM (Virtual Compatibility mode) Yes Yes No

MSCS Setup Limitations

The following environments and functions are not supported for MSCS setups with this release of vSphere:

  1. Clustering on iSCSI, FCoE, and NFS disks.
  2. Use of MSCS in conjunction with VMware Fault Tolerance.
  3. Migration with vMotion of clustered virtual machines.
  4. Use of MSCS in conjunction with VMware Fault Tolerance.
  5. N-Port ID Virtualization (NPIV)
  6. With native multipathing (NMP), clustering is not supported when the path policy is set to round robin.
  7. You must use hardware version 7 with ESX/ESXi 4.1.
     

Caution

  1. if you try to clone a VM with an RDM setup the cloning process converts the RDMs to virtual disks. Unmap all RDMs before cloning, and remap them after cloning is complete.
  2. Add networking before disks. Refer kb – http://kb.vmware.com/kb/1513
  3. If you are using Cluster across Boxes and the OS us Windows 2008 – VMware will not support virtual compatibility mode for RDM’s.
  4. Use the STORport Miniport driver for the Fibre Channel (FC) HBA (QLogic or Emulex) in the physical Windows machine on Standby Host clustering
  5. Do not run multipathing software in the physical or virtual machines on standby host clustering
  6. Use only a single physical path from the host to the storage arrays in standby host configurations.
     

HA/DRS Configuration in MSCS

  1. All hosts that are running MSCS virtual machines can be part of a vCenter Server cluster with both VMware HA and DRS enabled.
  2. For MSCS virtual machines in a cluster, you must create VM-VM affinity or anti-affinity rules.
  3. VM-VM affinity rules specify which virtual machines should be kept together on the same host (for example, a cluster of MSCS virtual machines on one physical host).
  4. VM-VM anti-affinity rules specify which virtual machines should be kept apart on different physical hosts (for example, a cluster of MSCS virtual machines across physical hosts).
     

Steps to Enable strict Enforcement of Affinity Rules

  1. In the vSphere Client, right-click the cluster in the inventory and select Edit Settings.
  2. In the left pane of the Cluster Settings dialog box, select VMware DRS.
  3. Click Advanced Options.
  4. In the Option column, type ForceAffinePoweron.
  5. In the Value column, type 1.
  6. Click OK.

MSCS Checklist

  1. Requirement for Cluster Disks

       2.  Other Clustering Requirements and Recommendations

 

      3. Required info for Technical support

Check these sites for additional information

  1. http://exchangeexchange.com/blogs/bkeane/archive/2007/07/30/mscs-clustering-in-vmware.aspx  All though this site is not meant exclusively for vSphere4.1 but it still gives good info about the MSCS.
  2. http://communities.vmware.com/message/1491688?tstart=0
  3. http://www.sysprobs.com/setup-windows-2008-cluster-vmware-workstation Setup Win2k8 R2 Failover Cluster in VMware workstation
  4. http://www.virtuallifestyle.nl/2010/01/recommended-detailed-material-on-rdms/

Disclaimer: Most of the above information is taken from VMware’s MSCS guide.

Next post »

6 ResponsesLeave one →

  1. Anonymous

     /  December 11, 2010

    nice post. thanks.

    Reply
  2. Arnette Catoe

     /  December 12, 2010

    Quite a beautiful website. I built mine and i was looking for some ideas and you gave me a few. The website was developed by you?

    Cheers

    Reply
  3. Daniel

     /  December 17, 2010

    great post, thanks for sharing

    Reply
  4. vcpguy

     /  December 17, 2010

    Yes !!!

    Reply
  5. James

     /  December 24, 2010

    Couldnt agree more with that, very attractive article

    Reply
  6. Pretty nice post. I just stumbled upon your blog and wanted to say that I have really enjoyed browsing your blog posts. In any case I’ll be subscribing to your feed and I hope you write again soon!

    Reply

    Leave a Reply

    • Modified logo BlogWithIntegrity.com
    • Recent Post

    • Tag Coud

      ESx Logs esxtop Licensing Logs Microsoft Cluster MSCS ODBC PowerCli Powershell Shape Data vCenter Logs vcops vcopsbadges Visio VMware vSphere

      WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.

    • Archives