Category Archives: Failover Clustering

W2K8 R2 Clustering 3 – Creating A Cluster

W2K8 R2 Clustering 3 – Creating A Cluster

The last step in creating a Failover Cluster on Windows 2008 R2 is to run the Create A Cluster wizard.  To run the Create A Cluster wizard perform the following steps :-

  • In Server Manager expand Features
  • Click on Failover Cluster Manager
  • Under Management click on Create a Cluster
  • At the Before You Begin screen click on Next to continue
  • At the Select Servers or a Cluster screen either enter the names of the cluster nodes or browse AD and select them
  • When prompted enter in the Name you want to give the cluster
  • Click on the Address section and allocate the IP Address you want to use for the cluster
  • Click on Next to continue
  • At the Confirmation screen confirm the settings you have configured and then click on Next to continue
  • The cluster will now be created
  • At the Summary screen click on Finish

W2K8 R2 Clustering 2 – Running The Cluster Validation Tool

W2K8 R2 Clustering 2 – Running The Cluster Validation Tool

The next step in creating a Failover Cluster is to run the Cluster Validation Tool on the first node.  To run the Cluster Validation Tool perform the following steps :-

  • In Server Manager expand Features
  • Click on Failover Cluster Manager
  • Under Management click on Validate a Configuration
  • At the Before You Begin screen click on Next to continue
  • At the Select Servers or a Cluster screen either enter the names of the cluster nodes or browse AD and select them in turn
  • At the Testing Options screen select Run all tests and then click onNext to continue
  • At the Confirmation screen confirm the tests to run and then click onNext to continue
  • The tests will now run on the nodes
  • At the Summary screen confirm that it says that the configuration appears to be suitable for clustering

W2K8 R2 Clustering 1 – Installing The Failover Clustering Feature

W2K8 R2 Clustering 1 – Installing The Failover Clustering Feature

The first step in the creation of a Windows 2008 Failover Cluster is to install the Failover Clustering feature.  In order to install the Failover Clustering feature perform the following steps :-

  • In Server Manager click on Features
  • Click on Add Features
  • When prompted select Failover Clustering and then click on Install

Repeat the steps above on all of the servers which are to be added to the cluster.

W2K8 R2 Clustering – Introduction And Pre-Requisites

W2K8 R2 Clustering – Introduction And Pre-Requisites

Server Clustering has been redesigned in Windows 2008 as the Failover Clustering feature with the aim of simplyfing their deployment, enhancing their security, and increasing stability.

The aim of the following articles in this series are to provide a step by step guide to installing a new Failover Cluster which can be split in to the following parts :-

  1. Adding the Failover Cluster feature
  2. Running the Cluster Validation Tool
  3. Creating the Cluster

Pre-Requisites

In order to create a simple two node failover cluster in Windows 2008 R2 the following pre-requisites must be met :-

  • Two servers (Preferably of the same hardware specification)
  • Either Windows 2008 R2 Enterprise or Datacentre Edition installed on both servers
  • iSCSI or SAN attached disks

In Failover Clustering on Windows 2008 R2 shared data disks has now been dropped and any storage to be used by the cluster must support SCSI-3.

Optional Cluster Heartbeat Card

There is some discussion on the web regarding whether or not a seperate network card is needed for Cluster Heartbeat in Windows 2008 Failover Clustering.

For the environment used for these articles I added an additional network card with no adverse effects.

W2K8 IIS 5 – Creating The IIS Generic Script Application

W2K8 IIS 5 – Creating The IIS Generic Script Application

The final step in configuring IIS on a Windows 2008 R2 Failover Cluster is to createthe Generic Script Application Cluster Service.

To create the Generic Script Application Cluster Service perform the following steps :-

On The Primary Node
  • Open the Failover Cluster Manager console
  • Expand or connect to the Cluster being configured
  • Ensure that the Primary Node has control of the Free Disks underStorage
  • Click on Services and Applications and click on Configure a Service or Application
  • When prompted select Generic Script and click on Next to continue
  • When prompted enter the path to the clusweb-7.vbs script as shown below :-

C:\Windows\System32\Inetsrv\clusweb-7.vbs

  • Click on Next to continue
  • Set the Name to the Name users will use to access the web-site
  • Specify the IP Address you wish to assign to the web-site and then click on Next to continue
  • When prompted select the Free Disk Resource you wish to use for theWeb Site Service and click on Next to continue
  • When prompted to confirm the cofiguration click on Next to continue
  • Once installed click on Finish on the Summary screen

W2K8 IIS 4 – Creating The IIS Cluster Script

W2K8 IIS 4 – Creating The IIS Cluster Script

The next step in configuring IIS 7.0 on a Windows 2008 R2 Failover Cluster is to create the IIS Cluster Script.

The IIS Cluster Script being used for these articles was taken from the Microsoft Knowledge Base article HERE and is attached to the bottom of this page.

To create the IIS Cluster Script perform the following steps :-

On Both Nodes Of The Cluster
  • Navigate to the folder C:\Windows\System32\Inetsrv
  • Copy the attached script to the folder

The attached script will only work with the Default Web Site and theDefault Application Pool.  To configure other Web Sites and Application Pools on the server modify the script as explained in it.

W2K8 IIS 3 – Configuring The Web Site Location

W2K8 IIS 3 – Configuring The Web Site Location

The next step once the IIS 7.0 Shared Configuration and Offline Files have been configured is to Configure the Web Site Location to the Cluster Disk.

To configure the Web Site Location to the Cluster Disk perform the following steps :-

On The Primary Cluster Node
  • Open the Internet Information Services (IIS) Manager console
  • Click on the Server Name and then expand the Sites branch
  • Right Click on the Default Web Site and the select Manage Web Site \ Advanced Settings
  • In the General Section change the Pysical Path to the Cluster Disk Drive Letter
  • Click on OK to continue

W2K8 IIS 2 – Configuring Offline Files For Shared Configuration

W2K8 IIS 2 – Configuring Offline Files For Shared Configuration

The next step in the configuration of IIS on a Failover Cluster is to configure Offline Files access.  To enable Offile Files access perform the following steps :-

On Both Cluster Nodes
  • Open Server Manager and click on Features
  • Click on Add Feature
  • When prompted select the Desktop Experience Feature and click onInstall
  • When prompted Reboot the server
  • Once rebooted open the Manage Offline Files console
  • Click on Enable Offline Files and click on OK
  • In the command prompt execute the following command to configure Offline Files as Read Only :-

REG ADD “HKLM\System\CurrentControlSet\Services\CSC\Parameters” /v ReadOnlyCache /t REG_DWORD /d 1 /f

  • Once the Reg Add command has executed Reboot the server
  • Once rebooted open the File Server which holds the Shared Configuration File Share configured in the previous article
  • Right Click on the Shared Configuration File Share and select Always Available Offline 
  • Open the Manage Offline Files console and click on Open Sync Center
  • Right Click on the Shared Configuration File Share listed in theOffline Files section of the screen and select Schedule for offline files
  • Tick the Shared Configuration File Share listed and then select At A Scheduled Time
  • Set the Date and Time to the desired date and time you wish to start the syncronisation
  • Select Repeat every 1 day(s) and then click on Next to continue
  • Name the syncronisation task and then click on OK

Notes On Using A File Share On The Same Failover Cluster

If the File Share being used to hold the IIS Shared Configuration is configured on the same Failover Cluster as you are clustering IIS then youMust run the steps after the Reg Add command on the Node first which theFile Share Is Not  running on and then fail over the File Share before running through the same steps on the other node.

W2K8 IIS 1 – Configuring IIS Shared Configuration

W2K8 IIS 1 – Configuring IIS Shared Configuration

The next step once the Web Server (IIS) Role has been installed (As detailed here) is to enable the Shared Configuration feature in IIS.

To enable the Shared Configuration feature in IIS perform the following steps :-

On Both Cluster Nodes
  • In the command line execute the following command :-

net stop apphostsvc

  • Once the service has stopped execute the following command :-

sc privs apphostsvc SeChangeNotifyPrivilege/SeTcbPrivilege/SeImpersonatePrivilege

  • Once the command above has completed execute the following command :-

net start apphostsvc

On The Primary Cluster Node
  • Open the Internet Information Services (IIS) Manager console
  • Highlight the server name and then in the middle of the console scroll down to the Management section
  • Click on the Shared Configuration icon
  • Click on Export Configuration in the Actions section
  • When prompted set the Physical Path to a File Share which has been setup to hold the Shared Configuration

N.B. It is recommended that a user is created and granted access to the File Share which is to hold the Shared Configuration

  • Click the Connect As button
  • When prompted enter the Username and Password which has been granted access to the File Share
  • Under the Encryption Keys section enter and confirm an Encryption Keys Password if required
  • Click on OK to export the configuration
  • Click the Enable Shared Configuration tickbox
  • Under Physical Path enter in the File Share which was set up in the export action
  • Enter the Username and Password which were used in the export action
  • Confirm the Password and then click on Apply
  • When prompted enter the Encryption Keys Password set in the export action if used
On The Secondary Cluster Node
  • Open the Internet Information Services (IIS) Manager console
  • Highlight the server name and then in the middle of the console scroll down to the Management section
  • Click on the Shared Configuration icon
  • Click the Enable Shared Configuration tickbox
  • Under Physical Path enter in the File Share which was set up in the export action
  • Enter the Username and Password which were used in the export action
  • Confirm the Password and then click on Apply
  • When prompted enter the Encryption Keys Password set in the export action if used