Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to defrag Exchange 2003?

Status
Not open for further replies.

lkrull

Technical User
May 30, 2007
43
0
0
ZA
Hoping someone can assist me with my issue,

Past attempts to do an offline defrag was not working and this time I managed to find out why. It’s failing due to disk space on the C: Drive.
The Defrag creates tempdfrgXXXX.edb and tempdfrgXXXX.stm files in “program files\exchsrvr\bin” folder which uses up all the disk space.

The Exchange Mailbox Store sits on the E: Drive and is over 75GB.
priv1.edb (55GB)
priv1.stm (31GB)
The C: drive only has 23GB free.

The command line I'm using is:
eseutil /d “e:\program files\exchsrvr\mdbdata\priv1.edb”

This process fails because I dont have enough disk space on the C: Drive.
How can I run the defrag and let the tempdfrgXXXX.edb and tempdfrgXXXX.stm files go onto another drive that has enough disk space eg. External HDD?

 
A quick question first: what are you hoping to achieve via an offline defrag?
 
How to defragment with the Eseutil utility (Eseutil.exe)

And as 58sniper states, you can redirect the temp file. It shows you how in this article.

But everyone still wonders y?

_______________________________________
Great knowledge can be obtained by mastering the Google algorithm.
 
Thanks for getting back to me guys.

I have a SBS 2003 with exchange and the Mailstore size is set to 75GB. It is now over the 75GB mark and the mailstore unmounts every 48 hours or so then I have to mount the store again so that our users have access to their mailboxes.

I've archived lots of users mailboxes and hoping defraging the exchange mailstore will free up space and reduce the size to under 75GB again. Or what do use suggest?

From the command I'm using, can someone show me how I should alter my command so that it creates the tempdfrg on another driver other than the C: Drive.

Thanks
 
Defragging isn't going to free up space. You need to wait for the deleted item retention period to pass, as well as the deleted mailbox retention period. At that time, space recovered from your deletions will be available. Take the size of the mail store and subtract the amount mentioned in your event ID 1221 entries to get your true database size.

Stop by the new Tek-Tips group at LinkedIn. Come say hi, look for a job, have some fun.
Pat Richard MVP
 
Another question.
Can I split the mailbox store so that I have one for Small mailbox users and Huge mailbox users.

I would like to avoid this sort of issues where the mailstore would un-mount.
 
Just to chime in. Doing the offline defrag of a database store will make it smaller. I used to run one once a year and it always made the information store a couple of Gig smaller.

I stopped doing them once Microsoft got rid of the 32 Gig limitation.
 
It only makes the FILE smaller. The amount of data stays the same. And it's the amount of data that causes the alerts and limits.

Exchange can reuse the whitespace very efficiently. In fact, it can do so more efficiently than if it had to increase the file size.

What's important is the amount of data. Since we're dealing with SBS 2003, you can only have a single database, IIRC. So you need to get people to clear out some old data. The limits placed on mailboxes should not allow the cumulative mailboxes to exceed the 75GB limit.

Some ideas include pushing out a GPO setting that empties the Deleted Items folder when users close Outlook.

Reduce the mailbox size limits.

Do you have your Tek-Tips.com Swag? I've got mine!.

Stop by the new Tek-Tips group at LinkedIn.
 
Thank you all for your comments.

With your help here and there I managed to defrag the mailstore and dropped the size below 75GB after users cleaned out there mailboxes as well.
 
The Exchange DB won't shrink on it's own. When you delete e-mail it only creates white space in the DB. If you filter your Exchange serves app log for event id 1221 you will see the amount of white your exchange server has.

If you do an offline defrag of your Exchange DB, you will shrnik the DB, and you will free up approximately by how much white space you have.
 
Joe, have a read of 58Sniper's 7 Nov 11 18:52 post, it is an accurate desription of how it works...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top