Brandon blogs, just for you.

Exchange 2003: Deleting Mailboxes doesn’t free up disk space… why?

with 5 comments

So, your Exchange 2003 server is running out of disk space, and you notice that no matter how many mailboxes you delete and purge, no matter if it’s backed up or not, no matter how short you set your deleted items retention period, you aren’t getting any disk space back… why?

To actually free up disk space, you will need to run an Exchange Database Utility called eseutil to defragment the Exchange datastore. It is located in the Exchange \bin folder, usually C:\Program Files\Exchsrvr\bin.

Also, look in your MDBDATA folder for your .edb and .stm files – you’re going to need their names. Most likely if you haven’t changed anything since installing Exchange, they are named priv1.edb and priv1.stm.

Now, before you go off to command line land, hang on a second – most likely if you’re doing this for the purpose of freeing up disk space, you don’t have enough disk space left to defragment the drive. You’ll need something, whether it’s another drive with available space or a USB stick.

Step 1: Stop the Exchange Information Store service.

Step 2: Run defragment command, and prepare to wait for a while. This is not something you do on the way out to lunch in the middle of a working day. For a 15GB database, this can take 1-2 hours.

Here’s the command:

eseutil /d “C:\Program Files\Exchsrvr\MDBDATA\priv1.edb” /f “E:\TempStreamFile.stm” /t “E:\TempDBFile.edb

Replace the red path to priv1.edb with your actual path to your Exchange database.

The green .stm file is the temporary Exchange Streaming File to use during defragmentation, and the blue .edb file is the temporary database to use during defragmentation. Change the paths to point to your temporary disk with enough space to hold at least the size of your original EDB.

Happy defragmenting…

About these ads

Written by Brandon

January 4, 2010 at 6:56 pm

5 Responses

Subscribe to comments with RSS.

  1. Thanks Brandon, top of Google & exactly what I was looking for…


    April 18, 2012 at 6:57 am

  2. excellent man , after googlin 4 hours i reached that page which i was looking for,thanks man.

    Eh My Way

    May 16, 2012 at 5:06 am

  3. You are my god man!!! Thank!!!


    May 20, 2012 at 8:38 pm

  4. Can we have this article on the top of Google searches at all times compare to xxx-experts site. Lol
    Very good , thank you Brandon

    Smart Analyst

    November 30, 2012 at 2:36 pm

  5. How can i do offline defrag if i have priv1.stm in one disk and priv1.edb in a diferent disk ?? Help me please..

    Best Regards


    October 3, 2013 at 4:58 am

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

%d bloggers like this: