Proud to be an Exchange MVP
Video Guides
Surveys
Favorite Exchange Blogs
Microsoft Exchange Blogs
Exchange Training
Site Stats
Members : 2Content : 147
Content View Hits : 139943
| Switching CCR Storage Groups into Circular Logging during Migration - and why you might want to do this… |
|
|
| Written by Andy Grogan |
| Sunday, 11 October 2009 16:43 |
|
Ok, generally speaking – in production environments you would not consider running a Storage Group with Circular logging enabled. You see when you move a mailbox from Exchange 2003 / or indeed between servers within Exchange 2007, depending on the amount of Mailboxes that you are moving; and indeed the amount of messages contained therein – lots of Database Transaction logs can be generated. A way around this, and indeed if you Google the situation you will find that it is suggested by a number of people - is to switch the Storage Groups of your Target Databases into Circular logging (if you would like to find out more about CL I did a post on it HERE). Now for non-clustered Mailbox Servers – this is a pretty simple task – but a question that I have seen doing the rounds recently is how can you accomplish this if the target databases storage group is based around CCR? In Exchange 2007, and more to the point CCR – Circular Logging is called CRCL (Continuous Replication Circular Logging) – which unlike normal CL is managed by the replication service (normal CL is managed by the Information Store Service). Now the above is merely the pre-cursor to the following issues with having your Storage Groups using CRCL:
Therefore if you choose to enable CRCL for migration purposes – you should ensure the following:
Typically enabling Circular Logging is a very simple process – on a normal / non-CCR clustered Storage Group you would just use the command Set-StorageGroup -Identity
After which you can begin the process of Mailbox Migration – upon the completion of which you need to disable the Circular Logging on the Storage Group and re-enable your backups. Now the above – can be a bit of a pain – especially if you have multiple CCR Clusters, with Multiple Storage Groups and Databases therefore I would like to share a Powershell script that I wrote to assist me within my own migrations. The script (which you can download from the link below) should be executed on a CCR Cluster within your Environment (it does not have to be the server which contains the storage that you are working on) – the reason for this is that the script makes use of commands that depend on Windows 2008 / Windows 2003 clustering services being installed.
When you have download the script – it can either be executed via PowerGUI (recommended) or via the Exchange Management Shell (remember that you will need to have set the Execution level for PS script via Set-ExecutionPolicy RemoteSigned if you plan to run the script from the Management Shell). Script Usage:Open the Exchange Management Shell on the CCR Cluster where you downloaded the script to – type in the following command line (remember your Execution Policies):
You will then be presented with the CCR Mailbox Servers which have been found in your environment – the ID numbering starts from 0 – type in the ID number of the CCR that you wish to work with and press
You will then be presented with the Storage Groups which are located on that server – again like the previous step – the groups are numbered from 0 – type in the corresponding number of the SG that you wish to enable CRCL for and then press
You will then be asked if you would like to:
These are numbered options 1 and 2 – chose the correct number and then press
The script will now go away and enabled CRCL logging on the CCR Storage Group – you will be prompted to confirm that you want to Suspend the Storage Group copy and indeed if you wish to Dismount the Database which is contained within that Storage Group – confirm both – see below;
You are then ready to begin your Mailbox Migrations. Once completed you should run the script again – only on that occasion choose option 2 to disable CRCL logging on the Storage Group.
|
| Last Updated on Sunday, 11 October 2009 16:44 |








