Monday, January 9, 2012

Lync Replication Failure for Trusted Applications

Lync installs a local SQL Express instance on each Lync server called “RTCLOCAL”.  This database is used to hold a replica of the CMS database.  Anytime a configuration change is made in Lync, the changes get replicated from the CMS to all the local replicas on each server.

If you have set up a trusted application in Lync, like integration with Outlook Web App (OWA) or Group Chat, you will notice within the Topology view of the Lync Control Panel that a red X appears next to those servers.  By default, Lync assumes that all servers in the Topology will have a local CMS replica.

Lync Repl - Topology

You can also view this status by running: Get-CsManagementStoreReplicationStatus

Lync Repl - commandstatus

These servers do not have a RTCLOCAL instance and therefore do not need to be part of the replication cycle.  There are two options to disable replication for these trusted applications (my example will show disabling replication for the integration with OWA):

Option 1: Topology Builder

Open the Topology Builder and navigate to the Trusted Application Servers node.  Here we see that replication is enabled for this application:

Lync Repl - Topology Builder before - markup

Right-click on the object and select Edit Properties… Now uncheck the box labeled “Enable replication of configuration data to this pool”

Lync Repl - Topology Builder after - markup

Click OK and then publish the topology. 

Option 2: Command Shell

Open the Lync Management Shell and run: Get-CsTrustedApplicationPool

Here we see that the parameter –RequiresReplication is set to True.

Lync Repl - command repl - markup

To disable, run the following command:

Set-CsTrustedApplicationPool –Identity TrustedApplicationPool:webmail.twhlab.com –RequiresReplication $False

Lync Repl - command repl disable

Now when opening the Topology node within the Control Panel shows an “N/A” instead of a red X:

Lync Repl - Topology - after

1 comment:

  1. Nicely done; guess I can delete my draft on the same topic :)

    This same approach applies to third-party video conferencing solutions (like Polycom RMX or Cisco VCS) when defining Trusted Applications for those hosts as well.

    ReplyDelete