Solved

SQL server 2008 r2 mirroring

Posted on 2013-01-17
6
513 Views
Last Modified: 2013-01-17
I have three sql servers that i use for mirroring.  One sql server is the principal another the mirror and the third is the witness.  I am not sure if the behavior i am experiencing is normal or not but here is what is happening.

sql1 = principal
sql 2 = mirror
sql 3 = witness

The database on sql1 is the backend for our website and when i reboot sql 2 the website is unavailable until both sql1 and sql2 are available.  It seems as if something is wrong shouldn't i be able to reboot sql2 (the mirror) and still be able to access the database on sql1 = 1 principal?

Is this normal behavior or do i have something wrong.
0
Comment
Question by:IKtech
  • 4
  • 2
6 Comments
 
LVL 3

Author Comment

by:IKtech
Comment Utility
it is probably worth mentioning that the mirroing is using high safety with automatic failover.
0
 
LVL 42

Accepted Solution

by:
EugeneZ earned 500 total points
Comment Utility
it is not, did you check sql error log; mirror alerts

is sql1 = principal online during sql 2 = mirror reboot?
can you check your website application config\connection string settings?
0
 
LVL 42

Expert Comment

by:EugeneZ
Comment Utility
<Is this normal behavior>
It is not
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 3

Author Comment

by:IKtech
Comment Utility
SQL1 is online and so is the witness.  When i reboot the mirror (sql2) the database on the principal states (principal disconnected in recovery).  And as soon as the mirror comes back up things return to "normal".  I just had an issue where i could not get sql server service to start on the witness so i reinstalled SQL which got me back to where i could start sql server service again.  I also removed mirroring and configured it again after reinstalling.
0
 
LVL 3

Author Comment

by:IKtech
Comment Utility
I just changed the log on credentials for the "sql server agent" service and tested.  Seems good to go.  you get the points for trying help.  Thanks!
0
 
LVL 3

Author Closing Comment

by:IKtech
Comment Utility
Fixed it myself but i thank you anyway
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now