Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Mirror Monitoring issue


Mirror Monitoring issue

Author
Message
Martin Stephenson
Martin Stephenson
SSC-Addicted
SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)

Group: General Forum Members
Points: 459 Visits: 679
I have setup mirroring on a pair of SQL 2008 R2 servers. This appears to be working ok when I run the monitoring software on the partner I can see both the principal and mirror instance. the state on both says Synchronised. If I try to run it on the Principal server it gives the miiror the wrong sql instance name and cant connect to it.
Lookng at the sys.database_mirroring table the mirroring_partner_name fiels is correctly named but the mirroring_partner_instance has the wrong name. I have tried deleting the server instance connections and re adding them but it just keeps putting the wrong instance name in. As it cant connect it throws an eror and fails to connect.
two questions spring to mind
1) Is mirroring working ? as the mirror monitor claims
2) How can I update the sys table to put the right instance name in to the monitor
Perry Whittle
Perry Whittle
SSCrazy Eights
SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)

Group: General Forum Members
Points: 8843 Visits: 16579
can you post the results of the following query please


select d.name
, dm.mirroring_state_desc
, dm.mirroring_role_desc
, dm.mirroring_safety_level_desc
, dm.mirroring_partner_instance
, dm.mirroring_witness_name
, dm.mirroring_state_desc
, dm.mirroring_redo_queue
, dm.mirroring_redo_queue_type
from sys.databases d inner join sys.database_mirroring dm
on d.database_id = dm.database_id
where d.name = 'yourdb'



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

"Ya can't make an omelette without breaking just a few eggs" ;-)
Martin Stephenson
Martin Stephenson
SSC-Addicted
SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)

Group: General Forum Members
Points: 459 Visits: 679
attached csv dump of query results as txt file

The mirroring partner instance field contains the mis-spelt server name
Attachments
output_text.txt (25 views, 284 bytes)
Martin Stephenson
Martin Stephenson
SSC-Addicted
SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)SSC-Addicted (459 reputation)

Group: General Forum Members
Points: 459 Visits: 679
Mirroring is now suspended and I can't resume it as it attempts to reconnect to the database server that doesnt exist. I can remove mirroring and re-create it. but although I put in the correct database server name it still uses the original incorrect entry
zonxwedop
zonxwedop
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 2
Hi I was wondering if you ever found out the solution to your issue. I have a very similar issue where I need to change the mirroring_partner_instance.
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