Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Reclaiming database space/checking consistency

Posted on 2004-03-23
8
Medium Priority
?
390 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
[X]
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
  • 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
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
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 2000 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Know the reasons and solutions to move/import EDB to New Exchange Server. Also, find out how to recover an Exchange .edb file and to restore the file back.
If something goes wrong with Exchange, your IT resources are in trouble.All Exchange server migration processes are not designed to be identical and though migrating email from on-premises Exchange mailbox to Cloud’s Office 365 is relatively simple…
how to add IIS SMTP to handle application/Scanner relays into office 365.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

618 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