Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

Failed to create Availability Group Listener.

$
0
0

Hi 

I am trying to setup a Availability Group on a two node(both nodes exist on same subnet)  and it is failing to create the Listener with the following error:

Msg 19456, Level 16, State 1, Line 3
None of the IP addresses configured for the availability group listener can be hosted by the server 'ServerB'. Either configure a public cluster network on which one of the specified IP addresses can be hosted, or add another listener IP address which can be hosted on a public cluster network for this server.
Msg 41158, Level 16, State 3, Line 3
Failed to join local availability replica to availability group 'DTproduction'.  The operation encountered SQL Server error 19456 and has been rolled back.  Check the SQL Server error log for more 

I have the following IP's configured.

1 IP for Cluster virtual name.

1 IP for each node.

1 IP for DNS name 'DTProduction' which is Listener and AG name.

Here is the code generated by the wizard for AG:

:Connect ServerA

USE [master]

GO

CREATE AVAILABILITY GROUP [DTproduction]
WITH (AUTOMATED_BACKUP_PREFERENCE = SECONDARY)
FOR DATABASE [Test]
REPLICA ON N'ServerA' WITH (ENDPOINT_URL = N'TCP://ServerA.FS.LOCAL:5022', FAILOVER_MODE = MANUAL, AVAILABILITY_MODE = SYNCHRONOUS_COMMIT, BACKUP_PRIORITY = 50, SECONDARY_ROLE(ALLOW_CONNECTIONS = ALL)),
	N'ServerB' WITH (ENDPOINT_URL = N'TCP://ServerB.FS.LOCAL:5022', FAILOVER_MODE = MANUAL, AVAILABILITY_MODE = SYNCHRONOUS_COMMIT, BACKUP_PRIORITY = 50, SECONDARY_ROLE(ALLOW_CONNECTIONS = ALL));

GO

:Connect SERVERA

USE [master]

GO

ALTER AVAILABILITY GROUP [DTproduction]
ADD LISTENER N'DTProduction' (
WITH IP
((N'10.1.8.51', N'255.255.254.0')
)
, PORT=1433);

GO

:Connect SERVERB

ALTER AVAILABILITY GROUP [DTproduction] JOIN;

GO


GO

Here is my cluster configuration:



Any help is appreciated and thanks in advance.


Thank you -Mushtaq






Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>