Move Database and Log Folder Path in Exchange 2013
To view current list of databases type Get-MailboxDatabase cmdlet in EMS.
By default Exchange Database location is under C:\Program Files\Microsoft\Exchange Server\V15\Mailbox\ which is definitely not recommended place to store the Mailbox database.
It is always recommended to store Exchange Database and Logs on a different drive other than C:\ Drive.
Here, I will move both database and logs to F drive.
Before you proceed please be aware that:
- the command must be run while logged on to the mailbox server hosting the database
- this process requires that the database be dismounted while the move takes place, making it unavailable for mailbox users
- this process should not be followed for databases that are replicated within a Database Availability Group
- this process cannot be run at the same time as a backup is in progress
Move-Databasepath “Mailbox Database 0587117746″ -EdbFilepath “F:\ExchangeDB\Mailbox Database 0587117746.edb” -LogFolderpath “F:\ExchangeLog”
Now let’s verify if the database has changed its location. Run the following cmdlet again.
Get-MailboxDatabase | FL Name,*Path*