Home > Microsoft Exchange Tips > Exchange Server Administration Tips > How to manually (and safely) purge Exchange Server transaction logs
Exchange Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

EXCHANGE SERVER ADMINISTRATION TIPS

How to manually (and safely) purge Exchange Server transaction logs


Serdar Yegulalp
05.08.2006
Rating: -4.67- (out of 5)


Exchange Server tips, tutorials and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Please let others know how useful this tip is via the rating scale at the end of it. Do you have a useful Exchange or Outlook tip, timesaver or workaround to share? Submit it to SearchExchange.com. If we publish it, we'll send you a nifty thank-you gift.


Exchange Server transaction logs are a key part of the way Exchange backups work. If a transaction log is missing from a backup set, or not available in an online backup, the Exchange restore operation will not be able to complete.

Since Exchange transaction logs can eat up a lot of disk space though, administrators often wonder if it's possible to selectively delete transaction logs that are no longer needed for Exchange restore operations.

One option that can reduce the amount of space used by Exchange transaction logs is circular logging, where the oldest logs are eventually overwritten as they're phased out. Unfortunately, circular logging makes it impossible to run incremental backups and differential backups on Exchange Server stores using an Exchange-aware backup product, so it's impractical for many shops.

Another possibility is to judiciously remove unneeded Exchange transaction logs. Although Microsoft doesn't recommend it, there is a way to find out manually which transaction logs are no longer needed by determining the last checkpoint created by an Exchange Server backup.

To do this from a command line, go to the \Program Files\Exchsvr\bin directory on the server and run the following command:

eseutil /mk "C:\Program Files\Exchsrvr\MDBDATA\E00.chk"

(The quotes are important, as they delimit the full pathname for the file.)

In the results returned you'll see these lines:

LastFullBackupCheckpoint: (0x0,0,0)
Checkpoint: (0x2,EC2,1C7)

The first number in the "Checkpoint" entry -- 0x2 -- is a hexadecimal number that refers to the last checkpoint log. Therefore, any logs numbered E000001.log or earlier could be removed. If the checkpoint was 0x14C8, then logs numbered E0014C7.log or earlier could be removed.

If you're leery about erasing Exchange transaction logs completely, you can always compress them and move them offline instead.

About the author: Serdar Yegulalp is editor of the Windows Power Users Newsletter.

Do you have comments on this tip? Let us know.

Related information from SearchExchange.com:

  • Tip: Clearning the confusion around Exchange Server circular logging
  • Tip: Structuring Exchange Server for the best log file protection
  • Tip: Backing up, truncating and cleaning up Exchange transaction logs
  • 10 tips in 10 minutes: Fundamentals of Exchange Server disaster recovery
  • Reference Center: Exchange transaction log tips and resources

    Rate this Tip
    To rate tips, you must be a member of SearchExchange.com.
    Register now to start rating these tips. Log in if you are already a member.


    Submit a Tip




    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


    RELATED CONTENT
    Exchange Server Administration Tips
    Top 10 Microsoft Exchange Server tips of 2008
    Database changes that enhance Exchange Server 2007 fault tolerance
    How continuous replication methods affect Exchange 2007 log shipping
    Analyzing Exchange ActiveSync data from .CSV report files
    How to run Exchange Management Shell cmdlets in Exchange Server 2007
    Eliminate .PST file use for secure email retention in Exchange 2007
    Exchange Server 2007 log shipping and continuous replication
    Benefits of backing up Exchange Server with Microsoft's DPM 2007
    Exchange Server 2007 replication and database transaction basics
    Microsoft Exchange Server 2003 database recovery methods

    Microsoft Exchange Server Transaction Log Files
    How continuous replication methods affect Exchange 2007 log shipping
    Exchange Server 2007 log shipping and continuous replication
    Benefits of backing up Exchange Server with Microsoft's DPM 2007
    Can a deleted transaction log be restored in Exchange Server 2003?
    Why are Exchange Server MDBDATA log files important?
    Automating Exchange Server 2003 log file cleanup
    Tame your Exchange Server transaction logs
    Exchange Server Standard Maintenance Checklist
    How to move Exchange Server transaction logs and databases to a new hard drive
    Ease the pain of Exchange recovery with SLAs and RSGs

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary

    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



  • Email Server Solutions: Exchange 2007, Exchange 2003, Exchange 2000, SharePoint
    HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts