Problem Description

=================

Following the Lync Deployment Wizard to setup Database Mirroring with a witness for Lync 2013, it fails.

 

Story

=================

1. When I filled all the blanks in deployment wizard, and tried to publish topology, I got the following errors in report.

· Overall status: “Completed with errors”

· Error I get log:

But when I tried to use UDL file to connect to the LYNCDB2, I succeeded.

 

2. I run the publish topology wizard again, shows no error. Here is the question, does this no error means mirror succeeded?

 

3. Check the status of any Lync database, it shows:

 

4. Go to primary, mirror, and witness and check status. I saw:

· Databases in Primary are OK, only not configured for mirroring.

· Databases in Mirror show status of “In Recovery”.

· There are no Lync databases in Witness SQL instance.

 

5. Go to the mirroring file share, I can see full backup and transaction log backup. So, preparation for mirror should be OK.

 

6. Tried to manually setup Mirroring in Primary, failed. Because databases in Mirror is in “In Recovery” status. Databases in “In Recovery” status cannot be modified, and cannot be deleted.

 

7. To continue, we have to get rid of the “In Recovery” status in mirror instance. Use command below, and we can get a database change status to “Restoring”.

 

8. Tried to manually setup mirroring again. But the database will change status back to “In Recovery”. Back to starting point.

 

9. Read error log, we can see error below:

Database Mirroring login attempt failed with error: 'Connection handshake failed. There is no compatible encryption algorithm. State 22.'.  [CLIENT: 172.24.15.147]

 

10. Following this error message, we run the following SQL statement on primary, mirror, witness.

We found that primary and witness shows “RC4”, while the mirror shows “AES”

 

11. Run the following SQL statements to drop and recreate a new mirroring endpoint on mirror instance.

 

12. Run the following SQL statement to remove each problem databases from mirroring, and the status of those databases will show “Restoring”.

 

13. Manually setup SQL mirroring for a database, we finally succeeded.

Primary database shows status as below:

Mirror database shows status as below:

 

14. Continue the steps for other Lync DBs, and we will have mirrored backend setup finished.

 

Summary

======================

Following wizard of Lync 2013 and expecting the wizard will automatically setup database mirroring for me, but didn’t end up as expected.

Lync oddly created mirroring endpoints using different encrypt methods, two are of “RC4”, one is of “AES”. Totally comes out of nowhere. -_-||

This caused a series of problems and troubleshooting. I have gone through so many articles to get this over with. Microsoft…

 

Articles that helped with this troubleshooting

======================

Troubleshooting SQL Server Database Mirroring Problems with Best Practices: Requirements, and the 64-bit Benefit

http://www.sqlservercentral.com/blogs/hugo/2009/11/11/troubleshooting-sql-server-database-mirroring-problems-with-best-practices-requirements-and-the-64-bit-benefit/

Remove Database Mirroring (SQL Server)

https://msdn.microsoft.com/en-us/library/ms190471.aspx

SQL SERVER – The server network address “TCP://SQLServer:5023″ can not be reached or does not exist. Check the network address name and that the ports for the local and remote endpoints are operational. (Microsoft SQL Server, Error: 1418)http://blog.sqlauthority.com/2010/01/11/the-server-network-address-tcpsqlserver5023-can-not-be-reached-or-does-not-exist-check-the-network-address-name-and-that-the-ports-for-the-local-and-remote-endpoints-are-operational-microso/https://msdn.microsoft.com/en-sg/library/ms187050.aspx

View the State of a Mirrored Database (SQL Server Management Studio)

https://msdn.microsoft.com/en-sg/library/ms187050.aspx

Lync 2013安装中遇到的关于SQL Mirroring的一次报错的解决的更多相关文章

  1. window7下安装第三方包报错及解决

    window7 64位下安装第三方包,,比如安装yaml的exe执行文件,会 报错及解决:python version 2.7(3.4) required,which was not found in ...

  2. MySQL在windows系统中修改datadir路径后无法启动问题,报错1067

    windows server2008下如何更改MySQL数据库的目录的帖子已经很多了,这里简单介绍一个步骤,如果不成功请先查看其它帖子. 更改默认的mysql数据库目录 将 C:\Documents ...

  3. MySQL中遇到的几种报错及其解决方法

    MySQL中遇到的几种报错及其解决方法 1.[Err] 1064 - You have an error in your SQL syntax; check the manual that corre ...

  4. Eclipse中利用JSP把mysql-connector-java-8.0.13.jar放到WebContent\WEB-INF\lib中连接MySQL数据库时Connection conn = DriverManager.getConnection(url,username,password)报错的解决办法

    开发环境: 1.系统:windows 7/8/10均可 2.jdk:1.8.0_144 3.服务器:apache-tomcat-9.0.8 4.IDE:eclipse+jsp 0.网页代码如下: &l ...

  5. 关于Oxygen版 Eclipse JSP或html 中<option>标签嵌入jstl 如<c:if>出现报错

    Oxygen版 Eclipse JSP或html 中<option>标签嵌入jstl 如<c:if>出现报错 好好的学框架的整合,结果在<option>中加入< ...

  6. Pycharm中不支持中文编码的解决方案。Pycharm中文报错。 Pycharm出现的部分快捷键无效及解决办法

    Pycharm中不支持中文编码的解决方案.Pycharm中文报错. 1. 打开Pycharm ---->  File ----> Default setting ------> Ed ...

  7. centos7编译安装LNMP(nginx-1.16.0,mysql8.0.16,php-7.3.6)常见问题报错及解决方法

    LNMP的安装与配置 nginx-1.16.0安装及配置: 第一步:前往官网下载nignx源码包 下载完毕后上传至服务器(先安装lrzsz) yum -y install lrzsz 安装完毕后执行: ...

  8. vue.js 中使用(...)运算符报错的解决方法

    vue.js 中使用(...)运算符报错的解决方法 Syntax Error:Unexpected token(XX:X) }, computed:{ ...mapGetters([ 'pageSiz ...

  9. SQL Server2008数据库报错与解决方法

    一. 报错信息 启动MSSQLSERVER时有以下报错信息 打开SQL SERVER配置管理器,发现以下情况报错: 原因:由于先前安装了2005版VS,然后又安装了2015版VS 解决办法:卸载Loc ...

随机推荐

  1. Android通知栏沉浸式/透明化完整解决方案

    转载请注明出处:http://www.cnblogs.com/cnwutianhao/p/6640649.html 参考文献:https://github.com/ljgsonx/adaptiveSt ...

  2. 慎重使用volatile关键字

    volatile关键字相信了解Java多线程的读者都很清楚它的作用.volatile关键字用于声明简单类型变量,如int.float.boolean等数据类型.如果这些简单数据类型声明为volatil ...

  3. 【BZOJ 1061】 1061: [Noi2008]志愿者招募 (线性规划与网络流)**

    1061: [Noi2008]志愿者招募 Description 申奥成功后,布布经过不懈努力,终于成为奥组委下属公司人力资源部门的主管.布布刚上任就遇到了一个难 题:为即将启动的奥运新项目招募一批短 ...

  4. BZOJ.2806.[CTSC2012]Cheat(广义后缀自动机 DP 单调队列)

    题目链接 首先二分答案L.然后就是判断能否将原串划分出一些长度不小于L的子串,这些子串要是给定n个串中的某个串的子串,且满足它们的长度之和不小于原串长度的90%. 贪心多长选一段什么的显然不对.老老实 ...

  5. ios手机填坑总结

    1. 日期格式 ios系统.safari只能识别"2018/10/15 00:00:00",不能识别"2018-10-15 00:00:00",所以需要转换格式 ...

  6. SysTick Software Timer

    #ifndef __SYSTEM_H__ #define __SYSTEM_H__ #include <stdint.h> #include <stddef.h> #inclu ...

  7. AES CBC/CTR 加解密原理

    So, lets look at how CBC works first. The following picture shows the encryption when using CBC (in ...

  8. HDU 4568 SPFA + TSP

    这道题是长沙邀请赛的题,当时是道签到题. 这种题还是很常见的,讲一下思路. 首先是预处理出每个宝藏之间的距离,还有到边的距离,直接对每个宝藏进行一次SPFA就可以了. 然后就是经典的求TSP的过程. ...

  9. Xcode6 itunes完美打包api 方法

    转:http://bbs.csdn.net/topics/390948190 Xcode6 itunes完美打包api 方法! 特点轻盈小巧,方便快捷!

  10. 老美的zxing和日本的qrcode哪个好?

    ZXing用Java实现的多种格式的1D/2D条码图像处理库,Zxing库的主要部分支持以下几个功能:核心代码的使用.适用于J2SE客户端的版本.适用于Android客户端的版本(即BarcodeSc ...