Applies to: Exchange Server 2007 SP3, Exchange Server
2007 SP2, Exchange Server 2007 SP1, Exchange Server 2007
Topic Last Modified: 2007-08-09
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
-
Open the Exchange Management Console.
-
In the console tree, expand Server Configuration, and then click Mailbox.
-
In the result pane, select the server from which you want to remove the database.
-
In the work pane, expand the storage group containing the database you want to remove.
-
Right-click the database and select Remove. When the confirmation dialog box appears, click Yes to remove the database.
-
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.
-
Click OK to clear the warning message.
To use the Exchange Management Shell to remove a mailbox database from an LCR-enabled storage group
-
Run the following command:
Copy Code Remove-MailboxDatabase <Server>\<StorageGroup>\<Database>
-
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
-
Run the following command.
Copy Code 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.
-
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.