December 7, 2014 at 1:13 pm
I have a database file that has a mdf of 100gb and a log of 400gb.
Facts:
Full recovery model
Mirrored to 2nd SQL server
full backup taken every morning at 12:05 am
differential at 8 am / 5 pm
transaction log backup every 24 min.
DBCC OpenTran - shows no open transactoions
DBCC CheckDB - shows ok
What can I do? What I want to do is set recovery to simple - reset log to 30GB - set recovery to full. Will this work? What am I missing?
Thanks.
Mike
December 7, 2014 at 2:02 pm
mike 57299 (12/7/2014)
I have a database file that has a mdf of 100gb and a log of 400gb.Facts:
Full recovery model
Mirrored to 2nd SQL server
full backup taken every morning at 12:05 am
differential at 8 am / 5 pm
transaction log backup every 24 min.
DBCC OpenTran - shows no open transactoions
DBCC CheckDB - shows ok
What can I do? What I want to do is set recovery to simple - reset log to 30GB - set recovery to full. Will this work? What am I missing?
Thanks.
Mike
Yes, that will work but you need to take a DIF backup right after you change back to full recovery to restart the log chain that was broken by the excursion to the simple recovery model.
You might also take the opportunity to shrink the log file to "0" and regrow it In 8GB increments to limit the VLFs that get created. It would also be a good thing to review the growth settings to make sure the log file stays in good shape for VLFs.
The big question here is, do you know what caused the bloat to begin with? If you don't, there's a pretty good chance that it'll happen again.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 8, 2014 at 1:34 am
mike 57299 (12/7/2014)
What I want to do is set recovery to simple - reset log to 30GB - set recovery to full. Will this work?
Work to do what?
Break your recovery chain, prevent point in time restores after that operation and probably force SQL to grow the log file, yes it will achieve that.
What am I missing?
Explaining what the problem is.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 8, 2014 at 9:31 am
Work to put the log back to a normal size. 400+% is not normal.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply