Export (0) Print
Expand All
Expand Minimize

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

 

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

Topic Last Modified: 2007-01-02

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.

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.

importantImportant:
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.

  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.

  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 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.

To ensure that you are reading the most up-to-date information and to find additional Exchange Server 2007 documentation, visit the Exchange Server TechCenter.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft