How to manage database log files gone wild

By Scott Lowe  Add a new comment

Last week, we upgraded our ERP at Westminster College, the college at which I am the CIO.  At the same time, we moved from SQL Server 2000 to SQL Server 2005.  For the past week, our DBA has been taking manual backups of the database while our network person, who handles long-term backup, was busy with other priorities.  Unfortunately, we did not realize that the log files were growing out of control.  Our 16GB ERP database had just over 100GB of associated log files, successfully filling up the disk volume on which they were stored.

Of course, all of this happened on the same day that I was leaving for a conference and the DBA and his backup both called in sick.  So, from afar, I was on the hook to fix the problem.  I'm not an expert when it comes to SQL Server, but I do know my way around and can figure things out.  Furthermore, listserv queries to others are always handy in order to make sure that what we're seeing is truly unusual and not just a function of the new ERP or database software.

Here's what we did:

  1. I added a scratch volume from our SAN to the server so that we had some place to which we could copy files or take backups as necessary.

  2. I called the person that handles backups and asked him to make the new database server a priority to get into a permanent, automated backup schedule -- as opposed to the existing manual method -- and to take an immediate backup of the database.

  3. Once that was complete, I did a manual backup of the log files using SQL Server Management Studio.

  4. Next, I shrunk the log files  --  again, using SQL Server Management Studio.

  5. Once shrunk, I took another manual backup of the database, just for good measure.

By the end of the process, we went from having 90MB free on a 100GB volume to having 98GB free.  And, with the database server now a permanent part of the backup cycle, we shouldn't run into this problem again.

Lessons learned

I learned a couple of things from this fiasco:

  • We should have simply instituted the permanent backup solution instead of getting by with manual backups.  Next time, we'll prioritize the work differently.  Of course, all of the work is important and it's only through hindsight that we see some things that should have been handled differently.

  • No upgrade is without problems.  Of course, this is something well-known by anyone that's spent any time at all in IT, but it gets reinforced every time an upgrade happens.  No matter how much planning goes into the project, or what steps you take to get around short-term problems (in this case, taking manual backups), something will always come up.

    Add a comment

    Post a comment using one of these accounts
    Or join now
    At least 6 characters

    Note: Comment will appear soon after you have activated your account.
    Obscene/spam comments will be removed and accounts suspended.
    The information you submit is subject to our Privacy Policy and Terms of Service.

    ITworld LIVE

    SoftwareWhite Papers & Webcasts

    White Paper

    Best Practices Guide: Microsoft Exchange 2010 on VMware

    This guide provides best practice guidelines for deploying Exchange Server 2010 on vSphere.

    White Paper

    Free Trial: vRanger, the Powerful VMware Recovery Solution

    When disaster strikes, don't waste hours and dollars recovering critical data. vRanger delivers blazing-fast speed and granular recovery for your VMware applications and data. Get your free trial today.

    White Paper

    Executive Guide to Business and Software Requirements

    This paper is designed as an executive briefing on the issues surrounding business and software requirements. It features a wealth of statistics and tactics to help you get requirements right, and includes a tear-out single page summary.

    White Paper

    How to Launch a Successful IT Automation Initiative

    Corporations across all industries are under increasing pressure to cut costs and work more efficiently. In the race to meet both of these requirements, many organizations turn to technology, often purchasing and installing disparate pieces of software in hopes of achieving efficiencies not afforded by manual systems.

    White Paper

    Why Corporations Need to Automate IT Systems Management

    With corporate budgets being slashed and leaders expecting more out of their employees, companies are forced to do more with less, yet are still expected to provide the highest quality experience to customers. This is pushing them to make better use of their IT assets without breaking the budget. Companies are under more pressure than ever, thanks to data management regulations; increasingly complex security threats; and growing demand from management and end users for 24/7 uptime and high performance. These hurdles require a strategic investment in technologies that boost efficiency, save money and position IT as an integral part of the entire firm's operations. IT systems management is helping corporations fill these gaps.

    See more White Papers | Webcasts

    Ask a question

    Ask a Question