Share via

Tlog backup failure

Anonymous
2024-02-22T22:18:54.0666667+00:00

MyDatabase is set up in High Availability Group. The tlog backup was failed with the error. The MyDatabsase1_log.ldf file keep growing. How to troubleshoot this error and fix it? Backup detected log corruption in database MyDatabase. Context is Bad Middle Sector. LogFile: 2 'l:\log\MyDatabase1_log.ldf' VLF SeqNo: x5b9ab5 VLFBase: xcb8400000 LogBlockOffset: xce1b85000 SectorStatus: 2 LogBlock.StartLsn.SeqNo: x5b9ab5 LogBlock.StartLsn.Blk: x14bbf6 Size: xf000 PrevSize: xf000

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories


Answer accepted by question author

Erland Sommarskog 134.7K Reputation points MVP Volunteer Moderator
2024-02-23T18:09:03.17+00:00

Sounds like you are in big trouble. That is not good news at all.

First of all, corruption does not happen out of the blue, but it is always due to faulty hardware, typically the I/O subsystem. So you need to replace your hardware.

The next question is: how do you bring the database over to the new hardware? I would expect BACKUP DATABASE fail with the same or similar error, but you could try. If it succeeds, run DBCC CHECKDB after RESTORE.

Else you would need create a new database from scripts and copy data over with BCP, SSIS or similar.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.