Just a few easy instructions that will allow you to mount a lagged database in Exchange 2010 into a recovery database. This will allow you restore items/mailboxes that may have got deleted from a maximum of 14 days ago.
In these instructions I will be restoring a mailbox database name DB01 to the point in time of 03/08/2011, the date now is the 08/03.011. The Database and Transaction logs were located in E:DB01.
The file/database names will differ to your environment so please append steps when needed
1. Log onto Server that holds lagged EDB and create a folder on a drive that will have enough room for me to take a copy of DB01 Database and Log Files
2. Now Suspend database copy on DB01
3. Now copy the EDB from E:DB01 to the folder you created in step one (in my case it was E:RecoveryMBX)
4. Next we need to copy the transaction logs over. But depending on what transactional logs we choose will be the date the database will be reverted to.
For Example if we want to restore the database to the 03/08 we would copy all transaction logs that got created prior to and including the 03/08. i.e don’t copy anything from the 4th ,5th onwards.
5. Now open command prompt and navigate to the folder you create “E:RecoveryMBX”
6. Run the following command “eseutil.exe /r E03 /a /d E:RecoveryMBX /l E:RecoveryMBX” Please note E03 may need to be changed to the first 3 letters of the transaction log files that you copied will differ for each mailbox database. Ie some may be E01,E02 etc
7. Next open the Exchange Management Shell and Run “New-MailboxDatabase -Name “RecoveryDB” –Server LagServerName -EdbFilePath “E:RecoveryMBXDB01.EDB” -LogFolderPath “E:RecoveryMBX” –Recovery”
8. Now run Mount-Database “RecoveryDb”
9. If we now run “Get-MailboxStatistics –Database RecoveryDB” this will show us all mailboxes in the recovery database and the last logon time should give you a rough indication on the date the DB has been restored to.
10. Know you can recover anything you like from that recoverydb with the use of the “Restore-Mailbox” cmdlet.
11. Once you have finished with your recoveries run “dismount-database recoverydb” and then “Remove-Mailboxdatabase recoverydb”
12. You can then delete the “E:RecoveryMBX” folder to regain space
13. Finally Resume database copy on DB01