Manually Purge Exchange Log Files – Exchange 2010

This KB is great for purging log files on Exchange 2010 especially if you don’t have time to run a backup and can’t afford any downtime. Also works great if you have a DAG setup.

Note: If you have separated your log files and database file in different drives, or you want to include additional databases in the “backup” you must include the additional drives in the process, so in the example below, you will “Add volume e:” after “Add volume drive d:” and so on…
1.Open Command prompt
2.Launch Diskshadow 1.Add volume d:
2.(optional, add one line for each additional drive to include) Add volume X:
3.Begin Backup
4.Create
5.End Backup

3.At this step you should notice the following events in the application log indicating that the backup was indeed successful and logs will now be deleted.

Here’s some screenshots from the process:

Diskshadow commands for the example

The Diskshadow example screenshot.

ESE Event ID 2005

ESE – Event ID 2005 – Starting a Full Shadow Copy Backup

MSExchangeIS Event ID 9811

MSexchangeIS – Exchange VSS Writer preparation.

ESE Event ID 224 – Logs being Purged

ESE Event ID 224 – Logs are now purged

MSExchangeIS Event ID 9780 – Backup complete

MSExchangeIS Event ID 9780 – Backup is now complete.

side note: although this example was tested against Exchange 2010, it should work just as fine with Exchange 2013 & 2007.

Mark as helpful. 0

Posted in: Exchange, Server