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

Posted on 2008-10-23
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.
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.


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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Utilizing an array to gracefully append to a list of EmailAddresses
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
In this video we show how to create a mailbox database 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 >> Data…
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…

730 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