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


Replace principal server in sql server 2005 database mirroring setup


Replace principal server in sql server 2005 database mirroring setup

Author
Message
SteadfastDBA
SteadfastDBA
Valued Member
Valued Member (72 reputation)Valued Member (72 reputation)Valued Member (72 reputation)Valued Member (72 reputation)Valued Member (72 reputation)Valued Member (72 reputation)Valued Member (72 reputation)Valued Member (72 reputation)

Group: General Forum Members
Points: 72 Visits: 312
Hi folks,

I am a regular SSC reader but haven't yet made any contributions due to time constraints.
I have a question on db mirroring and I hope I am posting this in the right area.

We have plans to replace our old principal sql server involved in database mirroring on sql server 2005 standard with a brand new bigger and much powerful box. I was wondering what could be best way to do this without much interrupting the operations....
We have a 24/7 high OLTP environment and got about 60+ databases mirrored from this server and our data centre is across the border, hence we had to use certificates. Most of the db's are not over couple of gigs except about 5 of them would be about 10+ GB's. the mirroring is set in high safety without witness mode.

So the plan is....
• Setup the new box with the sql installed and all the best practices configuration done
• failover all the db's from the current principal to the mirror server sit across the border.
• make sure the mirror server is now set as principal
• break the mirroring
• turn off the old principal server (which is now mirror)
• backup all the databases on the principal server
• steal the IP address from the old principal in order to be used it for the new principal server
• switch the new server on with the IP address of the old the principal server
• copy the most recent backups from the principal server and restore them with NORECOVRY
• restore any pending transactions
• Setup mirroring between the current principal server and the new server as a mirror server
• Failover to the newly built server which is now a mirror server
• Finally the newly built server is configured as principal and the original mirror server as mirror

I know there are some other steps like making sure the certificates are transferred and created on the new server is not covered.
I see the only downtime here is the blip while stealing the IP. Is this sound like a viable plan or anyone suggests any better way of doing it.
Thanks in advance for your help.
AK :-)
BP-111
BP-111
SSC Journeyman
SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)

Group: General Forum Members
Points: 82 Visits: 453
This is exactly what I did for the past few months for my servers upgrade. It works fine for me but I am interested to learn if there is a better way to do this.
SteadfastDBA
SteadfastDBA
Valued Member
Valued Member (72 reputation)Valued Member (72 reputation)Valued Member (72 reputation)Valued Member (72 reputation)Valued Member (72 reputation)Valued Member (72 reputation)Valued Member (72 reputation)Valued Member (72 reputation)

Group: General Forum Members
Points: 72 Visits: 312
Thanks for reading the post and commenting. I am glad to know that I am on right path. I will definitely let you know all the issues I may encounter during the implementation.
I however have a question as I am not too sure about it.
When you failover to mirror server and then break the mirroring and set up the mirroring between the mirror(which is now a principal server after the failover) and the new server, does it allow you to set up mirroring from there or would it complain about logs not been in order?
Thanks,
AK
BP-111
BP-111
SSC Journeyman
SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)

Group: General Forum Members
Points: 82 Visits: 453
This is just like setting up mirroring from scratch, as long as you drop it cleanly and set it up properly, it should work. I don't have any issue doing it so far. A side note, you might have done it but you should probably test all the steps in a test environment before doing it in production.
SteadfastDBA
SteadfastDBA
Valued Member
Valued Member (72 reputation)Valued Member (72 reputation)Valued Member (72 reputation)Valued Member (72 reputation)Valued Member (72 reputation)Valued Member (72 reputation)Valued Member (72 reputation)Valued Member (72 reputation)

Group: General Forum Members
Points: 72 Visits: 312
Thanks for your reply,
I will indeed test this before doing it on production db's.
I will post here after the implementation :-)
Regards,
AK
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