Transaction Logs Out of Control
We just finished a large migration from both 2003 and 2007 to 2010. This is all a combination of bad timing, but here is what happened. One of our databases had so many large users moved into it all at once, while at the same time my backup solution ran out of space, and I didn't find out about either of these problems until about 2 weeks later. So now I have a 175GB Database, with 350,000 log files, yes, 350,000. Because there are so many logs my backup solution can not successfully back up this database to force the logs down. I am running out of Exchange server space and I am running out of time. Here is my idea, please let me know if this will work. Can I enable Circular logging for thie DB so that the logs will go down, and then run a full backup of the DB?? I have never used Circular logging so I am unfamilar with it. Will it even reduce the number of logs I have?? Thank you in advance for the help,
September 12th, 2011 3:27pm

Yes, it will truncate the logs. It will require you to dismount and remount the store after making the change. You can also manually remove the logs following the methods descrived here: http://support.microsoft.com/kb/240145
Free Windows Admin Tool Kit Click here and download it now
September 12th, 2011 3:31pm

Which is the best option, enable Circular or manually dismount and move the logs if I am in a clean shutdown state?? This is a huge DB with tons of logs but it is only going to take down about 30 users. If this DB crashes the server, it will effect much more.
September 12th, 2011 3:37pm

Well, I have never had to deal with that amount of logs, but if it were me, I would enable circular logging, then after it clears the logs ( and it may take awhile), I would disable circular logging and get that backup.
Free Windows Admin Tool Kit Click here and download it now
September 12th, 2011 3:49pm

Okay, sounds good. I will try that. Just so I am clear what is happening, I am going to enable circular logging, it will then force me to dismount and mount that DB ONLY, and then while online it will clean up the logs. Once the logs are clear I can get a successful backup, then disable circular logging which will prompt another dismount/mount, correct?? Thank you.
September 12th, 2011 3:52pm

Correct. After you enable circualr logging, a box will tell you that it wont take effect till you dismount and remount the store. Do that and then once re-mounted, wait a bit for it to do its thing. With that amount of logs, I have no idea how long that will take, but it should start clearing logs after 5 minutes or so. Once removed, get your backup then if you want, then disable circular logging, remount and be done.
Free Windows Admin Tool Kit Click here and download it now
September 12th, 2011 3:59pm

On Mon, 12 Sep 2011 19:52:57 +0000, AndyD_ wrote: > > >Correct. After you enable circualr logging, a box will tell you that it wont take effect till you dismount and remount the store. > >Do that and then once re-mounted, wait a bit for it to do its thing. With that amount of logs, I have no idea how long that will take, but it should start clearing logs after 5 minutes or so. I dunno. I think I'd go with starting a new log file generation. Dismount the database, make sure it's in a clean state, rename the log directory, create a new directory with the same name as the old one, remove the .chk file, and remount the database. Make a complete/normal backup immediately. Once the backup's done delete the old log directory you renames. >Once removed, get your backup then if you want, then disable circular logging, remount and be done. Ummm, no. Once the log files are removed disable circular logging, remount the DB, and THEN make a complete/normal backup of the database. Until the 1st complete/normal backup is done without circular logging you won't have a backup that can be used to restore the database without losses. --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
September 12th, 2011 5:48pm

Ummm, no. Once the log files are removed disable circular logging, remount the DB, and THEN make a complete/normal backup of the database. Until the 1st complete/normal backup is done without circular logging you won't have a backup that can be used to restore the database without losses. --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP Fair enough. I did state to get the backup after disabling circular logging in a previous post. I guess I was just trying to be friendly.
Free Windows Admin Tool Kit Click here and download it now
September 12th, 2011 6:07pm

I dunno. I think I'd go with starting a new log file generation. Dismount the database, make sure it's in a clean state, rename the log directory, create a new directory with the same name as the old one, remove the .chk file, and remount the database. Make a complete/normal backup immediately. Once the backup's done delete the old log directory you renames. Perhaps. I think that method makes some people nervous if they havent done it before.
September 12th, 2011 6:09pm

Hi CB333, Above gave some good methods for resolving your issue. If you still have some issue, please feel free let us know. Regards! Gavin TechNet Subscriber Support in forum If you have any feedback on our support, please contact tngfb@microsoft.com Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
September 13th, 2011 5:52am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics