jensmg
asked on
Creating a Share on a Windows 2008 R2 File Cluster
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,g rant,c:sec urity
cluster . res "ClusterFS" /priv ShareSubDirs=1
cluster . res "ClusterFS" /AddDep:"Datenträger X:"
cluster . res "ClusterFS" /AddDep:"Netzwerkname"
cluster . res "ClusterFS" /On
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,g
cluster . res "ClusterFS" /priv ShareSubDirs=1
cluster . res "ClusterFS" /AddDep:"Datenträger X:"
cluster . res "ClusterFS" /AddDep:"Netzwerkname"
cluster . res "ClusterFS" /On
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.