Home » Exchange Server » How to Move Storage Groups and Databases in an Exchange 2007 CCR Cluster

How to Move Storage Groups and Databases in an Exchange 2007 CCR Cluster

Exchange Server 2007 makes it fairly easy to move storage group and database paths using a few simple commands. Except if you’re running an Exchange 2007 CCR cluster.

For CCR clusters the technique used for standalone Exchange 2007 mailbox servers has to be modified slightly to account for the fact that the CCR cluster can’t move the transaction logs and mailbox database files itself. Instead the administrator must move the files manually, and issue commands to update the storage group and database configurations to the new paths.

So if the process is different (some would say it is harder) why not take another approach?

For example, why not just delete the storage group and database you don’t want, and create new ones in the correct paths? This might be feasible for the default storage group and database created when the cluster was first installed, but once you have added mailboxes it is no longer an option.

In that case, why not just create the new storage group and database and migrate the mailboxes instead? That might work fine in some cases (certainly that’s how I’ve done it sometimes in the past), but if there is a lot of mailboxes you can run into problems managing the amount of transaction logging that the mailbox moves create. It can also take a lot longer than simply moving the storage group and database.

Preparing to Move a Storage Group in an Exchange 2007 CCR Cluster

Before you move a storage group in an CCR cluster I recommend that you first back up the database in that storage group. By running a full backup you:

  • Truncate the transaction logs, which reduces the amount of data that needs to be moved
  • Give yourself a very recent back up to restore from if something goes wrong

Next check the copy and replay queues to make sure they are up to date.

You should also make sure the new storage paths are properly configured and ready to be used in production.

Moving a Storage Group and Mailbox Database in an Exchange 2007 CCR Cluster

The first step is to suspend replication for the storage group.

Next, dismount the mailbox database.

With replication suspended and the database dismounted you can now move the files by simply copying them in Windows Explorer to the new locations. You must do this step on both cluster nodes, and make sure that the path matches on both nodes.

After copying the files the next step is to update the configuration of the storage group with the new folder path. Note the use of the -ConfigurationOnly switch on this command.

Now the configuration of the mailbox database is also updated with the new folder path. Again note the use of the -ConfigurationOnly switch.

Now we can mount the database again.

Finally, resume replication for the storage group.

The storage group and mailbox database have now been moved to the new locations and are back online. You can verify the health of the storage group by running Get-StorageGroupCopyStatus.

You can also use Test-ReplicationHealth to test the CCR cluster.

As a final test you can also verify that MAPI connectivity is working.

Paul is a Microsoft MVP for Office Servers and Services. He works as a consultant, writer, and trainer specializing in Office 365 and Exchange Server. Paul is a co-author of Office 365 for IT Pros and several other books, and is also a Pluralsight author.
Category: Exchange Server


  1. Jeff J says:

    I only want to move the System and Log files, not the Database itself. So, can I do as above but just use the Move-StorageGroupPath to set the new logs path?

    e.g. is the DB is on G: and the logs are on C: then the command would be
    Move-StorageGroupPath “First Storage Group” -SystemFolderPath E:SG1 -LogFolderPath E:SG1 -ConfigurationOnly

  2. Yat says:

    Hi Paul,

    If I only want to remove (delete) a mailbox database and storage group in a CCR cluster, is it just simply remove it from EMC? No need to do anything in Cluster Administrator?

    Best regards,


  3. Vee says:

    Hi Paul,

    This article was spot on and helped me out of a very big Jam. The only glitch was that I hadn’t done the copy of the DBs on to the passive server so when I mounted the DB and resumed the storage group it failed.

    Once I realised what was wrong I suspended and dismounted the SG and DB again then copied the files.
    I was good to go afterwards.



  4. Fazal Ur Rehman Shah says:

    Hi Paul,

    We have bought a new storage and need to move the DB to it. I wanted to know whether I just need to copy the DB to the new location or both the DB & logs has to be copied. We have Exchange 2007 CCR and DB & log are on different drives.

    Do let me know how should I proceed.


        • You’ve stated that you want to move the DB to new storage, and that the DB and logs are on different drives for your CCR cluster.

          Moving logs and moving DBs are two separate operations. In Exchange 2007 Move-StorageGroupPath is used to move the transaction log path, and Move-DatabasePath is used to move the DB path.

          So, you only need to copy the files for the things you plan to move. If all you want to move is the DB, then only the files in the DB folder need to be copied.

Leave a Reply

Your email address will not be published. Required fields are marked *