惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题
MyScale Blog
MyScale Blog
有赞技术团队
有赞技术团队
V
Visual Studio Blog
T
The Blog of Author Tim Ferriss
爱范儿
爱范儿
Vercel News
Vercel News
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Y
Y Combinator Blog
Blog — PlanetScale
Blog — PlanetScale
D
DataBreaches.Net
美团技术团队
Microsoft Security Blog
Microsoft Security Blog
大猫的无限游戏
大猫的无限游戏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
GbyAI
GbyAI
A
About on SuperTechFans
云风的 BLOG
云风的 BLOG
The Cloudflare Blog
宝玉的分享
宝玉的分享
V
V2EX
Microsoft Azure Blog
Microsoft Azure Blog

博客园 - 真幻de现实

EF 基础提供程序在 Open 上失败 flexbox学习 svn post-commit 同步 备份 log4net 2.0.4有问题,AdoNetAppender会报错 http://detectmobilebrowsers.com/ signalr 配置错误跟踪 Facebook的Web开发三板斧:React.js、Relay和GraphQL http://www.sqlservercentral.com/articles/Failover+Clustered+Instance+(FCI)/92196/ zozoui log4net 运行时改变日志级别 How do I enable log4net internal debugging? JsonFormatter PrettyPrint Site Not Found 如果asp.net mvc中某个action被执行了两次,请检查是不是以下的原因 IIs管理服务一直启动失败的原因之一 https://github.com/trending?l=csharp https://zeroc.com/index.html 有了这个工具,终于可以松一口气了
客户有两台windows服务器要做sql server双机切换
真幻de现实 · 2015-08-10 · via 博客园 - 真幻de现实

基本架构

2 windows 2008 server:安装成域控制器,实现故障转移(虚拟ip访问,共享磁盘阵列卷链接主服务器),安装sqlserver2012

1磁盘阵列共享卷:数据库文件放于其中,两台数据库服务器共享此数据文件。

------------------------------------------------------------------------------------------------------------

这种情况下,只有用ha比较适合了,从网上找了个免费的ha4win,配置了心跳ip监听,配置启动脚本,切换延迟大概在50秒左右

sqlserver.bat

set a=1
:loop
echo %a%
if exist s:\mssql goto :yes
set /a a+=1
@ping -n 4 127.1
if %a% lss 100 goto :loop
goto :not

:yes
net stop mssqlserver
net start mssqlserver
echo "启动成功"
goto :end

:not 
echo "启动失败"

:end
echo "end"