SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Principal Disconnected, In Recovery... on both servers after restart


Principal Disconnected, In Recovery... on both servers after restart

Author
Message
Jetro
Jetro
Old Hand
Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)

Group: General Forum Members
Points: 377 Visits: 377
Hi,

today I had the problem, that after a restart of my two mirrored database servers on both servers all databases where in the state "Principal, disconnected, in recovery". So both databases weren't available.

We "fixed" this with "ALTER DATABASE XXX SET PARTNER OFF" to bring the database back online...

Did you ever saw this behaviour and know a better solution than removing the mirroring session from the database?

Thanks in advance!

-----------------------
SQL Server Database Copy Tool at Codeplex
SQLBalls
SQLBalls
Mr or Mrs. 500
Mr or Mrs. 500 (572 reputation)Mr or Mrs. 500 (572 reputation)Mr or Mrs. 500 (572 reputation)Mr or Mrs. 500 (572 reputation)Mr or Mrs. 500 (572 reputation)Mr or Mrs. 500 (572 reputation)Mr or Mrs. 500 (572 reputation)Mr or Mrs. 500 (572 reputation)

Group: General Forum Members
Points: 572 Visits: 630
I had this happen once, but when I tried to replicate it in a dev environment to try to trouble shoot it, I could not force it to repeat.

I was in HSHA, mirroring is supposed to prevent split brain issues like this from happening, but that is exactally what I did, recovered one set of databases and re-initialized mirroring.


What is the build version of your 2008 server, sp1, sp2, sp1 & some CU's. There was an issue with the way the transactions were passed along in mirroring that could cause mirroring to enter a suspended state, that was fixed in CU 5 for sp1 that we applied, but this is completely seperate from the issue you are posting about.

If your running SP 2 it would have been fixed in there as well.

Twitter: @SQLBalls
Blog: http://www.SQLBalls.com
ALZDBA
ALZDBA
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: General Forum Members
Points: 12089 Visits: 8924
You should first have looked in your sqlserver errorlog.
- what topology of mirroring were you using ?
- did you have a look at your SQLServer ERRORLOG file ?
- did you find related messages ?

- are you capturing dbmirroring events you all your instances ?


Please post your @@version info.

Johan


Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere w00t

- How to post Performance Problems
- How to post data/code to get the best help


- How to prevent a sore throat after hours of presenting ppt ?


press F1 for solution, press shift+F1 for urgent solution :-D


Need a bit of Powershell? How about this

Who am I ? Sometimes this is me Alien but most of the time this is me Hehe
gianmh
gianmh
Grasshopper
Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)

Group: General Forum Members
Points: 16 Visits: 101
Thank you so much, I had stuck production server
d-i-m-on
d-i-m-on
SSC Rookie
SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)

Group: General Forum Members
Points: 43 Visits: 538
I was helped by the following: DROP\CREATE Mirroring Endpoint on Mirror Serser.
Perry Whittle
Perry Whittle
SSCoach
SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)

Group: General Forum Members
Points: 19870 Visits: 17242
normally stopping and restarting the endpoints will cure the issue

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search