Reference Implementation: Clustering vCenter Server 4.0 Using Microsoft Cluster Services

VERSION 1 Published

Created on: Jun 12, 2009 1:27 PM by Catherine Fan - Last Modified:  Aug 20, 2009 8:11 PM by Catherine Fan

Reference Implementation: Clustering vCenter Server 4.0 Using Microsoft Cluster Services

 

Metadata

Title

Reference Implementation: Clustering vCenter Server 4.0 Using Microsoft Cluster Services

Version

VMware 21/AUG/2009 1.0

Author

vmware.jpg

VMware (NYSE: VMW) is the global leader in virtualization solutions from the desktop to the data center. Customers of all sizes rely on VMware to reduce capital and operating expenses, ensure business continuity, strengthen security and go green. With 2007 revenues of $1.33 billion, more than 120,000 customers and nearly 18,000 partners, VMware is one of the fastest-growing public software companies. VMware is headquartered in Palo Alto, California, and on the Web at www.vmware.com.

 

Sandeep K Areekkara, VMware

sandeepk@vmware.com

Tags

availability clustering mscs virtualcenter high_availability

Location

Reference Implementation: Clustering vCenter Server 4.0 Using Microsoft Cluster Services

Context

In a default installation vCenter Server runs on a single Windows based server. In order to provide high availability, you can use the clustering software so the vCenter Server process is automatically restarted on a standby server if the primary server fails. This document describes the use of Microsoft Cluster Server (MSCS) to provide high availability for vCenter Server. This document helps the customers in setting up vCenter Server on a cluster or upgrading the existing vCenter cluster setup on MSCS to vCenter Server 4.0.

 

The technical note covers the following:

  • Installation of vCenter Server on MSCS environment

  • Upgrade of an existing vCenter Server on MSCS

  • Advantages and limitations of vCenter Server using MSCS

Actors

VMware Certified Professionals, VirtualCenter Management / Sysadmin / Operations / Backup Operators

References

Setup for Failover Clustering and Microsoft Cluster Service (http://www.vmware.com/pdf/vsphere4/r40/vsp_40_mscs.pdf)

Outline

  1. What's Changed with vCenter Server 4.0?

  2. Advantages and Limitations of vCenter Server 4.0 using MSCS

  3. Fresh Installation of vCenter Server on MSCS

  4. Upgrade of an Existing vCenter Server on MSCS

Support

Please see this KB Article for information about support of this implementation. (TBD)

How to use this Proven Practice

This document goes over the steps to successfully implement a high availability solution for vCenter Server 4.0 using Microsoft Cluster Server (MSCS). It shows the setup of a reference implementation, however, other variations would also be valid. This document will be updated as additional configurations and options are validated.

 

The instructions were written using VMs for the cluster nodes. However, most of the instructions would apply for physical cluster nodes. For further information on clustering see Additional Resources at the end of this document.

 

What's Changed with vCenter Server 4.0?

For readers who are familiar with the procedure used to set up vCenter Server 2.5 with MSCS, this is how the procedure is changed with vCenter server 4.0:

 

With the release of vCenter Server 4.0, vCenter Server roles are now stored in Microsoft Active Directory Application Mode (ADAM) instances. To replicate the roles from node 1 to node 2, use ADAM replication during the MSCS setup process.

 

 

Advantages and Limitations of vCenter Server 4.0 using MSCS

 

Advantages

  • vCenter Server when configured with MSCS lets the user to have a complete failover

  • There is no extra load put on vCenter Server for the failover cluster as it is all taken care by MSCS.

  • There will only be an outage that might last for some seconds in case of failure of the vCenter Server on the primary node.

  • We do not require any physical server if we are using Virtual Machines for setting up vCenter Server on MSCS.

 

Limitations

  • vCenter Server Linked Mode is not supported on vCenter Server with MSCS setups.

  • All the hosts and clusters will be reconnected and reconfigured on the new setup and this might take some time depending on the size of the environment

 

 


 

 

Fresh Installation

This document assumes that you have two identical virtual machines running Microsoft Windows Server 2003. Alternatively, you can use two physical machines. Please refer to the following VMware documentation for more details: "Setup for Failover Clustering and Microsoft Cluster Server."

 

Configuration Overview

Complete the following tasks to create a clustered vCenter Server host:

  1. Set up Microsoft Cluster Server

    1. Configure network

    2. Configure storage

    3. Install Cluster Services on Node 1

    4. Add node 2 to the cluster

    5. Set up the cluster network

  2. Install vCenter Server software on the primary node

  3. Install vCenter Server software on the secondary node

  4. Create the vCenter Server resource group and resources

  5. Synchronize the cluster and bring it online. Replicate the roles from Node 1 to Node 2.

 

Detailed instructions for these tasks are provided below.

 

 

Prerequisites:

 

  • Microsoft SQL Server or Oracle database is running on a different machine with clustering enabled (MSCS and RAC respectively) and both the above machines can access the database. In this document, we are going to use a remote Microsoft SQL Server Database which is clustered.

  • vCenter Server 4.0 build is downloaded and accessible from both the machines

  • License for vCenter Server 4.0 is available.

  • A quorum disk for MSCS configuration (shared disk), minimum 2 NICs and a pair of static IP addresses.

  • Both the machines should be connected to domain.

 

Preparing for Microsoft Cluster Services

 

In this section, several steps will need to be performed on both nodes to support Microsoft Cluster Services.

 

Configure Network

 

For setting up MSCS cluster, we should have 2 NICs, both with static addresses. One will be used for the public network, and the second one will be a private network used for heartbeat. In this example we are using 2 NICs.

 

Untitled1.png

 

  1. Assign the production networks IP address for the Public NIC and assign a private network for the “Private” NIC.
    Untitled2.png

  2. Add both the machines to domain: Go to System Properties > Computer Name > Change and enter the domain name and add it to domain.

  3. Reboot the machine. Once this is completed, log in using the domain administrator account.

  4. Check to see that the machines are accessible to each other with public, private addresses and machine name.

  5. Correct if there are any issues. Repeat the same steps on Node2.

 

 

Configure Storage

  1. Shut down both the machines

  2. Connect the shared storage to both machines and power on the first machine.

  3. Login to the machine as AD administrator

  4. Go to Computer Management > Disk Management > Select the new Disk > Initialize Disk

  5. Format this disk using NTFS, assign a drive letter and name it as “Quorum”
    Untitled3.png

  6. Create a folder in the quorum and shutdown the first node.

  7. Start the second node once the first node is down and login using the domain admin account.

  8. On the second machine also go to Computer Management > Disk Management and mark the partition as active.

  9. Assign a drive letter and name “Quorum”.

  10. Make sure that the above created folder exists in Quorum disk.

 

Install Cluster Services on Node1

  1. Login to Node1.

  2. Click Start > All Programs > Administrative Tools > Cluster Administrator.

  3. Once the application starts, choose Create New Cluster from the drop-down menu and click OK.

  4. On the “Cluster Name and Domain” page, choose the domain from the drop-down list and enter a name for the MSCS cluster. Untitled4.png

  5. On the “Select Computer” page, enter the local computer name and click Next.
    Untitled5.png

  6. At this point, the wizard will analyze the cluster configuration and report if there are any errors or warnings. If there are any errors, correct them, analyze again and then click Next.
    Untitled6.png

  7. On the “Cluster IP Address” page, enter a unique IP address. This should be of the production network and will be used as the cluster IP address during the failover.

  8. Enter the user name and password for Cluster Service Account and click Next.
    Untitled7.png

  9. On the “Proposed Cluster Configuration” page, verify all the options you have selected. Make sure that the correct quorum disk is selected. Untitled8.png

  10. Once you have reviewed the cluster configuration, click Next to start creating the cluster.
    Untitled9.png

  11. Click Finish to complete the cluster setup. When it has successfully completed, observe that the cluster page opens up.

 

Add Node2 to the Cluster

  1. Open the cluster from Start > All Programs > Administrative Tools > Cluster Administrator.

  2. Right click on the cluster name > New > Node and click Next.
    Untitled10.png

  3. At this point, the wizard will analyze the cluster configuration. Correct if there are any issues and click Next. Untitled11.png

  4. Enter the cluster service account name and click Next.

  5. On the “Proposed Cluster Configuration” screen, review and verify the entire configuration, then click Next. Make sure that the add node operation completes successfully.
    Untitled12.png

 

Set up the Cluster Network

 

  1. Open the cluster from Start > All Programs > Administrative Tools > Cluster Administrator.

  2. Go to cluster configuration > Network and select "Private".

  3. Go to properties and select "Internal cluster communications only" and click OK
    Untitled13.png

  4. Select "Public" network and go to properties.

  5. Select "Client access only" and click OK.
    Untitled14.png

 

Install vCenter Server on Node1

 

Note: vCenter Server Linked Mode is not supported with MSCS.

 

  1. Open ODBC data source administrator tool and create a DSN pointing to the database that should be used for vCenter Server. Make sure that you use the correct database and driver version for installation.

  2. Once the DSN has been created and tested, verify that all prerequisites are met before starting the installation. Please refer to the ESX and vCenter Server Installation Guide for more information on the prerequisites.

  3. Start the software installer and type in the user name, organization, and vCenter Server license key.
    Untitled15.png

  4. Click “Use an existing database” and select the database that you created for vCenter Server. Click Next. Untitled16.png

  5. Enter the user name and password for the database and click Next. (Make sure that this user has all the privileges for vCenter Server installation). Untitled17.png

  6. On the "Service Account Information" screen, enter the user name and password for the service logon and click Next.

  7. Select the destination folder and click Next.

  8. Enter the port numbers and start the installation.

  9. Make sure that the installation completes successfully and you are able to login to the vCenter Server.

 

Install vCenter Server on Node2

  1. Stop vCenter Server on Node1, the primary node.

  2. Copy the SSL folder from “All Users\Application Data\Virtual Center\SSL” from Node1 and paste it in the second node. (Create the folder if it does not exist)

  3. Create the DSN with the same name on the secondary node pointing to the primary vCenter Server’s database.

  4. Verify that all prerequisites are met before starting the installation of vCenter Server on this machine. Please refer to the ESX and vCenter Server Installation Guide for more information on the prerequisites.

  5. Start the software installer and type in the user name, organization, and vCenter Server license key. Click Next.

  6. Click “Use an existing database” and select the database that you created for vCenter Server. Click Next.

  7. Enter the user name and password for the database and click Next.

  8. On the "Database re-initialization warning page" select the option "not to overwrite the data". This is the default option. Untitled18.png

  9. Enter vCenter Server service account information and click Next.

  10. Select the destination folder and click Next.

  11. Verify the port numbers and start the installation.

  12. After completing the installation make sure that the service is running.

 

 

Set up Clustering with vCenter Server

 

For a cluster that provides high availability for vCenter Server, you must create a number of cluster resources. Table 1 provides a summary, indicating each resource. Place all these resources in a single resource group, which is then used to provide availability for the tightly coupled vCenter Server components. The following section provides guidance on setting up MSCS resources for the vCenter Server group.

 

 

Table 1. MSCS resources for vCenter Server group

 

Resources

Type

VCMSDS

Generic Service

ADAM_VMwareVCMSDS

Generic Service

Virtual Center

Generic Service

vpxd

Generic Service

VMware Web Services

Generic Service

vctomcat

Generic Service

 

  1. Shutdown Node2.

  2. Login to Node1 as domain administrator.

  3. Make sure that vCenter Server is running and you are able to login to it.

  4. Click Start > All Programs > Administrator Tools > Cluster Administrator.

  5. Select the cluster group, then right-click and choose New > Resource.
    Untitled19.png

  6. Enter "VCMSDS" as the name, and select resource type as "Generic Service".
    Untitled20.png

  7. Add both the nodes in the possible owners list and click Next.
    Untitled21.png

  8. On the “Dependencies” screen, add "Cluster IP Address", "Cluster Name" and Quorum disk as dependencies and click Next.
    Untitled22.png

  9. Enter service name as “ADAM_VMwareVCMSDS” and click Next.
    Untitled23.png

  10. Finish the operation and make sure that the resource is created successfully.

  11. Perform the same steps for creating the vCenter resource group.
    Untitled24.png

  12. On the “Dependencies” page, make sure that you select the “VCMSDS” along with other three resources. Untitled25.png

  13. Enter “vpxd” as the service name and finish the operation.
    Untitled26.png

  14. Perform the same steps for VMware Web services.

  15. Make sure that you select vCenter resource also as dependency service.

  16. Enter the service name as "vctomcat" and finish the operation.
    Untitled27.png

  17. Select and right-click on each service and select Bring Online. The vCenter Service is now clustered with MSCS.

  18. Power on Node2.

 

Replicate the vCenter Server Roles from Node1 to Node2

 

  1. Login to Node2 as domain administrator.

  2. Stop the vCenter Server and Web Access services.

  3. Run the following command on Node2: <vc-install-dir>\jointool.bat rawReplica --remoteHost <failover primary cluster node FQDN> --remotePort <failover primary cluster node adam-port>
    Untitled28.png

  4. Start vCenter Server and Web Access services on the cluster.

  5. This completes the MSCS cluster setup for a fresh install of vCenter Server.


vCenter Server Upgrade on MSCS

In this section, we are going to perform an upgrade of existing legacy vCenter Server setup on MSCS to vCenter Server 4.0. Before starting the upgrade, verify that the following vCenter Server 4.0 prerequisites are met.

 

Configuration Overview

Complete the following tasks to create a clustered vCenter Server host:

  1. Upgrade vCenter Server software on the primary node

  2. Upgrade vCenter Server software on the secondary node

  3. Set up clustering with vCenter

  4. Synchronize the cluster and bring it online. Replicate the roles from Node 1 to Node 2.

 

Detailed instructions for these tasks are provided below.

 

Prerequisites:

 

 

  • Legacy version of vCenter Server with MSCS should be available. Please refer to the installation guide for more information on vCenter Server upgrade support from different legacy vCenter Server versions.

  • Windows Server 2000 is no longer supported. Please migrate the legacy vCenter Server with MSCS to a newer setup where vCenter Server 4.0 is supported

  • Microsoft SQL Server 2000 is no longer supported. Please upgrade or migrate the database to another setup where vCenter Server 4.0 is supported.

  • We should have a backup of Legacy database and SSL certificates. These can be used to revert to the old setup in case of some issues.

  • Oracle 9i is no longer supported. So we should migrate or upgrade our existing database to a newer version where vCenter Server 4.0 is supported.

  • vCenter Server 4.0 build is downloaded and accessible from both the machines

  • License for vCenter Server 4.0 is available.

  • Make sure that you use the correct database and driver version for performing the vCenter Server upgrade. Refer to the vCenter Installation guide for more details

  • Reconfigure DSN and make sure the connection is completed successfully. Also make sure that you use the correct server name in case of MSSQL and correct TNS name in case of Oracle. Once the DSN connection tested, we can upgrade VC.

  • Bring VC Service offline from the cluster. Or we can shutdown Node2 so that the failover will not happen during VC Upgrade

 

 

Here we assume that all the MSCS prerequisites are met. Please refer the following link for more information: http://www.vmware.com/pdf/vi3_35/esx_3/r35u2/vi3_35_25_u2_mscs.pdf

 

 

In this section we will directly go to vCenter Server upgrade on Node 1 as all the other settings remains the same as in legacy versions of vCenter Server.

 

 

Upgrade vCenter Server on Node1

 

  1. Start the installer and provide the Username, Organization name, License Key etc.
    Untitled29.png

  2. The database options page appears (There won’t be an option for the user to select the DSN in case of upgrade)

  3. Now enter the username and password for the database and click next (Make sure that this user has all the privileges for vCenter Server upgrade. Refer to the installation/upgrade guide for more details)
    Untitled30.png

  4. The “Database Upgrade Warning” page appears. Back up your database and SSL folder and select the option in the wizard to mention that. Click Next. Untitled30.png

  5. In the "Service account information" screen, enter the username and password for the service logon and click Next.

  6. Enter the port values and start the upgrade

  7. Observe that the vCenter Server database upgrade wizard pops up and completes the database upgrade successfully. Please refer to upgrade guide for more information regarding database upgrade wizard.

  8. Make sure that the vCenter Server upgrade completes successfully and you are able to login to vCenter Server.

 

Upgrade vCenter Server on Node2

 

  1. Stop vCenter Server on Node1, the primary node.

  2. Bring Node2 up in case it was shut down.

  3. Copy the SSL folder from “All Users\Application Data\Virtual Center\SSL” from Node1 and paste it in the second node. (Create the folder if it does not exist)

  4. Create the DSN with same name on the secondary node pointing to the primary VC's database

  5. Make sure that all the prerequisites are met and start the installation of vCenter Server on this machine.

  6. Start installer and enter the username, organization and license key in the customer information page and click Next.

  7. Select the option to use the existing database and select the DSN that we just created and click Next.

  8. Enter the username and password for the vCenter Server database and click Next.

  9. On the "Database re-initialization warning” page, select the option "not to overwrite the data". This is the default option. Untitled32.png

  10. Enter vCenter Server service account information and click Next.

  11. Select the destination folder and click Next.

  12. Verify the port number and start the installation.

  13. After completing the installation make sure that the service is running.

 

Set up Clustering with vCenter

 

  1. Shutdown node2

  2. Login to Node1 as domain administrator.

  3. Make sure that vCenter Server is running and you are able to login to it.

  4. Open Start > All Programs> Administrator Tools > Cluster Administrator.

  5. Select and right-click on the "cluster group" > New > Resource.
    Untitled33.png

  6. Enter "VCMSDS" as the name, and select resource type as "Generic Service".
    Untitled34.png

  7. Add both the nodes in the possible owners list and click Next.
    Untitled35.png

  8. Add "Cluster IP Address", "Cluster Name" and Quorum disk as dependencies for this and click Next.
    Untitled36.png

  9. Enter Service name as “ADAM_VMwareVCMSDS” and click Next.
    Untitled37.png

  10. Finish the operation and make sure that the resource is created successfully. Since we already have the VC Service as a cluster resource in the legacy setup, we don’t have to do anything to that.

  11. Perform the same steps for VMware Web services.

  12. Make sure that you select vCenter resource as a dependency service.

  13. Enter the service name as "vctomcat" and finish the operation.
    Untitled38.png

  14. Select and right-click on each service and select Bring Online. The vCenter Service is now clustered with MSCS.

  15. Power on Node2.

 

Replicate the roles from Node1 to Node2

 

  1. Login to Node2 as domain administrator.

  2. Stop vCenter Server and Web Access services.

  3. Run the following command on Node2: <vc-install-dir>\jointool.bat rawReplica --remoteHost <failover primary cluster node FQDN> --remotePort <failover primary cluster node adam-port>
    Untitled28.png

  4. Start vCenter Server and Web Access services on the cluster.

  5. This completes the upgrade of a vCenter Server setup on MSCS.


Additional Resources

The following are additional links to some documents that can provide additional information and alternatives, such as physical-to-virtual and cluster-across-box configurations.

 

Average User Rating
(1 rating)




Oct 15, 2009 10:35 AM Click to view Aaron Hajduk's profile Aaron Hajduk says:

There is a KB article that modifies the above procedure slightly: http://kb.vmware.com/kb/1010550

More Like This

  • Retrieving data ...

More by Catherine Fan