Applies to: Exchange Server 2007 SP3, Exchange Server
2007 SP2, Exchange Server 2007 SP1, Exchange Server 2007
Topic Last Modified: 2007-01-02
This topic explains how to use the Exchange Management Console or the Exchange Management Shell to set the location of mailbox or public folder database files.
Before You Begin
To perform the following 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.
Also, before you perform these procedures, be aware of the following:
- You cannot configure the location of database files from a
remote server.
- A database is automatically dismounted, and then remounted
while its files are being moved to a new location. During this
time, the database is inaccessible to any user.
Procedure
To use the Exchange Management Console to set the database file location when you create a database
-
Start the Exchange Management Console.
-
In the console tree, expand Server Configuration, and then click Mailbox.
-
In the result pane, click the Mailbox server that contains the storage group in which you want to create the database.
-
In the work pane, click the storage group in which you want to create the database.
-
In the action pane, click New Mailbox Database or New Public Folder Database. The New Mailbox Database wizard or New Public Folder Database wizard appears.
-
In the database name box, type the name of the new database.
-
On the New Mailbox Database or New Public Folder Database page, the Database file path box displays the default location of the database file. Click Browse to change the default location.
-
If you do not want the database to be mounted when it is created, clear the Mount this database check box. Mounting a database puts it online, thereby making its data available to users.
-
Click New to create the database. For more information about creating mailbox and public folder databases, see How to Create a New Mailbox Database and How to Create a New Public Folder Database.
To use the Exchange Management Console to change the database file location for an existing database
-
Start the Exchange Management Console on the server that contains the database.
-
In the console tree, expand Server Configuration, and then click Mailbox.
-
In the result pane, click the Mailbox server that contains the database for which you want to change the database file location.
-
In the work pane, click the desired database.
-
In the action pane, click Move Database Path. The Move Database Path wizard appears.
-
On the Introduction page, the Database file path box displays the location where your database file is currently stored. Click Browse to select a new location for the database file.
-
Click Move. A warning appears indicating that the database must be temporarily dismounted, which will make it inaccessible to any user. To continue, click Yes.
-
On the Completion page, confirm whether the database files were moved successfully. A status of Completed indicates that the wizard completed the task successfully. A status of Failed indicates that the task was not completed. If the task fails, review the summary for an explanation, and then click Back to make any configuration changes. Click Finish to complete the Move Database Path wizard.
To use the Exchange Management Shell to set the database file location when you create a mailbox database
-
Run the following command, using the EdbFilePath parameter to specify the database location:
Copy Code New-MailboxDatabase -StorageGroup "Server01\First Storage Group" -Name MailboxDatabase01 -EdbFilePath "D:\DatabaseFiles\MailboxDatabase01.edb"
-
To mount the new database, run the following command:
Copy Code Mount-Database -Identity MailboxDatabase02
For detailed syntax and parameter information, see the New-MailboxDatabase and Mount-Database reference topics.
To use the Exchange Management Shell to change the database file location for an existing mailbox database
-
On the server that contains the mailbox database, run the following command, using the EdbFilePath parameter to specify the database location:
Copy Code Move-DatabasePath -Identity "Server01\First Storage Group\First Mailbox Database" -EdbFilePath "D:\DatabaseFiles\First Mailbox Database.edb"
For detailed syntax and parameter information, see the Move-DatabasePath reference topic.
To use the Exchange Management Shell to set the database file location when you create a public folder database
-
Run the following command, using the EdbFilePath parameter to specify the database location:
Copy Code New-PublicFolderDatabase -Name "My Public Folder Database" -StorageGroup "Second Storage Group" -EdbFilePath "C:\Program Files\Microsoft\ExchangeServer\Mailbox\Second Storage Group\My Public Folder Database.edb"
For detailed syntax and parameter information, see the New-PublicFolderDatabase reference topic.
To use the Exchange Management Shell to change the database file location for an existing a public folder database
-
On the server that contains the public folder database, run the following command, using the EdbFilePath parameter to specify the database location:
Copy Code Move-DatabasePath -Identity "Server01\Second Storage Group\First Public Folder Database" -EdbFilePath "D:\DatabaseFiles\First Public Folder Database.edb"
For detailed syntax and parameter information, see the Move-DatabasePath reference topic.
For More Information
For more information about managing public folders, see Managing Public Folders.
For more information about managing mailbox databases, see Managing Mailbox Databases.
For information about configuring log files, see How to Set or Change the Location of Storage Group Log Files.