Microsoft KB Archive/284838

= How to Create a Server Cluster File Share with Cluster.exe =

Article ID: 284838

Article Last Modified on 3/1/2007

-

APPLIES TO


 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Datacenter Server

-



This article was previously published under Q284838





SUMMARY
This article describes how to create a server cluster file share with the Cluster.exe tool.



MORE INFORMATION
The way in which you create file shares on a server cluster differs from the way in which you create them on a stand-alone server. For clustering purposes, you do not create the file shares through Windows Explorer. Instead, you create a &quot;File Share&quot; resource in Cluster Administrator. This file share resouce must depend on a Physical Disk, and Network Name resource. This establishes the start order and verifies that the NetBIOS and disk that the folder resides on are available before you bring the resource online. Cluster.exe is a tool useful for automation, or when you script a large number of resource creations.

You may find it easier to create file shares by using Cluster Administrator. For additional information, click the article number about how to use it below to view the article about how to use it in the Microsoft Knowledge Base:

224967 How to Create File Shares on a Cluster

If you are creating multiple File Share resources, you may want to use Dynamic File Shares as a better alternative (such as with home directories). For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

256926 Implementing Home Folders on a Server Cluster

Here is a sample of a batch files that you could use to create a File Share resource in 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 &quot;Disk Group 1&quot; with a &quot;Disk X:&quot;.

X:

MD ClusterFS

cluster. res &quot;ClusterFS&quot; /create /group:&quot;Disk Group 1&quot; /type:&quot;File Share&quot;

cluster. res &quot;ClusterFS&quot; /priv path=&quot;X:\ClusterFS&quot;

cluster. res &quot;ClusterFS&quot; /priv Sharename=ClusFileShare

cluster. res &quot;ClusterFS&quot; /priv Remark=&quot;This is a File Share&quot;

cluster. res &quot;ClusterFS&quot; /prop Description=&quot;This is a Clustered Share&quot;

cluster. res &quot;ClusterFS&quot; /priv security=Domain\User,grant,c:security

cluster. res &quot;ClusterFS&quot; /priv ShareSubDirs=1

cluster. res &quot;ClusterFS&quot; /AddDep:&quot;Disk X:&quot;

cluster. res &quot;ClusterFS&quot; /AddDep:&quot;Network Name&quot;

cluster. res &quot;ClusterFS&quot; /On

Details
 '''cluster. res &quot;ClusterFS&quot; /Create /Group:&quot;Disk Group 1&quot; /Type:&quot;File Share&quot;'''

This creates the File Share resource in the cluster group named &quot;Disk Group 1&quot;. Note: You do not want to put anything into, or out of the default Cluster Group. '''cluster. res &quot;ClusterFS&quot; /priv Path=&quot;X:\ClusterFS&quot;'''

This sets the local path to the file share to X:\ClusterFS. Verify that the path exists, and that it is accessible. '''cluster. res &quot;ClusterFS&quot; /priv ShareName=ClusFileShare'''

This sets the share name for the resource, and is the name that clients will use to connect to. '''cluster. res &quot;ClusterFS&quot; /priv Remark=&quot;This is a File Share&quot;'''

This sets the remarks for the file share. The remark is what the client will see when browsing the virtual server. '''cluster. res &quot;ClusterFS&quot; /prop Description=&quot;This is a Clustered Share&quot;'''

This gives the resource a description in Cluster Administrator. This name is only for identification in CluAdmin. '''cluster. res &quot;ClusterFS&quot; /priv security=Domain\User,grant,c:security'''

This gives the user account &quot;User&quot; from domain &quot;Domain&quot; 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 &quot;R&quot; for read, &quot;C&quot; for change, and &quot;F&quot; for full.

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

Security=Domain\User1,grant,C,Domain\User2,revoke,everyone,set,F:security

</li> '''cluster. res &quot;ClusterFS&quot; /priv ShareSubDirs=1'''

This sets the file share to dynamic (which translates to &quot;share all subdirectories&quot;). You will need to omit this line if you are creating a standard file share.</li> '''cluster. res &quot;ClusterFS&quot; /AddDep:&quot;Disk X:&quot;'''

This makes the File Share resource dependent on the Physical Disk resource for disk X:\, on which the file share resides.</li> '''cluster. res &quot;ClusterFS&quot; /AddDep:&quot;Network Name&quot;'''

This makes the File Share resource dependent on a Network Name resource. This needs to be an already existing Network Name resource.</li> '''cluster. res &quot;ClusterFS&quot; /On'''

This brings the newly created File Share resource online.</li></ul>

Other Cluster.exe commands can be found by going into the Windows 2000 Command Reference help file, or by typing cluster.exe /? from a command prompt.

Additional query words: mscs

Keywords: kbclustering kbinfo KB284838

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.