January 27, 2010 at 5:28 am
Hi guys,
I have a bit of a problem with setting up mirroring in SQL 2008. I am using SQL server enterprise edition on both servers. When trying to set up mirroring, I get the following error:
The server network address "TCP://servername:5022" 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.
I have set up mirroring on the principal and secondary server before but in SQL 2005. What am I missing? Is there anything new I need to know with regards to SQL 2008?
Regards,
IC
January 27, 2010 at 8:40 am
Hey IC, the first thing you might want to try is to ping and telnet to that server with the specified port to make sure it is resolving correctly; from a command prompt type:
ping servername (to ensure it is resolving correctly), followed by:
telnet servername 5022 (to make sure that the port is open and accessible).
You might also want to try both tests with the FQDN of the server (ServerName.Domain) and the IP address.
January 28, 2010 at 2:22 am
Thanks...all ports are opened and the server can be pinged but mirroring still not working.
January 28, 2010 at 2:30 am
IC,
Is your database names you are mirroring on both the servers are alike? I had this issue before and everything from n/w side was OK, then I realised that names were slightly different. I made them alike and mirroring was setup.
January 28, 2010 at 2:32 am
yes, my db names are alike
January 29, 2010 at 4:35 am
Hi,
I think you created the endpoints with the wizzard.
We had the same problem. The names resolution was not the same on the Server. While local it works without domain sufix, the other side (from the names server) was with domain suffix.
to avoid the problem i createt the endpoints and mirroring of the databes with a script and all works fine.
a bit strange. you can test it with nslookup on both sides
try this (first delete all mirrors and endponts)
##Create Mirror Endpoint (on both Servers)
CREATE ENDPOINT [Mirroring]
AUTHORIZATION [<Domain-account>]
STATE=STARTED
AS TCP (LISTENER_PORT = 5022, LISTENER_IP = ALL)
FOR DATA_MIRRORING (ROLE = PARTNER, AUTHENTICATION = WINDOWS NEGOTIATE
, ENCRYPTION = REQUIRED ALGORITHM RC4)
### Enable Mirroring on both Partners, Mirror First then Prinzipal
### Mirror
ALTER DATABASE <database_name> SET PARTNER = TCP://<system-address>:5022
### Prinzipal
### ALTER DATABASE <database_name> SET PARTNER = TCP://<system-address>:5022
regards
felix
January 29, 2010 at 5:20 am
Thanks...but its still not working after your suggestion.
January 29, 2010 at 5:41 am
still not working? sad to hear 🙁
maybe you have to check for patches etc?
Just to have a closer picture:
your server are in the same domain?
you have the latest patch for sqlserver?
your sql servers service are runing with a valid domain account?
have you tried the same domain acount and the ip adress of the partner in the mirror config?
regards
felix
January 29, 2010 at 5:49 am
my answers is yes to all of ur list questions
January 29, 2010 at 6:17 am
your sql server browser is runing and your TCP potocoll enabled?
strange thing.
im out of ideas..
January 29, 2010 at 6:32 am
yip
February 21, 2010 at 3:44 am
Hey IC,
Did yoy check whether you have added the FQDN (Fully Qualified Domain Name) of both the server in the hosts file located on both the server.
Hosts file should have both the servers FQDN Name along its IP Address.
If this still doesn't work
then try configuring with Certificates
February 21, 2010 at 10:54 pm
I already tried that...does not work....can you please explain how I would configure with certificates?
February 22, 2010 at 7:54 am
Are you using Transparent Data Encryption?
I intially had gotten Mirroring working with it, but had an error, and have not been able to fix it since and I get the same error you are getting.
If I decrypt and drop the Database encryption key, backup DB, backup log, and restore and re-create Mirroring it works. But I cannot get it working with TDE enabled.
I noticed there was an error the CU5 for SQL 2008 SP 1 fixed, I downloaded and installed CU 6 (since it should included the fix from CU 5), and no dice i'm still getting the error, when the DB has TDE enabled.
Twitter: @SQLBalls
Blog: http://www.SQLBalls.com
Channel: https://www.youtube.com/@Tales-from-the-Field
March 10, 2011 at 8:34 am
I think the Principal server is unable to access the Mirror server Log path or Vice Versa...I got the same issue when I try to setup mirroring. Please check that .
Viewing 15 posts - 1 through 14 (of 14 total)
You must be logged in to reply to this topic. Login to reply