locked
Will transaction logs transfer with mailboxes to new database? RRS feed

  • Question

  • Hi,

    Lets say I have 4 mailboxdatabases (in a DAG), I haven't done any backup so the transaction logs are  getting pretty big. If I create 4 new mailboxdatabases and migrate all mailboxes to the new databases, will the transaction logs be truncated, left on the old databases or will they move with the mailboxes to the new databases? If they're left with the old databases, can I just delete those and get rid of the transaction logs?

    If I can't remove the transaction logs like this, is it possible to truncate the logs without doing a backup?

    Thanks,

    Monday, August 20, 2012 1:38 PM

Answers

  • Hi,

    If you don't care for a backup - configure circular logging.

    Your method will not truncate the logfiles and it will create new sets of logfiles - one set for each database.

    Leif

    Monday, August 20, 2012 1:41 PM
  • Hi,

    when you have an old database with many logfiles and disabled circular logging and you move all mailboxes to the new mailbox database also with disabled circular logging. Then the new database will create new logfiles.

    In this scenario I do it like this:

    1. create the new dbs
    2. enable circular logging
    3. move mailboxes to the new db
    4. after moving all mailboxes I disable the circular logging
    5. now enable circular logging on the source db and dismount / mount the db
    6. after a short time you can see only a couple of logfiles at the source db log folder

    BTW, a daily backup from the Exchange DBs is not too bad :-)

    Arne


    Arne Tiedemann | Active Directory and Exchange specialist

    Monday, August 20, 2012 2:54 PM

All replies

  • Hi,

    If you don't care for a backup - configure circular logging.

    Your method will not truncate the logfiles and it will create new sets of logfiles - one set for each database.

    Leif

    Monday, August 20, 2012 1:41 PM
  • Hi,

    when you have an old database with many logfiles and disabled circular logging and you move all mailboxes to the new mailbox database also with disabled circular logging. Then the new database will create new logfiles.

    In this scenario I do it like this:

    1. create the new dbs
    2. enable circular logging
    3. move mailboxes to the new db
    4. after moving all mailboxes I disable the circular logging
    5. now enable circular logging on the source db and dismount / mount the db
    6. after a short time you can see only a couple of logfiles at the source db log folder

    BTW, a daily backup from the Exchange DBs is not too bad :-)

    Arne


    Arne Tiedemann | Active Directory and Exchange specialist

    Monday, August 20, 2012 2:54 PM
  • Thanks for the answers. I mapped a network-drive to one server and ran Windows Server Backup, it took a while I can tell you that but the transaction logs got truncated and released a lot of space on the disks :) I didn't know about circular logging before so I will look in to that. Thank you very much!
    Tuesday, August 21, 2012 12:33 PM