Saturday, January 29, 2005

Why does the EDB and STM file never get smaller?

I'm going to start out this database discussion with a question a lot of newer Exchange administrators ask. Users have deleted a lot of e-mail, but the EDB and STM files never get any smaller.

Answer: The EDB and STM files do NOT get any smaller. It is a "feature". :-)

The file will grow, but it never gets smaller. As messages are deleted, the space is reorganized in to "white space" and then the space is reused.

However, if users are not emptying their Deleted Items folder, the space is not reused. The user must empty their deleted items. Once items are emptied from their deleted items, the space goes in to the users deleted item recovery cache. With Exchange 2003, the data remains in that cache (by default) for 7 days. After that, the space is reorganized and re-used.

If you want the file size to shrink, use the ESEUTIL.EXE utility, dismount the store, and perform an offline degrag (the /d option).

Check your event viewer in the application log for event id 1221. If it reports less than 20% available white space (based on the size of the EDB file, then it is probably not worth your time to dismount stores and defragment the database.

5 Comments:

At 7:59 AM, Blogger Teo Heras said...

Jim,

Glad to have you back! Having finished your 200324seven book several months ago, I've been going through Exchange Wisdom withdrawal! :->

The Exchange Teams blog as been a nice supplement...

Teo

 
At 3:52 PM, Blogger Jim McBee said...

The Exchange teams blog really rocks! Lots of great, indepth information there.

Thanks for the nice comments about the book! *blushing*

Jim (thawing out from being in Korea)

 
At 12:27 PM, Blogger Admin said...

Great blog, keep up the good work. Glad to see sites like this.

Here is another good site I said I would pass along.
Domain Names For Sale
Thanks

 
At 7:37 AM, Blogger DELL in NEDERLAND, kortingscoupon, informatie ezv) said...

Lots of great, indepth information there.

Thanks Della

 
At 4:44 AM, Blogger tray said...

I have a different question:
Running Exchange Standard 2003 on WinServer 2003.
I have 300 accounts that are empty. Only use these accounts for scheulding. There is NO mail at all.
The EDB file grows by 1 to 2GB per day with no new messages or user activity. Haven't been able to deploy this because Exchange is so unstable.
Already replaced the DB with a new one this week. That solved the problem for 1 day. Now its growing again. Got about 1 week of uptime before I have to take the system offline and make a new DB again.
I'm reaching out for help everywhere on this until I find a reliable enterprise scheduling system. Sorry for the rant but this is the worst product I have ever used.
Thanks in advance, Tray

 

Post a Comment

<< Home