Solved

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

Posted on 2008-10-23
10
1,349 Views
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.
0
Comment
Question by:slinux
  • 5
  • 4
10 Comments
 
LVL 24

Expert Comment

by:ryansoto
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....
0
 
LVL 5

Expert Comment

by:gratex_ssd
ID: 22790110
Why didn't you try to use

eseutil /?

There is everything explained :


DEFRAGMENTATION/COMPACTION:
    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.
0
 

Author Comment

by:slinux
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.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:slinux
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
0
 
LVL 24

Expert Comment

by:ryansoto
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.
0
 

Author Comment

by:slinux
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.
0
 
LVL 24

Expert Comment

by:ryansoto
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.
0
 

Author Comment

by:slinux
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.
0
 
LVL 24

Expert Comment

by:ryansoto
ID: 22790660
Here is a read
http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/Q_22931112.html?sfQueryTermInfo=1+defrag+exchang+mailbox

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.
0
 

Accepted Solution

by:
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.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

This article explains how to install and use the NTBackup utility that comes with Windows Server.
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
In this video we show how to create a Contact 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 Recipients >> Contact ta…
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …

827 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