|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Monday, April 30, 2012 11:15 PM
Points: 295,
Visits: 109
|
|
Hi All, I have established a Synchronous mirroring with witness ( to achieve automatic failover), I am getting all the configuration perfectly set except the value of "mirroring_witness_state" which is showing Connected on Principal and Disconnected on Mirror. I believe these values should be Connected on both servers, but i am clueless why not. Due to this when i try to test automatic failover my Mirror DB shows me "Disconnected ,In recovery". because it doesn't have anyone to make quorum with???? Any help highly appreciated.
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Tuesday, February 19, 2013 6:39 AM
Points: 893,
Visits: 871
|
|
Hi there,
If you run: select * from sys.database_mirroring
on the Principal and the Mirror, check the following values. For a normal, synchronised mirror with Witness, the values should be: -- mirroring_state = 4 (synchronized) -- mirroring_role = 1 (principal) or 2 (mirror) -- mirroring_witness_state = 1 (connected)
That should be enough for you to work out where your problem lies.
Andy
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Wednesday, April 17, 2013 3:39 AM
Points: 1,768,
Visits: 1,312
|
|
Use Database Mirroring Monitor tool to narrow down your problem. Refer the following link for further reference.
http://msdn2.microsoft.com/en-us/library/ms365809.aspx http://msdn2.microsoft.com/en-us/library/ms365781.aspx
Also best practice:
http://www.microsoft.com/technet/prodtechnol/sql/2005/technologies/dbm_best_pract.mspx
Good Luck!
--------------------------------------------------- "Thare are only 10 types of people in the world: Those who understand binary, and those who don't."
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Monday, April 30, 2012 11:15 PM
Points: 295,
Visits: 109
|
|
Hi Everyone thankyou very much for your time. I finally found out the problem, somehow my mirror server name was missing USERDNSDOMAIN and hence a connection was not getting established between Mirror and Witness. I explicitly added environmental variable %USERDNSDOMAIN% to server name and things worked.
|
|
|
|
|
Say Hey Kid
      
Group: General Forum Members
Last Login: Today @ 8:55 AM
Points: 685,
Visits: 1,707
|
|
I've got a similar problem with a key difference.
I currently have TWO databases mirrored, same primary, same mirror same witness.
One shows fully connected and synchronized in mirroring monitor
The other shows the witness connected to the primary but disconnected from the secondary. both databases synchronized. If I use the
select * from sys.database_mirroring
I get similar results. running it from the primary shows the witness connected for both databases. Running it from the mirror show connected for one, disconnected for the other.
...
-- FORTRAN manual for Xerox Computers --
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Monday, September 12, 2011 2:07 PM
Points: 10,
Visits: 26
|
|
Hi - I haven't checked whether I need to add the environment variable %USERDNSDOMAIN% to my witness server or not, but wanted to let you know your post was by far the most valuable in all I've seen on mirroring issues.
I've been very frustrated with mirroring in general. When everything stays connected it works flawlessly but rarely do things remain connected and so far THREE support calls to microsoft has returned ZERO on our investment. (each call resulted in links to articles that are available for free to the general public with 'case closed' statuses).
Unfortunately my issue is only happening in production so I can't easily makes changes to my environment.
Colleen
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, February 12, 2013 7:13 AM
Points: 1,
Visits: 107
|
|
| I had this problem recently - I haven't tried the %USERDNSDOMAIN% solution however what worked for me was bouncing the server with the mirror&witness on. The mirror/witness connection just sparked into life after that and everything worked ok
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Monday, September 12, 2011 2:07 PM
Points: 10,
Visits: 26
|
|
| Found a valuable tip that I don't see posted anywhere: If you're having trouble establishing connection to the mirror, undoubtedly the error messages will lead you astray. Instead, setup log shipping using the GUI first. Then establish the mirroring session. Then remove log shipping. It works every time.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, May 02, 2013 3:13 PM
Points: 153,
Visits: 114
|
|
I recently had the same thing happen. Although, we have multiple db's on 1 box. The connection status on all other mirrors were fine. 1 db specifically was presenting connection problems from the mirror to the witness. I restarted the service on the witness instance and this resolved the witness connection problem. Hope this helps.
Thanks, cdaly
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, June 16, 2010 6:22 AM
Points: 2,
Visits: 70
|
|
Restarting the service on the Witness worked perfectly for me, thanks!
|
|
|
|