Solved

Reclaiming database space/checking consistency

Posted on 2004-03-23
8
382 Views
Last Modified: 2012-06-27
Ok, I still haven't done this after rebuilding my Exchange server, and I'd like to do it ASAP.  Here's my situation....
- I have a single Exchange 2000 standard server (Windows 2000 Server, SP3)
- Exchange/OS installed on C:\ drive, pub1.edb on D:\ drive with 14.2GB Free
- Originally, database went oversize and I did the reg hack to be able to mount it and delete all kinds of data (It's now down to about 7GB, but still "shows" as 17.2GB)

My questions are:
1.) Is it safe to run the eseutil utility on the .edb file right there on the D:\ drive if there's only 14.2GB free space and the database "shows" as 17.2GB?
2.) I'm assuming all email services need to be stopped and users will not be able to use the Exchange server for the entire time the utility is running, correct?
3.) Is there an easier/safer way to do this?  

Thanks.
0
Comment
Question by:tenover
  • 3
  • 2
8 Comments
 
LVL 8

Expert Comment

by:xxgenius
ID: 10661443
you need over 100% free space on the drive to run a defrag.  this is so the eseutil can make a temp of the database.  if you feel that the database is 7gb you should be ok. it is strongly advised to make a backup before and after the defrag.  email services will be stopped and there will be down time. i have found that it is the easiest and safest way to do it on that machine. i have in the past copied the databases to another server, copied the bin directory and defragged it.  it worked but i wouldn't do it again, at that time i had no other choice.  if you have a spare HD you can add it to that server and use the temp switch in eseutil.
0
 
LVL 8

Expert Comment

by:Emptyone
ID: 10661463
1) Run eseutil /d /td:\tempbase.edb /p
This lets you run the defrag without doing anything with the files on the C: drive. If everything works out, copy the file from the d: drive to where you have your files today. Rename it to the correct name and then mount. As always it is recommended to have a copy of the files you run defrag on. Just in case. :)
2) You have do dismount the stores, and because of that, users will have no access
3) Not as I now of
0
 

Author Comment

by:tenover
ID: 10661527
Thanks guys.....
I KNOW for a fact the actual size is less than 7GB, so I'll use Veritas to do a Full backup of the Mailbox Store, then when it finishes, I'll dismount the Mailbox Store, stop all Exchange services, and run eseutil /d priv1.edb on the D:\ drive.  Emptyone- What do you mean "...without doing anything with the files on the C:\ drive..."?  I'm assuming that my backup of the Mailbox Store that I will do with Veritas will be sufficient as a "...copy of the files you run defrag on...", no?  I'm just paranoid about doing this...Thanks again.
0
Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

 
LVL 8

Expert Comment

by:Emptyone
ID: 10661771
What I mean is that if the defrag fails, you will not have to do a full restore to be up and running again. Because the files are untouched on the C: drive

The Veritas backup will do, but it will in fact be quicker and easier to copy the files. But do what you feel most secure about, and most comfortable doing
0
 

Author Comment

by:tenover
ID: 10661981
Oh, ok.....so you're saying if I run eseutil with the /td:\tempbase.edb /p switch, that it will make a whole seperate "database" to do the defrag on, then if it's successful, I can copy the temp database that was created to the proper mailbox store location, delete the old one, rename the temp one to "priv1.edb" and remount it....right?
0
 
LVL 8

Accepted Solution

by:
Emptyone earned 500 total points
ID: 10662020
That is right yes. But one other person I helped had problems with the new defraged file, so he had to use the copy/backup he made. So as always, it is best to have a backup. :)

But on most cases it is just to copy to proper location, delete old and rename temp file

Good luck reducing the size.

I'm going to get some sleep, looking forward to hear how it worked out
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Easy CSR creation in Exchange 2007,2010 and 2013
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
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 …
how to add IIS SMTP to handle application/Scanner relays into office 365.

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now