Exchange Database are in unknow state (Exchange server 2019)

Parsian02 20 Reputation points
2024-07-22T05:00:07.3366667+00:00

I have two Exchange servers (EXG-01 and EXG-02) configured with a Database Availability Group (DAG). In this setup, DB01 and DB02 reside on EXG-02, while DB03 and DB04 are located on EXG-01. Unfortunately, EXG-01 has crashed and is currently inaccessible. Upon checking EXG-02, I found that DB01 and DB02 are healthy and operational. However, DB03 and DB04 are in an unknown state and require updating on EXG-02. Could you please provide a step-by-step guide to bring all databases online on EXG-02?

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,290 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,624 questions
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
532 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Mohammed Hamdi Abu Hassira 80 Reputation points
    2024-07-22T05:45:04.83+00:00

    Hello Parsian,

    Get-DatabaseAvailabilityGroup -Name <DAGName> 
    

     Replace <DAGName> with the actual name of your DAG. If the DAG status is healthy and shows DB01 and DB02 in a synchronized state, you can bring them online using the following command:

    Get-MailboxDatabase -Database <DatabaseName> | Set-MailboxDatabase -Status Online
    

    Replace <DatabaseName> with the names of the databases you want to bring online (DB01 and DB02). If the previous step fails or the database copies are not synchronized, you might need a forced activation. Use this command with caution as it can cause data loss:

    Get-MailboxDatabase -Database <DatabaseName> | Set-MailboxDatabase -ActivationPolicy Forced
    

    Replace <DatabaseName> with the specific database name. After attempting to bring the databases online, monitor their status using the following command:

    Get-MailboxDatabase -Status 
    

    This will show the current state of all mailbox databases in the DAG, including DB03 and DB04. If DB03 and DB04 remain offline after these steps, further troubleshooting is required to determine the cause and recovery process. You might need to perform a manual failover or restore the databases from backup depending on the specific issue.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.