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


Database Mirroring - Database Backups after Mirroring is establised


Database Mirroring - Database Backups after Mirroring is establised

Author
Message
gthayes
gthayes
Grasshopper
Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)

Group: General Forum Members
Points: 17 Visits: 135
Just wondering, after configuring a High Protection database mirror between a principal and mirrored server, is it possible to perform full backups of the database on the Principal server or will that interfere with the mirroring process ie. the transaction log backup numbers will be out of synch.

I raise this question in case of the scenario that both the principal and mirrored servers were to suffer a hardware issue that required a rebuild of both. How do you restore the backup of your database on a new server if you couldn't use a backup file of the database.

So if you wanted to perform a weekly full backup of the database, would you need to pause mirroring on the principal, backup the database/log and restore to the mirror server before resuming mirroring between the two servers to make sure both the database and mirror are completely in synch?



Todd Engen
Todd Engen
SSCrazy
SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)

Group: General Forum Members
Points: 2093 Visits: 6336
Yes, it's possible. In fact it's no less important to perform backups the same as if mirroring weren't enabled since the database is in the FULL recovery model. No changes have to be made to perform the backups.

Mirroring doesn't change the LSN's either. It only looks at them to make sure the principal and mirror are in synch.

I haven't tried this but I understand you can even mix a log shipping configuration with mirroring if you wanted a standby server in addition to the mirror/principal.

Have a look at this article for more detail:http://www.microsoft.com/technet/prodtechnol/sql/2005/dbmirror.mspx
JoeS 3024
JoeS 3024
Valued Member
Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)

Group: General Forum Members
Points: 51 Visits: 91
As mentioned yes it is possible and in fact you can set up a plan to do the backups regularly as well. Thing I noticed though is this (at least I ran into this and maybe I did something wrong) but if you do set up a plan to regularly do backups of the logs and db and you have a failover you won't be taking backups on the mirror which now became the Principle.

I didn't catch the failover once and we went a few days without backups. My log file also grew because the log backups weren't happening. So yes it's possible just make sure you are aware of all the other aspects of mirroring when setting it up.
GilaMonster
GilaMonster
SSC Guru
SSC Guru (153K reputation)SSC Guru (153K reputation)SSC Guru (153K reputation)SSC Guru (153K reputation)SSC Guru (153K reputation)SSC Guru (153K reputation)SSC Guru (153K reputation)SSC Guru (153K reputation)

Group: General Forum Members
Points: 153653 Visits: 45890
Please note: 5 year old thread.

It's entirely possible to set the backup jobs up on the mirror as well, just have them check the DB status when they run, if online, continue with backup, if not, abort.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


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