Free space required for running Exchange 2003 offline defrag

Posted on 2012-09-06
Last Modified: 2012-09-07
Need to run an offline defrag to get under the 75 GB limit. Have checked event 1221 for free space.

.EDB and .STM files together is 78 GB

On the drive where the .EDB and .STM files are located are 18GB free space

I would like to defrag to another drive with 400 GB free space using the /P switch on ESEUTIL.

My question is: Will the offline defrag require more space on the source drive than the 18 GB? or is the source drive not affected at all since the /P will create a new copy on the other drive?
Question by:itpartner_danmark
    LVL 33

    Expert Comment

    offline defrag will not run if the free space is less than 1.5 time of the actual DB space thus you will need around 100 GB free space.
    I suggest moving the DB to a new server and defrag it.

    Author Comment

    Will it fail and eventually corrupt the database or will it just not run and give me an error?

    And again, is the exstra space needed on the drive where the database files reside today or on the drive where I will put the defragged database using the /P switch?
    LVL 33

    Assisted Solution

    it will fail but nothing will happen, for the /P switch I think yes it will be at the destination. but 90% sure of that.
    LVL 76

    Expert Comment

    by:Alan Hardisty
    The /p switch is not the seitch you need, you need to use the /t seitch to point the temp files to a different drive.

    110% of the database size (.edb + .stm files) in free disk space is required.

    Your command will be:

    eseutil /d "x:\program files\exchsrvr\mdbdata\priv1.edb" /tx:\pathtodrivewithspace\tempdfrg.edb
    LVL 8

    Assisted Solution

    you can do it the way alan suggested or go to command prompt

    go to the drive where you have enough free disk space for e.g   E:.

    cd E: and then change the path to exchange bin folder as follows assuming your exchange folder is on C:\Exchange.

    e:\Set path=C:\Exchange\Bin

    once the above command is successfully executed then type eseutil without any switch and verify it runs successfully and shows eseutil parameters.

    then type eseutil /d <path to your Exchange edb file> by doing this offline defrag temp files will be generated on E: i.e on the drive on which you have enough free disk space.
    LVL 63

    Assisted Solution

    by:Simon Butler (Sembee)
    Or you could just not bother with an offline defrag.
    The 75gb limit isn't hard enforced, and as long as your database size minus white space remains below 75gb, then everything is fine.

    Offline defrag is not risk free and is not something I personally would recommend unless you are very tight on space and will get a significant amount of space back.


    Author Comment

    Right now the DB files is 78 GB and event ID 1221 says 8 GB white space, so maybe we should not run an offline defrag yet.
    LVL 76

    Accepted Solution

    Unless you need the extra 8Gb of space, it isn't worthwhile.

    The downtime would be around 10-12 hours and the benefit isn't that great.  After a defrag the Exchange database will grow instantly as new mail arrives, but as it is, you have 8Gb of space before the database will grow again.

    You can always adjust the mailstore retention time to increase the whitespace further:

    Author Closing Comment

    Thanks to everyone for your inputs. They all helped me to take the right decision. Change the retention time and get more white space and wait to see if offline defrag is really nescesarry.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Want to promote your upcoming event?

    Are you going to an event? Are you going to be exhibiting at a tradeshow? Talking at a conference? Using a promotional banner in your email signature ensures that your organization’s most important contacts stay in the know and can potentially spread the word about the event.

    You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
    Get an idea of what you should include in an email disclaimer with these Top 5 email disclaimer tips.
    In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
    In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now