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


SQL 2008 R2 Mirror Node Rebuild


SQL 2008 R2 Mirror Node Rebuild

Author
Message
doshea
doshea
SSC Veteran
SSC Veteran (266 reputation)SSC Veteran (266 reputation)SSC Veteran (266 reputation)SSC Veteran (266 reputation)SSC Veteran (266 reputation)SSC Veteran (266 reputation)SSC Veteran (266 reputation)SSC Veteran (266 reputation)

Group: General Forum Members
Points: 266 Visits: 257
Scenario: Rebuild a SQL Server Mirror Node (Current Principal A) where initial mirrored environment is operational. Reason - Server A old and reliability questionable.

Context
- SQL Mirror in place - Server A principal, Server B mirror, Server W Witness
- Connection string from app1 is as follows:
data source=tcp:servera;failover partner=tcp:serverb;initial catalog=db1;connection timeout=150;integrated security=true;application name=app1

Steps
- Failover Database so that the B Server becomes Principal
- Disable Witness so as to prevent automated failover whilst steps are being carried out
- Shutdown Server A and rebuild with same name and a fresh install of operating system and SQL Server 2008 R2.
- Take full backup and a log backup from mirrored database Server B (Now functioning as Principal)
- Restore full backup and log backup on newly built Server A using NORECOVERY
- Recreate Mirroring endpoint on Server A and grant appropriate permissions for Server B and Server W to connect to this endpoint.

Given connection string, will these steps allow:
A) Applications to connect to B Server whilst Server A is being rebuilt from scratch. In other words Server A is completely unavailable for a period of time.
B) Mirroring to recommence once backups (full, log) have been restored and endpoints re-established on Server A?

Our concern is that this is different from the initial creation of a mirror, in that the backup is being taken from the mirrored environment (running at that point without a mirror), rather than a non-mirrored database server. Does this make any difference?

Thanks
David.
Steve Jones
Steve Jones
SSC Guru
SSC Guru (332K reputation)SSC Guru (332K reputation)SSC Guru (332K reputation)SSC Guru (332K reputation)SSC Guru (332K reputation)SSC Guru (332K reputation)SSC Guru (332K reputation)SSC Guru (332K reputation)

Group: Administrators
Points: 332049 Visits: 20117
No. Once you failover, the secondary node becomes the primary. There is no differentiator between a primary and a mirror. It's just which one generates log and which one receives it.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
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