Is it safe to run Windows Defragmentation (Defrag) tool on an Exchange server?

I noticed that the D drive on an exchange server was very defragmented (using the inbuilt standard Windows defragmentation tool). When I pressed analyse it showed a big block of red.

I thought I better check before running in case the defrag could cause some damage to exchange and reading around I am not sure I should actually risk running it.

I've determined there are three types of defrag related to Exchange.

Standard normal defrag- the tool we all know and love.
Online defrag - something that exchange does automatically daily I believe.
Offline defrag - run with caution and only when necessary. Requires downtime and risk associated.

I just want to run a simple defrag but even reading about this I'm have read that I should dismount the stores first (Something I'm not 100% sure how to do) and also I should just not bother risk running in on the drive where the exchange data is stored (which is the drive I want to defrag).

Can I get some expert opinions?

Thanks
afflik1923Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnGerhardtCommented:
It is safe to do it..
http://msexchangetips.blogspot.com/2006/08/exchange-is-windows-disk-level-defrag.html
but whether or not it woudl be worth it is another matter..
0
JohnGerhardtCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tigermattCommented:

Hey,

When it comes to Exchange, you can indeed run various types of defrag. The standard Windows tool will defragment the whole drive, whereas if you run an Exchange Offline Defragmentation, you will compact the store (reducing any excess whitespace which may be contained within it). Generally, the Exchange databases look after themselves through Online Defragmentation every day, so it is not necessary to defragment the Exchange databases regularly. In fact, I have only ever done it at one of my clients, where they have a large number of mailboxes being created and deleted, and build up a large amount of whitespace as a result.

If you want to defragment the Exchange Server's entire D: volume, there is no harm in doing this, but it is a good idea to dis-mount the Exchange databases before beginning the procedure. Failure to dis-mount the stores can result in poor disk I/O, preventing Exchange accessing the databases in a timely manner. There are some horror stories out there about if you don't dis-mount the stores, there is the potential for corruption in the Exchange databases during the defrag; it's unlikely, but a potential risk which can be avoided.

To dis-mount the stores, you have two options. The easiest is simply to Stop the 'Microsoft Exchange Information Store' service in the Control Panel, Administrative Tools, Services applet. This will instantly dis-mount all stores on the server. Alternatively, you can open Exchange System Manager, drill down to your server, it's storage group(s) and then right-click each store and choose 'Dismount Store'. Either way will work, but I like stopping the service since it does all the stores in one go. You can then start the defrag using the defragmentation tool. Once it is complete, re-mount the stores either by starting the Information Store service again, or by right-clicking each store in System Manager and choosing 'Mount Store'.

-tigermatt
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

afflik1923Author Commented:
Net result of reading the second article is that I should not do it is the impression I get. Unless I can move the exchange stores somewhere else first.

Don't you think the same after readin the second article you posted.
Also am I right in thinking that "file system defragmentation" is the same as a Windows standard defrag tool?

0
afflik1923Author Commented:
When I said the second article I was referrig to:
http://msexchangeteam.com/archive/2004/10/25/247342.aspx
0
tigermattCommented:

Do you store anything else other than Exchange databases on the D: drive of that server? If you do, you will definitely benefit from running a file system defrag (yes, using the Windows standard dfrg.msc tool). You just need to dismount the stores before you begin, and provided the stores are dismounted there is very little loss to the data in the Exchange databases. Of course, whenever you defrag, there is the potential for data loss - if the power failed for example - but you should always have a good backup before defragmenting anyway.

If you just store the Exchange databases on the D: volume, and no transaction logs or other files, you may benefit from an Exchange Offline Defrag with eseutil /d, but as mentioned in the article a file system defrag is probably not necessary.

-tigermatt
0
JohnGerhardtCommented:
TYou are right the FS defrag is windows defrag.. And it is correct that the defrag its self wont do any harm.. But running it on an active server will probably affect the performance adversly...
0
afflik1923Author Commented:
Useful information. Despite everything I decided not to, or at least wait until I have time to sort things out should anything go wrong.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.