Move the Lync Server 2010 Central Management Server to Lync Server 2013
Topic Last Modified: 2013-11-25
After migrating from Lync Server 2010 to Lync Server 2013, you need to move the Lync Server 2010 Central Management Server to the Lync Server 2013 Front End Server or pool, before you can remove the legacy Lync Server 2010 server.
The Central Management Server is a single master/multiple replica system, where the read/write copy of the database is held by the Front End Server that contains the Central Management Server. Each computer in the topology, including the Front End Server that contains the Central Management Server, has a read-only copy of the Central Management store data in the SQL Server database (named RTCLOCAL by default) installed on the computer during setup and deployment. The local database receives replica updates by way of the Lync Server Replica Replicator Agent that runs as a service on all computers. The name of the actual database on the Central Management Server and the local replica is XDS, which is made up of the xds.mdf and xds.ldf files. The master database location is referenced by a service control point (SCP) in Active Directory Domain Services. All tools that use the Central Management Server to manage and configure Lync Server use the SCP to locate the Central Management store.
After you have successfully moved the Central Management Server, you should remove the Central Management Server databases from the original Front End Server. For information on removing the Central Management Server databases, see Remove the SQL Server database for a Front End pool.
You use the Windows PowerShell cmdlet Move-CsManagementServer in the Lync Server Management Shell to move the database from the Lync Server 2010 SQL Server database to the Lync Server 2013 SQL Server database, and then update the SCP to point to the Lync Server 2013 Central Management Server location.
Preparing Lync Server 2013 Front End Servers before moving the Central Management Server
Use the procedures in this section to prepare the Lync Server 2013 Front End Servers before you move the Lync Server 2010 Central Management Server.
To prepare an Enterprise Edition Front End pool
On the Lync Server 2013 Enterprise Edition Front End pool where you want to relocate the Central Management Server: Log on to the computer where the Lync Server Management Shell is installed as a member of the RTCUniversalServerAdmins group. You must also have SQL Server database sysadmin user rights and permissions on the database where you want to install the Central Management store.
Open the Lync Server Management Shell.
To create the new Central Management store in the Lync Server 2013 SQL Server database, in the Lync Server Management Shell, type:
Install-CsDatabase -CentralManagementDatabase -SQLServerFQDN <FQDN of your SQL Server> -SQLInstanceName <name of instance>
Confirm that the status of the Lync Server Front-End service is Started.
To prepare a Standard Edition Front End Server
On the Lync Server 2013 Standard Edition Front End Server where you want to relocate the Central Management Server: Log on to the computer where the Lync Server Management Shell is installed as a member of the RTCUniversalServerAdmins group.
Open the Lync Server Deployment Wizard.
In the Lync Server Deployment Wizard, click Prepare first Standard Edition server.
On the Executing Commands page, SQL Server Express is installed as the Central Management Server. Necessary firewall rules are created. When the installation of the database and prerequisite software is completed, click Finish.
Note
The initial installation may take some time with no visible updates to the command output summary screen. This is due to the installation of the SQL Server Express. If you need to monitor the installation of the database, use Task Manager to monitor the setup.
To create the new Central Management store on the Lync Server 2013 Standard Edition Front End Server, in the Lync Server Management Shell, type:
Install-CsDatabase -CentralManagementDatabase -SQLServerFQDN <FQDN of your Standard Edition Server> -SQLInstanceName <name of instance - RTC by default>
Confirm that the status of the Lync Server Front-End service is Started.
To move the Lync Server 2010 Central Management Server to Lync Server 2013
On the Lync Server 2013 server that will be the Central Management Server: Log on to the computer where the Lync Server Management Shell is installed as a member of the RTCUniversalServerAdmins group. You must also have the SQL Server database administrator user rights and permissions.
Open Lync Server Management Shell.
In the Lync Server Management Shell, type:
Enable-CsTopology
Warning
If
Enable-CsTopology
is not successful, resolve the problem preventing the command from completing before continuing. If Enable-CsTopology is not successful, the move will fail and it may leave your topology in a state where there is no Central Management store.On the Lync Server 2013 Front End Server or Front End pool, in the Lync Server Management Shell, type:
Move-CsManagementServer
Lync Server Management Shell displays the servers, file stores, database stores, and the service connection points of the Current State and the Proposed State. Read the information carefully and confirm that this is the intended source and destination. Type Y to continue, or N to stop the move.
Review any warnings or errors generated by the Move-CsManagementServer command and resolve them.
On the Lync Server 2013 server, open the Lync Server Deployment Wizard.
In Lync Server Deployment Wizard, click Install or Update Lync Server System, click Step 2: Setup or Remove Lync Server Components, click Next, review the summary, and then click Finish.
On the Lync Server 2010 server, open the Lync Server Deployment Wizard.
In Lync Server Deployment Wizard, click Install or Update Lync Server System, click Step 2: Setup or Remove Lync Server Components, click Next, review the summary, and then click Finish.
Reboot the Lync Server 2013 server. This is required because of a group membership change to access Central Management Server database.
To confirm that replication with the new Central Management store is occurring, in the Lync Server Management Shell, type:
Get-CsManagementStoreReplicationStatus
Note
The replication may take some time to update all current replicas.
To remove Lync Server 2010 Central Management store files after a move
On the Lync Server 2010 server: Log on to the computer where the Lync Server Management Shell is installed as a member of the RTCUniversalServerAdmins group. You must also have the SQL Server database administrator user rights and permissions.
Open Lync Server Management Shell
Warning
Do not proceed with the removal of the previous database files until replication is complete and is stable. If you remove the files prior to completing replication, you will disrupt the replication process and leave the newly moved Central Management Server in an unknown state. Use the cmdlet Get-CsManagementStoreReplicationStatus to confirm the replication status.
To remove the Central Management store database files from the Lync Server 2010 Central Management Server, type:
Uninstall-CsDatabase -CentralManagementDatabase -SqlServerFqdn <FQDN of SQL Server> -SqlInstanceName <Name of source server>
For example:
Uninstall-CsDatabase -CentralManagementDatabase -SqlServerFqdn sql.contoso.net -SqlInstanceName rtc
Where the <FQDN of SQL Server> is either the Lync Server 2010 Back End Server in an Enterprise Edition deployment or the FQDN of the Standard Edition server.