• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 617
  • Last Modified:

Recovery Database Exchange 2010

Recovery Database Exchange

I have created a recovery database and named it RecoveryDB in the E:\Recover folder
I restored the database MB1 from backup to RecoveryDB.
now if I go to E:\Recover folder , I see the MB1.edb there

I mounted the RecoveryDB and it shows Mounted in Exchange console.
Now if I try to get statistics of MB1 I get error:


[PS] C:\Windows\system32>Get-MailboxStatistics RecoveryDB
The specified mailbox "RecoveryDB" doesn't exist.
    + CategoryInfo          : NotSpecified: (0:Int32) [Get-MailboxStatistics], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : BF18515D,Microsoft.Exchange.Management.MapiTasks.GetMailboxStatistics


but it exists, if I run :Get-MailboxDatabase

Get-MailboxDatabase
RecoveryDB                         Exchang02   True            None

Now I need to restore from the RecoveryDB items of a usermailbox to a mailbox on the MB1 which is in production.

Any  help?

Thanks
0
jskfan
Asked:
jskfan
  • 8
  • 6
4 Solutions
 
lindentoCommented:
Hi, the command you want to run is:

get-mailboxdatabasestatistics -database RecoverDB

That should show you all mailboxes in that database.

Best Regards
0
 
lindentoCommented:
to recover the complete mailbox of a user use:

Restore-Mailbox -Identity 'John Smith' -RecoveryDatabase RecoverDB -RecoveryMailbox 'John Smith' -TargetFolder Recovery

which will put the contents into the subfolder or run search-mailbox from powershell to only get a subresult
0
 
jskfanAuthor Commented:
I ran the ESEUTIl against the database and it showed the state of Dirty shutdown.

I managed to mount it as well as view items on each mailbox using powershell.
I thought if it is in shutdown state it will not mount.

I alos get confused after restoring the database, it will keep the same name as the exiting one in production, so now when I enter a powershell query how do I know if the results came from the restored database or the existing one ?
0
Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

 
lindentoCommented:
Hi,

you address the database in powershell by its name, you can't have 2 databases with the same name, usually the filename of the database is also its name in exchange but that has not to be so for a recoverydb, the filename of the db for a recoverydb is specified when you created the recoverydb.

For example:

New-MailboxDatabase -Recovery -Name RecoveryDB -Server Exchang02 -EdbFilePath "E:\Recover\MB1.edb" -LogFolderPath "E:\Recover"

Best Regards
0
 
jskfanAuthor Commented:
in your case MB1.edb is the same name as the database file xxx.edb you are restoring ?
0
 
lindentoCommented:
yes correct
0
 
jskfanAuthor Commented:
Name                           Server                              Recovery        ReplicationType
RecoveryDB               MyExchangeservname   True               None
0
 
jskfanAuthor Commented:
but if you create a recovery DB with the same name as the one you are restoring, then after you mount it, you will end up with 2 Databases with the same name in exchange console, if exchange allows that at the first place.

I am not planning to overwrite the Database in production.  I want to restore a database then mount it and restore few items from a user mailbox.

However I can agree with you. If I go ahead and try to mount the RecoveryDB I created , I might get an error that it's not known by Active Directory.

Any clearance on that will be very much helpful
0
 
jskfanAuthor Commented:
I just check the RecoveryDB I created through powershell and it is showing as Dismounted in EMC.
I wonder now if I do a restore of the database that has different name than the RecoveryDB,  over the RecoveryDB will work ?

example: the database to restore is MBDB01
0
 
jskfanAuthor Commented:
http://www.symantec.com/connect/articles/exchange-server-2010-backup-databases-and-restore-rdb

on this link , the original database that is to be restored(db1) has different name than the Recovery database (RDB)
0
 
lindentoCommented:
The name of the database file is not important as long as you restore it to a different location than the live database.

For Example:

I got a live database name DB01 with the db file located in e:\mailstore\db01.edb

i restore a version of this database to e:\restore\db01.edb

Now i create a RecoveryDB with the command

New-MailboxDatabase -Recovery -Name RecoveryDB -Server Exchang02 -EdbFilePath "E:\restore\db01.edb" -LogFolderPath "E:\restore"


after creation i can now mount that database with the mount-db command

Now i got two databases with the same db file name, in different folder location with different names in exchange:

Exchangename:        db file:       folder:

DB01                        DB01.edb  e:\mailstore\
RecoverDB               DB01.edb  e:\restore\

Hope this clears it a bit up.
0
 
jskfanAuthor Commented:
Can you create a Recovery database before your restore the edb file?

Netbackup 7.5 seems like you will have to give it the location and name of the Recovery database you previously created in order to restore.
0
 
lindentoCommented:
yes this is possible, just use the same command it just created the structures in exchange without the db file. Then do the restore and mount the DB.
0
 
jskfanAuthor Commented:
Thanks
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 8
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now