how to perform an offline defrag for exchange 2003 to an alternate location for temp

Posted on 2008-10-23
Medium Priority
Last Modified: 2010-08-05
need to know how to run an offlien defrag to allternate logical drive on the same physical disk. Here si what I have so far.

"c:\program files\exchsrvr\bin\eseutil.exe" /d "D:\Exchsrvr\MDBDATA\priv1.edb"

This hopefully will run the offline defrag from the F Drive as this is where the above command will be run from command prompt.  If this is incorrect please advise.  The free space on this F drive is double what is on the D drive where the exchange store is located.
Question by:slinux
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
  • 5
  • 4
LVL 24

Expert Comment

ID: 22790059
What I would do is create a new storage group and mailstore and move the mailboxes to it.
This does the same thing as a defrag with no downtime....

Expert Comment

ID: 22790110
Why didn't you try to use

eseutil /?

There is everything explained :

    DESCRIPTION:  Performs off-line compaction of a database.
         SYNTAX:  ESEUTIL.EXE /d <database name> [options]
     PARAMETERS:  <database name> - filename of database to compact
        OPTIONS:  zero or more of the following switches, separated by a space:
                  /s<file>   - set streaming file name (default: NONE)
                  /t<db>     - set temp. database name (default: TEMPDFRG*.EDB)
                  /f<file>   - set temp. streaming file name
                               (default: TEMPDFRG*.STM)
                  /i         - do not defragment streaming file
                  /p         - preserve temporary database (ie. don't instate)
                  /b<db>     - make backup copy under the specified name
                  /8         - set 8k database page size (default: auto-detect)
                  /o         - suppress logo
          NOTES:  1) If instating is disabled (ie. /p), the original database
                     is preserved uncompacted, and the temporary database will
                     contain the defragmented version of the database.

Author Comment

ID: 22790227
Will my command work and if it will not then provide the command to perform the offline defrag to the f drive location via the eseutil /?  commands listed there. That is what I asked.
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: 22790254
why would i want to create a new storage group and mail store? are you saying that the mailboxes can be accessed when you move them to the new storage group? I have off hours time setup for the server tonight so why not do an offline defrag
LVL 24

Expert Comment

ID: 22790398
Offline defrags can take huge amounts of time wheres a move mailbox doesnt take as long plus your mail systems isnt down except for the users being moved.

Author Comment

ID: 22790473
ryan soto

i have all night to do a 47 gb store so plan was to offline defrag and then mount store again morning if completed. should take 6 hours apprx.

going with your plan,  if i move the mailboxes to the new store then they are located on the f drive and will this reduce the mailbox store which is the issue in the first place?  the plan is to keep the store on d and reduce the size of it. how long would moving 40 mailboxes take?

 so again i ask will the command above work? it should locate esesutil and run the tempdfrg.edb to the f drive and take the smaller dbase back to the d drive when finished.
LVL 24

Expert Comment

ID: 22790511
When you create your new store create it on the new drive of your choice.  Then when you move the mailboxes it will only move the mailboxes ie not the whitespace.  47GB will probably take 6-8 hours.  The good thing about the move mailbox method is it will only do 4 at a time so no matter what only 4 users will be down at a time vs everyone.

Author Comment

ID: 22790579
so how much space would be gained?
10-15 gb? the users are fine with no access to mail tonight so 4 users at a time doenst really apply

what issues could arise moving mail boxes to a new store.  will this affect backup exec in anyway backing up the new mail store.  what happens to the existing store? does one just delete it. the public folders woudl be moved as well? or now each store is in diff location?  to me the offline defrag seems much simpler and once again i ask will my command work if run from the f drive.
LVL 24

Expert Comment

ID: 22790660
Here is a read

Sembeee is the #1 exchange person on the site...
Yes you would create a whole new store you would leave public folders alone and the new store is fine to stay.  You can have multiple store in multiple physical locations if you choose....
I have 1 information store on local disks and one IS on my SAN.

I don tknow about your command for eeutsil I dont use it because its not needed IMO.

Accepted Solution

slinux earned 0 total points
ID: 22790968
sorry. I dont because it is not simple adn what happens if one of the mailboxes does not migrate? or several. and how do you clean up the old store? i have a good backup of entire mail store in one hour and then proceed to offline defrag which is unmount and run command then mount when finished. in that article it says a reason to run offline defrag is when you are trying to gain free space in istore which i am.  the free space in event id 1221 is 4 mg to 10000 mgs so it seems fairly uncertain.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
Check out this step-by-step guide for using the newly updated Experts Exchange mobile app—released on May 30.
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

771 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