Windows Server:如何使用 PowerShell 或 Windows Admin Center 更换 Microsoft Azure Stack HCI 中的驱动器

Summary: 本文介绍使用 Windows PowerShell 或 Windows Admin Center 更换 Microsoft Azure Stack HCI 群集中故障驱动器的过程。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

在 Azure Stack HCI 中更换驱动器的过程非常简单,可以使用 PowerShell 或 Windows Admin Center (WAC) 完成。

使用 Windows PowerShell 更换驱动器

  1. 在 Azure Stack HCI 群集的节点上,启动提升的 PowerShell 提示符。
  2. 要枚举所有未处于正常运行状态的硬盘,请运行 Get-PhysicalDisk | Where-Object {$_.HeathStatus -ne "Healthy"}
  3. 要停用上一个命令标识的所有磁盘,请运行 Get-PhysicalDisk | Where-Object {$_.HealthStatus -ne "Healthy"} | Set-PhysicalDisk -Usage Retired
  4. 在该节点上运行 Get-PhysicalDisk 以确认上一步中指定的磁盘现在在使用情况列中显示 已停用
  5. 在该节点上运行 Get-StorageJob 检查存储作业是否仍在进行中。等待他们完成,然后再继续。(这可能需要一段时间。)
  6. 以物理方式卸下并更换故障驱动器。
  7. 在该节点上运行 Get-PhysicalDisk 确认更换磁盘是否存在。它应该自动添加到存储池中,但这可能需要一些时间。
  8. 将磁盘添加到池后, Get-StorageJob 该命令可用于监视正在运行的存储作业,直到它们完成。


使用 Windows Admin Center (WAC) 更换驱动器

  1. 在 WAC 中选择群集以打开群集管理器功能。
  2. 单击左侧窗格中的 Drives ,然后单击 Inventory 以枚举群集中的驱动器。
  3. 选择要更换的驱动器,然后在资源清册列表上方的栏中单击停 。在弹出窗口中单击 Retire 以确认。驱动器的“状态”列现在将显示它已停用。
  4. 以物理方式卸下并更换驱动器。
  5. 刷新 WAC 中的驱动器资源清册。更换驱动器现在应该已列出,但它可能尚未在存储池中。这会自动进行,但可能需要很短的时间。
  6. 继续刷新驱动器资源清册列表,直到旧驱动器从列表中消失,并且新驱动器已添加到存储池中。

Affected Products

Microsoft Windows Server 2019, Microsoft Windows Server 2022
Article Properties
Article Number: 000193620
Article Type: How To
Last Modified: 22 May 2025
Version:  8
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.