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 «««123

SQL server logs backup / reduction Expand / Collapse
Author
Message
Posted Monday, April 22, 2013 9:32 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Wednesday, April 24, 2013 10:08 AM
Points: 12, Visits: 22
Steve Jones - SSC Editor (4/22/2013)
If you're loading 1-2 GB a day in the log, I'd shrink the log to 5GB. Space is relatively cheap, and this gives you pad.

You don't need a 140GB log, and likely it grew because you didn't run log backups. Switch the db to simple mode, shrink the log. Schedule (don't run, schedule) a full backup every day.

Steve while shrinking log Should i select option of release unused space or shrink to X GB?
Post #1445255
Posted Tuesday, April 23, 2013 1:44 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 @ 1:41 AM
Points: 40,602, Visits: 37,055
Shrink to X GB (where X is the size the log needs to be for normal operation)


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 #1445301
Posted Tuesday, April 23, 2013 6:03 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Wednesday, April 24, 2013 10:08 AM
Points: 12, Visits: 22
GilaMonster (4/23/2013)
Shrink to X GB (where X is the size the log needs to be for normal operation)

Thanks Gila I did backed up my data but not the log, hope its fine.
but what is the right amount of X?
On previous page Steve recommended 5gb
Post #1445378
Posted Tuesday, April 23, 2013 8:33 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Yesterday @ 5:38 PM
Points: 31,355, Visits: 15,819
I would agree with Gail on the shrink.

As for the size, there is no right size. If you are getting 2GB daily, 2GB might be fine for the size. I chose 5 because 3GB isn't a lot of space (1.5% of your drive) and it gives you pad.







Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1445475
Posted Tuesday, April 23, 2013 8:33 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 @ 1:41 AM
Points: 40,602, Visits: 37,055
Ice007 (4/23/2013)
GilaMonster (4/23/2013)
Shrink to X GB (where X is the size the log needs to be for normal operation)

Thanks Gila I did backed up my data but not the log, hope its fine.
but what is the right amount of X?
On previous page Steve recommended 5gb


As I said, in the post you quoted "where X is the size the log needs to be for normal operation", now you may need to do some monitoring and work to see how much log space the database operations normally need.



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 #1445476
Posted Tuesday, April 23, 2013 8:37 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Wednesday, April 24, 2013 10:08 AM
Points: 12, Visits: 22
Thanks a lot Steven and Gila to help me get these things done.
thanks a lot , you guys rock
Post #1445481
« Prev Topic | Next Topic »

Add to briefcase «««123

Permissions Expand / Collapse