Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Offline defrag of Exchange 2010 DAG DB

Posted on 2010-09-03
14
Medium Priority
?
3,816 Views
Last Modified: 2012-05-10
Please do not just tell me I don't ever need to defrag, thanks.

I am having a problem with my email archiving solution at the moment which should be resolved shortly. This has lead to my two DAG'd DBs getting dangerously close to filling their partitions.

I have installed a new partition on all the DAG servers and I will be creating a third DB soon to spread the mailboxes out.

Once the archiving solution comes back and mailboxes are shrunk I want to know how much free space there actually is on my two original partitions.  So while I have this empty third partition before I create the third DB, I have the chance to either (A) create the third DB and shuffle all mailboxes to it from each database one at a time recreating the other two databases in the process or (B) use the space to offline defrag the other two DBs.

The reason I don't want to do (A) is that one of the nodes of the DAG is in another office and it would take a looooong time for it to catch up with all the moving around of mailboxes.

So I would prefer to do the defrags, however I can't find the procedure to do this with regards to DBs in a DAG. Every post on t'interweb is just answered with you don't need to do it.

I know the DB files won't grow while there is space 'in side' them but I want to know exactly how much free space I have so that I can effectively balance the final 3 DBs.

I could in theory bring the third EX server back to this office for the dance of the mailboxes but that would be a pain and only worth it is the defrag process is extremely painful or dangerous.

Cheers,
Sam.
0
Comment
Question by:Sam_Rendell
  • 8
  • 6
14 Comments
 
LVL 32

Accepted Solution

by:
endital1097 earned 2000 total points
ID: 33595358
you would need to first suspend all database copies
then dismount the active database
run the defrag against all copies
0
 

Author Comment

by:Sam_Rendell
ID: 33595450
Ok thanks, would you say this is the sensible option over moving the third EX box back to head office and then moving/recreating DBs?
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33595719
if you wanted that third to be a DR server, no
you just need to make sure that in the main site you have a majority so that if you lose the WAN your main site will stay online
the remote site would lose majority and go offline
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
LVL 32

Expert Comment

by:endital1097
ID: 33595845
sorry, misunderstood the question

yes, depending on the size you don't want to generate a lot of wan traffic
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33595850
i also should have added once the defrags were complete on all you would resume the database copy, but you probably already knew that
0
 

Author Comment

by:Sam_Rendell
ID: 33595864
Yup, is reseeding after defrag likely to create long update queues anyway or should the copies all still be up to date?
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33595898
the database will still be up-to-date
you are suspending the database copy which will stop log replication
to defrag the database you must dismount it which prevents any new logs

0
 

Author Comment

by:Sam_Rendell
ID: 33595915
Great that is what I wanted to hear. Reading around it seems like 110GB DB could take a looong time to defrag, any guesses?
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33596477
if you defrag it to the same disk where the db lives, it will probably take about 4-6 hours
it also depends on the i/o of your disk
i had an 80gb db take 3 hours, but there was a lot of white space

check the application log for 1221 events to see how much
0
 

Author Comment

by:Sam_Rendell
ID: 33597375
I can defrag to separate disks so it should be quicker I guess.
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33597435
it's quicker on the same disk
separate disks it must copy the new file to the original location
same disk doesn't copy
0
 

Author Comment

by:Sam_Rendell
ID: 33598995
oh that's bad news I've not got enough room on the same disk.
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33599207
yes, think about how long it takes to copy a 110gb file from disk to disk :(
0
 

Author Closing Comment

by:Sam_Rendell
ID: 33637213
Thanks for the help :)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Stellar Exchange Toolkit: this 5 in 1 toolkit comes loaded with mega-software tool. Here’s an introduction to tools’ usage and advantages:
Mailbox Corruption is a nightmare every Exchange DBA wishes he never has. Recovering from it can be super-hectic if not entirely futile. And though techniques like the New-MailboxRepairRequest cmdlet have been designed to help with fixing minor corr…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

885 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