Forefront Tmg 2010 Enterprise X64 Bit GamesFull failover with two Exchange 2. Servers. Every sysadmin runs into the problem at some time; switching to a newer version of Exchange. Hopefully most of you can migrate to Exchange 2. However sometimes it just makes more sense to setup a new forest with the new version of Exchange, Share. I know many of you are preparing for deploying OS’s using MDT 2010/2012 or try to capture an image of an OS, and most of the times you are successful. However. Use IE for best view: http:// http:// page missing @ microsoft.com. Windows — семейство проприетарных операционных систем корпорации Microsoft, ориентированных на. Point, etc. In my case it makes more sense.It takes a lot more work, but in the process I’m able to update all the servers to Windows Server 2.R2 as well. Having all the servers on the same version of Windows saves me time on management. Netflix Free Trial 3 Months here. I’m getting side- tracked! Forefront Tmg 2010 Enterprise X64 Bit SoftwareLet’s get back to Exchange and the problem at hand: DAG Failover with two Exchange 2. Servers. If you haven’t read up on the functioning/existence of Database Availability Groups (DAG) and CAS failover of Exchange 2. However that’s not the case. The new failover isn’t really build on a two server setup. DAG uses Windows’ Failover Clustering to provide failover on the Mailbox Database level. This work really well, but comes with one huge disadvantage. Failover Clustering is not compatible with Network Load Balancing (NLB) and NLB is used for failover of the Client Access Server (CAS) role. As an alternative one could use a hardware or software load balancer that load balances TCP/IP traffic, but those don’t come cheap, which doesn’t really make sense for the smaller shops. But a solution is near! The solution. After a lot of thinking, discussing and experimenting I came up with a solution. While using the standard Windows Failover Clustering for DAG I can use the Client Access Server Array (Get- Client. Access. Array) without NLB for failover of the CAS role. However instead of having NLB switching the active server I’ll have to script which server is active. My current default answer for scripting and automation applies here: “Let’s Power. Shell it!”. First I tried to change the Rpc. Client. Access. Server directly, but that didn’t have the right effect. A colleague suggested to use the CAS array and just activate the CAS array IP on the active server. This made a lot of sense as NLB does something similar. So let’s go through the steps! Create a CAS array[Powershell]New- Client. Access. Array - Fqdn “name. Site “AD- Site- Name”[/Powershell]Create the A record in DNS for your newly created CAS array and have it point to an available IP that can be used by both Exchange servers. Add the CAS array IP on one of the available network adapters of the active server by using the command[Powershell]netsh in ip add address “Adapter Name” 1. Powershell]You’re not done yet! You can connect an Outlook client to a mailbox. Auto. Discover should now use the CAS array DNS as the connection point. You can check the connection point by right- clicking the Outlook taskbar icon while holding the CTRL button and selecting Connection Status. If you don’t see the right hostname in the server name field, you should check the results of the Auto. Discover. You can use the option Test E- mail Auto. Configuration in the CTRL + right- click menu of Outlook or you can use the website testexchangeconnectivity. Auto. Discover results. You can use this site to test almost any aspect of your Exchange connectivity. You should get something like the following as a result.& lt; ? Autodiscover xmlns="http: //schemas. Response xmlns="http: //schemas. User& gt. & lt; Display. Name& gt; Test& lt; /Display. Name& gt. & lt; …& gt. Deployment. Id& gt; fd. Deployment. Id& gt. User& gt. & lt; Account& gt. Account. Type& gt; email& lt; /Account. Type& gt. & lt; Action& gt; settings& lt; /Action& gt. Protocol& gt. Type& gt; EXCH& lt; /Type& gt. Server& gt; < span style="background- color: silver; "> exchange. Server& gt. & lt; Server. DN& gt; /o=& lt; domain netbios& gt; /ou=Exchange Administrative Group (FYDIBOHF2. SPDLT)/cn=Configuration/cn=Servers/cn=< span style="background- color: silver; "> exchange. Server. DN& gt. Server. Version& gt; 7. F& lt; /Server. Version& gt. & lt; Mdb. DN& gt; /o=& lt; domain netbios& gt; /ou=Exchange Administrative Group (FYDIBOHF2. SPDLT)/cn=Configuration/cn=Servers/cn=< span style="background- color: silver; "> exchange. Microsoft Private MDB& lt; /Mdb. DN& gt. & lt; …& gt; The magic script. Time to implement the Power. Shell script. The script will take care of the CAS failover by activating the IP on one of the Exchange 2. The script uses ping to make sure that the other host is still reachable. I’ve scripted it to check if it can ping the gateway before doing a CAS failover just to make sure that it’s not a network- wide issue. It will also check the database copy status (Get- Database. Copy. Status) to make sure that the mailbox database has also done its failover to the host running the script. There are a couple of variables that you need to set in the script before you can run it properly. There should be enough comments in the script to figure it out, otherwise just leave a comment and I’ll be sure to answer! You might also want to change the text of the e- mail that is being send in case of failover. You can download the script here! There are a couple of settings that you have to edit in the script to customize it for your environment and preferences. I won’t go into this any further as it’s quite well explained in the script itself. If you do have questions please comment on this post and I’ll get back to you as soon as I can.$Limit = "1. Ping fails before failover attempt. Gateway = "& lt; hostname/IP& gt; " # Gateway of this server. Hostname = "& lt; hostname/IP& gt; " # Hostname of the other Exchange Server. Local. Hostname = "& lt; hostname/IP& gt; " # Hostname of the local Exchange server. Mail. To = "Name & lt; email@address. E- mail address where the failover e- mails will be send to. Mail. From = "Name & lt; email@address. E- mail address shown in the from field. IP = "& lt; IP& gt; " # Failover IP address that will be added to the server (IP of Client. Access. Array FQDN)Creating the script account. Create a new domain user and add it to the View- Only Organization Management role using the Exchange Control Panel (ECP). You can access the ECP by going to https: //< servername> /ecp/. This however doesn’t provide it with permissions to allow remote Power. Shell. You can grant the permissions by running Set- User Fail. Mon - Remote. Power. Shell. Enabled $True on the Exchange Management Shell (EMS). Fullfailove. 1. png" />. Also add the domain user to the local administrators group to give it the appropriate permissions to run the task on the right level. Scheduling the script< /h. To have the task start, you can use the task scheduler. The script can be fired as much as you like, as it will only spawn one instance. C: \Scripts\Failover. Mon. ps. 1}"Make sure that, while creating the scheduled task, you select an account with the appropriate permissions on your Exchange organization. I've set my task to trigger (as shown) on startup with a repeat of every 1. If you want to know more on how to schedule a Power. Shell script, please check here. Testing. When the tasks are scheduled and running on both the servers you can try a failover by shutting down the server which currently has the CAS array IP address. You should see it failover with the DAG and you should also see that the IP address is added to the other server. The client will get a notification on Outlook that the administrator made changes to the configuration and that Outlook need to restart to work properly. Failback. Failback is still a manual process if you want to failback to the previous server. To do so, you'll have to make sure that the previous server is configured with the CAS array IP address and that the DAG indicates that it's healthy. Then it's just a matter of manually removing the CAS array IP address on the server that doesn't need it anymore. Then it'll automatically detect that it's switched servers and the above dialog is again presented to the client. You can use the following command to remove the IP address from the server.[Powershell]netsh in ip delete address "Adapter Name" 1. Powershell]Edit: Please note that this setup is not supported by Microsoft. If you still have questions or when it just doesn't work for you, please let me know by commenting on this post. Update: The script is available again through this link.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |