Category Archives: IIS 7.0

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

W2K8 IIS – Introduction And Pre-Requisites

W2K8 IIS – Introduction And Pre-Requisites

This set of articles explains how to cluster Internet Information Services (IIS) 7.0 on a Windows 2008 R2 Failover Cluster.

To configure IIS 7.0 on a Windows 2008 R2 Failover Cluster you have to use a custom script to enable the high availability and failover capability.  For the purposes of this article we shall be using a VB script from the Microsoft Knowledge Base article here which enables clustering capability to the Default Web Site and Default Application Pool.

The installation can be broken down in to the following steps :-

  1. Adding The Web Services (IIS) Role (Detailed here)
  2. Configure the IIS Shared Configuration
  3. Configure Offline Files for Shared Configuration
  4. Configure the Web Site location
  5. Create the IIS Cluster Script
  6. Create the IIS Generic Script Application

Pre-Requisites

In order to configure IIS 7.0 on a Windows 2008 R2 Failover Cluster the following pre-requisites must be met :-

  • A configured Windows 2008 R2 Failover Cluster
  • A free Cluster Disk resource in the cluster
  • A free IP Address for the clustered web-site

W2K8 R2 – Adding The Web Server (IIS) Role

W2K8 R2 – Adding The Web Server (IIS) Role

The first step in configuring IIS 7.0 on a Windows 2008 R2 Failover Cluster is to install the Web Server (IIS) Role on both nodes.

To install the Web Server (IIS) Role on both nodes perform the following steps :-

  • Open the Server Manager Console
  • Click on Roles and then click on Add Roles
  • At the Before You Begin screen click on Next to continue
  • From the list of available roles select Web Server (IIS) and then click on Next
  • Click Next to continue past the Introduction to Web Server (IIS)
  • At the Role Services screen select any additional Role Service you require
  • Click on Next to continue
  • When prompted to confirm your installation click on Install
  • The installation is performed and then at the Results screen click on Finish