Mailbox store not getting smaller after deleting mailboxes

I have recently moved almost all of my users from an Exchange 2003 server to our new Exchange 2007 server.  I back up the Exchange store every day with Windows Backup.  The size of the backup file from the Exchange 2003 server has not gotten any smaller, even though the server went from around 50 active mailboxes to just 6.

When I go to the First Storage Group, I see only the 6 or so mailboxes left on the Exchange 2003 server.

Is there a command to compact the database?  Am I doing something wrong when I move the mailboxes?

Christopher BeaugrandCIOAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You need to use the ESEUTIL to compact/defrag the DB to make it smaller.

Exchange 2007

Applies to: Exchange Server 2007, Exchange Server 2007 SP1 Topic Last Modified: 2006-09-14

The Exchange Server Database Utilities (Eseutil.exe) is a tool that you can use to verify, modify, and repair an Exchange database file. When a database is corrupt or damaged, you can restore data from backup or repair it using Eseutil. Eseutil is a command-line tool that works with the Extensible Storage Engine (ESE), database files, and log files associated with a Microsoft Exchange database. Eseutil is located in the Exchange default install folder, which is <SystemDrive>:\Program Files\Microsoft\Exchange Server\Bin.

Eseutil can be used against any ESE database in Exchange Server 2007. In the past, Eseutil could only be used with mailbox and public folder ESE databases, but with Exchange 2007, Eseutil can be used with ESE databases on the Exchange 2007 Hub Transport and Edge Transport server roles as well.

 Defragments the database offline but leaves the new, defragmented database in the temporary location with or without overwriting the original database. This mode reduces the gross size on the disk of the database (.edb) by discarding most empty pages and by rebuilding indexes.
Christopher BeaugrandCIOAuthor Commented:
OK, thanks for the info.  Will the database reduce in size by itself over time if I don't use ESEUTIL?  IT's not urgent to get it to shrink.
You could have an issue with your backups..    How do you run them?   They need to be exchange aware backups, otherwise if the box is checked that says "Do not permanently delete mailboxes until the store is backed up", they'll hang around forever.

Failing that, then yes, you need to do an eseutil /d to compact the database.  Pretty simply process.  Depending on database size though (and disk/processor speed), it can take a while.  It once took me almost 30 hours to compact a 16GB database (back in the E5.5 days)..

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

No.. it will do online defrags of the DB's but you wont reclaim the space.
Oh, one more thing - the databases have to be offline to run eseutil /d.   So schedule accordingly..
Rajith EnchiparambilOffice 365 & Exchange ArchitectCommented:
Only if you run an offline defragmentation, the space gets freed.

Otherwise, Exchange uses the freed space called White Space when your mailbox database grows.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Christopher BeaugrandCIOAuthor Commented:
Excellent - thanks for all the info.  It is an Exchange-aware backup, but I am hesitant to do the offline defrag.  I'll wait until everyone moves off the server.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.