Enable and Disabling Circular logging on Exchange 2010 DAG Database on a fly.

In Exchange 2007 and earlier version of Exchange if you wanted to enable or disable circular logging then you should dismount and mount the database to bring this into effect. In Exchange 2010 if you enable or disable circular logging then this chance will come into effect with in 30 seconds. This is done with the help of replication service and you dont have to dismount and mount the active database to get this changes applied. I think this is cool. You can make the changes on the fly without disrupting the mailbox live users.

Enable circular logging on a Particular database

Get-mailboxdatabase -Identity DBname | set-mailboxdatabase -CircularloggingEnabled $true

Disable circular logging on a Particular database

Get-mailboxdatabase -Identity DBname | set-mailboxdatabase -CircularloggingEnabled $false

Enable Circular logging on all the Database in a perticular DAG

Get-mailboxdatabase -identity DAGname* | set-mailboxdatabase -CircularloggingEnabled $true

Disable Circular logging on all the database in a perticular DAG

Get-mailboxdatabase -identity DAGname* | set-mailboxdatabase -CircularloggingEnabled $false

Feeling nice to blog after a long time on a auspecious day 🙂

2 thoughts on “Enable and Disabling Circular logging on Exchange 2010 DAG Database on a fly.

  1. I enabled circular logging for one database, but stll the logs are not clearing. In my setup, i have 3 mbx servers and all 3 have copy of database. But mbx2 is temporarily down now. Is this causing the issue?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s