Solved

Defragment Exchange Server 2007 drive ?

Posted on 2012-03-27
12
964 Views
Last Modified: 2012-04-01
Hi People,

Is it necessary or not to defragment Exchange Server 2007 Database drive and the transaction log drive ? It is currently deployed as VM but the disk is using RDM Physical compatibility.

I wonder if it is beneficial or not needed as Exchange has its own defragmentation schedule.

Cheers,

AWT
0
Comment
  • 4
  • 3
  • 2
  • +2
12 Comments
 
LVL 3

Assisted Solution

by:dreamraghu
dreamraghu earned 144 total points
ID: 37775195
If exchange have to complete the full pass on those database files. Make sure it is completing in full pass and that will take care, you no need to do a disk defragmentation.
0
 
LVL 7

Author Comment

by:Senior IT System Engineer
ID: 37775219
what is full pass ? and how can I determine if there is full pass scanning happening ?
0
 
LVL 3

Assisted Solution

by:dreamraghu
dreamraghu earned 144 total points
ID: 37775242
You can check the 1221 information event ID in the application log, if it is not completing Full pass, then you might have to increase the store maintenance schedule or do a offline defragmentation by dismounting the store and running the cmd below:
>eseutil /d "database file path"
0
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 
LVL 119

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 142 total points
ID: 37775467
If you want to create a Defragmented Exchange Database, migrate mailboxes to a new Store.
0
 
LVL 6

Assisted Solution

by:KalluSureshKumar
KalluSureshKumar earned 71 total points
ID: 37775553
0
 
LVL 40

Assisted Solution

by:coolsport00
coolsport00 earned 143 total points
ID: 37776245
Defrag'ing a disk & Defrag'ing a DB are 2 different things. I recently had discussions on twitter over disk defrag'ing (more on that later). What Exchg DB defrag does mostly is recover 'whitespace' of your storage. So, for example, say you have a 50GB storage group. Your users are taking up about 45GB. You don't want your users to run into messaging (send/receive) issues due to storage limit being approached, so you have some of your 'problem users' delete (permanently) emails, appts, etc. Now, Exchg automatically does "online" defrag'ing (see here: http://www.msexchange.org/articles-tutorials/exchange-server-2007/monitoring-operations/exchange-online-database-scanning-part1.html, and how to set its schedule here: http://technet.microsoft.com/en-us/library/aa995795(EXCHG.80).aspx), but that does NOT recover the space your users just cleaned up. So, how do you do so? Offline defrag'ing. So, should you do an offline defrag (NOT disk defrag), yes. You can reference here for instructions on how to: http://technet.microsoft.com/en-us/library/aa997972(v=exchg.80).aspx & http://technet.microsoft.com/en-us/library/aa998863(v=exchg.80).aspx.

Now, and probably more close to what your question above is referring to - should you actually defrag the disk your DBs are on? Answer, in a nutshell - no. There was a VMware Community article written last yr that is probably the best discussed on the subject that I've seen (see: http://blogs.vmware.com/vsphere/2011/09/should-i-defrag-my-guest-os.html). This question incidently is 'old hat' and pertains to not just a disk used by Exchange but any VM. Some of the reasons listed in the Community post don't pertain because of your disk 'type'. Will it hurt you to do it? No, but for all the trouble you'd have to go through to do so, you more than likely wouldn't notice any performance gain/enhancement on the disk.

Hope that helps.

Regards,
~coolsport00
0
 
LVL 119

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 142 total points
ID: 37776279
hence, why best to create a New Store. Also offline defrags take alot of time and datastore space, and can result in lost mailboxes.
0
 
LVL 40

Accepted Solution

by:
coolsport00 earned 143 total points
ID: 37776305
Offline defrags don't necessarily take that much time if the DB is not that large (I can run offline defrag of a 30-40GB DB in 15-20mins...no store move required...no mailbox moves needed). But, offline defrag and disk defrag are 2 different things. BUT..for offline defrag, free space of a size a little greater than the DB to be offline defrag'd is required, be it on the same volume or other volume on your VM (RDM or VDMK...doesn't matter).

I have set 'scripts' created for my offline defrags and do them periodically (semi-annually probably). Almost anything can lead to 'lost mailboxes'. So, regardless of what's decided, backups should always be done. In 5-6yrs of running offline defrags, I have YET to have any mailbox issue.

~coolsport00
0
 
LVL 7

Author Comment

by:Senior IT System Engineer
ID: 37780081
Thanks People for the response,

I was under the impression that Exchange server would also require defragmentation in both Tx Log and DB space, but it seems it doesn't since it has its own maintenance job scheduled by default.
0
 
LVL 7

Author Comment

by:Senior IT System Engineer
ID: 37794412
ok, so does the Defragmented Exchange Database shrink down the Mailbox DB used size ?
0
 
LVL 3

Expert Comment

by:dreamraghu
ID: 37794488
Yes
0
 
LVL 7

Author Comment

by:Senior IT System Engineer
ID: 37794504
thanks Raghu. That is just what I needed to regain space in the old database drive.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

In-place Upgrading Dirsync to Azure AD Connect
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

820 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