Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Creating a Share on a Windows 2008 R2 File Cluster

Posted on 2011-02-19
1
Medium Priority
?
2,110 Views
Last Modified: 2012-05-11
We have a Windows 2008 R2 Cluster and we want to move a Lun right now on it from a Windows 2003 Cluster we do not touch the ntfs settings and a File Server Cluster Application is allready running.

My Question is how can i create the shares with a batch if the LUN is attached to the 2008R2 Cluster.

If found the script here but i dont get it.

We have a two node cluster. The nodes a called Node1 and node 2. We allready have a File Server and the prefered owner is node1 and the name is fileserver1.

We have a lot of shares on the fileserver1 we have created them on the gui.

But how can I create shares with a script if the new LUN is attached.

MD ClusterFS
cluster. res "ClusterFS" /create /group:"Datenträgergruppe 1" /type:"Dateifreigabe"
cluster . res "ClusterFS" /priv path="X:\ClusterFS"
cluster . res "ClusterFS" /priv Sharename=ClusFileShare
cluster . res "ClusterFS" /priv Remark="Dies ist eine Dateifreigabe"
cluster . res "ClusterFS" /prop Description="Dies ist eine Clusterfreigabe"
cluster . res "ClusterFS" /priv security=Domäne\Benutzer,grant,c:security
cluster . res "ClusterFS" /priv ShareSubDirs=1
cluster . res "ClusterFS" /AddDep:"Datenträger X:"
cluster . res "ClusterFS" /AddDep:"Netzwerkname"
cluster . res "ClusterFS" /On
0
Comment
Question by:jensmg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 22

Accepted Solution

by:
65td earned 2000 total points
ID: 34933645
If the 2003 cluster is still operational one needs to use cluster.exe to obtain the group, resource and depenancy information to create the script (batch).

You may have already seen this doc:
http://support.microsoft.com/kb/284838
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A procedure for exporting installed hotfix details of remote computers using powershell
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question