Subscribe to Windows IT Pro
June 01, 1999 12:00 AM

Build a High-Availability Web Site with MSCS and IIS 4.0

Windows IT Pro
InstantDoc ID #5371
Rating: (0)

Finally, set the domain-based Windows Access Method account you previously created. This account is also known as the WWW Service account. IIS 4.0 doesn't use the Registry for most of its configuration settings; instead, it uses the IIS Metabase. This metabase doesn't have a GUI; therefore, you must use Windows Scripting Host (WSH) to manipulate it. By default, IIS doesn't associate WSH with this metabase, so you need to use Cscript to manually create an association with WSH.

To make this association and set the Windows Access Method account, go to the \%systemroot%\system32\inetsrv directory and type

adsutil enum W3SVC

This command provides the Cscript association. After the command finishes, a message pops up to tell you that the Cscript registration was successful. From the \%systemroot%\system32\inetsrv directory, type the previous command again, or press the up arrow to recall the command and press Enter. The IIS systems' configuration parameters will scroll past, so you know the Cscript association was successful and you're ready to set the WWW Service account. To set the account, go to the \%systemroot%\system32\inetsrv directory and type

adsutil set W3SVC/WAMUserName <domain_name>\<IWAM_name>

In this command, domain_name is the domain in which your service account exists and IWAM_name is the name of your service account. Next, set the WWW Service account password from the \%systemroot%\system32\inetsrv directory by typing

adsutil set W3SVC/WAMUserPass <IWAM_Password>

in which IWAM_Password is your WWW service account's password.

Creating a Clustered Web Site
From NT Explorer or a command prompt, create a \www root directory in one of your IIS cluster resource group's shared drives. In the IIS MMC, select the option under node A to create a new Web site. Set your new Web site's IP address to an IP address in your IIS cluster resource group, and assign the newly created directory on the shared drive as your site's home directory.

Next, in Cluster Administrator, right-click the IIS cluster resource group and select New Resource from the drop-down menu. Name the resource (e.g., My First Web Site), and select IIS Server Instance as the resource type. Click Continue, and the system prompts you for resource dependencies. Select the IIS cluster resource group's IP address and the shared drive on which your Web site will exist. Although the IIS Server Instance isn't dependent on the shared disk resource, you set the shared drive as a dependency so users can't access your Web site if the shared drive is down. The system then asks whether the resource is a Web site or an FTP site. Select Web site, and identify the directory that you previously created.

You can return to the IIS MMC and remove any nonclustered Web sites except for the administrative site. After configuration, MSCS controls clustered Web services, so if you need to start or stop your IIS site, use the Cluster Administrator tool.

After you finish configuring node A, you've created a clustered Web site. Luckily, you don't need to repeat this process on node B to provide successful failover services. Instead, go to the \%systemroot%\system32\inetsrv directory on node A, and type

iissync <node B>

in which node B is the server's name. This command synchronizes all configuration information between node A and node B. After you complete this step, you can return to the Cluster Administrator interface, bring your Web site online, and take advantage of its increased availability.

To create additional Web or FTP sites on your cluster, repeat the steps to create a clustered Web site. You can also create resource groups for each additional Web site, or you can maintain all your Web sites in the same resource group; however, if you plan to manually load balance processing between nodes, create a resource group for each Web site. You don't need to recreate, modify, or move the distributed transaction coordinator (DTC) resource in your initial IIS cluster resource group.

You can manage your clustered Web site from your IIS MMC by adding your IIS site's virtual server name to your IIS MMC. If you use this method, you don't need to use the Iissync utility to synchronize Web site information.

Sweet Dreams
After you create an MSCS system that provides high-availability IIS 4.0 service, you can configure your Web site the same way you would configure it in a nonclustered environment. Users connect to your Web site via the network or IP address that exists in your IIS cluster resource group, rather than the cluster node name or physical node names. In addition, if your Web-based application requires middleware or client software, install the software on both cluster nodes and configure them in the same way. Then, if a failover occurs, your application will still run smoothly.

Related Content:

ARTICLE TOOLS

Comments
  • comptec
    8 years ago
    May 16, 2004

    I am trying to install Internet Information Services 5.0 on my computer but I never installed it with XP before. Can anyone help?

  • Sander van Beek
    12 years ago
    Jul 25, 2000

    Hi,

    You wrote that clustered Web sites can be managed from the IIS MMC by adding the IIS site's virtual server name to your IIS MMC and that this means that the IISSYNC utility isn't needed anymore.
    This is not entirely right. If you make changes in the MMC, regardless wich name you use, it only changes the metabase of the node that the IIS resource group is runing on. To publish the changes to the other node you must use the IISSYNC util. Therefor I recommend to place all IIS resources (of the cluster) on one node, make the changes, publish the changes with the IISSYNC utility to the other node and move the resource groups to the nodes they belong to.
    P.S. MetaEdit 2.1 (Metabase editing tool) can also sync (backupo and restore) the metabases of IIS server, regardless if they are on a cluster or not. I haven't done I doe, I only read it.

    With kind regards,

  • Kevin Briody
    13 years ago
    Oct 04, 1999

    In "Build a High-Availability Web Site with MSCS and IIS 4.0" (June), Jim Plas describes installation and configuration tips for deploying Microsoft Internet Information Server (IIS) 4.0 in a cluster using Microsoft Cluster Server (MSCS). The article contains several statements that could cause significant deployment problems.


    First, the author mentions that he's uncertain whether clustered IIS needs Microsoft Internet Explorer (IE) to run or just to install IIS's application installation engine. IE is absolutely necessary for clustered or nonclustered IIS 4.0 installations. IE provides the Protected Storage service (among other things, such as the Windows scripting environment), which provides IIS with certificate management and access to protected parts of the Registry.


    Second, the author states, "Although no negative effects occur if you install the Option Pack components on a shared drive, you should install the components in their default locations ..." However, installing the components to the shared drive will cause negative effects during Windows NT Option Pack setup and confusion for the person running the setup on the second node. The person who runs setup on the second node will be asked where to place the components. The shared drive will be unavailable on the second node because the first node of the cluster owns the shared drive and the first node has locked the shared drive for exclusive use. The person running the setup on the second node must place the components locally on the second node (the components are on the shared drive for the first node). This scenario results in a different IIS configuration on each node of the cluster. Microsoft doesn't recommend that you configure IIS this way. If the first node owns the shared drive, the default and administration Web sites would be available on only the first node. If for any reason the first node didn't own the shared drive, things such as the Administration Web site and the IIS online Help would not be available to the second drive.


    Third, the author states that when you create a new IIS instance, you need to select Web Site and identify the directory that you previously created. Instead, you need to select Web Site and identify the Web site that you previously created. You don't specify a physical directory in this wizard.


    Fourth, the author has users run Iissync next. But at this stage of his instructions (without configuring Micro-
    soft Transaction Server--­MTS--­for replication), doing so would be unsuccessful. First, you must configure MTS for replication via a special user interface (UI) that the MTS snap-in provides for the Microsoft Management Console (MMC). The "Configuring MTS and IIS for Replication" section of the Microsoft article "How to Install the Windows NT Option Pack on Microsoft Cluster Server" (http://
    support.microsoft.com/support/kb/articles/q191/1/38.asp) outlines this process. If you don't configure MTS, Iissync won't run successfully.


    Finally, the author mentions that to avoid using Iissync, you can add your virtual server name to the IIS MMC and manage your Web site. The author implies that all synchronization will be taken care of for you. The only way to ensure that the Web sites are synchronized is to run Iissync from the command line or to manually configure both nodes. Connecting to the virtual server name via the MMC works only if you've configured MTS for remote administration, and makes changes to only the metabase or Registry of whichever node (not both) that currently owns the virtual server resource.

    --­Kevin Briody

    Product Manager, Windows Clustering

    Microsoft

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.