Please let us know if this is going to cross site DAG or same site DAG.
As you mentioned you have installed 4 roles in both the exchange server. When you put Witness file on domain controller you need to make sure that Exchange Trusted subsystem group is added to Administrators group.
After failover to let the exchange server know to which server they should redirect the connection. You will have to run the command
Get-Mailboxdatabase | Set-Mailboxdatabase -RPCClientaccessserver servername
If both the DAG members are in the same site then the failover will happen automatically for Mailbox and HT roles however for CAS server you will have to run the above mentioned command.
If both the DAG members are in different site then you will to follow below steps
Make sure that DatacenterActivationMode=DagOnly
Apply the following command on remote site on the server in power shell window
Stop-databaseAvailabilityGroup Identity PSDAG1 ConfigurationOnly ActiveDirectorySite <Primary site name>
Stop Cluster service on Remote site server using one of the following methods:
a- Start menu Administrative tools Windows power shell write Stop-Service ClusSvc
b- Start menu All programs Accessories open Command Prompt write net stop clussvc
Apply the following command in mailbox power shell:
Restore-databaseAvailabilityGroup Identity PSDAG1 ActiveDirectorySite <RemoteSite>
Now the Database should move automatically to Remote Site mailbox server.
Important NOTE: if the database did not move automatically we need to do it manually from the power shell with this command: Move-ActiveMailboxDatabase
Move file share witness to other site DC (specific to your scenario )
Get-Mailboxdatabase | Set-Mailboxdatabase -RPCClientaccessserver servername
Clients will then automatically connect to the new service endpoints in one of two ways:
1- Clients will continue to try to connect, and should automatically connect after the TTL has expired for the original DNS entry, and after the entry is expired from the client's DNS cache. Users can also run the ipconfig /flushdns command from a command
prompt to manually clear their DNS cache.
2- Clients starting or restarting will perform a DNS lookup on startup and will get the new IP address for the service endpoint, which will be a Client Access server or array in the second datacenter.
If the DNS records didnt change automatically we need to change it manually
Change the host records
a- Autodiscover to 192.168.1.55 <------> for example
b- Owa to 192.168.1.55
c- RemoteSiteServer-CAS2 192.168.1.55 Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Hasnain Shaikh| My blogs:
http://messagingserversupport.com
There is an amazing pack of free network admin tools. click here to download it



