For reason or another you may need to move or migrate the Central Management Store CMS Database. This can happen for; Move from a PoC to production, Disaster Recovery or other relocation reason.
Well, you will need to follow these steps:
1- Backup the current CMS and LIS Databases
Export-CsConfiguration –FileName C:\Configuration.zip
Export-CsLisConfiguration –FileName C:\LIS.zip
2- Now it is the time to think where to move the DB J, this can be to another Std. FE or SQL Server;
For the first choice – another Std. Server – make sure to do the following:
· Create the new FE in the Topology Builder, then publish.
· Install that FE Server
· Make sure to run the Prepare Standard Edition server option to install CMS RTC instance
For the second choice – another SQL Server – just proceed.
3- Run the below cmdlet in the Lync S Module imported;
If moving to another Standard Edition Front End Server,
Install-CSDatabase –CentralManagementDatabase –UseDefaultSQLPaths –SqlServerFQDN HT-LyncStd.HanyTaha.Lab -SqlInstanceName rtc
If moving to another SQL Server,
Install-CsDatabase –CentralManagementDatabase –UseDefaultSQLPaths –SQLServerFQDN HT-ClusterSQL01.HanyTaha.Lab
4- Enable the Topology by “Enable-CsTopology” cmdlet in order to enable changes made outside Topology Builder;
5- Run the cmdlet “Move-CsManagementServer” to Moves the Central Management Server from one pool to another. it will search for available pools and provide you with options to move the CMS
Or – in case of old CMS server is not there any more;
Move-CsManagementServer -ConfigurationFileName “C:\Configuration.zip” -LisConfigurationFileName “C:\LIS.zip” –Force