I am trying to set up mirroring for a database called MirrorTest between two SQL Server 2008 instances on seperate machines. The machines are on the same domain and both instances are running under the same domain account. When I try to set the mirror as the partner for the principal instance I get the following error:"The server network address "TCP://mirror.domain.net:5025" can not be reached or does not exist. Check the network address name and that the ports for the local and remote endpoints are operational."The error code is 1418. mirror is the name of the server hosting the mirror instance.I've verified through the SQL Server Network Configuration in SQL Server Configuration Manager that both the mirror and principal are set up to allow TCP/IP connections. I've checked that the ports I have specified for the mirroring endpoints can be connected to using telnet from both servers. I've checked that SQL Server is using these ports by running netstat -abn on both servers. I cant figure out where I'm going wrong!Before anyone asks, here are the TSQL commands I used:To create the mirroring end points on both principal and mirror (they use the same port number on different machines): CREATE ENDPOINT MirroringEndPoint STATE = STARTED AS TCP ( LISTENER_PORT = 5025 ) FOR DATABASE_MIRRORING ( AUTHENTICATION = WINDOWS KERBEROS, ENCRYPTION = SUPPORTED, ROLE=PARTNER); GO
Then restored the MirrorTest database onto the mirror server with NORECOVERY specified: RESTORE DATABASE MirrorTest FROM DISK = 'G:\Backup\MirrorTest.bak' WITH NORECOVERY, MOVE 'MirrorTest' TO 'G:\Data\MirrorTest.mdf', MOVE 'MirrorTest_log' TO 'G:\Data\MirrorTest_log.ldf'GO RESTORE LOG MirrorTest FROM DISK = 'G:\Backup\MirrorTest_log.bak' WITH FILE=1, NORECOVERYGO
Then I tried to partner the mirror with the principal by running this on the mirror first ALTER DATABASE MirrorTest SET PARTNER = 'TCP://principal.domain.net:5025'
and then running this on the principal at which point I get the error ALTER DATABASE MirrorTest SET PARTNER = 'TCP://mirror.domain.net:5025'
Any ideas anyone?--------------------Cheers,James