Export (0) Print
Expand All

Appendix C (Server Clusters: Remote Setup, Unattended Installations and Image-based Installations)

Updated: January 1, 2003

Applies To: Windows Server 2003 with SP1

This is a sample batch file that can be used to create a File Share resource with cluster.exe. We assume that there is a group that already contains the Network Name, and Physical Disk resources. Below you will see an explanation of each line. The example below assumes that you have a group called "Disk Group 1" with a "Disk X:".

MD ClusterFS 
cluster. res "ClusterFS" /create /group:"Disk Group 1" /type:"File Share" 
cluster . res "ClusterFS" /priv path="X:\ClusterFS" 
cluster . res "ClusterFS" /priv Sharename=ClusFileShare 
cluster . res "ClusterFS" /priv Remark="This is a File Share" 
cluster . res "ClusterFS" /prop Description="This is a Clustered Share" 
cluster . res "ClusterFS" /priv security=Domain\User,grant,c:security 
cluster . res "ClusterFS" /priv ShareSubDirs=1 
cluster . res "ClusterFS" /AddDep:"Disk X:" 
cluster . res "ClusterFS" /AddDep:"Network Name" 
cluster . res "ClusterFS" /On

What each line means:

cluster . res "ClusterFS" /Create /Group:"Disk Group 1" /Type:"File Share"

This creates the File Share resource in the cluster group named "Disk Group 1".

You do not want to put anything into, or out of the default Cluster Group.

cluster . res "ClusterFS" /priv Path="X:\ClusterFS"

This sets the local path to the file share to X:\ClusterFS. Verify that the path exists, and that it is accessible.

cluster . res "ClusterFS" /priv ShareName=ClusFileShare

This sets the share name for the resource, and is the name that clients will use to connect to.

cluster . res "ClusterFS" /priv Remark="This is a File Share"

This sets the remarks for the file share. The remark is what the client will see when browsing the virtual server.

cluster . res "ClusterFS" /prop Description="This is a Clustered Share"

This gives the resource a description in Cluster Administrator. This name is only for identification in CluAdmin.

cluster . res "ClusterFS" /priv security=Domain\User,grant,c:security

This gives the user account "User" from domain "Domain" change share level rights to the File Share resource.

Access types are grant, deny, set, or revoke. An access mask is required for the types grant, deny, or set. Access masks are "R" for read, "C" for change, and "F" for full.

This can also be used to grant multiple users rights at the same time, here is the syntax for the security switch:


cluster . res "ClusterFS" /priv ShareSubDirs=1

This sets the file share to dynamic (which translates to "share all subdirectories"). You will need to omit this line if you are creating a standard file share.

cluster . res "ClusterFS" /AddDep:"Disk X:"

This makes the File Share resource dependent on the Physical Disk resource for disk X:\, on which the file share resides.

cluster . res "ClusterFS" /AddDep:"Network Name"

This makes the File Share resource dependent on a Network Name resource. This needs to be an already existing Network Name resource.

cluster . res "ClusterFS" /On

This brings the newly created File Share resource online.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft