疑難排解匯集 NIC 設定Troubleshooting Converged NIC Configurations

適用於:Windows Server(以每年次管道)、Windows Server 2016Applies To: Windows Server (Semi-Annual Channel), Windows Server 2016

若要確認是否 RDMA 設定是否正確 HYPER-V 主機上,您可以使用下列的指令碼。You can use the following script to verify whether the RDMA configuration is correct on the Hyper-V host.

您也可以使用下列的 Windows PowerShell 命令疑難排解,並確認您聚合型 Nic 的設定。You can also use the following Windows PowerShell commands to troubleshoot and verify the configuration of your converged NICs.

Get-NetAdapterRdmaGet-NetAdapterRdma

若要確認您的網路介面卡 RDMA 設定,請執行下列 Windows PowerShell 命令 HYPER-V 伺服器上。To verify your network adapter RDMA configuration, run the following Windows PowerShell command on the Hyper-V server.

Get-NetAdapterRdma | fl *

找出並修正問題的相關 HYPER-V 主機上執行此命令之後,您可以使用下列如預期般和未預期的結果。You can use the following expected and unexpected results to identify and resolve issues after you run this command on the Hyper-V host.

Get-NetAdapterRdma 預期結果Get-NetAdapterRdma expected results

主機但 vNIC 和實體而會顯示為零 RDMA 功能。Host vNIC and the physical NIC show non-zero RDMA capabilities.

Windows PowerShell 預期結果

Get-NetAdapterRdma 未預期的結果Get-NetAdapterRdma unexpected results

如果您收到執行時的非預期的結果,請執行下列步驟取得-NetAdapterRdma命令。Perform the following steps if you receive unexpected results when you run the Get-NetAdapterRdma command.

  1. 請確定 Mlnx 迷你連接埠和 Mlnx 匯流排驅動程式的最新項目。Make sure the Mlnx miniport and Mlnx bus drivers are latest. 適用於 Mellanox,使用至少卸除 42。For Mellanox, use at least drop 42.
  2. 驗證檢查裝置管理員] 中透過驅動程式版本符合 Mlnx 迷你連接埠和匯流排驅動程式。Verify that Mlnx miniport and bus drivers match by checking the driver version through Device Manager. 在 [系統裝置可以找到匯流排驅動程式。The bus driver can be found in System Devices. 下列螢幕擷取畫面的網路介面卡屬性中所示 Mellanox Connect-X 3 PRO VPI,應該會開始名稱。The name should start with Mellanox Connect-X 3 PRO VPI, as illustrated in the following screen shot of network adapter properties.

網路介面卡屬性

  1. 請務必在同時實體網路介面卡、主機但 vNIC 尚未網路直接 (RDMA)。Make sure Network Direct (RDMA) is enabled on both the physical NIC and host vNIC.
  2. 請務必檢查其 RDMA 功能 vSwitch 建立透過向實體介面卡。Make sure vSwitch is created over the right physical adapter by checking its RDMA capabilities.
  3. 檢查系統事件檢視器以登入和來源」超-V-VmSwitch」來篩選。Check EventViewer System log and filter by source “Hyper-V-VmSwitch”.

取得 SmbClientNetworkInterfaceGet SmbClientNetworkInterface

做為額外的步驟來驗證您的設定 RDMA,執行下列 Windows PowerShell 命令 HYPER-V 伺服器上。As an additional step to verify your RDMA configuration, run the following Windows PowerShell command on the Hyper-V server.

Get SmbClientNetworkInterface

取得如預期般 SmbClientNetworkInterface 結果Get SmbClientNetworkInterface expected results

主機但 vNIC 應該會顯示為可 RDMA SMB 的觀點也。The host vNIC should appear as RDMA capable from SMB’s perspective as well.

網路介面卡屬性

取得 SmbClientNetworkInterface 未預期的結果Get SmbClientNetworkInterface unexpected results

  1. 請確定 Mlnx 迷你連接埠和 Mlnx 匯流排驅動程式的最新項目。Make sure the Mlnx miniport and Mlnx bus drivers are latest. 適用於 Mellanox,使用至少卸除 42。For Mellanox, use at least drop 42.
  2. 驗證檢查裝置管理員] 中透過驅動程式版本符合 Mlnx 迷你連接埠和匯流排驅動程式。Verify that Mlnx miniport and bus drivers match by checking the driver version through Device Manager. 在 [系統裝置可以找到匯流排驅動程式。The bus driver can be found in System Devices. 下列螢幕擷取畫面的網路介面卡屬性中所示 Mellanox Connect-X 3 PRO VPI,應該會開始名稱。The name should start with Mellanox Connect-X 3 PRO VPI, as illustrated in the following screen shot of network adapter properties.
  3. 請務必在同時實體網路介面卡、主機但 vNIC 尚未網路直接 (RDMA)。Make sure Network Direct (RDMA) is enabled on both the physical NIC and host vNIC.
  4. 請務必透過向實體介面卡建立 HYPER-V Virtual 開關切換至檢查其 RDMA 功能。Make sure the Hyper-V Virtual Switch is created over the right physical adapter by checking its RDMA capabilities.
  5. 事件檢視器以登檢查的「SMB Client」應用程式與服務 |Microsoft |WindowsCheck EventViewer logs for “SMB Client” in Application And Services | Microsoft | Windows.

Get-NetAdapterQosGet-NetAdapterQos

您可以檢視服務 (QoS) 設定網路介面卡的品質,執行下列 Windows PowerShell 命令。You can view the network adapter quality of service (QoS) configuration by running the following Windows PowerShell command.

Get-NetAdapterQos

Get-NetAdapterQos 預期結果Get-NetAdapterQos expected results

根據您執行使用此快速入門第一次設定步驟,應該會顯示優先順序和流量類別。Priorities and traffic classes should be displayed according to the first configuration step that you performed using this guide.

品質服務優先順序和類別

Get-NetAdapterQos 未預期的結果Get-NetAdapterQos unexpected results

如果您的結果是發生未預期,執行下列步驟。If your results are unexpected, perform the following steps.

  1. 確保您的資料中心橋接 (DCB) 和 QoS 實體網路介面卡的支援Ensure that the physical network adapter supports Data Center Bridging (DCB) and QoS
  2. 確定是最新的網路介面卡驅動程式。Ensure that the network adapter drivers are up to date.

Get-SmbMultiChannelConnectionGet-SmbMultiChannelConnection

您可以使用下列的 Windows PowerShell 命令來確認 RDMA\ 能力的遠端節點 IP 位址。You can use the following Windows PowerShell command to verify that the remote node's IP address is RDMA-capable.

Get-SmbMultiChannelConnection

Get-SmbMultiChannelConnection 預期結果Get-SmbMultiChannelConnection expected results

遠端節點 IP 位址會顯示為 RDMA 功能。Remote node’s IP address is shown as RDMA capable.

RDMA 可遠端節點 IP 位址

Get-SmbMultiChannelConnection 未預期的結果Get-SmbMultiChannelConnection unexpected results

如果您的結果是發生未預期,執行下列步驟。If your results are unexpected, perform the following steps.

  1. 請務必 ping 的兩種方式運作。Make sure ping works both ways.
  2. 請務必防火牆不會封鎖 SMB 連接起始。Make sure the firewall is not blocking SMB connection initiation. 具體而言,讓 SMB 直接連接埠 5445 防火牆規則。Specifically, enable the firewall rule for SMB Direct port 5445.

Get-SmbClientNetworkInterfaceGet-SmbClientNetworkInterface

您可以使用下列命令,以確認您支援 RDMA virtual 而回報為 RDMA\ 處理能力,SMB。You can use the following command to verify that the virtual NIC you enabled for RDMA is reported as RDMA-capable by SMB.

Get-SmbClientNetworkInterface

Get-SmbClientNetworkInterface 預期結果Get-SmbClientNetworkInterface expected results

Virtual NIC RDMA 已支援,必須視為 SMB,RDMA 功能。Virtual NIC that was enabled for RDMA must be seen as RDMA capable by SMB.

SMB 報告 Nic 可 RDMA 功能

Get-SmbClientNetworkInterface 未預期的結果Get-SmbClientNetworkInterface unexpected results

如果您的結果是發生未預期,執行下列步驟。If your results are unexpected, perform the following steps.

  1. 請務必 ping 的兩種方式運作。Make sure ping works both ways.
  2. 請務必防火牆不封鎖 SMB 連接起始。Make sure firewall is not blocking SMB connection initiation.

Vstat (Mellanox specific)vstat (Mellanox specific)

如果您使用 Mellanox 網路介面卡,您可以使用vstat命令驗證 RDMA 透過 HYPER-V 節點上匯集乙太網路 (RoCE) 版本。If you are using Mellanox network adapters, you can use the vstat command to verify the RDMA over Converged Ethernet (RoCE) version on Hyper-V nodes.

如預期般 vstat 結果vstat expected results

這兩個節點上的 RoCE 版本必須是相同。The RoCE version on both nodes must be the same. 這也是驗證,這兩個節點上的韌體版本是最新的好方法。This is also a good way to verify that the firmware version on both nodes is latest.

RoCE 版本核取結果範例

Vstat 未預期的結果vstat unexpected results

如果您的結果是發生未預期,執行下列步驟。If your results are unexpected, perform the following steps.

  1. 設定使用 Set-MlnxDriverCoreSetting 正確 RoCE 版本Set correct RoCE version using Set-MlnxDriverCoreSetting
  2. 安裝最新的韌體從 Mellanox 網站。Install the latest firmware from Mellanox website.

效能計數器Perfmon Counters

您可以檢視計數器效能監視器,以確認您的設定的 RDMA 活動中。You can review counters in Performance Monitor to verify the RDMA activity of your configuration.

效能監視器結果範例

本指南所有主題All topics in this guide

本指南包含下列主題。This guide contains the following topics.