Solved

CAS Array Fail over Powershell Script for switching when DAG moves to new Server

Posted on 2013-06-04
3
412 Views
Last Modified: 2014-03-10
All,

What i am trying to accomplish:

I have 3 exchange 2010 servers setup in a DAG with Hub, Transport, and CAS installed
Each one is in their own site.
I created a CAS array group in each site casarray1.domain.local, casarray2.domain.local, casarray3.domain.local

Each one is set up in DNS with their respective IP.

When a server goes offline the DAG switches to the next server in line, but the casarray needs to be manually switched in order for mail to route outbound correctly.  Is there a script or way to automate so when a server fails everything gets switched for the CAS array and cluster group?  I dont mind a manual fail back just need an automatic fail over. Any other ideas or options would be great.
0
Comment
Question by:AFRITSupport
  • 2
3 Comments
 
LVL 63

Accepted Solution

by:
Simon Butler (Sembee) earned 500 total points
ID: 39220604
That is what a load balancer does.
You can use an open source one if you wish - such as Zen.

Another option would be to write a script that does a ping test of the CAS role holder, if that fails then use the command line to change the DNS record.

The CAS Array address should be used for MAPI traffic only. Mail flow in general shouldn't be using the CAS Array address.

Simon.
0
 

Author Comment

by:AFRITSupport
ID: 39227134
i like your script idea, do you have any guidance for that?
0
 
LVL 63

Expert Comment

by:Simon Butler (Sembee)
ID: 39228460
The only script sample I have I cannot share as it belongs to a client. Sorry.

Simon.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to install and use the NTBackup utility that comes with Windows Server.
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
how to add IIS SMTP to handle application/Scanner relays into office 365.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question