Link to home
Start Free TrialLog in
Avatar of jskfan
jskfanFlag for Cyprus

asked on

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
SOLUTION
Avatar of lindento
lindento

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jskfan

ASKER

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 ?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jskfan

ASKER

in your case MB1.edb is the same name as the database file xxx.edb you are restoring ?
Avatar of lindento
lindento

yes correct
Avatar of jskfan

ASKER

Name                           Server                              Recovery        ReplicationType
RecoveryDB               MyExchangeservname   True               None
Avatar of jskfan

ASKER

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
Avatar of jskfan

ASKER

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
Avatar of jskfan

ASKER

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)
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.
Avatar of jskfan

ASKER

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.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jskfan

ASKER

Thanks