Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where are users email saved 1

Status
Not open for further replies.
Oct 2, 2000
240
US
Are users emails being saved under MDBdata, priv.edb and pub.edb? thanks
 
PIRV.EDB is your Private Information store where the bulk of your users data is stored.

PUB.EDB is the Public Information Store

What specifically are you looking for or to do?
 
I just wanted to see how much disk space is being used by our email.
 
You can get a good idea of how much and who is using the most space on your servers through Exchange Admin

Go to your site container, Servers, "Server Name", Private Information Store, Mailbox Resources...

This will give you a list of user mailboxes, total number of items in each box and total space each user is holding on to.
 
Note that the size of 'priv.edb' doesn't always reflect the space being used. The size of the file is often larger than the actual amount of space taken up by email. This is because the file expands on the fly as needed, but never shrinks when things are deleted. This is why an off-line defragmentation of the priv.edb a couple of times a years can be quite helpful. Only an offline defrag can actually shrink the file size down to match the actual space being used.

ShackDaddy
 
Shackdaddy:
How do you do an offline defrag of the information store?
I would like to do this.

Erick
 
Erick,

On Exchange server, check the event viewer. Look for 1221 events. Look at these for the private information store ones. This will tell you APPROXIMATELY how much space you will reclaim by doing an offline defrag.

Then take the services off line for all Exchange services, go to cmd prompt. Use eseutil /d using the syntax listed in the offline defrag thread.
 
You can find a good article on the whole defrag process in thread10-189467.
 
Ok, forget the Knowledge Base, this is a offline defragmentation and backup batch script that I wrote that works like a charm. Obviously, the directory and file locations will differ on your server, but you can get the basic idea here. Pop the batch file in "Scheduled Tasks" of your nt machine to run on your prefered day.

---------------------------------------
CLS
@ECHO OFF

REM EXCHANGE SERVICE STOP
NET STOP MSExchangeIMC /Y
NET STOP MSExchangeMTA /Y
NET STOP MSExchangeIS /Y
NET STOP MSExchangeDS /Y
NET STOP MSExchangeSA /Y

REM DEFRAGMENTATION
ESEUTIL /D F:\EXCHSRVR\MDBDATA\PRIV.EDB /LC:\EXCHBAK\PRIVLOG /SC:\EXCHBAK\PRIVSYS /BPRIV
ESEUTIL /D F:\EXCHSRVR\MDBDATA\PUB.EDB /LC:\EXCHBAK\PUBLOG /SC:\EXCHBAK\PUBSYS /BPUB

REM EXCHANGE OFFLINE DIRECTORY BACKUP
XCOPY F:\EXCHSRVR\MDBDATA\PRIV.EDB \\SERVER4\EXCHBKUP\EXCHEDB\MDBDATA
XCOPY F:\EXCHSRVR\MDBDATA\PUB.EDB \\SERVER4\EXCHBKUP\EXCHEDB\MDBDATA

REM EXCHANGE SERVICE START
NET START MSExchangeSA /Y
NET START MSExchangeDS /Y
NET START MSExchangeIS /Y
NET START MSExchangeMTA /Y
NET START MSExchangeIMC /Y
----------------------------------------------
 
One other point - Disk space!

Defraging requires free disk space equal to 110 percent of priv.edb.

you may want to run

eseutil /MS PRIV.EDB > FREESPACE.TXT

This will generate a file, and give a total at the end. Multiply this total by 4096, to give the maximum bytes you might recover.

May save you running the defrag to find out you haven't gained anything!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top