When planning a mailbox migration to Exchange Server 2007 you should consider the amount of transaction logging that will be generated by the move.  In low risk environments circular logging can be used to avoid disk space problems caused by the volume of transaction logs generated during bulk mailbox moves.

You can query the current state of circular logging on your storage groups with the Get-StorageGroup cmdlet.

[PS] C:\>Get-StorageGroup | fl name, circularloggingenabled

Name                   : SG1 Staff A-L
CircularLoggingEnabled : False

Name                   : SG2 Staff M-Z
CircularLoggingEnabled : False

Name                   : SG4 Public Folders
CircularLoggingEnabled : False

Name                   : SG3 Service Accounts
CircularLoggingEnabled : False

To enable circular logging use the Set-StorageGroup cmdlet.  You can enable circular logging on all storage groups together by piping a Get-StorageGroup command to Set-StorageGroup.

Get-StorageGroup | Set-StorageGroup -CircularLoggingEnabled $true

Get-StorageGroup will now reflect the change.

[PS] C:\>Get-StorageGroup | fl name, circularloggingenabled

Name                   : SG1 Staff A-L
CircularLoggingEnabled : True

Name                   : SG2 Staff M-Z
CircularLoggingEnabled : True

Name                   : SG4 Public Folders
CircularLoggingEnabled : True

Name                   : SG3 Service Accounts
CircularLoggingEnabled : True

Use Set-StorageGroup again to disable circular logging after your migration is complete.

Get-StorageGroup | Set-StorageGroup -CircularLoggingEnabled $false

About the Author

Paul Cunningham

Paul is a former Microsoft MVP for Office Apps and Services. He works as a consultant, writer, and trainer specializing in Office 365 and Exchange Server. Paul no longer writes for Practical365.com.

Comments

  1. Scott Millican

    Thanks for this script. I searched for about an hour looking for the syntax to simply confirm whether cle was true or false. It doesn’t show in the management console. However, the results came back as true and false four each of my five storage groups. Is this due to CCR?

    1. Avatar photo

      What do you mean by “came back as true and false”? A storage group is either enable or disabled for circular logging, it can’t be both at once. That applies to normal storage groups as well as storage groups in CCR clusters.

      But a server with multiple storage groups can have some storage groups enabled for circular logging, and others disabled. It is a per-storage group setting.

  2. ayman

    Dear Paul,

    How can I track user login to mailboxes in Exchagne 2007

  3. Michael

    Thanks for this. It was nice having it laid out for me to enter into the EMC. Worked like a charm!

Leave a Reply