Exchange Server Forums

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

Offline Defrag on Mailbox Stores

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Microsoft Exchange 2003] >> Information Stores >> Offline Defrag on Mailbox Stores Page: [1]
Login
Message << Older Topic   Newer Topic >>
Limited time MSExchange.org offer! -- 1.Sep.2008 1:00:00 PM
TechGenix and SolarWinds have partnered to provide free copies of SolarWinds Exchange Monitor to all visitors who join the MSExchange.org Forums. SolarWinds Exchange Monitor is a handy desktop dashboard that continuously monitors Microsoft Exchange to deliver real-time insight into Exchange services, mail queue sizes, and host server health. Learn more about Exchange Monitor and the free offer!
Offline Defrag on Mailbox Stores - 21.Dec.2007 10:09:44 AM   
boxexpert

 

Posts: 57
Joined: 8.Oct.2007
Status: offline
i have to offline defrag all the mailbox stores. which are the correct commands to do that?
Post #: 1
RE: Offline Defrag on Mailbox Stores - 21.Dec.2007 7:46:35 PM   
renegade X

 

Posts: 3
Joined: 21.Dec.2007
Status: offline
Its a good thing you did not just defrag it. LOL Boy what a mess that makes.

Check here http://www.petri.co.il/defragment_exchange_2000_2003_server_databases.htm

Hope this helps



_____________________________

Certifications:
A+ (220-301 , 220-302)
Network+ (N10-003)
MCP (70-270)
MCSA (70-290, 70-291)

(in reply to boxexpert)
Post #: 2
RE: Offline Defrag on Mailbox Stores - 21.Dec.2007 10:38:47 PM   
uemurad

 

Posts: 5471
Joined: 7.Jan.2004
From: California, USA
Status: offline
Why do you wish to run an offline defrag?  How big are your database files?  How much whitespace to you stand to reclaim?

ESEUtil is the command to use, but offline defrags should never be considered standard operating procedure.

_____________________________

Regards,

Dean T. Uemura
Microsoft MVP - Exchange
exchangeguy.blogspot.com
uemurad@yahoo.com

(in reply to boxexpert)
Post #: 3
RE: Offline Defrag on Mailbox Stores - 22.Dec.2007 6:44:12 AM   
boxexpert

 

Posts: 57
Joined: 8.Oct.2007
Status: offline
the main reason is because we had a migration with a mail archiving system and theres alot of "rubbish" on the mailbox stores which i want to get rid of.

eseutil is the tool,but which parameters are the correct ones to to so?

(in reply to uemurad)
Post #: 4
RE: Offline Defrag on Mailbox Stores - 22.Dec.2007 11:22:23 AM   
uemurad

 

Posts: 5471
Joined: 7.Jan.2004
From: California, USA
Status: offline
I went through the same situation.  First, the answer to your question is ESEUTIL /D.  Here's some documentation for you to read through:
http://technet.microsoft.com/en-us/library/bb123761.aspx

That being said, since you used the word "stores", does that mean you are running Exchange Enterprise?  If so, consider instead creating a new mailbox store and moving mailboxes into it.  This leaves the stores running the entire time and you can schedule the moves as you need.  When the old store has no mailboxes remaining, you can delete it from your Exchange organization and then delete the database files.

_____________________________

Regards,

Dean T. Uemura
Microsoft MVP - Exchange
exchangeguy.blogspot.com
uemurad@yahoo.com

(in reply to boxexpert)
Post #: 5
RE: Offline Defrag on Mailbox Stores - 22.Dec.2007 2:27:41 PM   
boxexpert

 

Posts: 57
Joined: 8.Oct.2007
Status: offline
yes, we have the enterprise edition.

one of the store cannot get a offline defrag,because theres something weird about it.

eseutil /d on each store,is that correct?

(in reply to uemurad)
Post #: 6
RE: Offline Defrag on Mailbox Stores - 22.Dec.2007 5:44:56 PM   
uemurad

 

Posts: 5471
Joined: 7.Jan.2004
From: California, USA
Status: offline
ESEUTIL works on a single store.  It does need to be dismounted when you run it.  Depending upon how large the database is, this can take many hours to run (there's a time estimate in the documentation link I sent).  That means everyone with mailboxes in that store will be unable to do anything until you bring it back online.  Also know that ESEUTIL is very intrusive and can actually cause problems if the database is corrupted in some manners.  The resulting defragged files may not be able to mount.  Always perform a full backup (or make a copy) of the database files (EDB and STM) before attempting ESEUTIL or ISINTEG (another utility - Information Store INTEGrity check).  Details of that utility should be close to the link about ESEUTIL.

I'll restate my case for creating the separate mailbox store and moving mailboxes into it.  Users will individually be disconnected from Email while their particular mailbox is being moved, and since only non-deleted messages are moved, you end up with a defragmented database.

_____________________________

Regards,

Dean T. Uemura
Microsoft MVP - Exchange
exchangeguy.blogspot.com
uemurad@yahoo.com

(in reply to boxexpert)
Post #: 7
RE: Offline Defrag on Mailbox Stores - 23.Dec.2007 7:48:09 AM   
boxexpert

 

Posts: 57
Joined: 8.Oct.2007
Status: offline
ok,we have six mailbox stores.i will do this during the night brcause nobody is working then.

i believe,i have to invest two nights because the stores have a size between 1GB and 7GB the most.

(in reply to uemurad)
Post #: 8
RE: Offline Defrag on Mailbox Stores - 23.Dec.2007 11:46:44 AM   
uemurad

 

Posts: 5471
Joined: 7.Jan.2004
From: California, USA
Status: offline
1GB and 7GB?  If that is the size of the fragmented databases, it doesn't sound like you have a lot of space to recover.  Even still, what is your objection to moving the mailboxes instead of running the offline defrag?  The mailbox move wizard has a scheduler within.  You could do the work in your sleep and not risk corrupting the databases (yes, there is a possibility that ESEUTIL will introduce corruption).  The Exchange 2003 mailbox move wizard will automatically backout the move if it runs into a problem.

As I mentioned earlier in the thread, I am living through what you describe on a larger scale.  I started with 18 stores on one server totalling 800GB and after activating a 3rd-party archiving solution I am in the final stages of reducing that to 10 stores totaling around 250GB.  I am accomplishing that by moving mailboxes and have yet to run an offline defrag.  They are inherently dangerous and should only be used in extreme cases (e.g. when directed by Microsoft PSS).

< Message edited by uemurad -- 23.Dec.2007 5:24:10 PM >


_____________________________

Regards,

Dean T. Uemura
Microsoft MVP - Exchange
exchangeguy.blogspot.com
uemurad@yahoo.com

(in reply to boxexpert)
Post #: 9
RE: Offline Defrag on Mailbox Stores - 23.Dec.2007 8:17:32 PM   
boxexpert

 

Posts: 57
Joined: 8.Oct.2007
Status: offline
to be correct, there are two exchange servers and each has three mailbox stores. the sizes vary between 1 and 7 GB.

i want to offline defrag all of them because the servers have become slow.

one of the stores i have to create new because i cannot defrag it

(in reply to uemurad)
Post #: 10
RE: Offline Defrag on Mailbox Stores - 23.Dec.2007 8:19:07 PM   
boxexpert

 

Posts: 57
Joined: 8.Oct.2007
Status: offline
uemurad

which 3rd party tool are you using?

(in reply to boxexpert)
Post #: 11
RE: Offline Defrag on Mailbox Stores - 23.Dec.2007 9:17:47 PM   
uemurad

 

Posts: 5471
Joined: 7.Jan.2004
From: California, USA
Status: offline
quote:

i want to offline defrag all of them because the servers have become slow.
Shrinking the databases doesn't do anything for access speed.  The online defrag that takes place every night (by default) gathers up all the whitespace.  You should check the 1221 Events in your Application Log to see how much space you stand to gain for each store.  Having no whitespace can actually hurt performance because of the overhead involved with growing the database files.
quote:

which 3rd party tool are you using?
Symantec's Enterprise Vault.

Read the following for tips on troubleshooting performance issues:
Troubleshooting Microsoft Exchange Server Performance

http://technet.microsoft.com/en-us/library/aa997270.aspx


_____________________________

Regards,

Dean T. Uemura
Microsoft MVP - Exchange
exchangeguy.blogspot.com
uemurad@yahoo.com

(in reply to boxexpert)
Post #: 12
RE: Offline Defrag on Mailbox Stores - 26.Dec.2007 1:48:53 PM   
boxexpert

 

Posts: 57
Joined: 8.Oct.2007
Status: offline
we just implemented the new version of EV, 7.5 with SP1.

im going to do this tonight..

eseutil /d is till the correct command to clean up the databases,right?

(in reply to uemurad)
Post #: 13
RE: Offline Defrag on Mailbox Stores - 26.Dec.2007 5:48:12 PM   
uemurad

 

Posts: 5471
Joined: 7.Jan.2004
From: California, USA
Status: offline
To be specific, ESEUTIL /D is the command for defragmenting database files.  "Clean up" has connotations that may or may not be applicable.

_____________________________

Regards,

Dean T. Uemura
Microsoft MVP - Exchange
exchangeguy.blogspot.com
uemurad@yahoo.com

(in reply to boxexpert)
Post #: 14
RE: Offline Defrag on Mailbox Stores - 26.Dec.2007 6:15:38 PM   
boxexpert

 

Posts: 57
Joined: 8.Oct.2007
Status: offline
ok,maybe i was a bit wrong. the main reason is still to shrink the database and get some space back.

anything else i need to consider?

(in reply to uemurad)
Post #: 15
RE: Offline Defrag on Mailbox Stores - 26.Dec.2007 6:25:59 PM   
uemurad

 

Posts: 5471
Joined: 7.Jan.2004
From: California, USA
Status: offline
I just wanted to make sure you weren't expecting something to happen besides the defrag.

I know I sound like a broken record, but I'm going to say it one last time.  Using ESEUTIL may introduce issues into the database.  Using ESEUTIL means the mailbox store you are optimizing will be offline the entire time.  Make sure you have a good (full) backup before you run ESEUTIL.  If you create a new mailbox store and move mailboxes into it, the only time a mailbox will be unavailable to the user is when it is being moved.  Once the move completes, the mailbox is available again.  You can schedule moves using the mailbox move wizard.  If the move encounters a corrupted message, it will skip over it.  If the number of corrupted messages reaches a preset threshold, the move will automatically abort.  Any failed move will cause the wizard to back out the move.  I've done my optimization without taking any of the living stores offline.  I've rebooted the server here and there (make sure you dismount any stores first), but we're talking about minutes of downtime instead of hours.

Good luck with your work...

_____________________________

Regards,

Dean T. Uemura
Microsoft MVP - Exchange
exchangeguy.blogspot.com
uemurad@yahoo.com

(in reply to boxexpert)
Post #: 16
RE: Offline Defrag on Mailbox Stores - 26.Dec.2007 6:52:53 PM   
boxexpert

 

Posts: 57
Joined: 8.Oct.2007
Status: offline
alright,its running now. heres its midnight and nobody is working,so no problem if the stores are offline for a few hours

(in reply to uemurad)
Post #: 17

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [Microsoft Exchange 2003] >> Information Stores >> Offline Defrag on Mailbox Stores Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts