Lync里中央管理服务器CMS,怎么理解,承担那些功能和数据,最近看国外大牛写的文章很到位,顺便帖出来供大家学习。

原文地址:http://uc-dude.com/2014/09/26/simple-understanding-of-lync-cms/

Simple understanding of Lync CMS

I decided to write a “Simple Lync CMS Explanation” article, the difference with this article is that I decided to use easy words not big words as much as I can, to make it easier for Engineers with little SQL experience to understand Lync Database and how does it work, replicate…etc.
So less words and more diagrams to make it understandable, instead of 5 pages of words

What is CMS?Lync Central Management store (CMS), is a Microsoft SQL database (will be under the name xds in the SQL server) that is used by Lync to store the following data:

  • Topology (contain all data and information created by the Topology Builder)

  • Configuration (contain all Lync’s different settings e.g. Certificates, dial-in conferencing number)

  • Policies (contain the different Lync Policy e.g. dial plans, client policies, meeting policies)

Those kind of data are stored as XML documents in the database, and CMS services replicate those data to the required servers.

In previous versions as in OCS and OCS 2007 R2, those kind of data were stored in the Active directory, Windows Management Instrumentation (WMI) and also SQL database, if you had worked with OCS you will remember that you needed to extend the Active Directory Schema to add a new features or functions and wait for replication across your AD infrastructure to complete, with Lync CMS it became way much easier as all data are stored in one location.
NOTE: Lync still save some user object information in Active directory to maintain “Backward Compatibility” with OCS.
Data ScopeData stored in CMS can be stored with four different scope levels:

  • Global

  • Site

  • Service

  • Tag

For each of those scope, there will be only one xml document, so if you have in your Lync deployment a site Dial plan in addition to the Global dial plan, there will be two XML document in your CMS, one for the Global dial plan and one for the site dial plan.
If you have good experience with SQL, you can check the “Document” table in the xds database and you will notice that each xml document end with a “scope” and only one file exist by scope

How to access CMS?The answer for this question is “You cannot”, access to the CMS is limited by only a .dll file (programming library) called “Microsoft.Rtc.Management.Core”, the following Lync server tool are using this file:

  • Lync Control Panel

  • Lync Topology Building

  • Lync Management Shell

So to modify data in CMS, you must use one of those Lync Management tools.
NOTE: this .dll file has too many validation rules to check if what you trying to do is supported by Lync core design, then when it find that it is valid, it writes the new data to the CMS.
CMS Directory StructureBefore explaining how does the CMS replication works, I will explain the structure of the CMS directory, but first you need to know that CMS operate in a Single master / multiple replica (another word: Copies) system, we will talk more about that later in this article, but this mean that any Lync deployment has ONE and Only ONE master CMS stored in the Lync file store defined in the Lync Topology.

Inside the file store you can find the “Central Mgmt” folder that is used by the Master CMS to replicate data.

The xds-master folder is where all the magic happens, this folder is located in [url=]\\Lync fileshare\CentralMgmt folder\CMS FileStore\[/url]
xds-master contain two sub folders:

  • replicas

  • working

Inside the replicas folder, you can find a folder for each Lync server you have in your deployment, the folder name will be the FQDN of the Lync server, to make things easier, let us say you have a simple Lync deployment that consist of 1 Lync Frontend (lyncfe.lyncdude.local) and 1 Lync Edge server(lyncedg.lyncdude.local), inside the replicas folder you should find two subfolders of those two Lync servers

Inside each of those subfolders, you will find another two subfolders (just try to keep up, I’m putting a big diagram in the end to show you overall view of the structure):

  • from-replica

  • to-replica

Here, we finished explaining the structure of the xds-master directory in the file share, and below is a diagram that helps you visualize the structure of the xds-master directory

As I mentioned, for each server there is a replicas folder with its name in the [url=]\xds-master\replicas\[/url] directory. Each Lync server has a local “xds-replica” folder located under [url=]\\Lync server FQDN\xds-replica[/url] that it uses to replicate to or from the “xds-master
If you log into one of the Lync servers, and navigated to C:\ drive, you find a folder called“RTCReplicaRoot” where under it you will find the xds-replica folder

NOTE: IF YOU TRY TO ACCESS THIS FOLDER YOU WILL NEED TO CHANGE THE OWNER OF THE FOLDER WHICH YOU SHOULD NOT DO BECAUSE IT WILL BREAK YOUR LYCN SERVER, I DID THAT ON A LAB
Under the xds-replica you find three subfolders:

  • from-master

  • to-master

  • Working

How does CMS Replica worksLike I mentioned before, the CMS operate in Single Master / Multiplereplicas (copies) system, so one master located on the SQL backend server (called RTC), and each Lync server in the topology have a copy (replica) of this master (called RTCLOCAL).
In case of an Enterprise edition pool deployment you will have a dedicated SQL server as a backend, so it will be like the following diagram, the master (RTC) stored on the SQL server and each Lync frontend will have a copy (RTCLOCAL)

in case of a standard edition pool deployment the master xds and the replica (copy) will be both hosted in the same server using SQL Express server

In case of the Edge server, which is not joined to the domain and located on a DMZ network, it gets the replication using HTTPS
The location of the master CMS is stored in an Active directory object called “msRTCSIP-GlobalTopologySetting” which under its properties  you find an attribute named “msRTCSIP-BackEndServer”

This location is called “Service Connection Point” SCP which is created by the topology builder in the first time you published the topology and can be edited using the move-CsManagementServer cmdlet, or checked by using the Get-CsManagementConnection.
The CMS master has three service installed on it:

  • Lync Master Replicator Agent

  • Lync File Transfer Agent

  • Lync Replica Replicator Agent

All those services are running on the CMS Master except for the “Replica Replicator agent which is not, the Replica Replicator agent services runs on other Lync servers in the topology.
Step by Step Replication (more words)

  • Each 60 seconds a task run to check if there is any changes made to the CMS master that need to be replicated.

  • If changes are found (xml files), they are all packed in a Data.zip file which have size less than 100KB to make the replication fast

  • The data.zip is copied to each “to-replica” folder of each server’s replica folder in the xds-master directory

  • The FTA service running on the Master monitor all “to-replica” folders and once it sees a data.zip file in them it start the replication process

  • On the servers themselves, the Replica replicator is monitoring the “from-master” folder, once it sees a data.zip file in it, it unpack it and apply the changes to the server

  • After the changes are applied, a status.zip file is created and placed in the “to-master” folder in the server.

  • FTA is monitoring “to-master” folders on all Lync Servers and once it sees status.zip file it pull it to the “from-replica” folder on the CMS-Master

  • The Master replicator then unpack the package and update the status CMS-Master

For Edge: Lync edge server uses the replication web services over HTTPS / 4443 port to copy the Data.zip file, the replication web services uses the internal Certificate issued by the internal CA and trusted by the Lync in the replication process.
NOTE: it takes 60 seconds to pull changes from Master + some seconds to apply the changes + 60 seconds to pull from replica + some replication delays maybe, that’s why it takes up to 3 minutes for changes to reflect and be visible by the Lync users

转载于:https://blog.51cto.com/yangqs/1657831

什么是中央管理服务器(CMS)?相关推荐

  1. (5.1.5)引擎管理——多服务器管理之中央管理服务器(CMS)

    关键词:中央管理服务器,CMS,多服务器管理 中央管理服务器 -[1]打开 视图->已注册的服务器 [2]注册中央管理服务器 右击中央管理器->注册中央管理服务器 这里输入IP.主机名都可 ...

  2. 服务器运行多个jdk版本_如何使用中央管理服务器运行多个查询

    服务器运行多个jdk版本 介绍 ( Introduction ) When you have thousands of SQL Servers, it is very hard to administ ...

  3. 联想x3850x6重装系统_中心管理服务器介绍及配置方案:联想服务器 X3850X6

    中心管理服务器(CMS,CentralManagementServer),一般是指视频监控系统的中心管理服务器. 它可以: 作为B2BUA应用服务器提供网络视频监控业务: 作为管理中心提供客户/用户管 ...

  4. Graylog2+mongdb+rsyslog中央日志服务器对syslog的web管理--转载

    原文地址:http://blog.sina.com.cn/s/blog_49be4d570100yvv1.html 1.下载mongodb,可以通过下面2中方法安装. (1)官网下载yum源后直接安装 ...

  5. weblogic域,管理服务器,受管服务器,集群和机器的基本知识

    1.域(Domain) •它是什么? –是一个逻辑上管理的WebLogic Server组,这些组从管理上当作一个整体来操作 •域里面有什么? –服务器 –服务器集群 –机器 •规则: –同一个域中的 ...

  6. 站长管理服务器必读:Ftp、Ftps与Sftp三兄弟的不同与区别以及部署全指引

    文章标题: 站长管理服务器必读:Ftp.Ftps与Sftp三兄弟的不同与区别以及部署全指引 关键字 : ftp,sftp,freesshd,ftps 文章分类: 教程 创建时间: 2020年3月23日 ...

  7. 文档管理服务器文件的脱机编辑选项无法编辑,让MOSS2007文档的存取更具个性

    首页 > 技术文章 让MOSS2007文档的存取更具个性 本文是一系列文章中的一篇,请参阅: 在MOSS2007中只以标题形式显示通知列表 在MOSS2007中如何将子网站显示在主页 让MOSS ...

  8. 服务器远程管理app,用什么软件远程管理服务器最好? - 选择攻略!

    用什么软件远程管理服务器最好? - 选择攻略! (2012-06-13 01:59:02) 标签: 服务器 管理 最好 杂谈 用什么软件远程管理服务器最好? - 选择攻略! 远程控制就是从一台计算机上 ...

  9. 远程服务器系统管理,如何远程管理服务器系统(转载)

    在对服务器进行管理.优化时,既可以在现场进行,又可以远程管理服务器系统;但在很多时候,网络管理员由于种种原因无法出现在服务器现场,此时服务器管理就需要远程管理服务器系统了.现在,本文就为各位朋友贡献几 ...

最新文章

  1. 洛谷——P1258 小车问题
  2. 【xamarin + MvvmCross 从零开始】六、模拟器的配置与连接
  3. 在IE中使用Firebug
  4. VMware虚拟机打开后不兼容
  5. leetcode 141. 环形链表(快慢指针解法)
  6. 湖北汽车工业学院c语言程序设计 汽车零部件采购管理程序,湖北汽车工业学院c语言课程设计实验报告(采购信息管理系统).docx...
  7. 136. PHP 编程
  8. Github Projects 项目管理 怎么用
  9. IP地址库ipip.net
  10. 机器学习基石 作业四
  11. 电气防火限流式保护器应用场景及选型指南
  12. 解决:如何卸载WPS的vba宏功能
  13. PS教程:通道抠图美女发丝
  14. 移动端touch拖动事件和click事件冲突问题解决
  15. 从0到1详解推荐系统的基础知识与整体框架
  16. HTML系统学习(1)
  17. 封条格式用word怎么打_怎么用word制作封条
  18. PAT | 1025 反转链表 (25分)【超时问题 + 柳神代码】
  19. 11支付功能≠支付系统:微信支付宝通用支付系统开发实战
  20. Shade4PointLights

热门文章

  1. 细数 TS 中那些奇怪的符号
  2. eclipse 创建java窗体_eclipse新建窗体类
  3. 剑御九州手游辅助升级工具 提升战力材料介绍
  4. 有个开发者总结这 15 优雅的 JavaScript 个技巧
  5. 利用Java抓取网页数据
  6. illustrator内描边
  7. 安卓设置keychain_keychain(一)
  8. 三、以太网协议栈uIP移植
  9. ​格林纳达新任常驻WTO代表孙宇晨:用数字技术助推加勒比地区经济
  10. java通过ftl模板导出word最详细教程