[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 762
  • Last Modified:

Defragmeting Exchange databases on an attached drive

I am using Exchange Server 2003 running on a Windows Server 2003 SP2.
I need to defragment my exhange databases offline.
I do not have enough local storage so I am attaching a USB hard drive to my server.
I have called the drive F:
Am I correct in saying that the command I use is
C:\Program Files\Exchsrvr\bin>eseutil /d "c:\program files\exchsrvr\mdbdata\priv1.edb" /tF:\tempdfrg.edb

do I need to add in the switch t and the temporary edb file as per above?
0
fsaiexpert
Asked:
fsaiexpert
1 Solution
 
Imtiaz HashamCommented:
If you don't hadd the /t, it will create it's own temp file

Why do you want to defrag the store anyway? Is it because it's too large or is it because you are moving the database
0
 
patelbg2001Commented:
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
rakeshmiglaniCommented:
0
 
patelbg2001Commented:
this one is good when you plan to use an external hard drive to defragment and Exchange db
http://searchexchange.techtarget.com/tip/0,289483,sid43_gci1089442,00.html
0
 
fsaiexpertFSAI ExpertAuthor Commented:
I need the database compacted - it is getting too large and we have not done offline defrag in over 1 year.  Also we have added alot of new users to our exchange database
I have seen all these articles but none seem to give an example or indicate the command or switch when you attach a new drive?
0
 
patelbg2001Commented:
Well this article does -  http://support.microsoft.com/kb/328804
I've taken some extracts from it,.

eseutil /d /p "c:\program files\exchsrvr\mdbdata\mailbox store.edb" /t"d:\tempdfg.edb"
Option Description
/b Database Make a backup copy under the specified name  
/tDatabase Set the temporary database name (the default is Tempdfrg.edb)
/sFile Set the streaming file name (the default is NONE)
/fFile Set the temporary streaming file name (the default is Tempdfrg.stm)  
/p reserve the temporary database (in other words, do not instate)  
P/o Suppress logo
/i Do not defragment streaming file


D:\>eseutil /d /ispriv
You can also use the /t switch to set the name for the temp database and for a different location. For example, to create a Sample.edb on the root of drive D when you are running the eseutil command from drive C, run the following command:
C:\>eseutil /d /ispriv /td:\Sample.edb
Note If instating is disabled, the original database is preserved uncompacted, and the temporary database contains the defragmented version of the database. For example, instating is disabled when you use the /p option.
0
 
SembeeCommented:
The fact that you haven't done an offline defrag for a year doesn't mean a thing.
I haven't done an offline defrag on some servers since they were built two or three years ago.
Offline defrag should not be seen as something that you should do, or need to do on a regular basis.

Look at event ID 1221 in the event viewer overnight. That will show you how much space you are likely to get back. Unless it is a significant amount then an offline defrag is not worth it.

Finally an external USB drive is not going to be fast enough to do an offline defrag.
You haven't said how large the database is, but the process goes along at between 1 and 4gb per hour. Are you ready for that kind of downtime?

Simon.
0
 
fsaiexpertFSAI ExpertAuthor Commented:
Sembee - I accept your point.
however I have recently created new mailbox store and moved mailboxes around for reduncnadancy and speed of recovery issues.  I noticed a slow degredation in the spped of Outlook so figured the defrag was the best way to go.
After the defrag not only did I gain another 4GB in space back but the client performace in Outlook has increased dramatically.  As the stores are on a SAN the defrag took about 1 hour per 8GB.  
Finally the switch i used was:
1: Dismount Mailbox Store in Exchange System Manager

2: cd program files\exchsrvr\bin

3: eseutil /d "d:\Notebook Mailbox Store.edb" /t"d:\tempdfrg.edb"


--where d is the new drive attached
0

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now