The last thing to note before starting with SCR is that we cannot back up a SCR target just a source SCR.
Activate SCR
In this series we will use two servers with the following three roles: Client Access Server, Mailbox Server and Hub Transport and they will run on Windows Server 2008 RTM. The script used in this article is similar to the one shown in Figure 2.
Standby Continuous Replication Management (SCR) - Part 1 Picture 2
Figure 2
The server placed in the main site ( srv-ex01 ) has Storage Group named UsersSG , the Mailbox database named UsersSG and all other log files along with the database will be stored in the path c: UsersSG , See figure 3.
Note :
In this article, our emphasis is on demonstrating how SCR will work. Keeping the database and log files on the same drive with the operating system is not a good solution and it is taboo in production environments.
Standby Continuous Replication Management (SCR) - Part 1 Picture 3
Figure 3
Let's open the Exchange Management Shell on srv-ex01 and list all the existing storage groups through the Get-StorageGroup –Server cmdlet . Our original purpose was to configure SCR on the UsersSG storage group. We will do this by using a command to enable the storage group to use a SCR target. Enable-StorageGroupCopy command in SP1 has some new options below:
Enable-StorageGroupCopy –Identity -StandbyMachine -ReplayLagTime day.hours: minutes: seconds 0.0: 0: 0> -TruncationLagTime
The name command works to enable the SCR target in the existing Storage Group. Using this command we get the key parameters used in SCR:
Note :
ReplayLagTime and TruncationLagTime cannot be changed, only disabling or activating the star will change their value.
Note :
There is a default value and can be changed for the slow time of 50 log files to avoid restarting in case of a failover. Even if the failure to fail could only occur with LCR / CCR execution, the 50 log files are still the default in SCR of SCR source.
The steps to list the storage group and create the UsersSG copy are shown in Figure 4.
Standby Continuous Replication Management (SCR) - Part 1 Picture 4
Figure 4
After a few minutes we will see a new entry appear in Event Viewer of the SCR target. This new item has EventID 2114 and source is MSExchangeRepl - basically this information will be a case where the storage group has started, see Figure 5.
Standby Continuous Replication Management (SCR) - Part 1 Picture 5
Figure 5
We can also use the Get-StorageGroupCopyStatus command to see the current SCR information, to get only the SCR information we can use the StandbyMachine parameter and the SCR Target server name, see Figure 6.
Standby Continuous Replication Management (SCR) - Part 1 Picture 6
Figure 6
We can validate the log file copy (Figure 7) in the SCR target ( srv-ex02 ), as you have seen before, the path used by the source must be the same in the destination. There is one thing that we still can't see as a database in SCR Target. This is a normal behavior because the database will be created in SCR Target only after 50 records are created in SCR source and after the replaylagtime parameter is also reached.
Standby Continuous Replication Management (SCR) - Part 1 Picture 7
Figure 7
Finally, let's look at srv-ex02 (Figure 08) and see no changes in the number of storage groups or mailbox numbers. The only way to manage SCR is to use the Exchange Management Shell. Note, however, that srv-ex02 will receive all the log files in the path c: UsersSG, but the information about it will not be displayed in the Exchange Management Console.
Standby Continuous Replication Management (SCR) - Part 1 Picture 8
Figure 8
Conclude
In this article we demonstrated how to enable SCR and define source and destination. We have also validated changes in the source server and destination server after enabling this feature. In the next part of this series we will test the possible scenarios, in these scenarios SCR can add more options to the disaster recovery plan and introduce how to recover using SCR.