New-SCDCBSettings
注意: 此 Cmdlet 適用于 VMM 2019 UR1。
在 VMM 管理的 S2D 叢集中設定 DCB 設定。
Syntax
New-SCDCBSettings
[-VMMServer <ServerConnection>]
[-AddDCBSettings]
[-RemoveDCBSettings]
[-HostNetworkAdapters <HostNetworkAdapter[]>]
[-VirtualNetworkAdapters <VirtualNetworkAdapter[]>]
[-SMBPriority <Int32>]
[-SMBBandwidth <Int32>]
[-ClusterHeartbeatPriority <Int32>]
[-ClusterHeartbeatBandwidth <Int32>]
[<CommonParameters>]
Description
-New-SCDCBSettings Cmdlet 會在 Virtual Machine Manager 所管理的 S2D 叢集中設定 DCB 設定, (VMM) 。
範例
範例 1:建立 HCI 叢集時設定 DCB 設定
PS C:\> $HostNetworkAdpaters = Get-SCVMHostNetworkAdapter where {$_.Name -like "RDMA*"}
PS C:\>$VirtualHostNetworkAdpaters = Get-SCVirtualNetworkAdapter where {$_.Name -like "RDMA*"}
PS C:\>$DCBSettings = New-SCDCBSettings -AddDCBSettings -SMBPriority 3 -SMBBandwidth 50 -ClusterHeartbeatPriority 7 -ClusterHeartbeatBandwidth 1 -HostNetworkAdapters $HostNetworkAdpaters -VirtualNetworkAdapters $VirtualHostNetworkAdpaters
PS C:\> $RunAsAcct = Get-SCRunAsAccount -Name "RunAsAccount01"
PS C:\> $HostGroup = Get-SCVMHostGroup -Name "New York"
PS C:\> $Nodes = Get-SCVMHost | where {$_.Name -like "HostClus*" -and $_.VMHostGroup -eq $HostGroup}
PS C:\> Install-SCVMHostCluster -VMHost $Nodes -ClusterName "Cluster01" -Credential $RunAsAcct -EnableS2D -DCBSettings $DCBSettings
前兩個命令用來擷取 HostNetworkAdapters 和 HostVirtualNetworkAdapters。
第三個命令用來建立 DCB 設定物件。
第四個命令會取得名為 RunAsAccount01 的執行身分帳戶,並將它儲存在$RunAsAcct變數中。
第五個命令會取得名為 New York 的主機群組物件,並將物件儲存在 $HostGroup 變數中。
第六個命令會取得叢集節點,其開頭為儲存在 $HostGroup 主機群組中的 HostClus 名稱。 命令接著會將節點儲存在$Nodes變數中。
最後一個命令會建立叢集,並將其命名為 Cluster01,並依照上述 Cmdlet 套用 DCB 設定。 在超交集叢集上設定 DCB 設定
範例 2:在超交集叢集上設定 DCB 設定
PS C:\>$HostNetworkAdpaters = Get-SCVMHostNetworkAdapter where {$_.Name -like "RDMA*"}
PS C:\>$VirtualHostNetworkAdpaters = Get-SCVirtualNetworkAdapter where {$_.Name -like "RDMA*"}
PS C:\>$DCBSettings = New-SCDCBSettings -AddDCBSettings -SMBPriority 3 -SMBBandwidth 50 -ClusterHeartbeatPriority 7 -ClusterHeartbeatBandwidth 1 -HostNetworkAdapters $HostNetworkAdpaters -VirtualNetworkAdapters $VirtualHostNetworkAdpaters
PS C:\>$cluster = Get-SCVMHostCluster where {$_.Name -like "HostClus*"}
PS C:\> Set-SCVMHostCluster -VMHostCluster $cluster -DCBSettings $DCBSettings
前兩個命令用來擷取 HostNetworkAdapters 和 HostVirtualNetworkAdapters。
第三個命令用來建立 DCB 設定物件。
最後一個命令會設定超交集叢集上的 DCB 設定。
範例 3:在向外延展檔案伺服器 S2D 叢集上設定 DCB 設定
PS C:\>$HostNetworkAdpaters = Get-SCVMHostNetworkAdapter where {$_.Name -like "RDMA*"}
PS C:\>$VirtualHostNetworkAdpaters = Get-SCVirtualNetworkAdapter where {$_.Name -like "RDMA*"}
PS C:\>$DCBSettings = New-SCDCBSettings -AddDCBSettings -SMBPriority 3 -SMBBandwidth 50 -ClusterHeartbeatPriority 7 -ClusterHeartbeatBandwidth 1 -HostNetworkAdapters $HostNetworkAdpaters -VirtualNetworkAdapters $VirtualHostNetworkAdpaters
PS C:\>$sofs = Get-SCStorageFileServer where {$_.Name -like "SOFSClus*"}
PS C:\> Set-SCStorageFileServer-StorageFileServer $sofs -DCBSettings $DCBSettings
前兩個命令用來擷取 HostNetworkAdapters 和 HostVirtualNetworkAdapters。
第三個命令用來建立 DCB 設定物件。
最後一個命令會設定 SOFS 叢集上的 DCB 設定。
範例 4:移除超交集叢集上的 DCB 設定
PS C:\>$HostNetworkAdpaters = Get-SCVMHostNetworkAdapter where {$_.Name -like "RDMA*"}
PS C:\>$VirtualHostNetworkAdpaters = Get-SCVirtualNetworkAdapter where {$_.Name -like "RDMA*"}
PS C:\>$DCBSettings = New-SCDCBSettings -RemoveDCBSettings -HostNetworkAdapters $HostNetworkAdpaters -VirtualNetworkAdapters $VirtualHostNetworkAdpaters
PS C:\>$cluster = Get-SCVMHostCluster where {$_.Name -like "HostClus*"}
PS C:\> Set-SCVMHostCluster -VMHostCluster $cluster -DCBSettings $DCBSettings
前兩個命令用來擷取 HostNetworkAdapters 和 HostVirtualNetworkAdapters。
第三個命令用來建立具有 RemoveDCBSettings 旗標的 DCB 設定物件。
第四個命令是建立物件,以取得 SCVMHostCluster 詳細資料。
最後一個命令會設定超交集叢集上的 DCB 設定。
範例 5:移除向外延展檔案伺服器 S2D 叢集上的 DCB 設定
PS C:\>$HostNetworkAdpaters = Get-SCVMHostNetworkAdapter where {$_.Name -like "RDMA*"}
PS C:\>$VirtualHostNetworkAdpaters = Get-SCVirtualNetworkAdapter where {$_.Name -like "RDMA*"}
PS C:\>$DCBSettings = New-SCDCBSettings -RemoveDCBSettings -HostNetworkAdapters $HostNetworkAdpaters -VirtualNetworkAdapters $VirtualHostNetworkAdpaters
PS C:\>$sofs = Get-SCStorageFileServer where {$_.Name -like "SOFSClus*"}
PS C:\> Set-SCStorageFileServer-StorageFileServer $sofs -DCBSettings $DCBSettings
前兩個命令用來擷取 HostNetworkAdapters 和 HostVirtualNetworkAdapters。
第三個命令用來建立具有 RemoveDCBSettings 旗標的 DCB 設定物件。
第四個命令是建立物件,以取得 CStorageFileServer 詳細資料。
最後一個命令會設定 SOFS S2D 叢集上的 DCB 設定。
參數
-AddDCBSettings
啟用此旗標以新增 DCB 設定。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ClusterHeartbeatBandwidth
指定叢集活動訊號流量的頻寬。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ClusterHeartbeatPriority
指定叢集活動訊號流量的優先順序。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HostNetworkAdapters
指定您要套用 DCB 設定的主機網路介面卡。
Type: | HostNetworkAdapter[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveDCBSettings
啟用此旗標以移除 DCB 設定。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SMBBandwidth
指定 SMB 流量的頻寬。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SMBPriority
指定 SMB 流量的優先順序。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VirtualNetworkAdapters
指定您要套用 DCB 設定的主機虛擬網路介面卡。
Type: | VirtualNetworkAdapter[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMMServer
指定 VMM 伺服器物件。
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
輸出
DCBSettings
此 Cmdlet 會傳回 DCBSettings 物件。