What a way to start the first day of spring (at least it’s the start of spring in South Africa) by having our exchange server not receive any email. At first we went through the default possible causes: Check that the mail store is up and running, check that the mailbox dbs are mounted, check that our external spam manager is up and available…but to no avail. It was DRIVE SPACE. We ran out of drive space… 😐
Okay so how do you move an edb and log file to a new location?
- Open Exchange Management Console
- In the console tree, navigate to Organization Configuration > Mailbox.
- In the result pane, on the Database Management tab, select the database you want to configure.
- In the work pane, click Move Database Path.
- In the Move Database Path wizard, under Database paths, click Move to move the database path to the default location. You can change the location for the database file path by editing the Database file path field. You can change the location for the log folder path by editing the Log folder path text field.
- View the status of the move operation. The wizard moves the database file path and the log folder path to the new location. Click Back to make configuration changes.
- On the Completion page, confirm whether the move process completed successfully. A status of Completed indicates that the wizard completed the task successfully. A status of Failed indicates that the task wasn’t 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.
You got to use the Exchange Management Shell to move the database path and log folder path in Exchange 2013
You will be using Move-Databasepath Cmdlet
Move-Databasepath “DatabaseName” –EdbFilepath “C:\Newlocation\DBname.edb” –LogFolderpath “C:\Newlocation”
- Dismount the mailbox database (*.edb)
- Manually copy the .edb and log file to the target location (Example: C:\Newlocation\)
- You got to use the Exchange Management Shell to move the database path and log folder path:
Move-Databasepath “DatabaseName” –EdbFilepath “C:\Newlocation\DBname.edb” –LogFolderpath “C:\Newlocation” –configurationonly
- Open the Microsoft Management Console and mount the database
- Make sure that there will be no more issues before deleting the old database
Hope this helps. 🙂