Dela via


How to Remove a Database from a Storage Group Enabled for Local Continuous Replication

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, Exchange Server 2007 SP1, Exchange Server 2007 SP2, Exchange Server 2007 SP3

This topic describes how to use either the Exchange Management Console or the Exchange Management Shell to remove a database from a storage group that is enabled for local continuous replication (LCR). The process is identical to that used to remove a database in a stand-alone configuration except that there are two copies of the data to remove: the active copy of the database and the passive copy of the database.

Before You Begin

To perform these procedures, 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 Microsoft Exchange Server 2007, see Permission Considerations.

Before you can delete a database, you must first remove all data. You cannot delete a mailbox database that contains mailboxes, and you cannot delete a public folder database that contains public folder replicas.

Procedure

To use the Exchange Management Console to remove a mailbox or public folder database from an LCR-enabled storage group

  1. Open the Exchange Management Console.

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

  3. In the result pane, select the server from which you want to remove the database.

  4. In the work pane, expand the storage group containing the database you want to remove.

  5. Right-click the database and select Remove. When the confirmation dialog box appears, click Yes to remove the database.

  6. A Microsoft Exchange Warning dialog box will appear, indicating that the removal was successful, and that you must manually delete the database file from the file system. Because the database being removed is in a storage group that is enabled for LCR, you must manually delete both the active copy and the passive copy of the database files.

  7. Click OK to clear the warning message.

To use the Exchange Management Shell to remove a mailbox database from an LCR-enabled storage group

  1. Run the following command:

    Remove-MailboxDatabase <Server>\<StorageGroup>\<Database>
    
  2. At the confirmation prompt, type Y, and then press ENTER. A warning message will appear, indicating that the removal was successful, and that you must manually delete the database file from the file system. Because the database being removed is in a storage group that is enabled for LCR, you must manually delete both the active copy and the passive copy of the database files.

To use the Exchange Management Shell to remove a public folder database from an LCR-enabled storage group

  1. Run the following command.

    Remove-PublicFolderDatabase <Server>\<StorageGroup>\<Database>
    

    If the public folder database being removed is the last public folder database in the organization, you must use the RemoveLastAllowed parameter with the command. Without this switch, the last public folder database in the organization cannot be removed.

  2. At the confirmation prompt, type Y, and then press ENTER. A warning message will appear, indicating that the removal was successful, and that you must manually delete the database file from the file system. Because the database being removed is in a storage group that is enabled for LCR, you must manually delete both the active copy and the passive copy of the database files.

    If the public folder database being removed is also the last public folder database in the organization, you will get a secondary warning indicating that the last public folder database in the organization is being removed. At the confirmation prompt, type Y, and then press ENTER. The warning message about deleting both copies of the data will appear, and other warnings related to offline address books may also appear. Review all warnings and take the appropriate actions.

For More Information

For detailed syntax and parameter information about the cmdlets, see Remove-MailboxDatabase and Remove-PublicFolderDatabase.