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


Automatic Failover of Replication with Mirroring


Automatic Failover of Replication with Mirroring

Author
Message
craig.dixon
craig.dixon
SSC Rookie
SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)

Group: General Forum Members
Points: 38 Visits: 177
Morning Everyone :-)

I know this is a topic that has been widely discussed and I have read through a few articles on it but I cant seem to find an answer to my issue Unsure I'm hoping some of the great minds here may be able to lend me a helping hand :-D I am working with the following setup listed below:

Server A: Principal - Publisher
Server B: Mirror
Server C: Distributor - Subscriber

Mirroring is setup and works fine with no issues, however I'm trying to make the system automatically failover to the following setup should Server A fail:

Server A: Failed.
Server B: Principal - Publisher.
Server C: Distributor - Subscriber.

I have read up on setting the -PublisherFailoverPartner to be Server B but the information I have gone through has left me fairly confused Ermm I cant seem to figure out how the local publication on Server A will transfer to Server B when the -PublisherFailoverPartner comes into effect?

I would really appreciate any help you can give :-) Oh and the specs for the servers are also listed below, thanks again.

Specs:
Windows Server 2008 R2 Standard
SQL Server 2008 R2
Neeraj Dwivedi
Neeraj Dwivedi
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1099 Visits: 1336
To achieve replication with mirroring you should use remote shared distributor and configure Principle & Mirror as Publisher on that distributor.

Also use that Distributor on both Principle & Mirror.

Here is a very useful link :-

http://msdn.microsoft.com/en-us/library/ms151799.aspx
craig.dixon
craig.dixon
SSC Rookie
SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)

Group: General Forum Members
Points: 38 Visits: 177
Hi Neeraj,

Thanks for your reply :-) I have configured a remote shared distributor and I have also setup the Principal and Mirror as publishers. On the distributor I have also done the following:

1: Opened Distributor Properties.
2: Opened Agent Profiles - Profile Defaults.
3: Navigated to the Log Reader Agents.
4: Created a New Default agent profile with the name "Failover Agent Profile".
5: Set the -PublisherFailoverPartner Value to be the Mirror.

I'm going to read through the link you gave me tonight when I get a chance and if I find the silly mistake I'm making I'll post it incase anyone else would find it useful :-)

Thanks again Neeraj! I really appreciate your help.
Neeraj Dwivedi
Neeraj Dwivedi
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1099 Visits: 1336
You are always welcome.
Looking at your steps seems alright to me and as you said everything has been configured correctly. So if you see any error on the error logs of Publisher or Distributor, post them, they might be helpful.
craig.dixon
craig.dixon
SSC Rookie
SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)

Group: General Forum Members
Points: 38 Visits: 177
Hi again Neeraj :-)

I just went back into my test environment and the local publications have automatically moved to the mirror :-D I guess I didnt take into account how slow my test environment was running Blink haha Im so happy I didnt rush into anymore changes Whistling Thanks again for all your help, and hopefully someone will find this post helpful. I think I got caught up thinking what I had done was so simple that it couldnt be correct Laugh

Home Time Cool

Thanks Neeraj!
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