Error from Shrink Transaction Log because of AVAILABILITY_REPLICA

  • One day, I found a db transaction log file growing so big which is also in AG. I couldn't understand why because full backup and transaction log backup running fine. I took a extreme measure which was to remove the db from AG, switch it to SIMPLE mode and shrink the transaction log file. When I try to shrink the log, I get the error like below. I ran a qeury against sys.databases and found a record with the db and AVAILABILITY_REPLICA, which indicates there's unfinished transaction n AG. Can you help with shrinking the transaction log without getting the error below?

    Error: The log scan number (202388:69632:1) passed to log scan in database is not valid. This error may indicate data corruption or that the log file (.ldf) does not match the data file (.mdf).

    • This topic was modified 2 years, 4 months ago by  chulheekim.
  • Thanks for posting your issue and hopefully someone will answer soon.

    This is an automated bump to increase visibility of your question.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply