Create and Configure DAG V1.2

Welcome to the new series
Steps to
Transitioning from Exchange 2003 to Exchange 2010
Create and Configure DAG
720 Implementation Guide
By Alain Laventure
MCSA 2003
MCSE 2003
MCSA Messaging 2003
MCSE Messaging 2003
MCTS Exchange 2007
MCITP Enterprise Messaging Administrator Exchange 2007
MCDST
MCT
MCP + Internet
SMS 2003
Montréal
Alaventure@acgl.ca
514-802-8705
TABLE OF CONTENTS
1. HOW TO CONFIGURE DAG FOR HIGH AVAILABILITY .......................................2
Here we will create a DAG for high availability..........................................................................2
The name of the DAG will be DAG01 ..........................................................................................2
We will use the MTLMB01 server and the MTLMB02 server in the MTLSite for HA .................2
1.1 HOW TO CONFIGURE NETWORK FOR MAILBOX SERVER .........................................................2
1.1.1 Network Interfaces Configuration –MAPI Network........................................................2
1.1.2 Network Interfaces Configuration –Replication Network...............................................2
1.1.3 Network Adapters binding...............................................................................................3
1.1.4 Rename and Move the Default Database in MTLMB01 .................................................3
1.1.5 Move and Rename Public folder .....................................................................................4
1.2 HOW TO CREATE AND CONFIGURE DAG ................................................................................5
1.2.1 Create Database Availability Group with the Witeness Server ......................................5
1.2.2 Add an alternate Witness Server in the Toronto Site ......................................................7
1.3 HOW TO CONFIGURE DAG NETWORK .....................................................................................9
1.3.1 Database Availability Group Network Configuration ....................................................9
1.4 HOW TO ADD MEMBER TO THE DAG ...................................................................................11
1.4.1 Database Availability Member Server Addition ...........................................................11
1.4.2 Enable the Datacenter Activation Mode in the DAG01 ................................................14
1.5 VALIDATE THAT THE WITNESS SERVER AND FILE WAS CREATED .........................................17
Check in ADUC in the Computer OU, you will see a computer name DAG01..........................17
1.6 HOW TO REMOVE MEMBER FROM THE DAG .........................................................................20
1.7 HOW TO VALIDATE THE FAIL OVER CLUSTER MANAGER .....................................................22
1.7.1 Bring On line The Cluster Name DAG-MTL ................................................................22
1.7.2 Validate the Quorum Configuration Type.....................................................................24
1.7.3 How to Dedicate Network card to replication network ................................................24
1.7.4 How to Dedicate Network to MAPI communication .....................................................25
1.7.5 How to known which DAG member has the PAM (Primary Active Manager) function26
1.8 HOW TO CREATE MAILBOX DATABASE COPY ......................................................................28
1.8.1 Create a Mailbox Database Copy DB01 Addition for with PowerShell .......................28
1.8.2 If you want to have replication Status for DB01 on Server MTLMB01 ........................30
1.8.3 Create a Mailbox Database Copy Addition for DB01 on server TORMB01 ................30
1.8.4 Create a Mailbox Database Copy Addition for DB01 on server TORMB02 with no
seeding 32
1.9 HOW TO TEST HIGH AVAILABILITY ......................................................................................34
1.9.1 How to test the High Availability ..................................................................................34
1.9.2 How to do a Server Switchover with the GUI ...............................................................45
1.9.3 How to view the current Status of replication ...............................................................47
1.9.4 How to Seed a Mailboxes Database (Update) ..............................................................49
1.9.5 How to move a Mailbox Database Path for a Mailbox Database Copy .......................51
1.9.6 How to Active a Lagged Mailbox Database Copy ........................................................51
1.9.7 How to Recover a Database Availability Group member with the Switch
/m:recoverServer ........................................................................................................................51
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 1
How to Configure DAG for High Availability
Here we will create a DAG for high availability
The name of the DAG will be DAG01
We will use the MTLMB01 server and the MTLMB02 server in the MTLSite for HA
We will use the TORMB01 server and the TORMB02 server in the TORSite for site resilience
1.1 How to Configure Network for Mailbox Server
1.1.1 Network Interfaces Configuration –MAPI Network
The network card for the MAPI on server MTLMB01 will have 10.10.10.71
The network card for the MAPI on server MTLMB02 will have 10.10.10.72
Rename the Network Card as MAPI
Network
1.1.2 Network Interfaces Configuration –Replication Network
The network card for the Replication on server MTLMB01 will have 10.0.0.14
The network card for the Replication on server MTLMB02 will have 10.0.0.15
Rename the Network Card as Replication Network
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 2
1.1.3 Network Adapters binding
The MAPI network card must be the first
binding network adapters and the
Replication must the second
1.1.4 Rename and Move the Default Database in MTLMB01
Move Mailbox and rename the Mailbox Database that was created by the Mailbox installation to
DB01 on server MTLMB01
Move-DatabasePath -Identity DB01 -EdbFilePath M:\DB\DB01\DB01.edb –LogFolderPath
L:\Log\DB01
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 3
Move Mailbox and rename the Mailbox Database that was created by the Mailbox installation to
DB01 on server MTLMB01
Move-DatabasePath -Identity DB01 -EdbFilePath M:\DB\DB01\DB01.edb –LogFolderPath
L:\Log\DB01
1.1.5 Move and Rename Public folder
http://technet.microsoft.com/en-us/library/dd351168(printer).aspx
http://technet.microsoft.com/en-us/library/bb124742(printer).aspx
Move-DatabasePath -Identity 'PFMTLMB01' -EdbFilePath 'M:\DB\PFMTL01\PFMTL01.edb' -
LogFolderPath 'M:\Log\PFMTL01\PFMTL01'
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 4
1.2 How to Create and Configure DAG
1.2.1 Create Database Availability Group with the Witeness Server
http://technet.microsoft.com/en-us/library/dd351172(printer).aspx
Open a session on MTLMB01 Server
The following command creates a new DAG name DAG01 with the default parameters
New-DatabaseAvailabilityGroup –Name DAG01 –WitnessServer MTLCH01 –
WitnessDirectory C:\WitnessFiles\DAG01.acgl.ca
Get-DatabaseAvailabilityGroup | format-List
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 5
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 6
1.2.2 Add an alternate Witness Server in the Toronto Site
If the DAG was created without Witness Server and you want to add Witness Server and a Witness
folder
Set-DatabaseAvailabilityGroup –Identity DAG01 –WitnessServer MTLCH01 –
WitnessDirectory C:\DiagFilesWitness
If the DAG was created and you want to add Alternate Witness Server or alternate Witrness Server
Set-DatabaseAvailabilityGroup -AlternateWitnessServer 'torch01' -AlternateWitnessDirectory
'C:\WitnessFiles\DAG01.acgl.ca' -Identity 'DAG01'
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 7
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 8
1.3 How to configure DAG Network
1.3.1 Database Availability Group Network Configuration
After the DAG have been created we will assign an IP Address 10.10.10.91 to the DAG
You must assign an IP address in the same network than the MAPI Segment
Add IP to the DAG01 here we will add 10.10.10.91 and 10.10.20.91
You need 2 IP Addresses , one for each Subnet
IF your dag is on the same Sub Net you will need only one IP Address
Segment 1 is 10.10.10.0
Segment 2 is 10.10.20.0
Set-DatabaseAvailabilityGroup -DatabaseAvailabilityGroupIpAddresses
‘10.10.10.91’,‘10.10.20.91’ -Identity ‘DAG01’
Check the DAG IP Address
Get-DatabaseAvailabilityGroup | format-List database*
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 9
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 10
1.4 How to Add Member to the DAG
1.4.1 Database Availability Member Server Addition
http://technet.microsoft.com/en-us/library/dd298049(printer).aspx
Now we will add Mailbox Server MTLMB01, MTLMB02, TORMB01 and TORMB02 in the
DAG01
If the cluster Service is always be installed, this command will add only the server in the DAG01
If the cluster server was not installed, this command will install the cluster service and after it will
add the server in the DAG01. It will take longer if the cluster Service in not installed
You can add one Server at the time. Here you will Add MTLMB01 Server in the DAG01
Add-DatabaseAvailabilityGroupServer -MailboxServer 'MTLMB01' -Identity 'DAG01'
Get-DatabaseAvailabilityGroup
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 11
1.5 To Check if the Server was add without Error Validate the
Cluster Logs
You can find the Cluster installation log on C:\ExchangeSetupLogs\DagTasks on the Mailbox
Server
1.6 Add other Mailbox Server in the DAG
Add MTLMB02 Server in DAG01
Add-DatabaseAvailabilityGroupServer -MailboxServer 'MTLMB02' -Identity 'DAG01'
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 12
Be sure before to add Member
in the Toronto Site that the
replication was done before to
continue
Add TORMB01 Server in DAG01
Add-DatabaseAvailabilityGroupServer -MailboxServer 'TORMB01' -Identity 'DAG01'
Add TORMB02 in DAG01
Add-DatabaseAvailabilityGroupServer -MailboxServer 'TORMB02' -Identity 'DAG01'
Get-DatabaseAvailabilityGroup –Identity DAG01 -Status
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 13
1.6.1 Enable the Datacenter Activation Mode in the DAG01
The DatacenterActivationMode parameter specifies whether data center activation mode is
disabled (Off) or enabled for the DAG (DagOnly). This mode should be set for all DAGs with
three or more members that are extended to two or more physical locations. This mode can't
be enabled for DAGs with fewer than three members
With SP1 this option is also available with 2 DAG Members
http://technet.microsoft.com/en-us/library/dd979790(printer).aspx
To Enable DAC Mode Activation
Set-DatabaseAvailabilityGroup -Identity DAG01 -DatacenterActivationMode DagOnly
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 14
Get-DatabaseAvailabilityGroup -Identity DAG01 | FL
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 15
To Disable DAC mode activation
Set-DatabaseAvailabilityGroup -Identity DAG01 -DatacenterActivationMode Off
Get-DatabaseAvailabilityGroup -Identity DAG01 -Status
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 16
1.7 Validate that the Witness Server and File was created
When we have created the DAG we don’t
specified the Witness server and
Directory, the DAG creation process will
select the HUB transport server with no
Mailbox and created a Witness folder by
default the name is DAGFileShareWitness
1. Check the Witness server and the
folder created by the creation of the
DAG
In Windows 2008 R2 to see the share you
will need to
 Select start
 Select administrative tools
 Select Share and Storage
Management
Check in ADUC in the Computer OU,
you will see a computer name DAG01
Here we see only to 2 Networks because
in the Environment where the Snapshoot
was done, these had only MAPI network
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 17
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 18
As you can see here the DAG01 have A
record and the IP Address is 10.10.10.91
The DAG01 is on the Segment 10.10.10.0
When the cluster will switch to TOR Site
The IP will be Change by 10.10.20.91
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 19
1.8 How to Remove member from the DAG
If you want to remove the MTLMB01 server on DAG DAG01
Remove-DatabaseAvailabilityGroup –MailboxServer “MTLMB01” –Identity “DAG01
If the server that you want to remove is offline and it will not comeback Online to be able to remove
the server from the DAG you will need to use –ConfigurationOnly
Remove-DatabaseAvailabilityGroup –MailboxServer “MTLMB01” –Identity “DAG01 -
ConfigurationOnly
If you remove the DAG sometime you
will need to delete the Witness server
folder
Also sometime you will need to delete the
share name created by the creation of the
Witness server.
In Windows 2008 R2 to remove some
share you will need to
 Select start
 Select administrative tools
 Select Share and Storage
Management
Select the share that you want to remove
and select Stop Sharing
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 20
After you remove a DAG you will need to
delete the CNO in the computer OU
For that
Open ADUC (Active Directory user and
Computer)
Open Computer OU
The CNO is the DAG name select DAG-
MTL and delete the object from AD
If you want to remove the Fail Over
clustering from mailbox server
UnSelect FailOver clustering
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 21
1.9 How to validate the Fail Over Cluster Manager
1.9.1 Bring On line The Cluster Name DAG01
You will bring on Line the cluster name
object CNO
 Open Failover Cluster Manager
 Open Section Cluster Cores
Resources
 And bring this resource Online if
the resource if offline
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 22
You can see the IP Address that you add
to the CNO
If you have an Even Server in the Cluster
If you have an odd Server in the Cluster
You can see that the IP is a static IP
Address
You can also see in the DNS the A record
for the CNO
You can also add the IP address with
EMC
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 23
1.9.2 Validate the Quorum Configuration Type
You validate that the Quorum type is
Node and file Share majority
Open Fail Cluster Manager
The type must be node and file Share
majority
If you have an ODD number of servers
the Quorum Configuration will be Node
Majority
1.9.3 How to Dedicate Network card to replication network
To ensure that the network 10.0.0.0 will
be used only for replication
 Select DAG Network02
 Select Enable Replication
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 24
1.9.4 How to Dedicate Network to MAPI communication
To be sure that the network 192.168.1.0
will be used only for MAPI
Communication
 Select the Dag Network01
 Clear Enable Replication
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 25
1.9.5 How to known which DAG member has the PAM (Primary Active
Manager) function
Run the Exchange Powershell as
Administrator
Import-Module FailoverClusters
you will see which node have the PAM
Get-ClusterGroup | Format-Table -Auto
Here
If you want to move the PAM on the other node if the PAM was on the MTLMB01 and you want to
transfer the PAM on node MTLMB02
Move-ClusterGroup “Cluster Group” –node TORMB01
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 26
Here you will see which node have the PAM
Get-ClusterGroup | Format-Table -Auto
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 27
1.10 How to Create Mailbox Database Copy
1.10.1 Create a Mailbox Database Copy DB01 Addition for with PowerShell
When you want to replicate a database
onto other Mailbox servers, those servers
must be in the same DAG as the database.
In addition, the database and transaction
log paths for the database copy must be
the same on each server
To create an Passive copy of the DB01 on
MTLMB02
The DB01 must exist and online on the
MTLMB01 Server
Add a Database Copy DB01 to MTLMB02
Add-MailboxDatabaseCopy DB01 -MailboxServer MTLMB02 -ActivationPreference 2
As you can see, the mailbox Database is seeded on MTLMB02
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 28
The DB01 is mounted on server
MTLMB01. A mounted database is the
Active Mailbox Database
The DB01 is Healthy on Server
MTLMB02. A Healthy Database is the
Passive copy Mailbox Database
If you don’t see in column server both server refresh the screen
The same thing in the bottom in Database copies sometime we must close the Console and re open it
to be able to see the database copies
If you want created a Lag Passive copy with 3 days of Lag and 3 Days of Truncation
Add-MailboxDatabaseCopy DB01 -MailboxServer MTLMB02 -ActivationPreference 2 –
replayLagTime 3.00:00:00 –TruncationLagTime 3.00:00:00
http://technet.microsoft.com/en-us/library/dd298044(printer).aspx
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 29
1.10.2 If you want to have replication Status for DB01 on Server MTLMB01
http://technet.microsoft.com/en-us/library/dd298044(printer).aspx
1.10.3 Create a Mailbox Database Copy Addition for DB01 on server TORMB01
 Select DB01
 Select Add mailbox Database
Copy
Before to create a Mailbox Database copy
on s server on the Toronto Site, be sure
before that the replication was be done
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 30
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 31
1.10.4 Create a Mailbox Database Copy Addition for DB01 on server TORMB02 with no
seeding
If you want create a Mailbox Database Copy but you don’t want the copy seed with the Active Copy
the Passive copy will be created without copying the Active Database
Add-MailboxDatabaseCopy DB01 -MailboxServer TORMB02 -ActivationPreference 3 –
SeedingPostponed
Seed from TORMB01
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 32
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 33
1.11 How to Test High Availability
1.11.1 How to test the High Availability
Perform a Mailbox Database Switchover with Power Shell
When a database switchover is performed, the active copy of the database is moved to another
Mailbox server and there is no data loss expected. This is a process that is initiated by an
administrator while the active copy of the database is still healthy. When you perform a switchover,
you have the option of overriding the database mount dial settings. The database mount dial settings
define the data loss tolerance when a database copy is activated
 Select at the bottom in the database copies Mailbox05 on MTLMB02 the Status is Healthy
 Select activate Database copy
 Select best Availability
You will see that the Mounted Database
will be on MTLMB02 and the Healthy
will be on MTLMB01
Open a session with user U1
Open Outlook and send Email from U1 to U1 validate that you can send email
Use Power Shell to perform a Database Switchover for BD02 from server MTLMB02 to
MTLMB01
Move-ActiveMailboxDatabase “DB02” -ActivateOnServer MTLMB01 -
MountDialOverride:None
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 34
As you can see here DB02 is now
mounted on server MTLBDB01
If you want to switch all Mailbox Database at the same time, (a Server Switchover) from Server
MTLMB01
Move-ActiveMailboxActiveDatabase –Server MTLMB01
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 35
1.12 Reset the Search Index
If you got this Error, it is because the replication is not finish between site or the Index on the target
is not up tpo date
Wait some time and try later. When the replication will be finish you will be able
If you are not able after some time
Follow this procedure to be able to activate the MailboxDatabase on the other server
When you try to move the active copy of the database from an Exhcange 2010 mailbox server to
another server in the DAG you receive : Server Seed Error Content Index is Crawling
you might receive this error also:
A server-side seed operation has failed. Error: An error occurred while performing the seed
operation, which may indica te a problem with the source disk. Error: Failed to open a log truncation
context to source <>. Hresult: 0xc 7ff1004. Error: Error returned from an ESE function call (-1305).
the database copy state is healthy in the GIU, how ever when you do Get-
MailboxDatabaseCopyStatus you will get that copy status is crawling, to receive this error follow
these steps:
Change to the following directory where the ResetSearchIndex.ps1 script is located:\Program
Files\Microsoft\Exchange Server\Scripts
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 36
Suspend the mailboxdatabasecopy process from the active to the target passive node
Suspend-MailboxDatabaseCopy -Identity MB1\MTLMB01 –confirm:$false
To validate the the replication is Suspend on MB1
Get-MailboxDatabaseCopy -Identity MDB1 | FL Name, *suspen*
Run the following script to remove the index directories that are associated with the specified
mailbox database with the source mailbox.
Reset the Search Index
.\ResetSearchIndex.ps1 -force MB1
Verify that the rebuilding of the index has completed:
You will receive MSExchange Search Indexer Event ID 109 when the full crawl begins.
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 37
You will receive MSExchange Search Indexer Event ID 110 when the full crawl ends
http://technet.microsoft.com/en-us/library/ee633475.aspx
Reseed the Search Catalog: Exchange 2010 Help
6. Reseed the content index catalog from a specific source source node is the active
node TORMB01 and the passive node is MTLMB01
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 38
Update-MailboxDatabaseCopy -Identity MB1\MTLMB01 -SourceServer TORMB01 –
CatalogOnly
Resume the mailboxdatabasecopy from the active node MTLMB01 to the passive node MTLMB01
Resume-MailboxDatabaseCopy -Identity MB1\MTLMB01
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 39
1.13 Reseed the only the Search Index
http://technet.microsoft.com/en-us/library/ee633475.aspx
MB1 is on MTLMB01 Server as a Copy Mailbox Database , and on TORMB01
The Mailbox Database is Active on TORMTL01 server
To be able to Seed the Mailbox Database MB1 on MTLMB01 server from MB1 on TORMB01
server, the Replication must be Suspend between both Server
We will Suspend the Replication on MTLMB01 server
Suspend-MailboxDatabaseCopy -Identity MB1\MTLMB01 –confirm:$false
To validate the the replication is Suspend on MB1
Get-MailboxDatabaseCopy -Identity MDB1 | FL Name, *suspen*
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 40
Update the MTLMB01 Search Index from the TORMB01 Server
Update-MailboxDatabaseCopy -Identity MB1\MTLMB01 -SourceServer TORMTL01 –
CatalogOnly
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 41
1.14 If you receive this Warning when you activate Mailbox Database
and all other thing that you do in the DAG
This URL explain another type of Problem, but the solution is the same
http://blogs.technet.com/b/richardroddy/archive/2010/12/13/exceptions-received-after-running-
successful-modification-operations-with-exchange-2010-sp1.aspx
If when you active a Mailbox database on the other server (here on TRV server), and you received
this Warning
--------------------------------------------------------
Microsoft Exchange Warning
--------------------------------------------------------
Database copy 'Activate Database Copy...' was activated successfully, but with the warnings listed
below.
Activate Database Copy...
Completed
Warning:
The cmdlet extension agent with the index 0 has thrown an exception in OnComplete(). The
exception is: System.Net.WebException: The remote name could not be resolved: 'https'
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[]
parameters)
at
Microsoft.Exchange.SoapWebClient.CustomSoapHttpClientProtocol.<>c__DisplayClass4.<Invoke
>b__3()
at
Microsoft.Exchange.SoapWebClient.HttpAuthenticator.NetworkServiceHttpAuthenticator.Authenti
cateAndExecute[T](SoapHttpClientProtocol client, AuthenticateAndExecuteHandler`1 handler)
at
Microsoft.Exchange.SoapWebClient.SoapHttpClientAuthenticator.AuthenticateAndExecute[T](Soa
pHttpClientProtocol client, AuthenticateAndExecuteHandler`1 handler)
at
Microsoft.Exchange.SoapWebClient.EWS.ExchangeServiceBinding.FindFolder(FindFolderType
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 42
FindFolder1)
at
Microsoft.Exchange.ProvisioningAgent.MailboxLoggerFactory.EwsMailer.GetAdminAuditLogsFol
der(ADUser adUser)
at Microsoft.Exchange.ProvisioningAgent.MailboxLoggerFactory.EwsMailer..ctor(OrganizationId
organizationId, ADUser adUser, ExchangePrincipal principal)
at Microsoft.Exchange.ProvisioningAgent.MailboxLoggerFactory.Create(OrganizationId
organizationId, ADUser mailbox, ExchangePrincipal principal)
at
Microsoft.Exchange.ProvisioningAgent.AdminLogAgentClassFactory.ConfigWrapper.get_Mailbox
Logger()
at Microsoft.Exchange.ProvisioningAgent.AdminLogProvisioningHandler.OnComplete(Boolean
succeeded, Exception e)
at Microsoft.Exchange.Provisioning.ProvisioningLayer.OnComplete(Task task, Boolean
succeeded, Exception exception)
--------------------------------------------------------
OK
--------------------------------------------------------
The Mailbox Database will be activate on another server and it will be working without any error
but the warning
Check the URL of the get-WebserviceVirtualDirectory –Internal URL -ur
Be sure that the Remote CAS Internal URL is different than the Local
Here the MTL CAS URL is https://courriel.lacoop.coop
And the TRV CAS URL is https://TRVLCFSRV.lacoop.coop
When I got this Warning it is because
Here the MTL CAS URL is https://courriel.lacoop.coop
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 43
And the TRV CAS URL is https://courriel.lacoop.coop
Courriel was pointing on courriel.lacoop.coop and courriel point to MTLLCFSRVCAS01
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 44
1.15 How to do a Server Switchover with the GUI
Here you can see that all Mailboxes are on
MTLMB01
If you want to install patch on
MTLMB01, you have just to make a
Switchover on all mailboxes database on
server MTLMB02
To Do that
And Select MTLMB02
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 45
Her you will got this Warning, because
we have Public folder on that server and
PF can participate to a DAG member
Here you can see that all mailboxes
Database are healthy, because they are all
mounted on server MTLMB01
Her you can see that all Mailboxes
Database are mounted on server
MTLMB02
Test Email with the use U1 send before
the move and after the move
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 46
1.15.1 How to view the current Status of replication
The following command will display the replication Status
Test-ReplicationHealth
If you want to have more details
Test-ReplicationHealth |FL
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 47
The following command will display the status of a database copy and all the information available
in a list:
Get-MailboxDatabaseCopyStatus MB01\MTLMB02 | fl
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 48
You can also gather information about multiple database copies. The following command will
display the database, the name of the active server, and the health of the database copies in a table:
Get-MailboxDatabase | Get-MailboxDatabaseCopyStatus | ft Name, Status,
ActiveDatabaseCopy
1.15.2 How to Seed a Mailboxes Database (Update)
You must suspend the replication before
you can be able to reseed a database
Select Suspend
As you can see here the DB02 replication
is suspend
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 49
To reactive the replication you can use
Resume
But some time you will want to reseed the
database
For that select Update
Select from Which Database copy you
want to reseed
Update the passive database copy DB02 on Server MTLMB02 from Mailbox Database DB02 on
Server MTLMB01
The source can be a passive Database copy or an Active database Copy
Update-MailBoxDatabaseCopy -Identity DB02\MTLMB02 –SourceServer MTLMB01
If you want update only the database Without Index
Update-MailBoxDatabaseCopy -Identity DB02\MTLMB02 –SourceServer MTLMB01 -
DatabaseOnly
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 50
If you want Update only the Index
Update-MailBoxDatabaseCopy -Identity DB02\MTLMB02 –SourceServer MTLMB01 -
CatalogOnly
How to remove a database copy
If you add –Confirm:$False, no question will ask you if you want continue
Remove-MailBoxDatabaseCopy -Identity DB02\MTLMB02 –SourceServer MTLMB01 –
Confirm:$False
1.15.3 How to move a Mailbox Database Path for a Mailbox Database Copy
See Microsoft Article http://technet.microsoft.com/en-us/library/dd979782.aspx
Move the Mailbox database Path for a Mailbox Database
1.15.4 How to Active a Lagged Mailbox Database Copy
See Microsoft Article http://technet.microsoft.com/en-us/library/dd979786.aspx
Active a Lagged Mailbox Database Copy
1.15.5 How to Recover a Database Availability Group member with the Switch
/m:recoverServer
See Microsoft Article
http://technet.microsoft.com/en-
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 51
us/library/dd638206.aspx
How to Recover a Database Availability
Group member with the Switch
/m:recoverServer
1.16 To troubleshooting DAG
You must activate Logging on the
Mailbox Server
Select whicj log you want activate
Here a select action and Level Expert
Enable the log that you want
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 52
Check the Application Log for events
To have the DAG Status
Get-MailboxDatabaseCopyStatus
Get-MailboxDatabaseCopyStatus | fl status, name
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 53
Test-ReplicationHealth
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 54
Test-ReplicationHealth | fl server, check, result, error
By Alain Laventure Alaventure@Videotron.ca (514-802-8705) Page 55