At some point, you might want to transfer your Mailbox database and/or Log folder to new location. In Exchange 2013 you can use Move-DatabasePath PowerShell cmdlet in Exchange Management Shell to move the database. As of now, you can’t move database using EAC. In this post, I will show steps to move database and log folder path in Exchange 2013 using PowerShell cmdlet in EMS.
Move Database and Log Folder Path in Exchange 2013
To view current list of databases type Get-MailboxDatabase cmdlet in EMS.
To view the location of any database type, Get-MailboxDatabase -DatabaseName | FL Name,*Path*. For example, we want to view the location of Database named “Mailbox Database 2018660615”. Type, Get-MailboxDatabase “Mailbox Database 2018660615” | fl Name, *path* in EMS as shown below.
As we can see above, the database is in default location, which is definitely not recommended place to store the Mailbox database. For starters, always store Database and Log files in separate drives other than the drive where Exchange is installed. For example, Exchange can be installed in C drive, Database can be stored in D drive and Logs can be stored in E drive.
Here, I will move both database and logs to D drive, but you get the idea right? To do so, type following cmdlet in EMS again.
***Note: – The database will be dismounted temporarily during the transfer so not a good idea to perform this task in live environment. You will also not be able to move database that is already configured for replication. You will have to stop the replication and move the database.
Move-Databasepath “Mailbox Database 2018660615″ -EdbFilepath “D:\Exchange Databases\Mailbox Database 2018660615.edb” -LogFolderpath “D:\Exchange Logs”
Now let’s verify if the database has changed its location. Run the following cmdlet again.
Get-MailboxDatabase “Mailbox Database 2018660615″ | FL Name,*Path*
As you can see above the database has been moved to new location successfully. You can also view this in EAC. Login to EAC, select servers in the features pane, then select databases tab. Open the properties of the particular database.
In this way you can move database and log folder path in Exchange 2013.
You may also like -
Latest posts by Bipin (see all)
- How to Disable Windows Update using Group Policy - June 27, 2019
- Turn Off Auto Mapping Feature in Exchange 2010 Mailbox - January 9, 2018
- Backup Exchange Mailboxes to PST with Iperius Backup - April 1, 2017