Hi SQLServerBro,
If i shrink current tran. log to 10% and set autogrow off and create another transaction log to the new drive where we have enough space , will this solution work? my concern is since i set autogrow off for 1 tran. log file any long running transaction should not fail.
Yes, it will work. The transaction log files do not use proportional fill like data files, once the primary log file becomes full, it will move to the next log file. Please refer to this article which might be helpful.
PS, this database is part of always on
If you are adding a log file to the Primary Replica, the add file command will also be executed on the secondary replicas. If you have not placed your database files for your Primary and Secondary replica database on an identical path, then SQL Server will not be able to create that file on the Secondary Replica server. So Please make sure the drive do exist on the Secondary replica. Please check this blog.
Best Regards,
Amelia
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.