Applies to: Exchange Server 2007 SP2, Exchange Server 2007 SP1, Exchange Server 2007 Topic Last Modified: 2007-08-21
This topic explains how to use the database portability feature in Microsoft Exchange Server 2007 to mount a mailbox database on a server other than the server on which the database was created. For more information about database portability, see Database Portability.
To perform the following procedure, the account you use must be delegated the Exchange Server Administrator role and local Administrators group for the target server. For more information about permissions, delegating roles, and the rights that are required to administer Exchange 2007, see Permission Considerations.
Before moving a mailbox database to a new server, the database needs to be in a Clean Shutdown state. If the database is in a Clean Shutdown state, proceed to Step 2. Otherwise, perform the following soft recovery step:
ESEUTIL /R <Enn>
Get-StorageGroup <Server_Name>\<StorageGroup_Name> | fl LogFilePrefix
Before you can mount the database, you must create the database on the new server. Select the storage group that will contain the database, and then create the database using the following Exchange Management Shell command:
New-MailboxDatabase -StorageGroup <Server_Name>\<StorageGroup_Name> -Name <Database Name>
Set the This database can be over written by restore attribute by running the following Exchange Management Shell command:
Set-MailboxDatabase <Database Name> -AllowFileRestore:$true
Move the database files (.edb files, log files, and Exchange Search catalog) to the appropriate location. The database files need to be present and in the correct location on the new server.
Mount the database using the following Exchange Management Shell command:
Mount-Database <Database Name>
After the database is mounted, modify the user account settings with the Move-Mailbox -ConfigurationOnly command so that the account points to the mailbox on the new mailbox server. To use the Move-Mailbox cmdlet to move all of the users from the old database to the new database, run the following Exchange Management Shell command:
Get-Mailbox -Database <SourceDatabase> |where {$_.ObjectClass -NotMatch '(SystemAttendantMailbox|ExOleDbSystemMailbox)'}| Move-Mailbox -ConfigurationOnly -TargetDatabase <TargetDatabase>
After the Active Directory directory service replication has completed, all users can access their mailboxes on the new Exchange server. Clients can connect to the new server as follows:
For more information about Autodiscover, see Managing the Autodiscover Service.
For more information about the Move-Mailbox cmdlet, see Move-Mailbox.
For more information about the Get-Mailbox cmdlet, see Get-Mailbox.
For information about using database portability when installing Exchange on a computer running the Windows Server 2008 operating system, see the Exchange Server Team Blog article Exchange Server and Windows Server 2008, Part II.
To review or join a discussion about specific database portability issues, see the following Exchange forum threads: