Thursday, March 11, 2010

Exchange Server 2010 - Move Database

Hello Everyone,

Today, we will see how to move database files from one location to another location.
there is a one-liner for this, the cmd-let is move-databasepath.

Below is the complete command.
move-DatabasePath -Identity 'MBX DB1' -EdbFilePath 'C:\MailboxDB\DB1\MBX_DB1.edb' -LogFolderPath 'C:\MailboxDB\DB1_Logs\'

Note, there are three parameters, 
         1.-identity -> this is where you give the name of the db
         2.-edbfilepath -> give the path of the new edb file along with the name of the new edb file.
         3.-logfolderpath -> as the name, you just need to give the folder path.

Did you notice something odd ?? , yes, in Exchange 2010, logs are individual for each DB, one DB has its own set of log files, not like in Exchange 2003, where you had log files shared among Storage Groups, this gives the admin more flexibility on working on a individual store and doesnt impact any other store at all.

You can see the screen shot below, once you key in the command, it will ask whether you want to proceed, becos moving database path may dismount the DB and users will not be able to access their mailbox during this period.
Confirm by typing Y and press enter and wait for the command line progress (see screenshot) , to complete.
Then you can see that the files are moved to the new location.
PS: note that in Exchange 2010, log file sise is reduced to 1MB from the typical 5 MB in Exchange 2003 :).
Now in the actual EMC (Exchange Management Console)  not the EMC company :) ... well you can see that the new paths are getting reflected.
Note that Database are now a ORG wide thing and it is moved under the ORG level, back in Exchange 2003, this was under Servers container.
Pretty sleek huh? , well this can be easily done using GUI as well, but who wants GUI ? :) ...

1 comment:

  1. To say the truth I had many troubles with MS Exchange but only some days ago I overcomed theirs. In this matter I was helped one tool. It made all easily and this program might be the same in this proposition as well - exchange recovery.

    ReplyDelete