Solved

Recovery Database Exchange  2010

Posted on 2013-10-23
14
574 Views
Last Modified: 2013-10-29
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
Comment
Question by:jskfan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 6
14 Comments
 
LVL 4

Assisted Solution

by:lindento
lindento earned 500 total points
ID: 39595901
Hi, the command you want to run is:

get-mailboxdatabasestatistics -database RecoverDB

That should show you all mailboxes in that database.

Best Regards
0
 
LVL 4

Assisted Solution

by:lindento
lindento earned 500 total points
ID: 39595915
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
 

Author Comment

by:jskfan
ID: 39596116
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
Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

 
LVL 4

Assisted Solution

by:lindento
lindento earned 500 total points
ID: 39596140
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
 

Author Comment

by:jskfan
ID: 39596212
in your case MB1.edb is the same name as the database file xxx.edb you are restoring ?
0
 
LVL 4

Expert Comment

by:lindento
ID: 39596257
yes correct
0
 

Author Comment

by:jskfan
ID: 39596263
Name                           Server                              Recovery        ReplicationType
RecoveryDB               MyExchangeservname   True               None
0
 

Author Comment

by:jskfan
ID: 39596270
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
 

Author Comment

by:jskfan
ID: 39596276
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
 

Author Comment

by:jskfan
ID: 39596298
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
 
LVL 4

Expert Comment

by:lindento
ID: 39596313
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
 

Author Comment

by:jskfan
ID: 39596318
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
 
LVL 4

Accepted Solution

by:
lindento earned 500 total points
ID: 39596334
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
 

Author Closing Comment

by:jskfan
ID: 39610672
Thanks
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
A hard and fast method for reducing Active Directory Administrators members.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
Suggested Courses

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question