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.