How to Move Database path and Log file in Exchange 2013

  

Let’s see on how to Move Database path and Log file path in Exchange 2013.

Installation of Exchange server 2013 mailbox will create a database at the default location C: drive. The default database path would be

C:Program FilesMicrosoftExchange Server2013MailboxMailbox DB (Example)

If you want to change database path and log folder path to a new location, you can do it in 2 methods. Either moving the current database to a new location or removing the current database and create a one at the new location.

Let’s see how to move the database to a new location. To move the database to a new location, you need to use the Move-Databasepath Cmdlet. Please aware, while running this command, the mailbox database should be dismounted. Also make sure no backup process is running while doing the database move.

To view current list of databases type Get-MailboxDatabase in Exchange management shell.

Assume I‘m moving a database DB1 to D:Mailbox DB1.edb and log folder to D:Mailbox

Run the below command.

Move-Databasepath "DB1" –EdbFilepath "D: Mailbox DB1.edb" –LogFolderpath "E:Mailbox"

Move Database only

If you want to move the database only, run the below command in EMS

Move-DatabasePath “DB1” –EdbFilePath “D: Mailbox DB1.edb”

Move Log file only

If you want to move the logs only, run the below command in EMS

Move-DatabasePath “DB1” –LogFolderPath “D:Mailbox” 

After moving the database and log, the source folders will remain. It’s recommended to delete them once you confirm successful move.

Add a Comment

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close