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. Windows上安装HADOOP单机伪分布式集群
  2. 谈谈机器学习模型的部署
  3. 苏教版四下用计算机计算,苏教版四年级下册数学单元测试-4.用计算器计算 (含答案)...
  4. GDOI2021划水记
  5. WP7之Application Bar控件
  6. python不用加号实现加法
  7. c++ to_string 指定字符位数_你不知道的ES6字符串的扩展
  8. FUCKED-BUG之python子进程的键盘中断
  9. 没错,支付也有个七层模型
  10. java 1.6 jdk 64_jdk 1.6 64位官方下载|Java JDK(Java SE Development Kit) 1.6 64位版 - 121下载站...
  11. 操作系统实验一实验报告
  12. 转换成带有toc的html,JavaScript生成TOC
  13. centos7安装steam
  14. 程序猿段子_那些关于程序员的段子
  15. python代码错误有哪些_Python常见十六个错误集合,你知道那些?
  16. 排序负数排在左边非负数排在右边
  17. Debug Error :abort() has been called 报错原因及解决方法
  18. 什么是ERP?可能是全网最权威的解读
  19. 小学生心理测试软件,小学生趣味心理测试:性格测试
  20. .net 日期格式化

热门文章

  1. Tomcat报错系统找不到指定的路径
  2. Windows7 MSDN原版ISO镜像
  3. A Lightened CNN for Deep Face Representation读后感
  4. 小白在MAC上装mixly,出现“未能启动java.jar文件Mixly.jar”以及接Arduino UNO后电脑自动重启的问题
  5. 有关颜色敏感度测试的软件是啥,色彩敏感度测试:你是色盲吗?
  6. STM32 - Printf重定向使用微库、不使用微库(Keil) (转载)
  7. Games104笔记---LE1--现代游戏引擎导论
  8. 【号外】疑似阿尔法狗回归,Master打遍世界顶尖棋手没输过
  9. 成都 java_成都Java开发程序员薪资多少?
  10. linux修改sda3时间,Linux服务器磁盘占满问题解决(/dev/sda3 满了)