Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Recovery Database Exchange  2010

Posted on 2013-10-23
14
Medium Priority
?
605 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 2000 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 2000 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 4

Assisted Solution

by:lindento
lindento earned 2000 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 2000 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

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

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

How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
As much as Microsoft wants to kill off PST file support, just as they tried to do with public folders, there are still times when it is useful or downright necessary to export Exchange mailboxes to PST files. Thankfully, it is still possible to e…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

618 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