windowsserver无域配置故障转移群集帮助
《网络应用服务管理》形考任务-实训6:配置故障转移群集服务

《网络应用服务管理》形考任务-实训6:配置故障转移群集服务-标准化文件发布号:(9556-EUATWK-MWUB-WUNN-INNUL-DDQTY-KII实训6:配置故障转移群集服务实训环境1.一台Windows Server 2016 DC,主机名为DC。
2.两台Windows Server 2016服务器并加入域,主机名为Server1、Server2,并且连接至同一个存储设备上。
实训操作假设你是一家公司的网站管理员,需要你完成以下工作:1.验证群集配置。
启动故障转移群集管理控制台,在选中“故障转移群集管理”节点后,单击右侧的“验证配置”按钮,启动验证配置向导。
单击界面中的“下一步”按钮。
如果单击“下一步”按钮之前勾选“不再显示此页”复选框,则以后将不再显示这个欢迎界面。
在“选择服务器或群集”界面上,添加所有要测试的服务器的名称。
或者可以添加群集的名称或群集中节点的名称,对现有群集进行测试。
在“测试选项”界面上,选择一个测试选项,选择“运行所有测试”则可以测试所有项目。
如果要指定测试项目,则应该选择“仅运行选择的测试”,然后单击“下一步”按钮。
随后选择要运行的测试,默认情况下所有测试都是被选中的。
对于不希望进行的测试选项可进行反选。
选择完毕后单击“下一步”按钮。
在“确认”界面上,复查所有测试选项,然后单击“下一步”按钮即可开始测试。
向导会显示每一项测试的进度和状态,测试完成后,单击“查看报告”按钮以显示向导创建的报告。
如果有失败的测试,请重点查看失败的测试信息,并决定需要采取的操作。
2.创建故障转移群集。
启动故障转移群集管理控制台,在选中“故障转移群集管理器”节点后,单击右侧的“创建群集”按钮。
或者右击“故障转移群集管理器”节点,然后选择“创建群集”命令。
通过这两种方法都可以启动创建群集向导。
如果显示了“开始之前”界面,请阅读欢迎信息,然后单击“下一步”按钮。
在“选择服务器”界面中,添加所有希望加入该群集中的服务器名称,要添加服务器,请输入该服务器的主机名或IP地址,然后单击“添加”按钮。
王淞民:Windows 2019 故障转移群集【无域】

目录1.试验环境描述 (3)2.添加DNS和故障转移群集功能 (3)3.配置DNS (6)3.1.新建区域 (6)3.2.新建主机 (9)3.2.1.节点1 (10)3.2.2.节点2 (11)4.修改计算机名称 (11)5.配置主机IP地址 (12)6.配置ISCSI存储 (13)6.1.添加文件和存储功能 (13)6.2.配置I SCSI存储 (15)7.两个节点发现存储 (22)8.配置故障转移集群 (25)8.1.验证配置 (25)8.2.创建群集 (28)8.3.创建空角色 (30)8.4.添加IP地址 (32)8.5.添加存储 (34)8.6.节点2访问【连接到群集】 (36)8.6.1.方式一:输入默认信息【.】 (37)8.6.2.方式二:选择群集名称 (38)8.7.节点切换 (39)1.试验环境描述操作系统环境:Windows Server 2019 标准版共享磁盘:Windows 2019 iSCSI模拟共享磁盘2.添加DNS和故障转移群集功能两个节点分别添加角色和功能:DNS和故障转移群集。
3.配置DNS3.1.新建区域两个节点分别新建区域【hisdb.local】。
3.2.新建主机3.2.1.节点13.2.2.节点24.修改计算机名称两个节点分别增加【DNS后缀hisdb.local】。
5.配置主机IP地址6.配置iSCSI存储6.1.添加文件和存储功能6.2.配置iSCSI存储依次建立其它共享磁盘。
7.两个节点发现存储8.配置故障转移集群8.1.验证配置8.2.创建群集8.3.创建空角色8.4.添加IP地址8.5.添加存储8.6.节点2访问【连接到群集】8.6.1.方式一:输入默认信息【.】8.6.2.方式二:选择群集名称8.7.节点切换。
wnowserver无域配置故障转移群集帮助完整版

w n o w s e r v e r无域配置故障转移群集帮助HEN system office room 【HEN16H-HENS2AHENS8Q8-HENH1688】准备工作软件准备(1)?SQL?Server?2016(2)?Windows?Server?2016??DataCenter???64位(3)?VMware-workstation?12 Pro操作系统:都是Windows?Server?2016??DataCenter(只有Windows?Server?2016?才能无域配置集群)计算机名node1:WIN-VF232HI2UR6node2:WIN-1MCR65603IJIP规划第二步:添加DNS后缀(所有节点均需要此操作,且后缀需一致)第三步:所有节点上以管理员方式运行Powershell,然后执行以下命令new-itemproperty -path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name LocalAccountTokenFilterPolicy -Value 1或者也可以手动添加此注册表项(项名:LocalAccountTokenFilterPolicy,DWEORD(32位)值,值为1)HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System第四步:添加用户名,名称、密码均要一致,且隶属于Administrators第五步:添加节点映射(注意要把集群名以及虚拟IP加上)C:\Windows\System32\drivers\etc\host第六步:允许应用通过防火墙第七步:在其中一个节点上以管理员方式运行Powershell,然后执行以下命令创建集群命令:New-Cluster –Name <Cluster Name> -Node <Nodes to Cluster> -–StaticAddress <Cluster IP> -AdministrativeAccessPoint DNS说明:windows server 2016创建故障不支持图文界面操作,只能通过PowerSehll创建示例: -AdministrativeAccessPoint DNS--获取集群名Get-Cluster--群集详情Get-ClusterResource搞定,故障转移群集配置OK现在可以到“故障转移群集管理器”中查看群集。
WINDOWS2016故障转移群集(图文教程)

WINDOWS2016故障转移群集(图⽂教程)WIN2016故障转移群集准备⼯作:主机名IP域名所有主机配置主机信息修改好主机名IP DNS为本机IP (以单台主机A为例)互相ping测试连通性(以单台主机A为例)所有主机安装⾓⾊功能 DNS和故障转移群集(以单台主机A为例)所有主机配置DNS解析记录并测试解析新建正向查找区域NET新建反向查找区域新建正向查找区域记录默认已⽣成本机记录新建反向查找记录(我们新建正向记录勾选了PTR指针默认已经新建了B/C主机的反向记录)现在只需新建⼀条本机的PTR记录测试解析A主机配置故障转移群集 B/C主机连接到群集指定虚拟IP192.168.0.88主机A创建群集TEST主机B/C连接到群集TEST主机B(192.168.0.25)查看群集当前在⽤主机为哪台(⽹卡应有88IP)所有主机安装IIS 80端⼝为默认⽹页访问测试关闭掉在⽤主机(⽹卡有88的主机同时只会有⼀台) 查看在⽤主机被选为了哪台 192.168.0.88:80是否还可以打开(使⽤⽹络中其他主机来打开⽹页)关闭掉A主机后 B主机拥有了88IP ⽹页依然可以打开继续关闭B主机此时C主机拥有了88IP ⽹页依然可以打开参考:注:经后期测试建议不要将群集所有主机全部宕机否则会出现问题进阶:以上内容为群集搭建及群集中某主机宕机后恢复业务的情况下⾯记录⼀种主机没有宕机 IIS站点挂掉⽆法提供服务的情况新建⽂本⽂档修改为IIS.vbs 内容如下(虚线内内容)注意修改⽹站和应⽤程序池名称(默认⽆需修改) '<begin script sample>'This script provides high availability for IIS websites'By default, it monitors the "Default Web Site" and "DefaultAppPool"'To monitor another web site, change the SITE_NAME below'To monitor another application pool, change the APP_POOL_NAME below'More thorough and application-specific health monitoring logic can be added to the script if neededOption ExplicitDIM SITE_NAMEDIM APP_POOL_NAMEDim START_WEB_SITEDim START_APP_POOLDim SITES_SECTION_NAMEDim APPLICATION_POOLS_SECTION_NAMEDim CONFIG_APPHOST_ROOTDim STOP_WEB_SITE'Note:'Replace this with the site and application pool you want to configure high availability for'Make sure that the same web site and application pool in the script exist on all cluster nodes. Note that the names are case-sensitive. SITE_NAME = "Default Web Site" '⽹站名称APP_POOL_NAME = "DefaultAppPool" '应⽤程序池名START_WEB_SITE = 0START_APP_POOL = 0STOP_WEB_SITE = 1SITES_SECTION_NAME = "system.applicationHost/sites"APPLICATION_POOLS_SECTION_NAME = "system.applicationHost/applicationPools"CONFIG_APPHOST_ROOT = "MACHINE/WEBROOT/APPHOST"'Helper script functions'Find the index of the website on this nodeFunction FindSiteIndex(collection, siteName)Dim iFindSiteIndex = -1For i = 0 To (CInt(collection.Count) - 1)If collection.Item(i).GetPropertyByName("name").Value = siteName ThenFindSiteIndex = iExit ForEnd IfNextEnd Function'Find the index of the application pool on this nodeFunction FindAppPoolIndex(collection, appPoolName)Dim iFindAppPoolIndex = -1For i = 0 To (CInt(collection.Count) - 1)If collection.Item(i).GetPropertyByName("name").Value = appPoolName ThenFindAppPoolIndex = iExit ForEnd IfNextEnd Function'Get the state of the websiteFunction GetWebSiteState(adminManager, siteName)Dim sitesSection, sitesSectionCollection, siteSection, index, siteMethods, startMethod, executeMethodSet sitesSection = adminManager.GetAdminSection(SITES_SECTION_NAME, CONFIG_APPHOST_ROOT)Set sitesSectionCollection = sitesSection.Collectionindex = FindSiteIndex(sitesSectionCollection, siteName)If index = -1 ThenGetWebSiteState = -1End IfSet siteSection = sitesSectionCollection(index)GetWebSiteState = siteSection.GetPropertyByName("state").ValueEnd Function'Get the state of the ApplicationPoolFunction GetAppPoolState(adminManager, appPool)Dim configSection, index, appPoolStateset configSection = adminManager.GetAdminSection(APPLICATION_POOLS_SECTION_NAME, CONFIG_APPHOST_ROOT) index = FindAppPoolIndex(configSection.Collection, appPool)If index = -1 ThenGetAppPoolState = -1End IfGetAppPoolState = configSection.Collection.Item(index).GetPropertyByName("state").ValueEnd Function'Start the w3svc service on this nodeFunction StartW3SVC()Dim objWmiProviderDim objServiceDim strServiceStateDim response'Check to see if the service is runningset objWmiProvider = GetObject("winmgmts:/root/cimv2")set objService = objWmiProvider.get("win32_service='w3svc'")strServiceState = objService.stateIf ucase(strServiceState) = "RUNNING" ThenStartW3SVC = TrueElse'If the service is not running, try to start itresponse = objService.StartService()'response = 0 or 10 indicates that the request to start was acceptedIf ( response <> 0 ) and ( response <> 10 ) ThenStartW3SVC = FalseElseStartW3SVC = TrueEnd IfEnd IfEnd Function'Start the application pool for the websiteFunction StartAppPool()Dim ahwriter, appPoolsSection, appPoolsCollection, index, appPool, appPoolMethods, startMethod, callStartMethodSet ahwriter = CreateObject("Microsoft.ApplicationHost.WritableAdminManager")Set appPoolsSection = ahwriter.GetAdminSection(APPLICATION_POOLS_SECTION_NAME, CONFIG_APPHOST_ROOT) Set appPoolsCollection = appPoolsSection.Collectionindex = FindAppPoolIndex(appPoolsCollection, APP_POOL_NAME)Set appPool = appPoolsCollection.Item(index)'See if it is already startedIf appPool.GetPropertyByName("state").Value = 1 ThenStartAppPool = TrueExit FunctionEnd If'Try To start the application poolSet appPoolMethods = appPool.MethodsSet startMethod = appPoolMethods.Item(START_APP_POOL)Set callStartMethod = startMethod.CreateInstance()callStartMethod.Execute()'If started return true, otherwise return falseIf appPool.GetPropertyByName("state").Value = 1 ThenStartAppPool = TrueElseStartAppPool = FalseEnd IfEnd Function'Start the websiteFunction StartWebSite()Dim ahwriter, sitesSection, sitesSectionCollection, siteSection, index, siteMethods, startMethod, executeMethodSet ahwriter = CreateObject("Microsoft.ApplicationHost.WritableAdminManager")Set sitesSection = ahwriter.GetAdminSection(SITES_SECTION_NAME, CONFIG_APPHOST_ROOT)Set sitesSectionCollection = sitesSection.Collectionindex = FindSiteIndex(sitesSectionCollection, SITE_NAME)Set siteSection = sitesSectionCollection(index)if siteSection.GetPropertyByName("state").Value = 1 Then'Site is already startedStartWebSite = TrueExit FunctionEnd If'Try to start siteSet siteMethods = siteSection.MethodsSet startMethod = siteMethods.Item(START_WEB_SITE)Set executeMethod = startMethod.CreateInstance()executeMethod.Execute()'Check to see if the site started, if not return falseIf siteSection.GetPropertyByName("state").Value = 1 ThenStartWebSite = TrueElseStartWebSite = FalseEnd IfEnd Function'Stop the websiteFunction StopWebSite()Dim ahwriter, sitesSection, sitesSectionCollection, siteSection, index, siteMethods, startMethod, executeMethod, autoStartProperty Set ahwriter = CreateObject("Microsoft.ApplicationHost.WritableAdminManager")Set sitesSection = ahwriter.GetAdminSection(SITES_SECTION_NAME, CONFIG_APPHOST_ROOT)Set sitesSectionCollection = sitesSection.Collectionindex = FindSiteIndex(sitesSectionCollection, SITE_NAME)Set siteSection = sitesSectionCollection(index)'Stop the siteSet siteMethods = siteSection.MethodsSet startMethod = siteMethods.Item(STOP_WEB_SITE)Set executeMethod = startMethod.CreateInstance()executeMethod.Execute()End Function'Cluster resource entry points. More details here:'/en-us/library/aa372846(VS.85).aspx'Cluster resource Online entry point'Make sure the website and the application pool are startedFunction Online( )Dim bOnline'Make sure w3svc is startedbOnline = StartW3SVC()If bOnline <> True ThenResource.LogInformation "The resource failed to come online because w3svc could not be started."Online = FalseExit FunctionEnd If'Make sure the application pool is startedbOnline = StartAppPool()If bOnline <> True ThenResource.LogInformation "The resource failed to come online because the application pool could not be started." Online = FalseExit FunctionEnd If'Make sure the website is startedbOnline = StartWebSite()If bOnline <> True ThenResource.LogInformation "The resource failed to come online because the web site could not be started."Online = FalseExit FunctionEnd IfOnline = trueEnd Function'Cluster resource offline entry point'Stop the websiteFunction Offline( )StopWebSite()Offline = trueEnd Function'Cluster resource LooksAlive entry point'Check for the health of the website and the application poolFunction LooksAlive( )Dim adminManager, appPoolState, configSection, i, appPoolName, appPool, indexi = 0Set adminManager = CreateObject("Microsoft.ApplicationHost.AdminManager")appPoolState = -1'Get the state of the websiteif GetWebSiteState(adminManager, SITE_NAME) <> 1 ThenResource.LogInformation "The resource failed because the " & SITE_NAME & " web site is not started."LooksAlive = falseExit FunctionEnd If'Get the state of the Application Poolif GetAppPoolState(adminManager, APP_POOL_NAME) <> 1 ThenResource.LogInformation "The resource failed because Application Pool " & APP_POOL_NAME & " is not started." LooksAlive = falseExit Functionend if' Web site and Application Pool state are valid return trueLooksAlive = trueEnd Function'Cluster resource IsAlive entry point'Do the same health checks as LooksAlive'If a more thorough than what we do in LooksAlive is required, this should be performed hereFunction IsAlive()IsAlive = LooksAliveEnd Function'Cluster resource Open entry pointFunction Open()Open = trueEnd Function'Cluster resource Close entry pointFunction Close()Close = trueEnd Function'Cluster resource Terminate entry pointFunction Terminate()Terminate = trueEnd Function'<end script sample>将⽂件复制到所有群集主机的相同⽬录下如:C:\Windows\System32\inetsrv主机A打开故障转移群集管理器连接到群集TEST配置IIS故障转移此时我们在群集下⾓⾊列表⾥可以看到IIS故障转移群集⾓⾊查看⼀下WINC(192.168.0.26)主机的⽹卡情况现在我们模拟WINC主机IIS⽹页服务挂掉/端⼝⽆法访问打开WINC主机IIS管理器展开⽹页停⽌默认⽹站主机A上查看群集⾓⾊已经⾃动切换到WINB提供web服务查看WINB主机⽹卡信息 99IP已⾃动切换到WINB 我们打开的是WINB的⽹页同理我们关闭WINB的IIS⽹站 99⼜会切换到WINA 访问依然不受影响⾄此我们实现了主机在⾮宕机情况下 IIS站点挂掉后切换主机提供服务的情况注:1、本测试中99IP对应的不是整个IIS服务只是⼀个站点(默认站点)2、⽤户上传的附件需要⼀个群集共⽤的存储介质⽬前还未解决待完善参考:到此这篇关于WINDOWS2016故障转移群集(图⽂教程)的⽂章就介绍到这了,更多相关WINS2016故障转移群集内容请搜索以前的⽂章或继续浏览下⾯的相关⽂章希望⼤家以后多多⽀持!。
windows2012故障转移群集

Windows server 2012 Hyper-V故障转移群集和终端用户相比,企业用户对于业务的连续性和可靠性更为在意。
相对而言,企业一般不会将追逐单一硬件的性能排在第一位。
如何衡量业务是否持续可用,一般使用"x 个9"这种方式来定义。
如我们常说的"3 个9",即表示年可用性为99.9%,也即意味着一年只能有76 个小时的系统停机时间。
对于单台物理服务器而言,这意味着该设备一年内不能出现硬件损坏的情况,否则更换配件和重新上架的时间过长,很容易导致可用性等级超出这个标准。
像"5 个9",甚至"6 个9"这种高可用性是如何实现的呢?可想而知,通过单台物理服务器来实现这种目标将是非常苛刻且成本高昂的。
常见的可用性与相应的可允许停机时间如表8-1 所示。
为了满足企业对业务持续可用的追求,降低年故障停机时间,系统、网络、存储各大厂商都引入了"群集"的概念。
"群集"的作用是通过多台硬件同时运行来实现的,当故障发生时,通过快速且自动化的切换故障服务器,从而实现业务的持续运行。
和传统的硬件故障或网络故障发生后,需要人为参与排障不同的是,群集技术是不需要人为参与的,可以做到全自动运行。
当故障发生时第一时间转移故障节点,从而极大限度的提升业务持续可用的能力。
Windows Server 2012 R2 作为新一代的Cloud OS,其Hyper-V 角色自然也拥有"群集" 的能力。
Windows 下的群集技术被称之为"故障转移群集",Hyper-V 角色的故障转移群集目的很明确:当群集内某一台Hyper-V 主机出现故障无法提供服务时,可由群集内的其他主机快速接管任务,继续为用户提供持续可用的服务。
在介绍微软私有云之前,必须对微软的故障转移群集有深入的了解,它属于微软私有云实现高可用性的核心技术。
故障转移群集

故障转移群集必须满足硬件、软件和网络基础结构的某些要求,并且它需要一个具有适当域权限的管理帐户。
具体如下:(一)故障转移群集的软件要求一个故障转移群集中的所有服务器必须运行相同版本的Windows Server 2008。
服务器可以运行以下任一版本的操作系统:- Windows Server 2008 Enterprise- Windows Server 2008 Datacenter- Windows Server 2008 Enterprise 的服务器核心安装- Windows Server 2008 Datacenter 的服务器核心安装另外,所有服务器必须运行相同硬件版本的操作系统(32 位、基于x64 或基于Itanium 体系结构)。
例如,如果一台服务器运行的是基于x64 版本的Windows Server 2008 Enterprise,则故障转移群集中的所有服务器都必须运行该版本。
所有服务器还应具有相同的软件更新(修补程序)和Service Pack。
(二)故障转移群集的硬件要求在一个故障转移群集中,需要配备有以下硬件:(1)服务器:建议使用一组包含相同或相似组件的匹配计算机。
注意,仅当所有硬件组件均标记为"Certified for Windows Server 2008"时,Microsoft 才支持故障转移群集解决方案。
此外,完整配置(服务器、网络和存储)必须通过"验证配置"向导中的所有测试,该向导包含在故障转移群集管理单元中。
(2)网络适配器和电缆(用于网络通信):与故障转移群集解决方案中的其他组件一样,网络硬件必须被标记为"针对Windows Server 2008 进行了认证"。
如果使用iSCSI,则必须将网络适配器专用于网络通信或iSCSI,而不能同时用于两者。
在将群集节点连接在一起的网络基础结构中,要避免具有单个故障点。
Windows Server 2008R2 MSCS+SQL SERVER故障转移集群配置

Windows 2008 R2集群服务和SQLServer 2008 R2集群服务部署大体步骤:1.建立域控制器,配置好域控及两台成员服务器的网卡参数和DNS指向,修改各服务器的主机名。
成员服务器需要加入到域。
(成员服务器上设置IP时只选择IPv4,去掉IPv6的选项。
心跳网卡可以不设置dns,在成员和域控制器上要在网卡的高级属性中的wins选项中禁用NETBIOS。
)2.在域控制器dc上添加对私网地址网段的反向DNS解析。
(若成员服务器加入到域后没有对应的DNS记录可以尝试重启缺少记录的对应服务器)3.安装角色和功能时要确定安装“I/O多路径”“故障转移群集”应用服务器里的“传入、传出服务”“分布式协调器DTC”。
4.创建群集后在群集所在的节点上安装sql的故障转移群集,在备机上向sql server故障转移群集添加新的节点。
一、环境已部署好域环境如下图。
域控制器一台,安装有Windows Server 2008 R2,已加入域,IP地址为 1.1.1.30节点计算机两台:wloonga和wloongb,安装有Windows Server 2008 R2,已加入到域。
IP地址分别 1.1.1.1和1.1.1.2(需要先做好域并在域上建立一个sql server2008R2专用的组,并将sql用户加入domain admin组和群集服务器的本地管理员组。
)两台群集服务器在通过iscsi连接存储磁盘后在磁盘管理中设置相同的磁盘盘符如下已划分存储:二、在两台节点计算机wloong1和wloong2上添加多路径I/O功能在wloong1上过程如下:1、点击开始- 管理工具- 服务管理器- 功能- 添加功能2、选择“多路径I/O”3、点击安装,等待安装成功。
三、对三块磁盘进行磁盘管理在wloong1服务器上管理磁盘,盘符分别为Q、Z、M,wloong2 服务器只需对磁盘进行联机就可以。
注意盘符的划分,不能与服务器现有的盘符相同。
Windows Server Core 2008R2故障转移群集操作手册

Windows Server Core 2008R2故障转移群集操作手册1 引言本手册用于指导系统管理人员对系统集成提供一个统一的描述,为使用人员提供一个标准的描述,方便管理人员进行维护。
操作系统安装介质为:Windows Server Core 2008 R2 X64 企业版、安装系统组件:NetFx2-ServerCore、MicrosoftWindowsPowerShell、ServerManager-PSH-Cmdlets、BestPractices-PSH-Cmdlets、FailoverCluster-Core、WindowsServerBackup、Microsoft-Hyper-V注意:文档中的IP地址、群集名称和数据库名称均以东莞分公司IAP平台为例。
2 群集节点服务器系统必备组件安装在两台虚拟群集节点服务器上按正规流程安装好Windows Server Core 2008 R2的操作系统和所有系统必备组件,组件安装命令如下:Dism.exe /Online /Enable-Feature /FeatureName: Microsoft-Hyper-V/FeatureName:NetFx2-ServerCore /FeatureName:MicrosoftWindowsPowerShell/FeatureName:ServerManager-PSH-Cmdlets /FeatureName:BestPractices-PSH-Cmdlets/FeatureName:FailoverCluster-Core /FeatureName:WindowsServerBackup注:文档中本节以下所有脚本需在Powershell中执行。
3 开启群集节点服务器PowerShell远程操作权限由于PowerShell默认不发放脚本远程执行权限,故需手动打开,执行命令如下:powershell set-executionpolicy remotesignedpowershell Configure-SMRemoting.ps1 -force –enable4 修改群集节点计算机名通过以下命令修改宿主机计算机名:netdom renamecomputer 原计算机名 /NewName:新计算机名 /FORCE /REBoot:55 设定心跳网卡和公共网卡在两个节点上分别进行如下操作:1. 将服务器本地第一块网卡名称设置为Public(公共网卡),本地第二块网卡名称设置为Private(心跳网卡),配置命令如下:netsh interface set interface name=网卡原接口名称 newname=Public2. 设定Private网卡的地址,DNS留空不设定,配置命令如下:netsh interface ipv4 set address name=Private source=static address=IP地址 mask=子网掩码3. 设定Public网卡的地址,配置命令如下:netsh interface ipv4 set address name=Public source=static address=IP地址 mask=子网掩码 gateway=网关netsh interface ipv4 set dns name= Public source=static address=DNS地址 register=primary6 群集节点加入域将准备做成虚拟机群集的两个节点分别加入域,操作命令如下:netdom join 主机名/Domain:域名/userD:域用户名 /PasswordD:域用户密码 /REBoot:57 创建AD用户和相关组1. 登陆AD服务器进入子域下面的服务账户专用OU“Services”,然后在该OU下面建立名称为 clustersvc,密码按照移动的规范设定,并设定密码为永不过期。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
w i n d o w s s e r v e r无域配置故障转移群集帮助集团标准化工作小组 [Q8QX9QT-X8QQB8Q8-NQ8QJ8-M8QMN]
准备工作软件准备
(1)?SQL?Server?2016
(2)?Windows?Server?2016??DataCenter???64位
(3)?VMware-workstation?12 Pro
操作系统:都是Windows?Server?2016??DataCenter(只有
Windows?Server?2016?才能无域配置集群)
计算机名
node1:WIN-VF232HI2UR6
node2:WIN-1MCR65603IJ
IP规划
第一步:安装故障转移集(所有节点均需要此操作)
第二步:添加DNS后缀(所有节点均需要此操作,且后缀需一致)
第三步:所有节点上以管理员方式运行Powershell,然后执行以下命令
new-itemproperty -path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name LocalAccountTokenFilterPolicy -Value 1
或者也可以手动添加此注册表项(项名:LocalAccountTokenFilterPolicy,DWEORD(32位)值,值为1)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
第四步:添加用户名,名称、密码均要一致,且隶属于Administrators
第五步:添加节点映射(注意要把集群名以及虚拟IP加上)
C:\Windows\System32\drivers\etc\host
第六步:允许应用通过防火墙
第七步:在其中一个节点上以管理员方式运行Powershell,然后执行以下命令创建集群命令:
New-Cluster –Name <Cluster Name> -Node <Nodes to Cluster> -–StaticAddress <Cluster IP> -AdministrativeAccessPoint DNS
说明:windows server 2016创建故障不支持图文界面操作,只能通过PowerSehll创建
示例:New-Cluster –Name SQLAlwayOn -Node WIN-VF232HI2UR6,WIN-
1MCR65603IJ –StaticAddress -AdministrativeAccessPoint DNS
--获取集群名
Get-Cluster
--群集详情
Get-ClusterResource
搞定,故障转移群集配置OK
现在可以到“故障转移群集管理器”中查看群集。