Log file growth availability groups

NeophyteSQL 241 Reputation points
2021-07-26T15:47:41.763+00:00

if database backups (Full and T Log) are issued on SQL Server databases included in aviability groups on the secondary replica, does the T -log continue to grow on the primary replica , how does the T-log kept in check on primary

SQL Server | Other
{count} votes

1 answer

Sort by: Most helpful
  1. AmeliaGu-MSFT 14,006 Reputation points Microsoft External Staff
    2021-07-27T02:58:04.8+00:00

    Hi NeophyteSQL,

    The log backup on the primary replica will truncate the log if database backups (Full and T Log) are issued on SQL Server databases on the secondary replica.
    Once hardened to the secondary database log file, a dedicated redo thread in the secondary replica instance applies the contained log records to the corresponding data file(s). The primary replica cannot overwrite log blocks in its own log file until all redo threads in all secondary replicas have applied the contained log records. Please refer to Data synchronization process which might help.

    Best Regards,
    Amelia


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

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