alwayson 增加节点

In this series of AlwaysOn High availability configuration in SQL Server, I am going to write step by step articles from pre-requisite to end configuration. This may help beginners who are going to configure for the first time.

在SQL Server的AlwaysOn高可用性配置系列中,我将逐步编写从必备组件到最终配置的文章。 这可能会对初次配置的初学者有所帮助。

AlwaysON is one of the High availability options in SQL Server which is used for a Disaster recovery solution. To configure AlwaysOn High availability, we should know some basic knowledge of Windows Server.

AlwaysON是SQL Server中用于灾难恢复解决方案的高可用性选项之一。 要配置AlwaysOn高可用性,我们应该了解Windows Server的一些基本知识。

To follow this article, you should be aware of basic things like Domain controller, Public, Private network, Subnet etc.

要阅读本文,您应该了解域控制器,公共网络,专用网络,子网等基本内容。

目的 (Objective)

In this article, we are going to learn, how to perform Domain controller and domain client nodes set-up and add two or more windows servers as a node into the domain controller domain and cluster by moving windows server node from local group to domain group. Windows server is a Microsoft operating system which is used as Platform to host SQL Server functionality.

在本文中,我们将学习如何执行域控制器和域客户端节点设置 ,以及如何通过将Windows服务器节点从本地组移动到域组来将两个或多个Windows服务器作为节点添加到域控制器域和群集中。 Windows服务器是Microsoft操作系统,用作承载SQL Server功能的平台。

There are many pre-requisites which we need to complete to configure AlwaysOn windows server, which we will explore in upcoming articles. Here we will see first pre-requisite that, it requires one domain controller and other windows nodes which will be part of AlwaysON, as a domain client

配置AlwaysOn Windows服务器需要完成许多先决条件,我们将在后续文章中进行探讨。 在这里,我们将看到第一个前提条件,它要求一个域控制器和其他Windows节点(将成为AlwaysON的一部分)作为域客户端

In this article, we are going to use three windows servers one domain controller and two other nodes as domain client.

在本文中,我们将使用三个Windows服务器(一个域控制器和两个其他节点)作为域客户端。

Let’s say we have below server configuration:

假设我们有以下服务器配置:

Servers

Domain Controller (Node 1)

SQL1 (Node 2)

SQL2 (Node 3)

Public IP

35.193.27.200

35.188.66.201

35.238.35.203

Internal IP

10.128.0.2

10.128.0.3

10.128.0.4

Default Gateway

10.128.0.1

10.128.0.1

10.128.0.1

伺服器

域控制器(节点1)

SQL1(节点2)

SQL2(节点3)

公共IP

35.193.27.200

35.188.66.201

35.238.35.203

内部IP

10.128.0.2

10.128.0.3

10.128.0.4

默认网关

10.128.0.1

10.128.0.1

10.128.0.1

As per requirement, we will make Node 1 as Domain controller and Node2 and Node3 as a domain client.

根据要求,我们将节点1设为域控制器,将节点2和Node3设为域客户端。

A domain controller is the main administrator server/Computer where we manage all domain client computers, Users and Groups. Also, most important, Cluster configuration to add all client nodes into cluster happen at domain controller in Failover Cluster Manager.

域控制器是主要的管理员服务器/计算机,我们在其中管理所有域客户端计算机,用户和组。 同样,最重要的是,将所有客户端节点添加到群集的群集配置在故障转移群集管理器中的域控制器上进行。

1.设置域控制器: (1. Set-up Domain Controller:)

Windows server is a member of either two types WORKGROUP and domain. We can check whether windows server is on WORKGROUP or domain as below

Windows服务器是WORKGROUPdomain两种类型的成员。 我们可以检查Windows服务器是否在WORKGROUP或域上,如下所示

Go to Control Panel>System and Security>System

转到控制面板>系统和安全性>系统

As we can see, windows server node 1 is on WORKGROUP, so we need to move it from WORKGROUP to domain.

如我们所见,Windows服务器节点1位于WORKGROUP上,因此我们需要将其从WORKGROUP移至域。

To move a computer from a local system to Domain system, we need to install two important features Active directory domain services (AD DS) and Failover Clustering Feature.

要将计算机从本地系统移至域系统,我们需要安装两个重要功能: 活动目录域服务 (AD DS)和故障转移群集功能。

Active Directory and domain services stores information of users, computers. Failover cluster means servers which are added into cluster i.e. group can interchange their roles and functionality to another server when a failure occurs to minimize downtime to end-user application.

Active Directory和域服务存储用户,计算机的信息。 故障转移群集是指添加到群集(即组)中的服务器在发生故障时可以将其角色和功能互换给另一台服务器,以最大程度地减少最终用户应用程序的停机时间。

Open Server manager and Click Add Roles and Features as shown below.

打开服务器管理器,然后单击添加角色和功能 ,如下所示。

Select default option Role-based or feature-based installation and click Next as below

选择默认选项基于角色或基于功能的安装 ,然后单击下一步 ,如下所示

Click Next

点击下一步

Select Active directory and domain services roles and click Next

选择“ Active Directory和域服务角色”,然后单击“下一步”。

Select Failover Clustering feature and click Next

选择故障转移群集功能,然后单击下一步。

Click Next, select checkbox Restart the destination server, if you want to restart server automatically after installation process completed otherwise keep it un-checked you want to restart manually

单击“下一步”,选中“重新启动目标服务器”复选框,如果要在安装过程完成后自动重新启动服务器,否则请取消选中它以手动重新启动

After Installation, we get installation succeeded message as below

安装完成后,我们收到如下安装成功消息

After Installation roles and Features, we can get a warning message to promote server as a domain controller as below. To set-up server as domain controller click Promote this server to a domain controller as below.

安装角色和功能之后,我们将收到一条警告消息,将服务器提升为域控制器,如下所示。 要将服务器设置为域控制器,请单击“将该服务器升级为域控制器”,如下所示。

We need domain controller as main administrator computer from where we manage other nodes. Make sure, we should not configure domain controller as a node in cluster.

我们需要域控制器作为管理其他节点的主要管理员计算机。 确保不要将域控制器配置为群集中的节点。

Select Add a new forest if we are adding new domain first time, and select your desired domain in the Root domain name and click Next

如果我们是第一次添加新域,请选择添加新林,然后在根域名中选择所需的域,然后单击下一步。

Note – If you are working on Virtual machine-like VMware workstation where you can mention. local as the domain name. otherwise we work at actual server, we can put domain as .com, .net etc.

注–如果在类似虚拟机的VMware工作站上工作,则可以提及。 本地作为域名。 否则,我们在实际的服务器上工作,我们可以将域设置为.com,.net等。

Select the default option and enter a password as shown below.

选择默认选项,然后输入密码,如下所示。

Click Next

点击下一步

Click Next

点击下一步

Click Next for Paths and Review

单击下一步进行路径和查看

To remove the above error, we need run below command as Administrator rights.

要消除上述错误,我们需要以管理员身份在命令下方运行。

NET USER ADMINISTRATOR <Password>\PASSWORDREQ: YES

NET用户管理员<密码> \ PASSWORDREQ:是

Click Install, After Install, a server will reboot automatically.

单击安装,安装后,服务器将自动重启。

After the restart, connect to a server and verify node1 domain controller added to domain Test.com as below

重新启动后,连接到服务器并验证添加到域Test.com的node1域控制器如下所示

Go to Command Prompt(cmd) and enter IPCONFIG note down IP settings for domain controller as below

转到命令提示符(cmd)并输入IPCONFIG,记下域控制器的IP设置,如下所示

2.配置IP设置 (2. Configure IP settings )

Go to Control Panel\Network and Internet\Network Connections

转到控制面板\网络和Internet \网络连接

3.在DNS中配置反向查找区域 (3. Configure Reverse lookup zones in DNS)

Go Tools > DNS

转到工具> DNS

Reverse lookup zone is looking for the domain name by IP address in reverse format.

反向查找区域正在按IP地址以反向格式查找域名。

Select the default selected option and click next

选择默认的选定选项,然后单击下一步

Click Next

点击下一步

Enter IP address as below

输入IP地址如下

4.权限设置 (4. Permission Settings)

Next, we will add domain controller account user dcadmin into Domain admins as below

接下来,我们将域控制器帐户用户dcadmin添加到Domain admin中,如下所示

Go to the properties of Domain admins and add dcadmin (domain controller username) as a member as below

转到域管理员的属性,并将dcadmin (域控制器用户名)添加为成员,如下所示

5.节点1(SQL1)配置 (5. Node 1 (SQL1) Configuration)

Add SQL1 to a domain

将SQL1添加到域

Go to Control Panel\Network and Internet\Network Connections, we can see SQL1 node is on WORKGROUP, so we will add into domain account Test.com as we created in previous steps.

转到“ 控制面板\网络和Internet \网络连接” ,我们可以看到SQL1节点位于WORKGROUP上,因此我们将按照在先前步骤中创建的方式将其添加到域帐户Test.com中。

To update IPv4 setting, Go to Control Panel\Network and Internet\Network Connections

要更新IPv4设置,请转到“ 控制面板\网络和Internet \网络连接”

Update Internal IP and Default Gateway IP of SQL1 node as shown below and most important, update internal IP of a domain controller (10.128.0.2) into Preferred DNS Server section.

如下所示更新SQL1节点的内部IP和默认网关IP,最重要的是,将“域控制器(10.128.0.2)”的内部IP更新为“首选DNS服务器”部分。

Go to again Control panel and access Control Panel\System and Security

再次转到“ 控制面板”,然后访问“控制面板\系统和安全性”

Click on Change setting put domain name as below click OK, it prompts us to enter Username and Password of Domain controller, provide correct username and password of a domain controller and click OK, we will get a successful message that node SQL1 has been successfully added to a domain as shown as below. Then we need to restart respective node to get effect changes.

单击更改设置,将域名如下所示,单击确定,它提示我们输入域控制器的用户名和密码,提供正确的域控制器的用户名和密码,然后单击确定,我们将收到一条成功消息,提示已成功添加节点SQL1到如下所示的域。 然后,我们需要重新启动各个节点以获取效果更改。

After the restart, Login to SQL1 node and verify whether our node is added to domain successfully as below

重新启动后,登录到SQL1节点并验证我们的节点是否已成功添加到域,如下所示

Note -Repeat the same process for other nodes which you want to add in a cluster in the same domain.

注意 -对要在同一域中的群集中添加的其他节点重复相同的过程。

Also, Add Domain controller as Administrator user into domain client SQL1 as below Go to Control Panel\User Accounts\User Accounts >Manager User accounts

另外,将域控制器作为管理员用户添加到域客户端SQL1中,如下所示:转到“ 控制面板\用户帐户\用户帐户>管理员用户帐户”

Note – If we do not add domain controller as administrator into its respective nodes, we will get an error while Validation cluster configuration wizard.

注–如果不将域控制器作为管理员添加到其各自的节点中,则在验证群集配置向导时将收到错误消息。

Enter Username as Domain controller user dcadmin and Test as Domain click Next

输入“用户名”作为域控制器用户dcadmin,然后输入“测试为域”,单击“下一步”。

Select Administrator role and click Next and then Finish

选择管理员角色,然后单击下一步,然后单击完成

6.验证集群配置 (6. Validate Cluster Configuration )

In Validate cluster configuration, we are going to add client computers in Cluster which are in domain system Test.com

在“验证群集配置”中,我们将在域系统Test.com中的“群集”中添加客户端计算机。

Go to Failover Cluster Manager > Validate Configuration and Add node SQL1 into the cluster as below

转到故障转移群集管理器>验证配置,然后将节点SQL1添加到群集中,如下所示

Select Run all tests option and click Next

选择“运行所有测试”选项,然后单击“下一步”。

Click Next

点击下一步

click Next to run validation. Validation completed successfully, and you may get warnings.

单击“下一步”运行验证。 验证成功完成,您可能会收到警告。

Select the checkbox to create Cluster further.

选中复选框以进一步创建集群。

7.创建集群 (7. Create a Cluster)

In below Cluster creation wizard, provide any Cluster name and provide IP address depends on your IP range and Click Next

在下面的“群集创建向导”中,提供任何群集名称并提供IP地址取决于您的IP范围,然后单击“下一步”。

Click Next to run cluster creation progress

单击下一步以运行集群创建进度

After Validation cluster and Cluster creation, we can see that first node SQL1 is showing online as below in failover cluster manager.

在验证集群和集群创建之后,我们可以看到第一个节点SQL1在故障转移集群管理器中显示为联机状态,如下所示。

In this way, we have created domain controller and added others windows server nodes as domain client.

这样,我们创建了域控制器,并添加了其他Windows服务器节点作为域客户端。

目录 (Table of contents)

Domain Controller and Domain Client Node setup for AlwaysON High Availability
iSCSI, iSCSI Initiator, Quorum Configuration and SQL Server Cluster Installation
Configuring a SQL Server AlwaysOn High Availability Group
用于AlwaysON高可用性的域控制器和域客户端节点设置
iSCSI,iSCSI发起程序,仲裁配置和SQL Server群集安装
配置SQL Server AlwaysOn高可用性组

翻译自: https://www.sqlshack.com/domain-controller-and-domain-client-node-setup-for-alwayson-high-availability/

alwayson 增加节点

alwayson 增加节点_用于AlwaysON高可用性的域控制器和域客户端节点设置相关推荐

  1. 动态加载子节点_微信小游戏开发之场景切换和常驻节点传递数据

    主题 场景切换 场景间数据传递方式 小游戏全局背景音效 特别说明 CocosCreator微信小游戏开发系列文章,是我在逐步开发过程中,基于官方文档之上,记录一些重点内容,以及对官方文档中有些知识点的 ...

  2. python删除链表中重复的节点_剑指offer:删除链表中重复的节点

    题目描述 在一个排序的链表中,存在重复的结点,请删除该链表中重复的结点,重复的结点不保留,返回链表头指针. 例如,链表1->2->3->3->4->4->5 处理后 ...

  3. python删除链表中重复的节点_删除链表中所有值与Python相同的节点的程序

    假设我们有一个单链接列表和一个目标,则在删除所有值与目标相同的节点后,我们必须返回相同的链接. 因此,如果输入类似于[5,8,2,6,5,2,9,6,2,4],则输出将为[5.8.6.5.9.6.4, ...

  4. 链表倒数第k个节点_面试题 02.02. 返回倒数第 k 个节点

    实现一种算法,找出单向链表中倒数第 k 个节点.返回该节点的值.注意:本题相对原题稍作改动示例:输入: 1->2->3->4->5 和 k = 2 输出: 4 说明:给定的 k ...

  5. wpf展开树节点_【转】WPF TreeView如何展开到某个节点

    初用WPF的TreeView控件,需要将树展开到某个特定的TreeViewItem,各种方法都尝试过,却发现代码总在某些情况下出错,然后仔细研究,才发现其中的曲折. 解决问题的思路是,得到从树的根节点 ...

  6. python 链表倒数第k个节点_链表-删除单链表中倒数第k个节点

    题目 实现一个函数,一个可以删除单链表中倒数第k个节点 难度 简单 分析 本题比较简单,实现方法多种多样,这里提供一种方法 首先明确一点,在单链表中删除倒数第k个节点,需要找到他的前一个节点,让前一个 ...

  7. 叶子结点和分支节点_数据结构中,满二叉树,结点,叶子节点,是什么?

    除最后一层无任何子节点外,每一层上的所有结点都有两个子结点二叉树. 国内教程定义:一个二叉树,如果每一个层的结点数都达到最大值,则这个二叉树就是满二叉树.也就是说,如果一个二叉树的层数为K,且结点总数 ...

  8. sqlserver故障转移集群和alwayson的区别_详解SQL Server 2016 + AlwaysOn 无域集群

    搭建 WSFC 配置计算机的 DNS 后缀 1.配置计算机的 DNS 后缀,注意在同个工作组 2.每个节点的机器都要做域名解析,修改 host 文件C:WindowsSystem32driverset ...

  9. Lycn 2013 with SQL AlwaysOn 「一」建立AlwaysOn

    注意:微软官方并未正式宣布Lync2013能够使用Sql Server的AlwaysOn高可用性技术,本文只是采取一些旁门左道取巧的办法达到该目的,其实施完成后还存在一些问题和风险,搭来稳定还好,如果 ...

最新文章

  1. 树的前序遍历、中序遍历、后序遍历详解
  2. 计算机硬件性能提升定律,❤️多核编程·笔记
  3. 计算机斐波那流程图,循环结构——斐波那契数列.DOC
  4. VS2008开发Windows Mobile6环境搭建及模拟器联网问题图解
  5. leetcode python3 简单题189. Rotate Array
  6. vmware中修改虚拟机MAC地址的方法!
  7. 程序员面试宝典pdf
  8. 现如今安卓手机的系统优化哪家好呢?
  9. NDT算法的匹配流程
  10. 批处理图片尺寸修改成4的倍数
  11. (Xposed)编写第一个Xposed模块
  12. Docker MSSQL 添加读取 MDF 文件
  13. 百度云-人工智能-识别图片中的文字
  14. php 调用格式工厂,格式工厂能转换kux吗?
  15. Centos7升级到最新内核版本操作过程
  16. web无插件解码播放H264/H265(WebAssembly解码HTML5播放)
  17. 一款GIF录屏小软件
  18. 1999-2020年31省省农村人口就业和文化程度相关数据
  19. 遥感雷达,信号与图像处理,机器学习与人工智能主要国际会议【不定期更新···】
  20. 手把手教你安装win10+Ubuntu16.04的双系统(全网最详细)

热门文章

  1. 一篇搞懂Android View
  2. 不同苹果账号体系的Capabilities情况
  3. Java笔记(十七) 异步任务执行服务
  4. ubuntu HackRF One相关环境搭建
  5. python初心记录一
  6. elasticearch 安装
  7. 修改oracle超空间大小,Oracle修改表空间大小详解
  8. 辞职前一定要三思的八个问题
  9. 42岁失业,有150万存款,房子无贷款,不想上班做点什么好?
  10. 为什么越来越多的人直接入住毛坯房?有什么优缺点?