Exchange Defrag STM file online offline

Posted on 2008-10-14
Last Modified: 2012-08-14
I have a big stm file, how do I schrink this file. I don't think the offline defrag schrink the file enough. Is there a way where you can see what's in the file?
Another question. Is it possbile to schrink the .edb and .stm  files online or do you have to make an offline defrag?
Question by:mortenhem
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Assisted Solution

abdulzis earned 100 total points
ID: 22709202
There is no way to individually shrink an STM since it acts in coordination with EDB file.

To shrink the EDB/STM files Physically, you have to take the database offline.

Expert Comment

ID: 22709207
You can use eseutil for defrag the stm and edb files.
For schrink the files you must use the offline defrag.


Accepted Solution

apcsolutionsuk earned 200 total points
ID: 22709364
If the online defrag isn't clearing that space then there is nothing that you can do. The offline defrag can only reduce the file by the amount of free space within the database.

How long is your deleted item retention set to? That can often explain a lot of the "used" space.

Otherwise consider an upgrade to SBS 2003 to get Exchange 2003. With the next service pack (due later this year) the maximum capacity of the database will increase from 16gb to 75gb.

Author Comment

ID: 22709425
Thanks for the answers

Assisted Solution

TalonNYC earned 200 total points
ID: 22712727
Tooting my own horn here, but I have a blog entry on why you may/may not need to do offline maintenance.  The STM files are locked to the EDB's, so the same rules apply there:


Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
This article will help to fix the below errors for MS Exchange Server 2013 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
In this video we show how to create an email address policy 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 Mail Flow…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

705 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