How to Move a Storage Group and Its Database in a CCR Environment

Microsoft Exchange Server 2007 will reach end of support on April 11, 2017. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.


Applies to: Exchange Server 2007 SP1, Exchange Server 2007 SP2, Exchange Server 2007 SP3

This topic explains how to use the Exchange Management Shell to move a storage group and its databases to an alternate location in a cluster continuous replication (CCR) environment. You can use these procedures to move the first storage group (log files, system files, and database file) to an alternate location before installing the passive node. During any storage group or database file moves, the database in the storage group is dismounted. When moving the database file to an alternate location, you must physically move the file and then update its location using the Move-DatabasePath cmdlet.

Before You Begin

To perform these procedures, you must log on to the active node. To determine which node is the active node, you can run the Get-ClusteredMailboxServerStatus cmdlet. Examine the OperationalMachines parameter in the output of the Get-ClusteredMailboxServerStatus cmdlet. The node name that has the word <Active> to its right is the active node.

To perform thes procedures, the account you use must be delegated the following:

  • 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 Microsoft Exchange Server 2007, see Permission Considerations.


This procedure can only be performed after the active clustered mailbox role is installed, and before the passive clustered mailbox role is installed. You cannot perform this procedure if the CCR environment already has a passive node configured. For detailed steps on how to move a storage group or database in a CCR environment after a passive node has been added, see How to Move a Storage Group in a CCR Environment and How to Move a Database in a CCR Environment.


To move a storage group to an alternate location prior to installing the passive node

  1. Open the Exchange Management Shell.

  2. Run the following command:

    Move-StorageGroupPath -Identity:<Server\StorageGroupName> -LogFolderPath:<FullPathforLogFiles> -SystemFolderPath:<FullPathforSystemFiles> -ConfigurationOnly:$true
  3. A confirmation prompt appears that asks you to confirm that you want to perform the move action. Type Y and then press ENTER.

  4. A second confirmation prompt appears that indicates that the database in the storage group must be dismounted in order for the move operation to occur. Type Y and then press ENTER.

  5. After you perform this procedure, the database is in a dismounted state. If you also want to move the default location for the database file, leave the database dismounted and perform the procedure below. If you do not want to move the location of the database file, mount the database using either the Exchange Management Console or the Mount-Database cmdlet in the Exchange Management Shell.

To move a database to an alternate location prior to installing the passive node

  1. Use Windows Explorer to move the original default database (Mailbox Database.edb) from its original location to its new location. The default location of the first storage group is a subdirectory of the Exchange installation directory, such as \Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group.

  2. After the move is complete, open the Exchange Management Shell.

  3. Run the following command:

    Move-DatabasePath -Identity:<Server\StorageGroupName\DatabaseName> -EdbFilePath:<FullPathandFileNameforDatabaseFile> -ConfigurationOnly:$true
  4. A confirmation prompt appears that asks you to confirm that you want to perform the move action. Type Y and then press ENTER.

  5. Open the Exchange Management Console.

  6. In the console tree, expand Server Configuration and then click Mailbox.

  7. In the result pane, select the clustered mailbox server.

  8. In the work pane, expand First Storage Group and then select the mailbox database.

  9. In the action pane, click Mount database.

For More Information

For more information about the command syntax for the Get-ClusteredMailboxServerStatus cmdlet, see Get-ClusteredMailboxServerStatus.

For more information about mounting a database in a CCR environment, see How to Mount a Database in a CCR Environment.