Sunday, October 25, 2009

Configuring LCR – Local Continuous Replication:

Hi friends,

This article briefs the configuring LCR in the exchange 2007 server. As it name implies, the local continuous replication is the new feature in the exchange 2007 and it has the local copy of the database just like a mirror. Either you can do either in GUI or powershell, here I have explained in the powershell

Design the structure first, for example will have the below for our configuration,

SG1 – storage group name, SG1DB1 – database

Source system path (disk1): c:\SG1

Source log path (disk1): c:\SG1\log

Source edb path (disk1): c:\SG1\DB

Destination system path (disk2): D:\SG1LCR

Destination system path (disk2): D:\SG1LCR\log

Destination system path (disk2): D:\SG1LCR\DB

1. Enabling Database copy,

#Enable-DatabaseCopy –identity ‘servername\sg1\sg1db1’ –CopyEdbFilePath ‘D:\SG1LCR\DB\SG1DB1.edb’

2. Enabling Storage group copy,

#Enable-StorageGroupCopy –identity sg1 –CopyLogFolderPath ‘D:\SG1LCR\log’ -CopySystemFolderPath ‘D:\SG1LCR\DB’

3. To check the status of the replication,


The LCR Configuration has been completed now; you can check the logs which are copied from the source to the destination and also any new generated logs will automatically seed to the destination location as we defined above.

Restore from the LCR copy:

Let us assume that if something goes wrong with the source database, we are in a position to restore from the replica. So, let’s see how to do the restore,

1. Dismount the database - #dismount-database sg1db1

2. Restore from replica - #Restore-StorageGroupCopy –identity ‘servername\sg1’

3. Mount the database back - #mount-database sg1db1

4. Now, the point to be noted is old LCR configuration of SG1DB1 is no more enabled. Please enable the LCR for this Storage group again and also clear the old logs so that it will start seeding from the source from the first.

Hope the above is useful.




No comments: