Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Log file backup growth (how long's a piece of string...) Expand / Collapse
Author
Message
Posted Monday, September 16, 2013 5:13 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: 2 days ago @ 5:14 AM
Points: 510, Visits: 1,891
If your log backup file was as follows:

2,176 KB at 10 this morning
10,617 KB at 11 this morning
18,615 KB at 12 midday

would that seem like an unusual amount of growth to you? (I know approx 8 MB an hour might not seem like a lot, and it's early days yet, but I wondered what others thought.)

It has just been switched to Full recovery model, with the log being backed up every hour. Do the figures above suggest that it needs to be backed up much more frequently than that? (The database is about 58 GB.)


(2008 R2 Standard Edition)

Post #1494999
Posted Monday, September 16, 2013 5:24 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, November 17, 2014 3:53 AM
Points: 177, Visits: 419
It does depend on the amount of transactions that are happening within the tables / applications.

I would suggest that the T-LOGs are backed up every hour or even every 2 hours. the full backup should be done once a day.

But all of this does depend on your disaster recovery plan and system availability. A 58gb database is not large in SQL terms - but is the data ALL required ? - could you archive any old data and therefore reduce the size of the database ?

Do you do any other maintenance ? Truncate tables / shrink tables/databases ? to return free space back to the system ?


________________________________________________________________________________________________
Regards
Steve
SQL 2008 DBA/DBD - MCTS/MCITP

Please don't trust me, test the solutions I give you before using them.
Post #1495004
Posted Monday, September 16, 2013 6:03 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: 2 days ago @ 5:14 AM
Points: 510, Visits: 1,891
... and at 1 pm it was 31,795 KB - a fairly big jump, no?

Thanks for the reply. The log file is backed up every hour, and the database is backed up daily. The database is fairly new and all the data is needed, but there are read-only filegroups.

Right now there's no maintenance plan in place, which is why I'm concentrating on it now. I know that the indexes need an overhaul, but I was sidetracked by watching the growth of the log file. I do think this is the week of the month when it would have the most activity, but should I be backing up the log file more frequently than this?

Thanks
Post #1495024
Posted Monday, September 16, 2013 6:39 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 4:17 AM
Points: 40,606, Visits: 37,060
What is the exact command you're using to back up the log?


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1495039
Posted Monday, September 16, 2013 7:09 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: 2 days ago @ 5:14 AM
Points: 510, Visits: 1,891
BACKUP LOG 'databasename' 
TO DISK='E:\path\databasename_LOG_BACKUP.bak'

Post #1495061
Posted Monday, September 16, 2013 7:14 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 4:17 AM
Points: 40,606, Visits: 37,060
No WITH options?


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1495065
Posted Monday, September 16, 2013 7:25 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: 2 days ago @ 5:14 AM
Points: 510, Visits: 1,891
No WITH options currently.

Thanks.
Post #1495073
Posted Monday, September 16, 2013 7:28 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, November 17, 2014 3:53 AM
Points: 177, Visits: 419
Maybe worth reading this..

http://technet.microsoft.com/en-us/library/ms186865.aspx



________________________________________________________________________________________________
Regards
Steve
SQL 2008 DBA/DBD - MCTS/MCITP

Please don't trust me, test the solutions I give you before using them.
Post #1495074
Posted Monday, September 16, 2013 8:55 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 4:12 AM
Points: 14,196, Visits: 28,523
Try running this:
RESTORE HEADERONLY FROM DISK = 'd:\bu\mm.bak' ;

But on your log backup. I'll bet you you're stacking the files.


----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of:
SQL Server Query Performance Tuning
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #1495135
Posted Monday, September 16, 2013 9:07 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: 2 days ago @ 5:14 AM
Points: 510, Visits: 1,891
When I run that I get 7 rows back. Is that the sort of thing you suspected?

Thanks
Post #1495144
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse