Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Replace principal server in sql server 2005 database mirroring setup Expand / Collapse
Author
Message
Posted Thursday, January 10, 2013 7:44 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, May 2, 2014 2:41 AM
Points: 72, Visits: 264
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
Post #1405462
Posted Friday, January 11, 2013 10:11 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Friday, May 30, 2014 11:28 AM
Points: 82, Visits: 414
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.
Post #1406158
Posted Friday, January 11, 2013 12:00 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, May 2, 2014 2:41 AM
Points: 72, Visits: 264
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
Post #1406215
Posted Friday, January 11, 2013 12:34 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Friday, May 30, 2014 11:28 AM
Points: 82, Visits: 414
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.
Post #1406230
Posted Monday, January 14, 2013 3:57 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, May 2, 2014 2:41 AM
Points: 72, Visits: 264
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
Post #1406646
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse