Moving database files to another location
If you adequately sized your environment, including taking into account additional disk space for future growth, chances are that you'll never have to physically move a database to another location. However, sometimes lack of disk space, change of underlying storage subsystem or simply a change in the design of your environment might require you to move database file to another physical location.
Getting ready
To execute the following steps, launch the Exchange Management Shell. For more information on how to dismount a database have a look at Mounting/dismounting mailbox databases earlier in this chapter.
How to do it...
The following command will move the database files of a database called MDB01
to another location:
Move-DatabasePath –Identity "MDB01" –EdbFilePath "E:\NewPath\MDB01\MDB01.edb" –LogFolderPath "E:\NewPath\MDB01\Logs"
If you run the command while the database is mounted, the Exchange Management Shell will automatically throw a warning...