One of our customer uses Avamar SQL plugin to backup several SQL databases. My question is about transaction logs after backup. Has Avamar any mechanism which allow to control of rising space used by logs ? Other words how to automatically append transaction logs after backup ?
Now for testing purpose we set SQL plugin options as below:
backup type: incremental.
force incremental: false
Log truncation: Default
force full: false.
In log I can see that backup was finished with success:
2011-02-18 15:30:51 avsql Info <7028>: Working on target '(local)/VCM_Szam/i-1' 2011-02-18 15:30:51 avsql Info <7029>: Creating manager for '(local)/VCM_Szam/i-1' (hcount 453) 2011-02-18 15:30:51 avsql Info <6649>: Process 3876 (C:\Program Files\avs\bin\avtar) for workorder MSSQL-1298039205425#2 started 2011-02-18 15:32:11 avsql Info <6446>: SQL VDI transfer of '(local)/VCM_Szam/i-1' to '(local)_VCM_Szam_MSSQL-1298039205425#2-3006-SQL' successful 2011-02-18 15:32:11 avsql Info <7401>: physical: D:\MSSQL\DATA\VCM_Szam.mdf 2011-02-18 15:32:11 avsql Info <7402>: logical : VCM_Szam 2011-02-18 15:32:11 avsql Info <7401>: physical: D:\MSSQL\LOGS\VCM_Szam_log.ldf 2011-02-18 15:32:11 avsql Info <7402>: logical : VCM_Szam_log 2011-02-18 15:32:16 avsql Info <6651>: Process 3876 (C:\Program Files\avs\bin\avtar) finished (code 0: Success)
Unfortunately size of log file for this database is still growing without any control.
Could anyone tell me what is going on ? Because according to my knowledge, backup performed with those settings should reduced size of log file, am I right ?
Log truncation not supported for SQL 2008 for full backup, need to schedule incremental just after full backup.
For SQL 2000 and SQL 2005, leave force full and force incremental checkd as a best practive.
its recommended to run shrink database command from SQL server to shrink the log size. Ensure initial size of log file is not set to high value for databases and you are expecting it to go down to 0 kb. Minumum size of the log file (ldf) will be the initial size of ldf file as seen in SQL enterprise manager or management studio..
matej_felle
41 Posts
972
0
Posted February 20th, 2011 10:00
Enable the option (for instance,Truncate database log
for the SQL Server plugin) to truncate transaction logs after each backup
protects against unfettered growth of logs filling the server disk and eventually
hindering database functionality.
BR