Thursday, 04 October 2012 06:57

Using Recovery Database Made Easy - Exchange 2010

Written by

Recently I faced a DR situation, in which the Exchange Servers are gone down due to a major hardware failure on blade enclosure. Finally it went up to ‘rehoming’ the mailbox and merging the data from a recent available backup as the hardware issue took little more time that I could keep the exchange offline. Though it took a little while to understand the complete procedure, the restoration procedure the merging activity on Exchange 2010 found to be little easy than the older versions of Exchange.

Here is how the recovery works (I was using Symantec BackupExec as backup solution),

Create a recovery database using the below shell command(it has to be created from Shell only at this point in time),

new-mailboxdatabase -Recovery -Name RDB1 -Server EXH3 -EdbFilePath "D:\RecoveryDBs\ RDB1\ RDB1.edb" -LogFolderPath "D:\RecoveryDBs\ RDB1"

Once the database is created, do not mount it. Ensure that the “this database can be overwritten by a restore” option is enabled before you go to restore the database. Once the Recovery DB is created, go to the backup software and restore the DB into this recovery database (BackupExec Exchange redirection has been shown below), this may be different in different backup software.


If you use the Symantec BackupExce software, it will initiate the log replay and finally mount the DB if the restore is success. Note that, you can only have one Recovery DB mounted at any point in time. So keep all other Recovery DB’s dismounted before you initiate the restore job.Once you are able to mount the Recovery DB successfully, you are all set to restore/merge the mailbox data to the desired mailbox. To restore individual mailbox, execute below cmdlet,

New-MailboxRestoreRequest -SourceDatabase " RDB1" -SourceStoreMailbox "PraveenBalan" -TargetMailbox “praveen.balan”

One thing to remember is to give the Display name of the user for “-SourceStoreMailbox” parameter and alias of the user to “-TargetMailbox” parameter. This will initiate the merging operation.Now if you would to initiate a bulk restore operation (bulk merge from Recovery Database), all you need to do is prepare a CSV file with DisplayName and Alias (looks like blow),

Praveen Balan,praveen.balan

Now, run the below power shell cmdlet,

Import-Csv C:\Input\Restorerequest.csv | foreach {New-MailboxRestoreRequest -SourceDatabase "RDB1" -SourceStoreMailbox $_.DisplayName -TargetMailbox $_.Alias}

Now if you wish to list all the available mailboxes on the recovery database, you may use the Get-MailboxStatitics cmdlet against it same as the other database.

Post comments if you face any issues, as I know this is really short explanation..


theme by reviewshub