FIX: "Could not redo log record" error and log shipping stops working after an automatic failover in SQL Server 2008 R2

Article translations Article translations
Article ID: 2893022 - View products that this article applies to.
Expand all | Collapse all

On This Page

Symptoms

Assume that you set up an environment that combines log shipping and database mirroring in Microsoft SQL Server 2008 R2. The database mirroring is running in high-safety mode and automatic failover is configured. In this situation, after an automatic failover, the log shipping may stop working, and the following error is logged in the SQL Server error log: 
<Date><Time> spid#  Error: 3456, Severity: 16, State: 1.
<Date><Time> spid#  Could not redo log record (#), for transaction ID (#), on page (#), database '<DatabaseName>' (database ID #). Page: LSN = (#), type = #. Log: OpCode = #, context #, PrevPageLSN: (#). Restore from a backup of the database, or repair the database.
<Date><Time> spid#  Using 'dbghelp.dll' version '4.0.5'
<Date><Time> spid#  **Dump thread - spid = 0, EC = 0x0000000A928F20F0
<Date><Time> spid#  ***Stack Dump being sent to <FilePath>\SQLDump0045.txt
<Date><Time> spid#  * *******************************************************************************
<Date><Time> spid#  *
<Date><Time> spid#  * BEGIN STACK DUMP:
<Date><Time> spid#  *   <Date><Time> spid# 
<Date><Time> spid#  *
<Date><Time> spid#  * HandleAndNoteToErrorlog: Exception raised, major=34, minor=56, severity=16
Additionally, some dump files are generated on the log shipping server.

Resolution

The issue was first fixed in the following cumulative update of SQL Server.

Cumulative Update 9 for SQL Server 2008 R2 SP2

About cumulative updates for SQL Server

Collapse this imageExpand this image
assets folding start collapsed
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:
Collapse this imageExpand this image
assets folding end collapsed

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Properties

Article ID: 2893022 - Last Review: October 28, 2013 - Revision: 1.0
Applies to
  • Microsoft SQL Server 2008 R2 Service Pack 2, when used with:
    • Microsoft SQL Server 2008 R2 Enterprise
    • Microsoft SQL Server 2008 R2 Developer
    • Microsoft SQL Server 2008 R2 Datacenter
    • Microsoft SQL Server 2008 R2 Standard
Keywords: 
kbqfe kbfix kbsurveynew kbexpertiseadvanced KB2893022

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com