在 VMM 網狀架構中管理 Hyper-V 主機的 MPIOManage MPIO for Hyper-V hosts in the VMM fabric

重要

已不再支援此版本的 Virtual Machine Manager (VMM),建議升級至 VMM 2019This version of Virtual Machine Manager (VMM) has reached the end of support, we recommend you to upgrade to VMM 2019.

請閱讀本文以了解 System Center - Virtual Machine Manager (VMM) 如何管理 Hyper-V 主機上的多重路徑 I/O (MPIO)。Read this article to learn about how System Center - Virtual Machine Manager (VMM) manages Multipath I/O (MPIO) on Hyper-V hosts.

當您將光纖通道或 iSCSI 存放裝置加入 VMM 網狀架構中受管理的 Hyper-V 主機時,必須在每部主機上啟用多重路徑 I/O (MPIO) 功能。When you add fiber channel or iSCSI storage to a Hyper-V host managed in the VMM fabric, the Multipath I/O (MPIO) feature must be enabled on each host.

  • 如果在主機上啟用 MPIO,VMM 會針對使用 Microsoft DSM 之支援的存放裝置陣列新增此 MPIO。If MPIO is enabled on the host, VMM adds it for supported storage arrays using the Microsoft DSM. 如果您已安裝廠商特定的 DSM,則會使用廠商特定的 MPIO 設定連線到存放裝置陣列。If you installed vendor-specific DSMs, then the vendor-specific MPIO settings will be used to connect to the storage array.
  • 如果您新增主機且未啟用 MPIO,VMM 將在 [作業] 視窗中顯示一則警告訊息。If you add a host and MPIO isn't enabled, VMM will show a warning message in the Jobs window.
  • 如果您將主機加入 VMM 並在之後啟用 MPIO,則必須新增 MPIO 功能,然後手動設定 MPIO,以新增找到的裝置硬體識別碼。If you add a host to VMM and enable MPIO afterwards, you need to add the MPIO feature, and then manually configure MPIO to add the discovered device hardware IDs. 或者,您可以安裝廠商特定的 DSM。Alternatively, you can install vendor-specific DSMs.

VMM 中的 MPIO 追蹤MPIO tracking in VMM

將 Hyper-V 主機和叢集加入 VMM 網狀架構之後,VMM 會顯示代理程式以在主機和 VMM 伺服器之間進行連線。When Hyper-V hosts and clusters are added to the VMM fabric, VMM deploys an agent to connectivity between the host and the VMM server. 此外,VMM 會收集有關主機或叢集的設定資訊,並將它新增到 VMM。Additionally, VMM collects configuration information about the host or cluster and adds it to VMM. 在 MPIO 的案例中,VMM 會新增兩個含有 MPIO 資訊的登錄機碼。In the case of MPIO, VMM adds two registry keys containing MPIO information.

- <span data-ttu-id="9fca8-115">HKEY LOCAL MACHINE\SYSTEM\CurrentControlSet\Control\MPDEV\MPIOSupportedDeviceList</span><span class="sxs-lookup"><span data-stu-id="9fca8-115">HKEY LOCAL MACHINE\SYSTEM\CurrentControlSet\Control\MPDEV\MPIOSupportedDeviceList</span></span>
- <span data-ttu-id="9fca8-116">HKEY LOCAL MACHINE\SYSTEM\CurrentControlSet\Services\msdsm\Parameters\DsmSupportedDeviceList</span><span class="sxs-lookup"><span data-stu-id="9fca8-116">HKEY LOCAL MACHINE\SYSTEM\CurrentControlSet\Services\msdsm\Parameters\DsmSupportedDeviceList</span></span>

將支援的存放裝置加入裝置清單之後,VMM 會在其上進行「宣告」,而且需要在主機上重新啟動。After supported storage devices are added to the device list, VMM makes a "claim" on them, and a restart is required on the host. 如果您在主機上部署工作負載之前已將主機加入 VMM,則這可能不成問題,但如果工作負載已在主機上執行,這可能會造成中斷。If you've added the host to VMM before deploying workloads on it, then this probably isn't an issue, but if workloads are already running on the host, this could cause interruptions. 若要嘗試避免可能的中斷,您可以執行 PowerShell 指令碼在主機上預先填入 MPIO 登錄機碼,再將它新增到 VMM 網狀架構。In an attempt to avoid potential outages, you can run a PowerShell script to prepopulate the MPIO registry keys on a host, before adding it to the VMM fabric. 深入了解此指令碼。Learn more about this script.

防止 VMM 宣告裝置識別碼Prevent VMM from claiming device IDs

如果您不希望 VMM 宣告任何存放裝置識別碼以用於 MPIO,請執行下列作業:If you don't want VMM to claim any storage device IDs for MPIO purposes, do the following:

  1. 開啟登錄位置 HKLM\Software\Microsoft\Microsoft System Center Virtual Machine Manager Server\SettingsOpen registry location HKLM\Software\Microsoft\Microsoft System Center Virtual Machine Manager Server\Settings
  2. 在此位置中,建立具有多字串類型的登錄機碼 RemoveMPIOHardwareIdsIn this location, create a registry key RemoveMPIOHardwareIds with type multi-string.
  3. 從預設清單新增裝置識別碼。Add the device IDs from the default list. 確定您使用相同的間距。Make sure you use the same spacing.
  4. 重新啟動 VMM 服務。Restart the VMM service.
  5. 在 VMM 中新增 Hyper-V 主機。Add the Hyper-V host in the VMM.

後續步驟Next steps

佈建 VMProvision a VM