question

jeffmcnabney-8287 avatar image
0 Votes"
jeffmcnabney-8287 asked MikayelMikayelyan-7130 answered

Exchange 2016 renaming default database

Exchange 2016- Planning to rename default database. Once it is renamed, does it rename the .edb file and the root folder name as well, or does it maintain the existing folder and .edb name? Does the folder path change from:

\mdb_default\mdb_default.edb to \mdb_newname\mdb_newname.edb or does it change to \mdb_default\mdb_newname.edb ?

If it does keep those elements, and i want to have a different folder/database name, do i need to delete the default and recreate a new database if i have already created 4 other databases besides the default?

office-exchange-server-administration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndyDavid avatar image
1 Vote"
AndyDavid answered AndyDavid commented

It renames just the edb unless you also want it to be in a new folder. In that case, just set the path to the new folder structure and name in the command

 Move-DatabasePath -Identity MyDatabase01 -EdbFilePath C:\NewFolder\MyDatabase01.edb

Don't delete the default database if it contains the arbitration mailboxes or any mailbox!

 get-mailbox -arbitration

If the arbitration mailboxes are in the default DB and you want to remove it, move them to a new DB, then you can delete the default DB

 get-mailbox -arbitration | new-moverequest -targetDB <NewDB>
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

If i change the DB path to a new folder i've created, when i rename it, will the db get dismounted in order to move the path to a new folder?

0 Votes 0 ·

absolutely!

https://docs.microsoft.com/en-us/powershell/module/exchange/move-databasepath?view=exchange-ps#description


When you use the Move-DatabasePath cmdlet, consider the following:

If the specified database is mounted when this cmdlet is run, the database is automatically dismounted and then remounted, and is unavailable to users while it's dismounted.



0 Votes 0 ·
MikayelMikayelyan-7130 avatar image
0 Votes"
MikayelMikayelyan-7130 answered

Can I rename DB in production server ?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.