Additional SQL Server features and topics not covered by specific categories
Hi @Laxmi ,
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.
Some people choose the following: Instance out of availability group - Modify to simple recovery mode - Modify back to full recovery mode - Full backup - Add back to availability group - Restore the secondary copy (note that it is WITH NORECOVERY) - Restart synchronization. I think it is also feasible except it is tedious.
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.
It is not recommended to shrink the database, because it will still grow after you finish shrinking it.
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.