Creation of multiple cluster resources via batch file
by SmVmZiBN » Sat, 15 Jul 2006 00:35:02 GMT
I wanted to get some direction regarding how to create multiple cluster
resources via a batch or command file. We are getting ready to do a batch of
archive directories for our user population. Probably about 800+ shares will
be created and placed on our cluster configuration. What is the best way to
create the cluster resource for each of those shares? They will be all
placed in one folder called "archive". We are running a Windows 2003 R2 SP1
two node cluster with all data on fiber attached san.
Re: Creation of multiple cluster resources via batch file
by Russ Kaufmann [MVP] » Sat, 15 Jul 2006 00:40:51 GMT
Use cluster.exe.
--
Russ Kaufmann
MVP - Windows Server - Clustering
ClusterHelp.com, a Microsoft Certified Gold Partner
Web http://www.**--****.com/
Blog http://www.**--****.com/
Re: Creation of multiple cluster resources via batch file
by SmVmZiBN » Sat, 15 Jul 2006 02:35:02 GMT
can you point me to one cleat example of creating one file share resource
using cluster.exe?
Re: Creation of multiple cluster resources via batch file
by Russ Kaufmann [MVP] » Sat, 15 Jul 2006 02:44:18 GMT
Sure
http://www.**--****.com/
--
Russ Kaufmann
MVP - Windows Server - Clustering
ClusterHelp.com, a Microsoft Certified Gold Partner
Web http://www.**--****.com/
Blog http://www.**--****.com/
Re: Creation of multiple cluster resources via batch file
by SmVmZiBN » Sat, 15 Jul 2006 02:50:02 GMT
thanks, will look into it
Re: Creation of multiple cluster resources via batch file
by SmVmZiBN » Sat, 15 Jul 2006 04:14:01 GMT
Russ, I am a little confused by the syntax or some pieces of it.
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 do the first two lines mean or why are they at the beginning.
x:
MD ClusterFS
Is the MD ClusterFS creating an actual folder called ClusterFS on drive X
whatever that may be? In my previous step I will be creating via a perl
script over 800+ user directories shared as the userid$ all located in a
directory called Archive on a new partition on our SAN. My next question is
after I get this syntax figured out for one resource how do I repeat it as
many times as needed replacing the necessary resource name with the next one
in the list.
Re: Creation of multiple cluster resources via batch file
by SmVmZiBN » Sat, 15 Jul 2006 21:46:01 GMT
Russ, am I making this too hard? Can I just create the one cluster resource
"Archive" which point to the Archive directory and then go into the advanced
properties of Archive and tell it to share the directories below/within it
and solve my problem instead of creating a cluster resource for every folder
in that directory? If that will work then I will take that route and reduce
my stress level for the day.
Re: Creation of multiple cluster resources via batch file
by Rodney R. Fournier [MVP] » Sun, 16 Jul 2006 04:28:48 GMT
X: changes to the X: drive.
MD = Make Directory. So MD ClusterFS created the ClusterFS folder ;)
Cheers,
Rodney R. Fournier
MVP - Windows Server - Clustering
http://www.**--****.com/ - Clustering Website
http://www.**--****.com/
http://www.**--****.com/ - Cluster Training
ClusterHelp.com is a Microsoft Certified Gold Partner
Re: Creation of multiple cluster resources via batch file
by SmVmZiBN » Sun, 16 Jul 2006 04:44:02 GMT
Thanks for the reply. can you answer this:
Can I just create the one cluster resource
"Archive" which point to the Archive directory and then go into the advanced
properties of Archive and tell it to share the directories below/within it
and solve my problem instead of creating a cluster resource for every folder
in that directory? If that will work then I will take that route and reduce
my stress level for the day.
Re: Creation of multiple cluster resources via batch file
by Rodney R. Fournier [MVP] » Tue, 18 Jul 2006 23:36:37 GMT
es, you can do it if I understand you correctly. You have a test cluster
right? Create the sub-directory file share on it.
Cheers,
Rodney R. Fournier
MVP - Windows Server - Clustering
http://www.nw-america.com - Clustering Website
http://msmvps.com/clustering - Blog
http://www.clusterhelp.com - Cluster Training
ClusterHelp.com is a Microsoft Certified Gold Partner
"Jeff M" < XXXX@XXXXX.COM > wrote in message
news: XXXX@XXXXX.COM ...
Similar Threads:
1.Multiple File Conversions via Batch File
Hello,
I am attempting to convert multiple .wav files to the .flac format via a batch script. I know that this can be done with numerous software implementations automatically for me; however, i am interested to understand how to create a script to perform my purpose and since this function is useful, what the hey! I am rather new to batch files but would appreciate any help. TIA
My process thus far has been the following:
I edited the file type .wav via Tools>Folder Options>File Types I added an option for "Encode to Flac" and pointed this at my "flac-convert.bat %1"
Essentially this works fine; The script runs and encodes one file with ease. At this point my script was:
@ECHO OFF
C:\"Program Files\flac\bin\flac.exe -8 %1
However, when I highlighted multiple .wav files in Explorer and click my "Encode" option multiple instances of the batch file are run. I attempted to solve this with the following code:
@ECHO OFF
:LOOP
FOR %%1 IN (.) DO C:\"Program Files"\flac\bin\flac.exe -8 %%1
SHIFT
IF "%1" == "" GOTO END
GOTO LOOP
:END
When I ran this code I hit another stumbling block. The code was parsing the %1 differently than it had in my original instance where flac was run directly. The filenames contained are something like My_alto-sax_solo.wav When I ran the first script this was parsed fine and the wav file was encoded; but, when the flac.exe was run from within the FOR loop the input file is claimed to be invalid.
So my question is two part:
1)Understanding the parsing of text within a Batch File:
How does passing a command within a FOR alter the way arguments are passed to it?
and
2) Is it possible to only run one instance of the batch file via some setting within Windows?
2.calling multiple batch files from within a batch file
I have two batch files - hello.cmd and hello2.cmd.
Here's the contents of hello.cmd:
@echo hello, world!
Here's the contents of hello2.cmd:
@hello
@hello
Why is "hello, world!" only output once?
3.Edit a TXT file via batch file...
I need to be able to print out an output file which will contain a user id and pw... I need an automated process to edit these out entirely via the command prompt / batch file but can't seem to figure out how.
I can easily search for the string.. FINDSTR "rootadmin" or FIND "rootadmin" but I can't delete any strings in the text file. Is it possible to do what I need to do
Thanks
Mike
4.ADM files - add/remove templates - via batch file?
Scenario: I have 20 Windows XP computers that require one policy
changed. This is a Local Computer Policy administered through
System.adm.
Strategy: I would like to write a script or batch file to manage the
template update.
My Understanding: I know that Group Policy is manged through Template
files. I would like to create a System.adm file on a good computer and
copy it to the remaining computers using a script.
My Problem: How do I skip the process of "add/remove templates"? My
objective is to add my new System.adm via a script. I do not want to
attend to the Group Policy management console on every local computer.
For the purposes of this question the computers are not presently
joined to the domain, however, once the computers are secure they will
be joined to the domain.
-Tom
5.Cluster Service Account Fails during Cluster Creation
I'm trying to create a cluster on windows 2k3 enterprise
member servers. The cluster will eventually host an Exchange EVS. The
projected cluster passes the feasibility check in the wizard. After that
when I attempt to create the cluster I get an account error "the account
name is invalid or does not exist, or the password is invalid for the
account name specified". The account is a domain account svc_cluster. It
is a member of domain admins and in the local security policy of the
cluster server it has the Logon as a Service right.
What's wrong with the account?
6. Challenge - Trying execute files from CDROM via batch file
7. File creation error - insufficient system resources
8. File creation error - Insufficient system resources exist to