Windows : How to change the Exchange MailStore database path

By | July 30, 2016

By default, Microsoft Exchange Server will place the MailStore database in the installation folder as followed :

C:\Program Files\Micros
oft\Exchange Server\V15\Mailbox\Mailbox Database 0000000000\Mailbox Database 0000000000.edb

It may be suitable for small scale setup, however you may want to change it to a different path for various reasons when come to medium or large scale setup… especially for performance reasons (dedicated LUN, optimized file system unit allocation size, replicated geo localized block device storage, etc.). I would also recommend relocating to a dedicated drive even for small setups to avoid filling up the C drive… you can also benefit from the 64k filesystem unit allocation too!

To change it, simply open the Exchange management console (with administrative privileges).

WARNING! If you are doing this operation on an existing, production system, Exchange will dismount the database, which will be unavailable for all users. Also be aware of the time required to copy the DB to the new location…

If the database is replicated within a Database Availability Group, this procedure cannot be used.

You are now good to go for issuing the command to execute the relocation :

Example : Assuming your database is named “Mailbox Database 0000000000” and the new path you’d like to have the database is “D:\Program Files\Micros
oft\Exchange Server\V15\Mailbox\Mailbox Database 000000000\Mailbox Database 000000000.edb

You will be prompt for confirming the action, just say yes (Y) :

NOTE : You may also want to relocate the logs to a different device as well. If you are running a very large cluster, you probably want to send them to flash storage instead.

This can be achieved by adding the “–LogFolderpath” parameter to the command suggested above :

Example :




Be Sociable, Share!