Solved

Recovery Database Exchange  2010

Posted on 2013-10-23
14
544 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
  • 8
  • 6
14 Comments
 
LVL 4

Assisted Solution

by:lindento
lindento earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 4

Assisted Solution

by:lindento
lindento earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
yes correct
0
 

Author Comment

by:jskfan
Comment Utility
Name                           Server                              Recovery        ReplicationType
RecoveryDB               MyExchangeservname   True               None
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:jskfan
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Synchronize a new Active Directory domain with an existing Office 365 tenant
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now