在高可用性中与Listener服务器连接时出现问题

问题描述 投票:0回答:1

最近我设置了AG,服务器X是主服务器,服务器Y是辅助服务器,Z是监听服务器。 Ag运行正常。如果我对主服务器执行RDP,我可以连接到侦听器,但无法通过辅助服务器和本地SSMS连接,我根本无法连接到侦听器。我们有Azure环境,我设置了负载均衡器,前端ip和健康探测器。

我检查了所有配置是否正确。没有防火墙问题。与其他听众相比也是如此。有人可以帮助我,我错过了什么..

sql-server high-availability
1个回答
0
投票

我发现Solution.DNS无法与Listener服务器通信。所以需要运行这个powershell脚本并且它工作。我附加链接以供参考。

$ClusterNetworkName = "<MyClusterNetworkName>" # the cluster network name (Use Get-ClusterNetwork on Windows Server 2012 of higher to find the name)
$IPResourceName = "<IPResourceName>" # the IP Address resource name
$ListenerILBIP = "<n.n.n.n>" # the IP Address of the Internal Load Balancer (ILB). This is the static IP address for the load balancer you configured in the Azure portal.
[int]$ListenerProbePort = <nnnnn>

Import-Module FailoverClusters

Get-ClusterResource $IPResourceName | Set-ClusterParameter -Multiple @{"Address"="$ListenerILBIP";"ProbePort"=$ListenerProbePort;"SubnetMask"="255.255.255.255";"Network"="$ClusterNetworkName";"EnableDhcp"=0}

enter link description here

© www.soinside.com 2019 - 2024. All rights reserved.