Re: cluster scripting suggestions?
- From: "Edwin vMierlo" <EdwinvMierlo@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 22 Mar 2007 09:45:51 -0000
Yes, agree,
to add:
involve your storage vendor, they might have methods to do this.
contact your storgae vendor, and discuss your requirements.
rgds,
Edwin.
"Ryan Sokolowski [MVP]" <ryan@xxxxxxxxxxxxxxxxx> wrote in message
news:O6FVi7BbHHA.1400@xxxxxxxxxxxxxxxxxxxxxxx
Have you considered using a method of replication that doesn't require yourights.
to offline your storage?
--
Ryan Sokolowski
MVP - Windows Server - Clustering
MCSE, CCNA, CCDA, BCFP
This posting is provided "AS IS" with no warranties, and confers no
<ahill74@xxxxxxxxx> wrote in message
news:1174497836.762155.73740@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello all,
I was hoping someone may have some suggestions for my scenario. My
company has 2 SAN environments, one in production, and another in our
disaster recovery site. The servers are identical at both ends. At a
specific time of day, data replicates from the production SAN to the
disastery recover site SAN. Our MS Sharepoint system uses a 2 node
cluster to house all of its data. We want to avoid any data corruption
by ensuring the cluster disk resources in the disastery recovery site
are offline when data replication begins.
Basically, what I'd like to achieve is to script some minor cluster
logic before we kick off replication. This would all be written into a
batch file, or .vbs. I've read through all the command line
documentation, and haven't found out all that I need to do, and
haven't had any luck googling the pants out of it either.
Here's the basic goal, a Scheduled task runs batch file which does the
following:
1. Is cluster group "x" on cluster "xyz" online?
2. If yes, take cluster group "x" offline. Begin data replication.
3. If no, begin replication.
I'm guessing I can achieve the same goal by omitting the 'If yes/no
then do this' portion, but I think it would probably be best practice
to verify that the cluster resource is indeed online before attempting
to take it offline.
I've determined that I can check cluster status:
C:\>cluster ClusterName group "ClusterGroupName" /stat
or cluster properties
C:\>cluster ClusterName group "ClusterGroupName" /prop
and look for a 0 or 1 associated with the "PersistentState" attribute
I've also determined how to take the desired resources offline via the
command line. What I don't know is how to pipe the output of the /stat
or /prop switches into a usable variable, and how to use that variable
to determine the next step for the batch file to take.
Any suggestions? Or RTFM resources to point me to?
Thanks,
Ajh
.
- References:
- cluster scripting suggestions?
- From: ahill74@xxxxxxxxx
- Re: cluster scripting suggestions?
- From: Ryan Sokolowski [MVP]
- cluster scripting suggestions?
- Prev by Date: Re: MSDTC conflicting articles
- Next by Date: Re: server clustering minimum requirements
- Previous by thread: Re: cluster scripting suggestions?
- Next by thread: Re: cluster scripting suggestions?
- Index(es):
Relevant Pages
|
Loading