Perform dial tone recovery

Андрей Михалевский 3,176 Reputation points
2024-09-25T16:32:29.4133333+00:00

Hi. I have a question about performing disaster recovery of databases.

https://learn.microsoft.com/en-us/exchange/high-availability/disaster-recovery/dial-tone-recovery?view=exchserver-2019

  1. I restored the servers.
  2. I am currently restoring the database backups.
  3. The user needs to work at the moment.
  4. I don't understand further, please explain:

For example:

I have 30 bases. DB01..DB30

Should I create 30 TEMP bases? For example:

TEMPDB01

TEMPDB02

And so on.

Next I execute this?

Get-Mailbox -Database DB01 | Set-Mailbox -Database TEMPDB01

Get-Mailbox -Database DB02 | Set-Mailbox -Database TEMPDB02

When I have restored the bases, I should also return the configuration to each base ?

Get-Mailbox -Database TEMPDB01| Set-Mailbox -Database DB01

Get-Mailbox -Database TEMPDB02| Set-Mailbox -Database DB02

And after each of the TEMPDB bases should be put into Recovery mode and restored ?

Just in the example it is done for one database and I don't understand how to do it for all databases. It seems to me that if I specify one TEMP database for all bases, I won't be able to restore the configuration afterwards

If I'm not clear, can you show me an example of how the recovery plan is done for all bases and not just one ?

As I understand it, the number of TEMP bases should be equal to the number of bases on the Exchange server, right ? Otherwise I won't be able to restore the configuration of each of the databases because everything will be in one.

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,289 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jake Zhang-MSFT 5,595 Reputation points Microsoft Vendor
    2024-09-26T02:54:12.66+00:00

    Hi @Андрей Михалевский,

    Welcome to the Microsoft Q&A platform!

    Based on your description, you are doing a dial tone recovery for an Exchange database. Let's break down the process step by step for clarity.

    1. Yes, you should create a temporary database for each original database. For example:
    • TEMPDB01 for DB01
    • TEMPDB02 for DB02
    • And so on, up to TEMPDB30 for DB30
    1. You need to redirect the mailboxes from each original database to the corresponding temporary database. Here are the commands for all 30 databases:
    Get-Mailbox -Database DB01 | Set-Mailbox -Database TEMPDB01 
    Get-Mailbox -Database DB02 | Set-Mailbox -Database TEMPDB02
    ... 
    Get-Mailbox -Database DB30 | Set-Mailbox -Database TEMPDB30 
    
    1. While the user is using the temporary database, you can restore the original database from the backup.
    2. After the original database is restored, you need to switch the mailboxes back to their original database. The commands are as follows:
    Get-Mailbox -Database TEMPDB01 | Set-Mailbox -Database DB01 
    Get-Mailbox -Database TEMPDB02 | Set-Mailbox -Database DB02 
    ... 
    Get-Mailbox -Database TEMPDB30 | Set-Mailbox -Database DB30 
    
    1. After switching back to the mailbox, you can put the temporary databases into recovery mode and restore them if needed.

    Here is a more detailed example of the entire process:

    • Create a temporary database:
    New-MailboxDatabase -Name TEMPDB01 -EdbFilePath "C:\TempDB01\TEMPDB01.edb" -LogFolderPath "C:\TempDB01\Logs" 
    New-MailboxDatabase -Name TEMPDB02 -EdbFilePath "C:\TempDB02\TEMPDB02.edb" -LogFolderPath "C:\TempDB02\Logs" 
    ... 
    New-MailboxDatabase -Name TEMPDB30 -EdbFilePath "C:\TempDB30\TEMPDB30.edb" -LogFolderPath "C:\TempDB30\Logs" 
    
    • Redirect a mailbox:
    Get-Mailbox -Database DB01 | Set Mailbox - Database TEMPDB01 
    Get Mailbox -Database DB02 | Set Mailbox - Database TEMPDB02 
    ... 
    Get Mailbox -Database DB30 | Set-Mailbox - Database TEMPDB30 
    
    • Follow the backup restore procedure for each database.
    • Switch mailboxes:
    Get-Mailbox - Database TEMPDB01 | Set-Mailbox - Database TEMPDB01 
    Get-Mailbox - Database TEMPDB02 | Set-Mailbox - Database DB02 
    ... 
    Get-Mailbox - Database TEMPDB30 | Set-Mailbox -Database DB30 
    
    • Put the temporary database into recovery mode:
    Set-MailboxDatabase -Identity TEMPDB01 -AllowFileRestore $true 
    Set-MailboxDatabase -Identity TEMPDB02 -AllowFileRestore $true 
    ... 
    Set-MailboxDatabase -Identity TEMPDB30 -AllowFileRestore $true 
    

    Notes:

    1. You will need an equal number of temporary databases to match the original databases to ensure proper recovery of the configuration.
    2. Follow these steps in order to avoid any configuration issues.

    Please feel free to contact me for any updates. And if this helps, don't forget to mark it as an answer.

    Best,

    Jake Zhang


1 additional answer

Sort by: Most helpful
  1. Андрей Михалевский 3,176 Reputation points
    2024-10-02T08:03:08.86+00:00

    @jakezhang can you help me ?

    0 comments No comments

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.