Mounting Mailbox Database on Alternate Servers - Database Portability
Database portability is a feature that enables Exchange Server 2010 mailbox database to be moved to or mounted on any other mailbox server in the same organization.
Steps:
Source database name: movedatabase
Target database name: movedatabase1
1. Make sure to commit any uncommitted transaction log files to the source database.
Dismount the source database (in our case it is movedatabase)
Command: dismount-database "movedatabase"
Command to commit transaction logs: eseutil /r Enn
Note: To determine the logfile prefix (Enn): get-mailboxdatabase "movedatabase" fl logfileprefix
2. Create a new mailbox database on the target server
Command: New-MailboxDatabase -Name "movedatabase1" -Server Exch2010 -Edbfilepath c:\mdbdata\movedatabase\movedatabase.edb -Logfilepath c:\mdbdata\movedatabase
3. Do not mount the database, just enable the database to be overwritten
Command: Set-MailboxDatabase -identity "movedatabase1" -AllowFileRestore $true
4. Move the database files manually from source server to target (.edb file, log files and Exchange Search Catalog)
5. Mount the target database (movedatabase1)
Command: Mount-Database "movedatabase1"
6. Now you must modify the user account settings point to the mailbox on the new mailbox server. Command: Get-Mailbox -database "movedatabase" where-object {$_.objectclass -NotMatch '(SystemAttendantMailbox ExOleDbSystemMailbox)'} Set-Mailbox -database "movedatabase1"
Reference: http://technet.microsoft.com/en-us/library/dd876926.aspx
No comments:
Post a Comment