Share via

What happened?

Salves 501 Reputation points
2022-05-16T22:08:00.33+00:00

Hi,

yesterday we received a warning from the monitoring that the disks of one of our bases was full and when we looked, we noticed that the sizes of the primary and secondary LOGs were different.

We looked at the Always On LOGs and found nothing.

We looked at the system LOGs and found nothing.

We looked at the cluster LOGs and found nothing.

When something like this happened, or because our secondary replica with Azure was down, then it caused the LOGs to grow but that didn't happen now.

Thanks.

202542-screenshot-2022-05-16-185524.png

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories


2 answers

Sort by: Most helpful
  1. Tom Phillips 17,786 Reputation points
    2022-05-17T13:56:41.243+00:00

    The physical size of the log file really has no meaning. There is no relationship between the log size on the primary and the secondary. This is not a problem or an indication of a problem.

    Was this answer helpful?


  2. Seeya Xi-MSFT 16,756 Reputation points
    2022-05-17T05:36:02.267+00:00

    Hi @Salves ,

    Welcome to Microsoft Q&A!
    First of all, there must be a full backup in Alwayson. Unlike the simple recovery model, the system does not automatic truncate the transaction log after each transaction. For databases with a full or bulk log recovery model, the system truncates the transaction log only after a successful backup of the transaction log.
    For databases with frequent transaction log growth, you can establish a maintenance plan and back up the transaction log periodically, from a few minutes to an hour.

    Best regards,
    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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.

    Was this answer 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.