Forum Discussion

HamedNourollah's avatar
HamedNourollah
Copper Contributor
Aug 20, 2025
Solved

Assistance with Database Transaction log relocation

Dear Exchange Community, 

Recently, I have been tasked to relocate the Database log files and folders to another partition. to elaborate further, I have 2 mailbox servers with DAG configured and 4 Databases. As everyone is aware, one partition for databases and one dedicated for DBs logs (On both servers). I would like to know how can I do this, What are the requirements?  and what precautionary measures should I take in order to minimize the failure or even database corruption.

Any help regarding this matter would be appreciated a lot

Thanks

  • Use Move-DatabasePath in Exchange Management Shell to move the log files. Do it during maintenance, confirm recent backups, check DAG replication health, and ensure the new drive has proper space and permissions. Move one database at a time to reduce risk.

5 Replies

  • Dan_Snape's avatar
    Dan_Snape
    Iron Contributor

    Don't forget that the DB and log file path needs to be the same on all servers in a DAG that contain a copy of the mailbox database.

  • Bonilla's avatar
    Bonilla
    Iron Contributor

    Use Move-DatabasePath in Exchange Management Shell to move the log files. Do it during maintenance, confirm recent backups, check DAG replication health, and ensure the new drive has proper space and permissions. Move one database at a time to reduce risk.

  • Markowski's avatar
    Markowski
    Iron Contributor

    Use Move-DatabasePath in Exchange Management Shell to relocate database logs safely. Do it during maintenance, ensure recent backups, verify replication health in DAG, and move one database at a time. Always confirm the new path has enough space and proper permissions before proceeding.

Resources