Skip to content

How to fix Database Availability Group witness is in a failed state

If the Database Availability group witness server is in a failed state, you will have issues. So, the first thing you should do is fix it and bring it to a healthy state. In this article, you will learn how to fix Database Availability Group witness is in a failed state.

What is a Database Availability Group?

A database availability group (DAG) is the base component of the Mailbox server high availability and site resilience framework built into Microsoft Exchange Server. A DAG is a group of up to 16 Mailbox servers that hosts a set of databases and provides automatic database-level recovery from failures that affect individual servers or databases.

Database Availability Group witness is in a failed state

Let’s have a look at the failed state DAG warning message that appears.

Start Exchange admin center and go to servers > database availability group. Double-click on the DAG.

Database Availability Group witness is in a failed state EAC

The warning message shows up.

Warning
Database availability group ‘DAG01-2019’ witness is in a failed state. The database availability group requires the witness server to maintain quorum. Please use the Set-DatabaseAvailabilityGroup cmdlet to re-create the witness server and directory.

Database Availability Group witness is in a failed state warning

Why do we get this warning, and what is the solution for Exchange Server DAG witness is in a failed state?

Solution 1. Start the File Share Witness cluster resource

Go through the below steps to check the file share witness cluster resource state and then activate it:

  1. Start Windows PowerShell as administrator on a DAG member
  2. Check the cluster resource status of the file share witness with the Get-ClusterResource cmdlet
Get-ClusterResource

The output shows the cluster resource in an Offline state.

Name                                                                State   OwnerGroup    ResourceType
----                                                                -----   ----------    ------------
File Share Witness (\\fs01-2019.exoip.local\DAG01-2019.exoip.local) Offline Cluster Group File Share Witness
  1. Run the Start-ClusterResource cmdlet to bring the cluster resource for the file share witness online.
Get-ClusterResource | Start-ClusterResource

After running the command, the output shows that the state is Online.

Name                                                                State  OwnerGroup    ResourceType
----                                                                -----  ----------    ------------
File Share Witness (\\fs01-2019.exoip.local\DAG01-2019.exoip.local) Online Cluster Group File Share Witness

Solution 2. Recreate witness server and directory

Suppose the above steps didn’t work, you need to run the Set-DatabaseAvailabilityGroup cmdlet to re-create the witness server and directory.

Conclusion

You learned how to fix Database Availability Group witness is in a failed state. The solution to this warning is to start the cluster resource on one of the DAG member servers and bring it back online. After that, no more warning appears, and everything works.

Did you enjoy this article? You may also like Balance mailbox databases in Exchange DAG. Don’t forget to follow us and share this article.

ALI TAJRAN

ALI TAJRAN

ALI TAJRAN is a passionate IT Architect, IT Consultant, and Microsoft Certified Trainer. He started Information Technology at a very young age, and his goal is to teach and inspire others. Read more »

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *