Mirroring Automatic Failover

  • We are receiving the below Error message in Mirroring and principal server is failovering automatically to Mirror Server.

    Database mirroring connection error 4 'The connection was closed by the remote end, or an error occurred while receiving data: '64(The specified network name is no longer available.)''

    Database mirroring connection error 4 '10054(An existing connection was forcibly closed by the remote host.)'.

    Database mirroring connection error 2 'Connection attempt failed with error: '10060(A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)'.'

    I have verified telnet to mirroring ports which is working from both sides.

    Any thoughts?

  • Try restarting the mirroring endpoints:

    -- To find out the name of the endpoint - execute from the primary

    SELECT * FROM sys.endpoints

    ALTER ENDPOINT Mirroring STATE=STOPPED

    ALTER ENDPOINT Mirroring STATE=STARTED

    If communication between the endpoints does not restart after you execute the scripts, execute the scripts on the database mirror. However, the database may enter a "Suspended" state after you do this. If this issue occurs, execute the following SQL script:

    ALTER DATABASE <Database Name> SET PARTNER RESUME

    https://support.microsoft.com/en-us/kb/2490051

  • I have tried stopping and starting endpoints,Issue is not resolved.

    we are facing this issue once or twice in a week and the principal server databases are failing over to mirror server.

    throwing the message as Database mirroring connection error 4 'The connection was closed by the remote end, or an error occurred while receiving data: '64(The specified network name is no longer available.)'' in the sqlserver logs.

  • DBA_007 (11/17/2016)


    We are receiving the below Error message in Mirroring and principal server is failovering automatically to Mirror Server.

    Database mirroring connection error 4 'The connection was closed by the remote end, or an error occurred while receiving data: '64(The specified network name is no longer available.)''

    Database mirroring connection error 4 '10054(An existing connection was forcibly closed by the remote host.)'.

    Database mirroring connection error 2 'Connection attempt failed with error: '10060(A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)'.'

    I have verified telnet to mirroring ports which is working from both sides.

    Any thoughts?

    Are you using a witness server?

    -----------------------------------------------------------------------------------------------------------

    "Ya can't make an omelette without breaking just a few eggs" 😉

  • yes, for automatic failover.

  • can you supply more detail on the placement of the principal, mirror and witness instances, are they on separate sites for instance?

    -----------------------------------------------------------------------------------------------------------

    "Ya can't make an omelette without breaking just a few eggs" 😉

  • They are all in the same domain

  • Does anyone have a solution to this problem

  • DBA_007 (11/17/2016)


    They are all in the same domain

    I asked if they were on separate sites, not domains.

    Please provide more detail on the mirroring configuration

    -----------------------------------------------------------------------------------------------------------

    "Ya can't make an omelette without breaking just a few eggs" 😉

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply