Creation of multiple cluster resources via batch file

WINDOWS SERVER

    Next

  • 1. cluster unaware custom application
    Hello NG, I am collecting information on clustering and what it can do for me. Background is, that we have a "cluster unaware" application for which we need a hi availabillity. I red "BDMTDM.doc" which gave me an rough overlook an what Windows Server 2003 serverclustering can do. But I still have a few more question on the subject. I would like to bring to my mind what happesn on a node failure to my application? Is it that a other node takes over with out any losses at all (process memory)? My application is a production control, comunicating with (PLC-) clients via UDP datagrams and there fore has a "production-status" in its memory. How can (if at all) be a other node able to have the same application runing with the same "production-status" ? Any information, hints and comments to these questions are very appreciated. Regards Rainer Queck
  • 2. I did a bad thing!!!
    I messed up my installation of my cluster. I "evicted" the last node in the cluster and now I can't do anything with the cluster I created. How can I delete the cluster (that doesn't have any nodes in it) and start over? I'm running Win2003 Ent R2. Thanks!
  • 3. NLB of IIS servers, same clients but difference stress
    Hi, my web servers are in a NLB cluster with affinity set to "single" to keep user sessions. Recently with increasing number of concurrent users (some 100 users in total), I found although each of the two servers has about 50 users connected, one particular server does have more loads than another (3 times bigger log file size and more CPU/memory resources), and the application suckes with lots of error. Does anyone has ideas? How can I help the overloaded server, while they have the same number of users? say allow fewer users on that server. Thanks
  • 4. Mixed workload cluster support
    Hi Mixed workload clusters are often wanted by customers in order to save on hardware by sharing a passive node among several active nodes running different workloads. One example could be a 4 node SQL 2000, SQL 2005 and Exchange 2003 cluster configuration. Besides the obvious issues such as potential memory conflicts in case of a multi node failover and more complexity both in relation to failover scenarioes and change management are there any other issues to consider when designing such a solution ? Are there any mixed workload cluster configurations that are not supported ?
  • 5. Add Disk to Windows 2000 Cluster
    This is a little complicated, but here is the question. We have a Windows 2000 cluster composed of two HP DL760 servers and an HP EVA3000 (virtual storage array). I have created a 15GB virtual disk on the EVA and would now like to make the disk available to the cluster as a shared cluster disk. From the EVA side of things we use software called Command View EVA that allows you to make the virtual disk available to a host server by "Present"ing it to the appropriate nodes. On the Windows side of things I am planning to use the procedure outlined by KB 175278 EXCEPT steps 2-4 since it's not exactly the same situation. Instead, at step 2 (since the virtual disk is already on the EVA ), I think that all I have to do is power up node 1 and Present the disk to that node. Then I would simply follow the procedure until step 9, at which point I would Present the disk to the second node. I've done this before but it's been a few years so the details are fuzzy, and the main thing I'm concerned about is making sure that when Windows writes the disk signature and assigns the drive letter that everything matches up on both nodes. Can anyone confirm what I've written as being correct or can you correct what is wrong with my approach?

Creation of multiple cluster resources via batch file

Postby 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

Postby 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

Postby 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

Postby 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

Postby SmVmZiBN » Sat, 15 Jul 2006 02:50:02 GMT

thanks, will look into it









Re: Creation of multiple cluster resources via batch file

Postby 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

Postby 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

Postby 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

Postby 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

Postby 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



Return to WINDOWS SERVER

 

Who is online

Users browsing this forum: No registered users and 56 guest