使用 Windows Admin Center 管理超聚合基础结构

超聚合基础结构将软件定义的计算、存储和网络合并到一个群集中,以提供高性能、经济高效且可缩放的虚拟化。 此功能在 Windows Server 2016 中引入了 存储空间直通软件定义网络(SDN)Hyper-V

可以使用 Windows Admin Center 管理和监视运行 Windows Server 2016 或 Windows Server 2019 的超聚合基础结构。 Windows Admin Center 是适用于 Windows Server 的下一代管理工具。 这是传统的“内置”工具(如服务器管理器)的继任者。 它是免费的,可以在没有 Internet 连接的情况下安装和使用。

Windows Admin Center 中超聚合群集仪表板的屏幕截图。

本文介绍的一些功能仅在 Windows Admin Center 预览版中可用。 有关详细信息,请参阅 Windows Admin Center 概述

Tip

想要获取超融合基础设施? 我们建议合作伙伴 提供这些 Windows Server SDN 解决方案 。 它们根据参考体系结构进行设计、组装和验证,以帮助确保兼容性和可靠性,以便快速启动和运行。

Key features

适用于超聚合基础结构的 Windows Admin Center 的亮点包括:

  • 用于计算、存储和网络的统一仪表板。 在一个专门设计的、一致互联的体验中查看您的虚拟机(VM)、主机服务器、存储卷、驱动器等。
  • 创建和管理存储空间和 Hyper-V 虚拟机。 使用简单工作流创建、打开、调整大小和删除卷。 或使用工作流创建、启动、连接到和移动虚拟机。
  • 功能强大的全局监控。 仪表板可跨群集中的每个服务器实时绘制内存和 CPU 使用率、存储容量、输入/输出作(IOPS)、吞吐量和延迟。 当出现问题时,收到明确的警告。
  • 软件定义的网络支持。 管理和监视虚拟网络和子网、将虚拟机连接到虚拟网络以及监视 SDN 基础结构。

我们正在积极开发适用于超融合基础结构的 Windows Admin Center。 Windows Admin Center 会收到频繁更新,改进现有功能并添加新功能。

开始之前

若要在 Windows Admin Center 中将群集作为超聚合基础结构进行管理,请确保群集正在运行 Windows Server 2016 或 Windows Server 2019。 此外,请确保为其启用了 Hyper-V 和存储空间直通。 (可选)群集还可以通过 Windows Admin Center 启用和管理软件定义网络。

Tip

Windows Admin Center 还为支持任何工作负荷的任何群集提供常规用途管理体验。 它适用于 Windows Server 2012 及更高版本。 If this option sounds like a better fit, when you add your cluster to Windows Admin Center, select Failover Cluster instead of Hyper-Converged Cluster.

为 Windows Admin Center 准备 Windows Server 2016 群集

适用于超聚合基础结构的 Windows Admin Center 取决于在 Windows Server 2016 发布后添加的管理 API。 在使用 Windows Admin Center 管理 Windows Server 2016 群集之前,需要执行以下两个步骤:

  1. 验证群集中的每个服务器是否安装了 适用于 Windows Server 2016 的 2018-05 累积更新(KB4103723) 或更高版本。 To download and install this update, go to Settings>Update & Security>Windows Update and select Check online for updates from Microsoft Update.

  2. 在群集上以管理员身份运行以下 PowerShell cmdlet:

     Add-ClusterResourceType -Name "SDDC Management" -dll "$env:SystemRoot\Cluster\sddcres.dll" -DisplayName "SDDC Management"
    

Tip

只需在群集中的任何服务器上运行 cmdlet 一次。 可以在 Windows PowerShell 中本地运行它,或使用 CredSSP 远程运行它。 根据配置,可能无法从 Windows Admin Center 中运行此 cmdlet。

为 Windows Admin Center 准备 Windows Server 2019 群集

如果群集运行 Windows Server 2019,则无需执行上述步骤。 只需将群集添加到 Windows Admin Center, 如本文稍后所述。

配置软件定义的网络(可选)

可以按照以下步骤配置运行 Windows Server 2016 或 2019 的超聚合基础结构以使用软件定义的网络:

  1. 准备操作系统的虚拟硬盘(VHD),该操作系统与在超聚合基础结构主机上安装的操作系统相同。 此 VHD 将用于所有 NC 系列、软件负载均衡器(SLB)和网关虚拟机(VM)。

  2. Download all the folders and files under SDN Express from GitHub.

  3. 使用部署控制台准备不同的 VM。 此 VM 应该能够访问 SDN 主机。 此外,VM 应安装远程服务器管理工具(RSAT)Hyper-V 包。

  4. Copy everything that you downloaded for SDN Express to the deployment console VM, and share this SDNExpress folder. Make sure every host can access the SDNExpress shared folder, as defined in line 8 of the configuration file:

     \\$env:Computername\SDNExpress
    
  5. Copy the VHD of the operating system to the images folder under the SDNExpress folder on the deployment console VM.

  6. 根据环境设置修改 SDN Express 配置。

  7. 使用管理员权限运行 PowerShell 以部署 SDN:

     .\SDNExpress.ps1 -ConfigurationDataFile .\your_fabricconfig.PSD1 -verbose
    

部署大约需要 30 到 45 分钟。

开始管理超融合基础设施

部署 Hyper-Converged 基础结构后,可以使用 Windows Admin Center 对其进行管理。

安装 Windows Admin Center

下载并安装 Windows Admin Center(如果尚未这样做)。 最快的方法是将其安装在 Windows 10 计算机上,并远程管理服务器。 此过程需要不到五分钟的时间。 Download now, or learn more about other installation options.

添加超聚合群集

若要将群集添加到 Windows Admin Center,请执行以下操作:

  1. Under All Connections, select + Add.

  2. 选择 “Hyper-Converged 群集连接 ”作为连接类型。

  3. 输入群集的名称。 如果系统提示,请选择要使用的凭据。

  4. Select Add to finish.

群集将添加到连接列表。 选择它以打开仪表板。

动画屏幕截图:添加超融合群集连接的所选内容。

添加启用了 SDN 的超聚合群集(Windows Admin Center 预览版)

最新版本的 Windows Admin Center 预览版支持用于超聚合基础结构的软件定义网络管理。 通过将网络控制器 REST URI 添加到超聚合群集连接,可以使用超聚合群集管理器来管理 SDN 资源并监视 SDN 基础结构。

  1. Under All Connections, select + Add.

  2. 选择 “Hyper-Converged 群集连接 ”作为连接类型。

  3. 输入群集的名称。 如果系统提示,请选择要使用的凭据。

  4. 选择“ 配置网络控制器”。

  5. Enter the network controller URI value, and then select Validate.

    用于添加已启用 SDN 的超聚合群集连接的选择的屏幕截图。

  6. Select Add to finish.

群集将添加到连接列表。 选择它以打开仪表板。

Important

目前不支持使用北向通信进行 Kerberos 身份验证的 SDN 环境。

常见问题

管理 Windows Server 2016 与管理 Windows Server 2019 之间是否存在差异?

Yes. 适用于超聚合基础结构的 Windows Admin Center 接收频繁更新,这些更新可改善 Windows Server 2016 和 Windows Server 2019 的体验。 但是,某些新功能仅适用于 Windows Server 2019。 例如,删除重复和压缩之间的切换。

是否可以使用 Windows Admin Center 为其他用例(非超融合)管理 存储空间直通,例如融合横向扩展文件服务器或 Microsoft SQL Server?

适用于超聚合基础结构的 Windows Admin Center 不提供专门用于存储空间直通的其他用例的管理或监视选项。 例如,它无法创建文件共享。 但是,仪表板和核心功能(如创建卷或替换驱动器)适用于任何存储空间直通群集。

故障转移群集与超聚合群集之间的区别是什么?

In general, the term hyper-converged refers to running Hyper-V and Storage Spaces Direct on the same clustered servers to virtualize compute and storage resources. In the context of Windows Admin Center, when you select + Add in the list of connections, you can choose between these connection types:

  • 故障转移群集连接:这是故障转移群集管理器桌面应用的继任者。 它为支持任何工作负荷(包括Microsoft SQL Server)的任何群集提供熟悉的常规用途管理体验。 它适用于 Windows Server 2012 及更高版本。

  • 超聚合群集连接:专为存储空间直通和 Hyper-V 定制的体验。 它以仪表板为特色,并强调用于监视的图表和警报。 它适用于 Windows Server 2016 和 Windows Server 2019。

为何需要安装 Windows Server 2016 的最新累积更新?

适用于超融合基础结构的 Windows Admin Center 依赖于自 Windows Server 2016 发布以来开发的管理 API。 这些 API 已添加到 Windows Server 2016 的 2018-05 累积更新 (KB4103723),自 2018 年 5 月 8 日起可用。

使用 Windows Admin Center 需要多少费用?

你可以使用 Windows Admin Center(作为单独的下载),并附带有效的 Windows Server 或 Windows 10 许可证,无需额外付费。 它是在作为《Microsoft 软件许可条款》补充的《Windows 许可协议》之下获得许可的。

Windows Admin Center 是否需要 System Center?

No.

Windows Admin Center 是否需要 Internet 连接?

No.

尽管 Windows Admin Center 提供与 Microsoft Azure 云平台的强大且便捷的集成,但超融合基础结构的核心管理和监视体验完全在本地。 可以在没有 Internet 连接的情况下安装和使用它。

要尝试的事情

了解使用 Windows Admin Center 管理和监视超融合基础结构的基础知识后,可以尝试环境中的更多任务。

管理存储空间直通卷

如果你刚刚开始使用,那么这里有一些简短的视频可以帮助你了解如何组织和操作超融合基础架构的 Windows 管理中心。 在使用生产环境时,请运用良好的判断力并小心。 这些视频是使用 Windows Admin Center 版本 1804 和 Windows Server 2019 Insider Preview 版本录制的。

创建三向镜像卷

创建镜像加速的奇偶校验卷

打开卷和添加文件

启用重复数据删除和压缩

扩展卷

删除卷

创建虚拟机

  1. On the left pane, select Virtual Machines.

  2. At the top of the Virtual Machines pane, select the Inventory tab, and then select New.

  3. 输入虚拟机名称,然后在第 1 代和第 2 代之间进行选择。

  4. 为虚拟机选择主机,或使用建议的主机。

  5. 选择虚拟机文件的路径。 Select a volume from the dropdown list, or select Browse to choose a folder. 虚拟机配置文件和虚拟硬盘文件将保存在所选卷或路径的 \Hyper-V\[virtual machine name] 路径下的单个文件夹中。

  6. 选择虚拟处理器的数量以及是否要启用嵌套虚拟化。 配置内存设置、网络适配器和虚拟硬盘。 选择是要从 .iso 映像文件还是从网络安装操作系统。

  7. Select Create.

  8. 创建虚拟机并将其显示在虚拟机列表中后,请启动它。

  9. 通过 VMConnect 连接到虚拟机的控制台以安装作系统。 Select the virtual machine from the list, and then select More>Connect to download the .rdp file. 在远程桌面连接应用中打开 .rdp 文件。 由于要连接到虚拟机的控制台,因此需要输入 Hyper-V 主机的管理员凭据。

详细了解如何使用 Windows Admin Center 管理虚拟机

暂停和安全重启服务器

  1. On the left pane of the dashboard, select Servers. 或者,在仪表板右下角的磁贴上,选择“查看服务器”链接。>

  2. Switch from the Summary tab to the Inventory tab.

  3. 选择服务器以打开其详细信息。

  4. 选择 “暂停服务器”进行维护。 如果可以安全地继续,此操作会把虚拟机迁移到群集中的其他服务器上。 The server has a status of Draining during this process.

    If you want, you can watch the virtual machines move on the Virtual machines>Inventory pane, where the grid clearly shows their host server. After all the virtual machines move, the server status is Paused.

  5. Select Manage server to access all the per-server management tools in Windows Admin Center.

  6. Select Restart, and then select Yes.

  7. 回到仪表板,该服务器以红色显示,表示它已关闭。 After it's back up, go to the Server page and select Resume server from maintenance to set the server status to Up. 虚拟机将会及时后移。 不需要任何用户操作。

更换有故障的驱动器

  1. When a drive fails, an alert appears in the Alerts area of the dashboard.

    或者,若要浏览驱动器并自行查看其状态,可以:

    • Select Drives on the left pane.
    • 选择右下角磁贴上的“查看驱动器”链接。>

    On the Inventory tab, the grid supports sorting, grouping, and keyword search.

  2. 在仪表板上,选择警报以查看详细信息,例如驱动器的物理位置。

    若要了解详细信息,请选择转到驱动器 快捷方式以访问驱动器详细信息页

  3. 如果你的硬件支持,则可以选择 “打开/关闭指示灯” 来控制驱动器的指示灯。

  4. 存储空间直通会自动重试和移除出现故障的驱动器。 When this process happens, the drive status is Retired, and its storage capacity bar is empty.

  5. 移除故障驱动器,并插入更换驱动器。

  6. In Drives>Inventory, the new drive appears. In time, the alert will clear, volumes will repair back to OK status, and storage will rebalance onto the new drive. 不需要任何用户操作。

管理虚拟网络(通过 Windows Admin Center 预览版启用 SDN 的 HCI 群集)

  1. On the left pane, select Virtual Networks.

    “虚拟网络”窗格的屏幕截图。

  2. On the Inventory tab, select New to create a new virtual network and subnets. Or choose an existing virtual network and then select Settings to modify its configuration.

  3. 选择现有虚拟网络以查看与虚拟网络子网的 VM 连接,以及应用于虚拟网络子网的访问控制列表。

通过 Windows Admin Center 预览版将虚拟机连接到虚拟网络(已启用 SDN 的 HCI 群集)

  1. On the left pane, select Virtual Networks.

  2. Choose an existing virtual machine, select Settings, and then open the Networks tab.

  3. Configure the Virtual Network and Virtual Subnet fields to connect the virtual machine to a virtual network.

用于将虚拟机连接到虚拟网络的选择的屏幕截图。

还可以在创建虚拟机时配置虚拟网络。

通过 Windows Admin Center 预览版监控软件定义网络的基础设施(包括启用 SDN 的 HCI 群集)

  1. On the left pane, select SDN Monitoring.

  2. 查看有关网络控制器、软件负载均衡器和虚拟网关运行状况的详细信息。 还可以监视虚拟网关池、公共和专用 IP 池使用情况以及 SDN 主机状态。

用于监视 SDN 基础结构的窗格的屏幕截图。

Manage GPUs

  1. On the left pane, select GPUs.

  2. 查看群集 VM 中的可用 GPU,并通过离散设备分配为群集 VM 中运行的工作负荷提供 GPU 加速。 详细了解如何将 GPU 与群集 VM 配合使用

用于管理 GPU 的窗格的屏幕截图。

使用安全工具

  1. On the left pane, select Security.

  2. Select the Secured-core tab, and then enable or disable the available security features.

用于检查资源安全性的窗格和选项卡的屏幕截图。

给我们提供反馈

频繁更新的最重要好处是让我们知道哪些方面起到了作用,哪些方面需要改进。 下面是向我们反馈想法的几种方式: