微软build议 Hyper-V集群有自己的专用集群networking,这将是:
用于群集心跳和群集共享卷(CSV)redirect等节点间群集通信。
在以下关于使用Windows Server 2016创build2节点超融合集群的指南的帮助下,我使用了以下PowerShell命令在第一个节点上创build集群networking:
# Create Virtual Machine Switch by merging the management adapters and disabling management OS New-VMSwitch -Name SW-1G -NetAdapterName Management-1, Management-2 -EnableEmbeddedTeaming $True -AllowManagementOS $False # Add Virtual Machine Network Adaptors for cluster based on merged switch Add-VMNetworkAdapter -SwitchName SW-1G -ManagementOS -Name Cluster-100 # Set Virtual Machine Adapter VLAN for Cluster adapter Set-VMNetworkAdapterVLAN -ManagementOS -VMNetworkAdapterName Cluster-100 -Access -VlanId 100 # Set IP address for cluster adapter New-NetIPAddress -InterfaceAlias "vEthernet (Cluster-100)" -IPAddress 10.10.100.11 -PrefixLength 24 -Type Unicast | Out-Null # Disable DNS registration of Cluster network adapter Set-DNSClient -InterfaceAlias *Cluster* -RegisterThisConnectionsAddress $False
然后在ipconfig /all创build以下条目
Ethernet adapter vEthernet (Cluster-100): Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter #2 Physical Address. . . . . . . . . : 00-15-5D-00-6C-01 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::29bd:4937:2dc1:8f8%10(Preferred) IPv4 Address. . . . . . . . . . . : 10.10.100.11(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : DHCPv6 IAID . . . . . . . . . . . : 503321949 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1F-CB-79-8B-FC-AA-14-ED-C6-BA DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1 fec0:0:0:ffff::2%1 fec0:0:0:ffff::3%1 NetBIOS over Tcpip. . . . . . . . : Enabled
在第二个节点上再次运行相同的脚本,将IP地址更改为10.10.100.13,从而在ipconfig /all创build以下条目:
Ethernet adapter vEthernet (Cluster-100): Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter #2 Physical Address. . . . . . . . . : 00-15-5D-00-68-01 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::c823:10d5:66f5:b8bb%9(Preferred) IPv4 Address. . . . . . . . . . . : 10.10.100.13(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : DHCPv6 IAID . . . . . . . . . . . : 503321949 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1F-CB-79-25-FC-AA-14-ED-C6-A2 DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1 fec0:0:0:ffff::2%1 fec0:0:0:ffff::3%1 NetBIOS over Tcpip. . . . . . . . : Enabled
运行Test-Cluster node1, node2命令后,报告在“validationnetworking通信”部分中给出以下错误:
networking接口node1.lab.com – vEthernet(Cluster-100)和node2.lab.com – vEthernet(Cluster-100)位于同一个群集networking上,但地址10.10.100.13不能从10.10.100.11使用端口上的UDP访问3343。
networking接口node2.lab.com – vEthernet(Cluster-100)和node1.lab.com – vEthernet(Cluster-100)位于同一个群集networking上,但地址10.10.100.11无法从10.10.100.13通过端口上的UDP访问3343。
由于集群networking假设允许节点间通信,所以看起来networking没有被正确configuration。 任何想法我可能做错了什么?
仔细看看脚本,您已经为vSwitchconfiguration了一个VLAN ID。 您是否将这些主机所连接的物理交换机端口configuration为中继端口,并允许在这些端口上使用适当的VLAN? 为了传送该VLAN的stream量,物理交换机端口需要configuration为中继端口以承载该VLAN。