Re: cluster scripting suggestions?



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 you
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
rights.
<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





.



Relevant Pages

  • Re: Changing Node & Virtual IPs for Print Server Cluster
    ... Take all IP address resources offline. ... After all that has been accomplished, the cluster will detect a new ... IP addresses for all virtual servers including the cluster itself. ...
    (microsoft.public.windows.server.clustering)
  • Re: Help Again! Cluster Resources Moving Takes Ages & unreliable
    ... seconds for their resources to move over. ... several stay on offline pending - mainly the groups stay in this state. ... Also, when attempting to go online, they say online pending for ages - 3-4 ... 5 - 7 minutes to move a cluster group is not really an excessive amount ...
    (microsoft.public.windows.server.clustering)
  • Re: cluster scripting suggestions?
    ... our replication strategy, and it's impact on our live systems at the ... and it's the only system that will have their resources ... All other clustered systems will be up, ... Begin data replication. ...
    (microsoft.public.windows.server.clustering)
  • Re: Cluster problems, how to recover?
    ... did the resources go to offline by themselves? ... access to the cluster and I know for sure that I did not bring them offline. ... volume fails over OK to another node if I reboot one node, ...
    (microsoft.public.windows.server.clustering)
  • Re: cluster scripting suggestions?
    ... cluster to house all of its data. ... take cluster group "x" offline. ... Begin data replication. ... I've also determined how to take the desired resources offline via the ...
    (microsoft.public.windows.server.clustering)

Loading