Quick Tip: Moving RTCReplicaRoot Share
Posted on April 11, 2016 by Richard Brynteson in Skype for Business Lync Server 2013
Let’s start by issuing the following disclaimers.
**Warning #1. ** This is not supported in production environments. You should use at your own risk and should test/validate before implementing. I’m not responsible for anything you break.
Warning #2. This procedure has only been tested on Lync 2013 and Skype for Business 2015 servers. This has not been tested on 2010.
**Warning #3. ** This procedure has not been tested on the CMS Master in Skype for Business 2015. You should read this to find out why deleting this folder could be the end of the world (or your employment).
What’s the Issue
When you install Skype for Business (or Lync 2013/2010), where the installer puts your RTCReplicaRoot folder can be fairly random looking in nature. There is actually a full procedure of which drive it goes too based on the total number of drives available and and which drive you select to install the program files itself but regardless to say it goes to the wrong place sometimes.
In my research, I found two other posts (here and here) that detailed how to move it but in each case it required robocopy and other steps I didn’t want to take and weren’t 100% successful in my testing in the lab.
Move the Share
- Take a backup of your CMS just in case. export-csconfiguration and export-cslisconfiguration for good measure. Again, if you aren’t doing this on your CMS master it shouldn’t matter but just in case.
- Stop the Replica Replicator Agent service.
In my case, I was doing this on the pool paired server. So this is the backup pool and CMS was not active on this server but that is why you see the other CMS related services. If you are doing this scenario, you should stop file transfer agent and master replica agent as well for good measure.
- Go to the file location of your RTCReplicaRoot file share and delete it. If you want to make a copy of it, feel free too, but I just straight up removed it. You will need to take ownership of the folder to do this.
- Open regedit and go to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\5D0DD2910359E3F4C9DB7363485EFAF3In each instance, update the existing REG_SZ value to the location where you want the RTCReplicaRoot to be installed to. In my case, I’m moving from E:\RtcReplicaRoot to C:\RtcReplicaRoot.
Still in RegEdit, go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\REPLICA and update the ImagePath. This is a really long string that will include the program files but in the middle of the string you will see the replicaRootDir location. Update to your new location.
“D:\Lync 2013\Server\Replica Replicator Agent\ReplicaReplicatorAgent.exe” -s /replicaRootDir:C:\RtcReplicaRoot\ /sqlInstance:(local)\rtclocal /sqlDatabase:xds
- Go to Programs and Features and find Skype for Business Core Components and do a repair. The process of doing the repair will see that the folder is missing and recreate it for you with all of the correct permissions.
- Go back to services and restart the Replica service. You may find CLS is disabled as well, feel free to start that back up.
After about 5 minutes, you will find replica is in sync again and all is good.