Moving Database And Log File Path In Exchange 2010 DAG

Sometime we come across in a situation where we have to move database or log files path , its straight forward in standalone exchange server however when it comes to a database that is part of a DAG things might be tricky.

There are multiple ways and this is option 1

In This Demonstration, I Have Two Mailbox Servers Part Of DAG (E2K10-DAG) And We Are Changing The Database & Log File Path Of MB1

To Check The Current Mailbox Database & Log File Location, Run Below Command

Get-MailboxDatabase “Database Name” | FL Name,LogFolderPath,EDBFilePath

Suspend The Mailbox Database Copy Associated With The Mailbox Database

Suspend-MailboxDatabaseCopy -Identity “Database Name\Server Name” -SuspendComment "Changing Database Path"

Dismount The Active Mailbox Database

Dismount-Database –Identity “Database Name”

Changing Mailbox Database File Path & Log File Path Through Command Will Fail As It Part Of DAG

Move-DatabasePath -Identity MyDatabase01 -EdbFilePath “Database Location” –LogFolderPath “Log File Location

In This Case, We Need To Change It Through ADSIEDIT, Locate The Mailbox Database And Change The Below Attribute Manually

msExchEDBFile

msExchESEparamLogFilePath

msExchESEparamSystemPath

Manually Copy The Mailbox Database EDB File & Catalog Folder To The New Location

Mount The Active mailbox Database After Moving The File.

Mount-Database –Identity “Database Name” –Force

There Are Two Ways To Bring The Mailbox Database Copy In Healthy State

 1.Reseed The Mailbox Database Copy

Update The Mailbox Database Copy

 2.Create Same Folder Structure On Passive Server And Move Mailbox Database EDB File, Catalog Folder In New Database Location And Log Files To New Log File Location.

 

 

Resume The Mailbox Database Copy

Resume-MailboxDatabaseCopy –Identity “Database Name\Server Name”

 

Mailbox Database Copy Will Come In Healthy State.

Thanks

(Shekhar.Kembavi)