Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 High Availability (2008)
 Non-transferred operations for mirroring

Author  Topic 

kensai
Posting Yak Master

172 Posts

Posted - 2012-01-02 : 14:13:18
I've setup a mirroring for two databases and I wonder, are there any operations I should be aware of on primary SQL Server which won't be transferred to the mirror?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-01-02 : 14:35:57
No as it requires full recovery model. As long as you don't break the tlog chain, mirroring will do everything. An example: You can break the tlog chain by truncating the tlog. Breaking the tlog chain breaks mirroring, so you would have to start over.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

kensai
Posting Yak Master

172 Posts

Posted - 2012-01-03 : 04:28:55
quote:
Originally posted by tkizer

No as it requires full recovery model. As long as you don't break the tlog chain, mirroring will do everything. An example: You can break the tlog chain by truncating the tlog. Breaking the tlog chain breaks mirroring, so you would have to start over.



By truncation tlog I hope you mean dbcc log truncating and not taking tlog backups?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-01-03 : 12:02:14
I am referring to truncate the transaction log via the backup command. I am not suggesting you do it as it breaks the tlog chain and mirroring. I'm telling you one way that'll mean data won't get transferred to the mirror as it broke mirroring altogether.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

kensai
Posting Yak Master

172 Posts

Posted - 2012-01-04 : 09:13:59
To be clear, this will break mirroring:

BACKUP LOG [DatabaseName] WITH TRUNCATE_ONLY

But this will not:

BACKUP LOG [DatabaseName]

Is this correct?

Sorry for asking like an idiot, I need to be sure 100%.
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2012-01-04 : 09:45:15
Backup log with truncate only (which doesn't work on SQL 2008 anyway) or switching to simple recovery will break mirroring. Normal log backups are fine, they can't remove log records that are pending mirroring.

--
Gail Shaw
SQL Server MVP
Go to Top of Page

kensai
Posting Yak Master

172 Posts

Posted - 2012-01-05 : 03:55:10
Thank you tkizer and GilaMonster.
Go to Top of Page
   

- Advertisement -