使用 Windows Admin Center 创建 Azure Stack HCI 群集Create an Azure Stack HCI cluster using Windows Admin Center

适用于 Azure Stack HCI 版本 v20H2 版Applies to Azure Stack HCI, version v20H2

本文介绍如何使用 Windows 管理中心创建使用存储空间直通的 Azure Stack HCI 群集。In this article you will learn how to use Windows Admin Center to create an Azure Stack HCI cluster that uses Storage Spaces Direct. Windows 管理中心中的 "创建群集" 向导将为你执行大部分繁重的操作。The Create cluster wizard in Windows Admin Center will do most of the heavy lifting for you. 如果你想要使用 PowerShell 自行完成此操作,请参阅使用 PowerShell 创建 Azure Stack HCI 群集If you'd rather do it yourself with PowerShell, see Create an Azure Stack HCI cluster using PowerShell. 此 PowerShell 文章还是一个很好的信息来源,它深入介绍了向导的情况,适合用来进行故障排除。The PowerShell article is also a good source of information for what is going on under the hood of the wizard and for troubleshooting purposes.

在创建群集时,可以在两种群集类型之间进行选择:You have a choice between creating two cluster types:

  • 包含至少两个服务器节点的标准群集,这些节点位于单个站点中。Standard cluster with at least two server nodes, residing in a single site.
  • 包含至少四个服务器节点(跨两个站点)的延伸群集,每个站点至少有两个节点。Stretched cluster with at least four server nodes that span across two sites, with at least two nodes per site.

有关延伸群集的详细信息,请参阅延伸群集概述For more information about stretched clusters, see Stretched clusters overview.

如果你对 Azure Stack HCI 的测试感兴趣,但有限制或没有备用硬件,请查看 AZURE STACK HCI 评估指南,其中介绍了如何使用嵌套虚拟化(在 Azure 中)或本地单一物理系统上的 Azure Stack HCI。If you’re interested in testing Azure Stack HCI, but have limited or no spare hardware, check out the Azure Stack HCI Evaluation Guide, where we’ll walk you through experiencing Azure Stack HCI using nested virtualization, either in Azure, or on a single physical system on-premises.

运行向导之前Before you run the wizard

在运行“创建群集”向导之前,请确保你已经完成以下任务:Before you run the Create Cluster wizard, make sure you:

如果是在服务器(而不是 PC)上运行 Windows Admin Center,请使用是“网关管理员”组成员的帐户,或者使用 Windows Admin Center 服务器上的本地管理员组。If you're running Windows Admin Center on a server (instead of a local PC), use an account that's a member of the Gateway administrators group, or the local administrators group on the Windows Admin Center server.

此外,Windows Admin Center 管理计算机必须加入到你要在其中创建群集的同一个 Active Directory 域或完全受信任的域。Also, your Windows Admin Center management computer must be joined to the same Active Directory domain in which you'll create the cluster, or a fully trusted domain. 你要加入群集的服务器不需要已属于此域,可以在群集创建过程中将它们添加到域。The servers that you'll cluster don't need to belong to the domain yet; they can be added to the domain during cluster creation.

下面是“创建群集”向导中的主要步骤:Here are the major steps in the Create Cluster wizard:

  1. 开始 - 确保每台服务器都满足加入群集的先决条件,并且具有加入群集所需的功能。Get Started - ensures that each server meets the prerequisites for and features needed for cluster join.
  2. 联网 - 分配和配置网络适配器,为每台服务器创建虚拟交换机。Networking - assigns and configures network adapters and creates the virtual switches for each server.
  3. 群集 - 验证群集是否已正确设置。Clustering - validates the cluster is set up correctly. 对于延伸群集,还请设置两个站点。For stretched clusters, also sets up up the two sites.
  4. 存储 - 配置存储空间直通。Storage - Configures Storage Spaces Direct.

向导完成后,请设置群集见证,注册到 Azure,并创建卷(如果要创建延伸群集,则还需设置站点之间的复制)。After the wizard completes, you set up the cluster witness, register with Azure, and create volumes (which also sets up replication between sites if you're creating a stretched cluster).

在启动向导之前,请确保已安装最新的 Windows 管理中心扩展,特别是群集创建扩展。Before you start the wizard, make sure you have the latest Windows Admin Center extensions installed, particularly the Cluster Creation extension. 为此,请执行以下操作:To do so:

  1. 打开 Windows 管理中心,并单击右上角的 "设置" (齿轮图标) 。Open Windows Admin Center and click Settings (gear icon) at the upper right.
  2. 在“设置” 下选择“扩展” 。Under Settings, select Extensions.
  3. 选择 " 群集创建 ",然后单击 " 安装"。Select Cluster Creation and then click Install.
  4. 选择 " 群集管理器 ",然后单击 " 安装 "。Select Cluster Manager and click Install also while you are at it.

现在你已准备就绪,接下来让我们开始:Now you are ready, so let's begin:

  1. 在 Windows Admin Center 中,在“所有连接”下单击“添加” 。In Windows Admin Center, under All connections, click Add.

  2. 在 " 添加或创建资源 " 面板的 " 服务器群集" 下,选择 " 新建"。In the Add or create resources panel, under Server clusters, select Create new.

  3. 小于 1。选择 "群集类型",选择 " Azure Stack HCI"。Under 1. Choose cluster type, select Azure Stack HCI.

    创建群集向导- HCI 选项

  4. 在“选择服务器位置”下,选择以下选项之一:Under Select server locations, select one the following:

    • 一个站点中的所有服务器All servers in one site
    • 两个站点中的服务器(适用于延伸群集)Servers in two sites (for stretched cluster)
  5. 完成后,单击“创建”。When finished, click Create. 现在,你将看到“创建群集”向导,如下所示。You will now see the Create Cluster wizard, as shown below.

    “创建群集”向导 - 开始

步骤 1:入门Step 1: Get started

向导的步骤 1 会指导你完成的操作包括:确保满足所有先决条件,添加服务器节点,安装所需的功能,然后在需要时重启每台服务器。Step 1 of the wizard walks you through making sure all prerequisites are met, adding the server nodes, installing needed features, and then restarting each server if needed.

  1. 检查 1.1 检查 向导中列出的先决条件,以确保每个服务器节点都已准备好群集。Review 1.1 Check the prerequisites listed in the wizard to ensure each server node is cluster-ready. 完成后,单击 “下一步”When finished, click Next.

  2. 1.2 添加服务器 上,输入你的帐户用户名和密码,然后单击 " 下一步"。On 1.2 Add servers, enter your account username and password, then click Next. 该帐户必须是每台服务器上本地管理员组的成员。This account must be a member of the local Administrators group on each server.

  3. 输入要添加的第一台服务器的名称,然后单击“添加”。Enter the name of the first server you want to add, then click Add.

  4. 对于将成为群集一部分的每台服务器,重复步骤 3。Repeat Step 3 for each server that will be part of the cluster. 完成后,单击 “下一步”When finished, click Next.

  5. 如果需要,在 1.3 上加入域 时,请指定要将服务器加入到的域以及要使用的帐户。If needed, on 1.3 Join a domain, specify the domain to join the servers to and the account to use. 如果需要,可以根据需要重命名服务器。You can optionally rename the servers if you want. 然后单击“下一步” 。Then click Next.

  6. 1.4 安装功能 中,根据需要查看并添加功能。On 1.4 Install features, review and add features as needed. 完成后,单击 “下一步”When finished, click Next.

    向导将为你安装以下必需的功能:The wizard installs the following required features for you:

    • BitLockerBitLocker
    • 数据中心桥接(适用于 RoCEv2 网络适配器)Data Center Bridging (for RoCEv2 network adapters)
    • 故障转移群集Failover Clustering
    • 文件服务器File Server
    • FS-Data-Deduplication 模块FS-Data-Deduplication module
    • Hyper-VHyper-V
    • RSAT-AD-PowerShell 模块RSAT-AD-PowerShell module
    • 已为延伸群集安装存储副本 () Storage Replica (installed for stretched clusters)
  7. 1.5 安装更新 上,单击 " 安装更新 " 以安装任何操作系统更新。On 1.5 Install updates, click Install updates as needed to install any operating system updates. 完成后,单击“下一步”。When complete, click Next.

  8. 1.6 上安装硬件更新,单击 "根据需要 获取更新 " 以获取可用的供应商硬件更新。On 1.6 Install hardware updates, click Get updates as needed to get available vendor hardware updates.

  9. 按照供应商特定的步骤在硬件上安装更新。Follow the vendor-specific steps to install the updates on your hardware. 这些步骤包括对硬件执行对称和合规性检查,以确保更新成功。These steps include performing symmetry and compliance checks on your hardware to ensure a successful update. 可能需要重新运行某些步骤。You may need to re-run some steps.

  10. 1.7 重新启动服务器 上,单击 "需要时 重新启动服务器 "。On 1.7 Restart servers, click Restart servers if required. 验证每台服务器是否已成功启动。Verify that each server has successfully started.

步骤 2:网络Step 2: Networking

向导的步骤2逐步指导你为群集配置虚拟交换机、网络适配器和其他网络元素。Step 2 of the wizard walks you through configuring virtual switches, network adapters, and other networking elements for your cluster. RDMA (支持 iWARP 和 RoCE ) 网络适配器。RDMA (both iWARP and RoCE ) network adapters are supported.

有关 RDMA 和 Hyper-v 主机联网 Azure Stack HCI 的详细信息,请参阅 主机网络要求For more information on RDMA and Hyper-V host networking for Azure Stack HCI, see Host network requirements.

备注

如果在任何网络或虚拟交换机步骤中看到列出了错误,请选择 " 应用并再次测试 "。If you see errors listed during any networking or virtual switch steps, select Apply and test again.

  1. 选择“下一页:网络”。Select Next: Networking.

  2. 2.1 检查网络适配器 时,等待每个适配器旁边出现绿色复选框,然后选择 " 下一步"。On 2.1 Check network adapters, wait until green checkboxes appear next to each adapter, then select Next.

  3. 2.2 中,选择 "管理适配器",选择要用于每个服务器的一个或两个管理适配器。On 2.2 Select management adapters, select one or two management adapters to use for each server. 出于管理目的,必须至少选择一个适配器,因为向导至少需要一个专用物理 NIC 进行群集管理。It is mandatory to select at least one of the adapters for management purposes, as the wizard requires at least one dedicated physical NIC for cluster management. 指定进行管理所需的适配器后,系统就会将其从向导工作流的其余部分中排除。Once an adapter is designated for management, it’s excluded from the rest of the wizard workflow.

    创建群集向导-选择管理适配器

    管理适配器有两个配置选项:Management adapters have two configuration options:

    • 一个用于管理的物理网络适配器。One physical network adapter for management. 对于此选项,DHCP 或静态 IP 地址分配受支持。For this option, both DHCP or static IP address assignment is supported.

    • 两个已组成一组以用于管理的物理网络适配器。Two physical network adapters teamed for management. 组合使用一对适配器时,仅支持静态 IP 地址分配。When a pair of adapters are teamed, only static IP address assignment is supported. 如果所选适配器使用 DHCP 寻址 (两个) 中的一个或两个都为,则在创建虚拟交换机之前,DHCP IP 地址将转换为静态 IP 地址。If the selected adapters use DHCP addressing (either for one or both), the DHCP IP addresses would be converted to static IP addresses before virtual switch creation.

    可以通过使用组合的适配器与多个交换机建立单一连接,但只使用单个 IP 地址。By using teamed adapters, you have a single connection to multiple switches but only use a single IP address. 负载均衡会变得可用,并且容错功能是即时启用的,不需等待 DNS 记录更新。Load-balancing becomes available and fault-tolerance is instant instead of waiting for DNS records to update.

    现在为每台服务器执行以下操作:Now do the following for each server:

    • 选中“说明”复选框。Select the Description checkbox. 请注意,所有适配器都处于选中状态,向导可能会为你提供建议。Note that all adapters are selected and that the wizard may offer a recommendation for you.
    • 清除不希望用于群集管理的适配器的复选框。Clear the checkboxes for those adapters you don't want used for cluster management.

    备注

    可以使用 1 Gb 适配器作为管理适配器,但建议使用 10 Gb 或更快的适配器来传输存储和工作负荷 (VM) 流量。You can use 1 Gb adapters as management adapters, but we recommend using 10 Gb or faster adapters for carrying storage and workload (VM) traffic.

  4. 进行更改后,单击“应用并测试”。When changes have been made, click Apply and test.

  5. 在“定义网络”下,确保每台服务器的每个网络适配器都有唯一的静态 IP 地址、子网掩码和 VLAN ID。Under Define networks, make sure each network adapter for each server has a unique static IP address, a subnet mask, and a VLAN ID. 将鼠标指针悬停在每个表元素上,根据需要输入或更改值。Hover over each table element and enter or change values as needed. 完成后,单击“应用并测试”。When finished, click Apply and test.

    备注

    若要支持群集的 VLAN ID 配置,所有服务器上的所有网络适配器都必须支持 VLANID 属性。To support VLAN ID configuration for the cluster, all networks adapters on all servers must support the VLANID property.

  6. 等到每台服务器的“状态”列都显示为“已通过”后,单击“下一步”。 Wait until the Status column shows Passed for each server, then click Next. 此步骤验证具有相同子网和 VLAN ID 的所有适配器之间的网络连接性。This step verifies network connectivity between all adapters with the same subnet and VLAN ID. 在下一步中创建虚拟交换机后,提供的 IP 地址将从物理适配器传输到虚拟适配器。The provided IP addresses are transferred from the physical adapter to the virtual adapters once the virtual switches are created in the next step. 这可能需要几分钟才能完成,具体取决于配置的适配器数量。It may take several minutes to complete depending on the number of adapters configured.

  7. 在 " 2.3 虚拟交换机" 下,选择下列选项之一(如果适用)。Under 2.3 Virtual switch, select one of the following options as applicable. 根据存在的网络适配器数量,并非所有选项都可用:Depending on how many network adapters there are, not all options may be available:

    • 跳过虚拟交换机创建 -选择是否要在以后设置虚拟交换机。Skip virtual switch creation - choose if you want set up virtual switches later.

    • 同时为计算和存储创建一个虚拟交换机 -如果要为 vm 和存储空间直通使用同一虚拟交换机,请选择此选项。Create one virtual switch for compute and storage together - choose if you want to use the same virtual switch for your VMs and Storage Spaces Direct. 这是 "聚合" 选项。This is the "converged" option.

    • 仅创建一个虚拟交换机用于计算 -选择是否只为 vm 使用虚拟交换机。Create one virtual switch for compute only - choose if you want to use a virtual switch for your VMs only.

    • 创建两个虚拟交换机 -选择是否需要专用于 vm 和存储空间直通的专用虚拟交换机。Create two virtual switches - choose if you want a dedicated virtual switch each for VMs and for Storage Spaces Direct.

      创建群集向导-虚拟交换机

    下表显示了针对各种网络适配器配置支持和启用的虚拟交换机配置:The following table shows which virtual switch configurations are supported and enabled for various network adapter configurations:

    选项Option 1-2 个适配器1-2 adapters 3 个以上的适配器3+ adapters 组合适配器teamed adapters
    单个交换机(计算 + 存储)single switch (compute + storage) enabledenabled enabledenabled 不支持not supported
    单个交换机(仅计算)single switch (compute only) 不支持not supported enabledenabled enabledenabled
    两个交换机two switches 不支持not supported enabledenabled enabledenabled
  8. 根据需要更改交换机和其他配置设置的名称,然后单击“应用并测试”。Change the name of a switch and other configuration settings as needed, then click Apply and test. 创建虚拟交换机后,每台服务器的“状态”列都应显示为“已通过”。The Status column should show Passed for each server after the virtual switches have been created.

  9. 步骤 2.4 RDMA 是可选的。Step 2.4 RDMA is optional. 如果使用的是 RDMA,请选择 " 配置 RDMA (建议) " 复选框,然后单击 " 下一步"。If you are using RDMA, select the Configure RDMA (Recommended) checkbox and click Next.

    创建群集向导-配置 RDMA

    有关分配带宽预留的信息,请参阅 "主机网络要求" 中的 "流量带宽分配" 部分。For information on assigning bandwidth reservations, see the Traffic bandwidth allocation section in Host network requirements.

  10. 选择 " 高级",然后选择 " 数据中心桥接 (DCB) " 复选框。Select Advanced, then select the Data Center Bridging (DCB) checkbox.

  11. 在 " 群集检测信号" 下,分配优先级和带宽预留百分比。Under Cluster heartbeat, assign a priority level and a bandwidth reservation percentage.

  12. 在 " 存储" 下,分配优先级和带宽预留百分比。Under Storage, assign a priority level and a bandwidth reservation percentage.

  13. 完成后,选择 " 应用更改 ",然后单击 " 下一步"。When finished, select Apply changes and click Next.

  14. 2.5 上定义网络 时,请查看并编辑列出的每个适配器的名称、IP 地址、子网掩码、VLAN ID 和默认网关字段。On 2.5 Define networks, review and edit the Name, IP address, Subnet mask, VLAN ID, and Default gateway fields for each adapter listed.

    创建群集向导-定义网络

  15. 完成后,单击“应用并测试”。When finished, click Apply and test. 如果适配器的状态不正常,则可能需要 重试连接测试You may need to Retry connectivity test if status is not OK for an adapter.

步骤 3:群集功能Step 3: Clustering

向导的步骤 3 可确保目前的所有操作都已正确设置,并且在进行延伸群集部署的情况下会自动设置两个站点,然后实际创建群集。Step 3 of the wizard makes sure everything thus far has been set up correctly, automatically sets up two sites in the case of stretched cluster deployments, and then actually creates the cluster. 也可在 Active Directory 中预先设置站点。You can also set up your sites beforehand in Active Directory.

  1. 在完成时选择“下一步:群集功能”。Select Next: Clustering.

  2. 3.1 上验证群集,选择 " 验证"。On 3.1 Validate the cluster, select Validate. 验证可能需要几分钟。Validation may take several minutes.

    如果出现“凭据安全服务提供程序(CredSSP)”弹出窗口,请选择“是”以暂时启用 CredSSP,以便向导继续。 If the Credential Security Service Provider (CredSSP) pop-up appears, select Yes to temporarily enable CredSSP for the wizard to continue. 创建群集并完成向导后,需禁用 CredSSP 以提高安全性。Once your cluster is created and the wizard has completed, you'll disable CredSSP to increase security. 如果遇到 CredSSP 问题,请参阅对 CredSSP 进行故障排除以获取更多信息。If you experience issues with CredSSP, see Troubleshoot CredSSP for more information.

  3. 检查所有验证状态,下载报告以获取有关任何故障的详细信息,进行更改,然后单击“再次验证”(如果需要)。Review all validation statuses, download the report to get detailed information on any failures, make changes, then click Validate again as needed. 也可以 下载报表You can Download report as well. 根据需要重复此步骤,直到所有验证检查都通过。Repeat again as necessary until all validation checks pass. 如果一切正常,请单击 " 下一步"。When all is OK, click Next.

  4. 3.2 创建群集 上,输入群集的名称。On 3.2 Create cluster, enter a name for your cluster.

    创建群集向导-创建群集

  5. 在 " IP 地址" 下,选择要使用的静态或动态 IP 地址。Under IP address, select either static or dynamic IP addresses to use. IP 地址必须采用以下格式输入: ip 地址/当前子网长度The IP address must be entered in the following format: IP address/current subnet length. 例如: 10.0.0.200/24。For example: 10.0.0.200/24.

  6. 选择“高级”。Select Advanced. 此处有几个选项:You have a couple of options here:

    • 向 DNS 注册群集并 Active DirectoryRegister the cluster with DNS and Active Directory
    • 将符合条件的存储添加到群集 (建议)Add eligible storage to the cluster (recommended)
  7. 在 " 网络" 下,选择是 使用 (推荐的所有网络) 还是 指定一个或多个不使用的网络Under Networks, select whether to Use all networks (recommended) or Specify one or more networks not to use.

  8. 完成后,单击“创建群集”。When finished, click Create cluster.

  9. 对于延伸群集,在 3.3 "将服务器分配到站点" 上,命名将使用的两个站点。For stretched clusters, on 3.3 Assign servers to sites, name the two sites that will be used.

  10. 接下来,将每台服务器分配给一个站点。Next assign each server to a site. 稍后需设置站点之间的复制。You'll set up replication across sites later. 完成后,单击 " 应用更改"。When finished, click Apply changes.

步骤 4:存储Step 4: Storage

向导的步骤 4 将引导你为群集设置存储空间直通。Step 4 of the wizard walks you through setting up Storage Spaces Direct for your cluster.

  1. 在完成时选择“下一步:存储”。Select Next: Storage.
  2. 4.1 清洗驱动器 上,如果你的部署有意义,则可以选择 删除驱动器On 4.1 Clean drives, you can optionally select Erase drives if it makes sense for your deployment.
  3. 4.2 检查驱动器 上,单击 > 每个服务器旁边的图标以验证磁盘是否正在运行且已连接。On 4.2 Check drives, click the > icon next to each server to verify that the disks are working and connected. 如果一切正常,请单击 " 下一步"。If all is OK, click Next.
  4. 4.3 上,单击 " 下一步"。On 4.3 Validate storage, click Next.
  5. 下载并查看验证报告。Download and review the validation report. 如果一切正常,请单击“下一步”。If all is good, click Next. 否则,请 再次运行验证If not, run Validate again.
  6. 4.4 上启用存储空间直通,单击 " 启用"。On 4.4 Enable Storage Spaces Direct, click Enable.
  7. 下载并查看报表。Download and review the report. 如果一切正常,请单击“完成”。When all is good, click Finish.
  8. 选择 " 前往连接列表"。Select Go to connections list.
  9. 几分钟后,你应该会在列表中看到你的群集。After a few minutes, you should see your cluster in the list. 选择它以查看 "群集概述" 页。Select it to view the cluster overview page.

在域中复制群集名称可能需要一些时间,尤其是在新添加了工作组服务器 Active Directory 时。It can take some time for the cluster name to be replicated across your domain, especially if workgroup servers have been newly added to Active Directory. 虽然群集可能显示在 Windows Admin Center 中,但可能尚不能连接到它。Although the cluster might be displayed in Windows Admin Center, it might not be available to connect to yet.

如果在一段时间后解析群集未成功,在大多数情况下,你可以替换服务器名称而不是群集名称。If resolving the cluster isn't successful after some time, in most cases you can substitute a server name instead of the cluster name.

后续步骤Next steps