Sql-server – Error configuring witness server for failover in SQL Server

database-mirroringfailoversql server

I'm lost here, I am configuring a SQL Server for failover and have three servers.

Principal server > SQL 2008 R2
Witness server > SQL 2014
Mirror server > SQL 2008 R2

All three servers can ping the other via IP and FQDN.

The endpoints configure successfully but when I go to start mirroring, I get this error:

Alter failed for Database 'DBNAME'

The ALTER DATABASE command could not be sent to the remote server instance 
'TCP://witness.domain.abc:5022'.  The database mirroring configuration was not changed.  
Verify that the server is connected and try again.

Any idea what this error is?

I restored the database and transaction log to the mirror server. All I did on the witness server is set up SQL, is there anything else I need to do?

Banging my head against the wall here.

Best Answer

You've created an ENDPOINT on the witness, right?
Read this on how to create a witness endpoint.

Check that there isn't either the Windows firewall or a network device blocking the endpoint port on either principal to witness or mirror to witness. I always like to use:

telnet hostname port

To test that the ports are open. You should get a connection with telnet. A time out or a connection refused means some things is wrong.
I'd also check the authorization used on the endpoints. KERBEROS requires SPNs setup for it to work. NEGOTIATE is the most compatible, but weakest in terms of security.

Related Topic