Thursday, November 17, 2011

Recover Mailbox / Database (Exchange 2010)

All of you know that there are no storage groups in Exchange 2010 and hence no recovery storage groups as well. A recovery database (RDB) serves the functions carried out by a recovery storage group in previous versions of exchange. Few points need to be understood before we start playing with restore options in 2010.

- You cannot create a recovery database using the console. Use shell instead (New-MailboxDatabase -Recovery -Name RDB -Server “servername” -EdbFilePath "path" -LogFolderPath "path” )
- Recovery database can only be used for 2010 databases. Previous versions are not supported.
- You cannot create mailbox database copies of a recovery database.
- Online maintenance isn't performed on a recovery database.
- You cannot enable circular logging on RDB.
- A recovery database cannot be used to recover public folder data.
- Only one RDB can be mounted on a mailbox server at any time.
- Access to RDB using Outlook or OWA is not allowed.
- Mailbox management policies are not applied on a RDB.
- Mailboxes in a recovery database cannot be connected to user accounts.
- Data from a RDB can be merged to an existing mailbox or exported to a folder.
(1) After you restored Logs and Database file in to M:\

(2) Check your Database file's health (Clean Shutdown or Dirty Shutdown)

eseutil /mh "M:\Recover\E\Exchange_Snap_31102011-2300-20732\Database\Operation & Exploration\Operation & Exploration.edb"

(3) Also check Log files OK or Not
eseutil /ml 'M:\Recover\D\Exchange_Snap_31102011-2300-20732\logs\Operation & Exploration\e00'

(4) Soft Recovery without (/i or /a) options
eseutil /r e00 /l "M:\Recover\D\Exchange_Snap_31102011-2300-20732\logs\Operation & Exploration" /d "M:\Recover\E\Exchange_Snap_31102011-2300-20732\Database\Operation & Exploration"

(5) Repeat step 2 for database health, if it's clean shutdown

(6) You can start create new recovery database via EMS command
New-MailboxDatabase -Recovery -Name DB-recover -Server ny-mb1-1 -EdbFilePath "M:\Recover1\Operation & Exploration\Operation & Exploration.edb" -LogFolderPath "M:\Recover1\Operation & Exploration"

(7) After you've created the recovery database, mount it.
Mount-Database -Identity DB-recover

(8) Get-MailboxStatistics -Database DB-recover

(9) To recover the mailbox from recovery database to live database
restore-mailbox -identity zawhtet -RecoveryDatabase DB-recover

(10) Restore mailbox from recovery database to itsupport's mailbox specific folder
restore-mailbox -identity itsupport -RecoveryDatabase DB-recover -RecoveryMailbox zawhtet -TargetFolder "ZawHtet recovery"

(11) Restore Specific EMails to folder
Restore-Mailbox -identityinfo -RecoveryDatabase DB-recover -RecoveryMailbox zawhtet -SubjectKeywords "fuck off" -ContentKeywords "Bitches" -IncludeFolders \Inbox\Calendar -TargetFolder "Zawhtet's lost folders"

(12) Restore all the mailboxes from recovery database
Get-Mailbox -Database DB-recover | Restore-Mailbox -RecoveryDatabase DB-recover

(13) Remove recovery Database
Remove-MailboxDatabase -identity DB-recover

If the above steps doesn't work, you need to make hard repair.

eseutil /p "M:\Recover\E\Exchange_Snap_31102011-2300-20732\Database\Operation & Exploration\Operation & Exploration.edb"

After the process successfully completed, you can start defrag the database

eseutil /d "M:\Recover\E\Exchange_Snap_31102011-2300-20732\Database\Operation & Exploration\Operation & Exploration.edb"


Alex said...

recovery exchange gives back exchange folders, messages and rest data are corrupted by viruses, malware, system errors. Program reads, analyzes and restore exchange server data. It can't change original exchange data during restoration. Tool is compatible with Win 98 and higher.

Luis Brown said...

To recover Exchange 2010 Server database, there is a very simple and easy to use tool known as Stellar Phoenix Exchange Server Recovery. This application repairs and recovers the damaged as well as lost mailboxes with its complete objects.