Exchange database still too big after defrag

Posted on 2009-05-04
Last Modified: 2012-05-06
We have moved a bunch of users over to Exchange 2007 and then did an offline defrag, but the database didn't shrink enough, it only shrank about 5 Gb. Added the space up in the exchange system manager, it is about half the size of the database.
We have exchange standard and the size of the edb and the stm database combine to be over 75 Gb so keep getting the error about it being to big.  When I added the mailbox sizes in ESM it was about 40 Gb.
Is there any other way to shrink the database?
Question by:newgentechnologies
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

Expert Comment

ID: 24297037
Did you have any issue with Database Backups earlier? It's only Offline Defrag which can shrink the database size. You may run eseutil /g to check teh database ingegrity.

Author Comment

ID: 24297189
We have been unable to get a full backup because the database is too big and run out of disk space.  The eseutil /g resulted in:
Microsoft(R) Exchange Server Database Utilities
Version 6.5
Copyright (C) Microsoft Corporation. All Rights Reserved.

Initiating INTEGRITY mode...
        Database: d:\exchange\mail\priv1.stm
  Temp. Database: TEMPINTEG1280.EDB

Checking database integrity.

Operation terminated with error -1206 (JET_errDatabaseCorrupted, Non database fi
le or corrupted db) after 3.46 seconds.
LVL 58

Expert Comment

ID: 24297199

Comparing the mailboxes sizes in ESM with the database sizes on disk is not necessarily a true representation of the actual database size (and difference), because the sources for the data within Exchange are not always reliable themselves.

Simply moving the users off the Exchange 2003 server does not necessarily mean you will instantly recover the space by doing an offline defrag. I would be looking to reduce the 'Deleted Mailbox Retention' down to 0, then allowing Online Maintenance to run to free up the database pages.

Having allowed online maintenance to run overnight, check the event logs for log 1221, which will report the amount of free space in the databases. If that is high (several GBs), it would indicate you could now do an offline defrag to bring the database size down.

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.


Author Comment

ID: 24297323
Deleted mailbox retention is set to 1 day, and we move the users last week and did the offline defrag on Thursday.  
Event log 1221 ran last night and only showed 195 Mb free.
LVL 58

Expert Comment

ID: 24297363

BTW - the integrity command you ran and posted above needed to be against the EDB file, not the STM file.

How did you move the mailboxes to Exchange 2007?


Author Comment

ID: 24297535
My bad on the integrity check, will have to run it tonight.  Cannot have the store offline that long.

For the move, went on the exchange 2007 console, clicked on the user and then moved it that way.

Author Comment

ID: 24300218
Would running Isinteg help?
LVL 65

Assisted Solution

Mestha earned 125 total points
ID: 24300459
Why didn't just move all of the users to Exchange 2007, drop the original store and then move them back. Zero downtime, zero risk.


Accepted Solution

newgentechnologies earned 0 total points
ID: 24300489
Have been thinking about that, just wondering why the offline defrag didn't work.  Might have to chalk it up to a Microsoft thing.
LVL 58

Expert Comment

ID: 24318280
Follow Simon's advice - move to Exchange 2007 and move back. That is the easy way around it and I forget about it every time.


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Find out what you should include to make the best professional email signature for your organization.
To show how to generate a certificate request 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 Servers >> Certificates…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

739 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