반응형

Azure SQL Server AlwaysOn Listener 연결 오류 (서브넷 구성 오류)

 

·         Version : SQL Server on Azure

 

SQL Server Azure 환경에서 리스너 IP 대한 서브넷 마스크가 잘못 구성된 경우 Azure AlwaysOn Listener 연결할 없다는 오류가 발생한다.

“A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 – Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)”

 

Azure AlwaysOn Availability Groups 대한 ILB 리스너 구성을 Powershell 스크립트로 구성할때  온라인 상태로 만들기 전에 리스너를 구성하는 단계가 있다.

# Define variables

$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

$ILBIP = “<X.X.X.X>” # the IP Address of the Internal Load Balancer (ILB)

 

Import-Module FailoverClusters

 

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

 

위의 마지막 행에서 서브넷 마스크IP 255.255.255.255이다. 그러나 많은 사용자들은 리스너IP 위해 서브넷 마스크와 일치하도록 변경해야한다고 생각한다. 예를들어 255.255.255.192 등을 넣을 것이다. 그러나 서브넷 마스크는 255.255.255.255 올바른 것이므로 변경해서는 안된다.

 

[참고자료]

https://blogs.msdn.microsoft.com/psssql/2016/12/04/unable-to-connect-to-sql-server-alwayson-listener-on-azure-due-to-misconfigured-subnet-mask/

 

 

2017-02-28 / 강성욱 / http://sqlmvp.kr

 

 

SQL Server, MSSQL, SQL Azure, MS Azure, AlwaysOn, Availability Group, Cluster Server, SQL Cluster, SubnetMask

반응형

+ Recent posts