当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] Windows Server 2016:没有 Active Directory 的工作组故障转移群集

作者:精品下载站 日期:2024-12-14 22:51:12 浏览:14 分类:玩电脑

Windows Server 2016:没有 Active Directory 的工作组故障转移群集


在 Windows Server 2016 之前的较旧 Windows Server 版本中,只能在同一 Active Directory 域中的服务器之间创建故障转移群集。新版本允许在加入不同域的服务器之间,甚至在工作组服务器(未加入 AD 域)之间创建两个(或更多)节点故障转移群集 - 所谓的工作组群集

显然,Windows Server 2016 必须安装在所有集群节点上。支持以下集群场景:

ServiceStatusCommentSQL serverSupportedIt is recommended to use the integrated SQL Server authenticationFile server

Supported, but not recommendedKerberos authentication for SMB is not supportedHyper-V

Supported, but not recommendedLive Migration is not supported, only Quick migration is availableMessage Queuing (MSMQ)Not supportedMSMQ stores its properties in Active Directory

在所有未来的集群节点上,您必须:

  1. 安装故障转移集群角色:

    Install-WindowsFeature Failover-Clustering -IncludeManagementTools<
  2. 使用相同密码创建具有管理员权限的本地帐户(或使用集成管理员帐户):

    net user /add clustadm Sup33P@ssw0Rd!
    net localgroup administrators clustadm /add

    [玩转系统] Windows Server 2016:没有 Active Directory 的工作组故障转移群集

  3. 如果出现错误不允许请求的注册表访问,请编辑注册表中的远程UAC参数(此参数启用对管理共享的远程访问):

    New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name LocalAccountTokenFilterPolicy -Value 1
  4. 设置相同的主 DNS 后缀。它使群集服务器能够通过 FQDN 名称相互通信。

    [玩转系统] Windows Server 2016:没有 Active Directory 的工作组故障转移群集

  5. 在高级 TCP/IP 设置中取消选中注册 DNS 连接地址

    [玩转系统] Windows Server 2016:没有 Active Directory 的工作组故障转移群集

  6. 更改hosts 文件,以便服务器可以解析其他集群成员的名称和集群的名称(包括 FQDN 名称)。您可以将名称添加到 c:\windows\system32\drivers tc\hosts,如下所示:

    Set file="%windir%\System32\drivers\etc\hosts"
    echo 192.168.1.21 clust-host1 >> %file%
    echo 192.168.1.21 clust-host1.mylocal.net >> %file%
    echo 192.168.1.22 clust-host2 >>  %file%
    echo 192.168.1.22 clust-host2.mylocal.net >> %file%
    echo 192.168.1.20 cluster1 >> %file%
    echo 192.168.1.20 cluster1.mylocal.net>> %file%

[玩转系统] Windows Server 2016:没有 Active Directory 的工作组故障转移群集

要验证集群节点,可以使用以下命令:

test-cluster -node "clust-host1.mylocal.net"," clust-host2.mylocal.net"

要使用 PowerShell 创建集群,请运行以下命令:

New-Cluster -Name cluster1 -Node clust-host1.mylocal.net, clust-host2.mylocal.net -AdministrativeAccessPoint DNS -StaticAddress 192.168.1.20

现在,您可以借助 get-clusterget-clusterresource cmdlet 检查集群及其组件的状态。

要通过 GUI 连接(并远程管理)集群,您需要使用故障转移集群管理器管理单元(包含在 Windows 10 的 RSAT 中)。

现在,使用连接到集群菜单项,您可以连接到创建的集群。如果集群有偶数个服务器,则必须配置见证资源。请注意,您不能使用 SMB 共享文件夹作为仲裁见证。支持两种模式:磁盘见证 - 共享磁盘(可以从两个节点同时访问它),或云见证 - Azure 中的云磁盘资源。

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯