In this article, I will show you how to create DAG with Two Node Members using File Share Witness.
Both Servers are configured with same hardware configurations and Windows Server 2012 R2 Server Editions.
Before we begin with DAG Installation, We need to add the Exchange Trusted System in the Witness Server’s Local Administrators Group and create Witness Directory Share.
Now, Login in to Exchange Admin Center, Under Server–> Database availability groups–>Click on Add
Now Provide the Name for the DAG,Provide the Witness Server and Directory
Now you can see the DAG is created successfully
If you run Get-DatabaseAvailabilityGroup in Powershell, you can see the DAG without any DAG Members.
Adding Member Servers in the Database Availability Group:
Let’s see how to add the Servers in the DAG. Click on Manager DAG Membership
Click on + to add the Servers,
Select the Servers which you want to add in this DAG
Now you can see the Member Servers associated with this Database Availability Group.
Adding the Database Copies in Second Server:
So Far so good.. Isn’t it?? Now, Let’s see how to add the passive copies of the Database in the Second Server.
Here i have Database called DB1 which is only one copy and mounted on EX-2016-MBX1.
Run the command in Powershell and you can see that DB1 is getting created in Second Server EX-2016-MBX2.
Add-MailboxDatabaseCopy -db Db1 -MailboxServer EX-2016-MBX2
Now you can see that Mailbox Database copy has been added and healthy in second Server.
move the database to second server and check whether it is getting mounted without any issues by running below command which will move the DB1 to Second Server.
Move-MailboxDatabaseCopyStatus DB1
You can check it in the Exchange admin center.