offline defrag exchange 2007 sp1

IKtech used Ask the Experts™
I am running all exchange 2007 roles on one server (OS is server 2003R2 64bit standard sp2).  I have been researching doing an offline defrag to decrease the physical size of the .edb file and i am wondering if this offline defrag will affect any of the other roles on the server or if there is any extra steps i need to be aware of.  Right now my Database is 44.6 GB and event ID 1221 in the event logs states i have 12gb of free space.  

I have also read about moving the mailboxes to a temp location and then moving them back again.  I am thinking about trying this method instead because it looks safer than an offline defrag.  Do any of you have experience with the offline defrag method and has it been problematic for you?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Shreedhar EtteTechnical Manager
Top Expert 2010

This article i give to my clients to explain offline defrag:
I did offline defrag in past on Exchange 2003 servers but i did it coz i had to and i don't prefer it as it can corrupt the database during the process. Moving the mailboxes is the good option but you will loose deleted item recovery.
Personally i won't even think about recovering that 12 GB disk sapce unless the disk is running low on space and if the disk space is low with 44 GB db file on it i would consider adding more space or move server to new hardware.

Perform following steps to defrag exchange mailbox database:

--We need to dismount the Exchange Store before start this activity (User will not able to access mails during this Time).

--Take the FULL backup of Exchange Database.

--We need 110% of free space in the drive to do offline defragmentation. [Where we have the Bin folder]

--Check the free space on the server.

--We need around 137.2 GB of free space to do offline defrag. I.e. 44.4 GB to take exchange database backup and 92.8 GB to perform offline defragment on Mailbox database.

--We can take the Exchange database backup on USB drive also.

--4GB of Database Require 1 Hour to complete the offline defrag.

--This will require around 11 hours down time to complete defrag after successful backup of Mailbox Database.

--Use below mentioned command to defrag the database.

eseutil /d "Database Path"

/d - We use /d to defrag the database.
Database Path - Location of the exchange database.

e.g. [ eseutil /d "c:\program files\exchsrvr\mdbdata\priv1.edb" ]

--It is recommended that you immediately perform a full backup of this database. If you restore a backup made before the defragmentation, the database will be rolled back to the state it was in at the time of that backup.

--Please ref the below mentioned link for Exchange Offline defragment.

If you need any further assistance on this issue then please do let us know.

Hope this information will help you to perform exchange offline defragment.

Have a nice day.....


i Have got 10 GB of whitespace so i will monitor it and also look into setting up retension policies as well as size quotas to keep from growing to much more.  Thanks for the advice gentlemen.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial