Configuring Your Server Clusters
Applies To: Windows Server 2003 with SP1
After you have installed your Server clusters, most likely you will need to configure it, install additional cluster resources and applications. It is not in the scope of this document to explain how to do these tasks. Please refer to Windows Server 2003 Enterprise Server Online Help/Availability and Scalability/Cluster Servers for more information about configuring Server clusters and cluster applications.
Using Scripts
Using MSClus and/or WMI to Create Resources
Here we provide two examples of how you can further automate tasks during unattended installation of clusters.
Using Cluster Automation Server and Windows Script Host
By adding the following command to the sysprep.inf file, you can create a file share after you have created a cluster or added a node to an existing cluster.
[GuiRunOnce]
Command1 = "%systemdrive%\ClusterInstallFiles\createfs.vbs SV-CLUSTER ClusterGroup SVFileShareResource E:\ SVFileShare"
When this command executes, a file share called SVFileShare will be created on the E: drive on SV-CLUSTER.
You must place a Visual Basic script called createfs.vbs in a directory ClusterInstallFiles on your system drive. Please refer to Appendix B for a sample code for such script.
In a similar fashion, you can automate the creation of various resources such as IP address resources, network name, print shares, generic resources etc. For more information about using Cluster Automation Server to create Cluster resources, refer to the Cluster Automation Server Reference in the Windows Platform SDK.
Using the Command Line
See Appendix C for a sample batch file that can be used to create a File Share resource with cluster.exe. Instruct Mini-Setup to run this batch file (here called createfs.bat) after Mini-Setup finishes by using the GuiRunOnce entry:
[GuiRunOnce]
Command2=%systemdrive%\scripts\createfs.bat