Defragmentation of Exchange Database

We have two Exchange Server 2010 SP2 which are members of DAG and contains HUB, Client Access & Mailbox roles. Currently one database  is reaches to 700 GB which causes space issue as well back up issue.

How we can reduce database size...need guidance to overcome this issue.
sanjayambreAsked:
Who is Participating?
 
MaheshArchitectCommented:
Whatever limit you have set on mailbox database level in organization configuraion\database properties is the actual default size for all mailboxes in that database.
Please check there what size you have set.If nothing is there, it means it is unlimited Quota.

In your case that default limit checkbox is unchecked or set manually on mailboxes to some higher value causing default database size limit is overwritten.

Run below cmdlet on exchange server to find out how many users are not obeying the database default limit.
get-mailbox -filter { usedatabasequotadefaults -eq $false -AND recipientTypeDetails -eq 'usermailbox'  }
[PS] C:\>Get-MailboxDatabase "Mailbox Database 1" | Get-MailboxStatistics | Sort totalitemsize -desc | Export-CSV C:\mailboxes.csv
This will give you idea...
http://www.evanhoffman.com/evan/2010/10/12/changing-all-exchange-mailboxes-to-use-database-defaults-for-quota-limits-with-powershell/
http://exchangeserverpro.com/browsing-mailbox-databases-in-exchange-2007-and-2010/

If you wanted to set limit on database size or default limit on mailboxes, then you must 1st archieve those hugh mailboxes contents and bring them within default size limit

Maximum database size limit in Exchange 2010:
http://technet.microsoft.com/en-us/library/bb232092.aspx

mailbox size effect on performance
http://blogs.technet.com/b/exchange/archive/2010/03/29/3409629.aspx
http://blogs.technet.com/b/agobbi/archive/2010/09/08/large-mailbox-sizes-no-mailbox-limit-and-pst-usage-exchange-2007.aspx
http://itproafrica.com/technology/exchange/the-limits-of-unlimited-mailboxes/
http://blogs.technet.com/b/exchange/archive/2005/03/14/395229.aspx

Ideally, it depends how your exchange mailbox server is designed

Mahesh
0
 
MaheshArchitectCommented:
If you have additional disk space \ disk, then probably u can create new mailbox database and start moving mailboxes there to reduce its size and backup problem as well
Alternatively you can defragment
check below post
http://exchangeserverpro.com/defrag-exchange-2010-mailbox-database/
0
 
sanjayambreAuthor Commented:
We started to move mailboxes but database size is remain same due to white space. Is there any calculation how much time will take to defragment database (700 GB).
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
MaheshArchitectCommented:
Basically, you need to create new database and need to move all mailboxes to new databases
Later on original database need to wiped out
This process will recover white space and keep new database compacted.
Also you don't required downtime during mailbox movement probably since you are running Exchange 2010 version
Defragmentation is the process where you take the database offline and this process will take too much time to defragment 700 GB data
Not sure exact time, but may take more than24 HRS
Thanks
0
 
Simon Butler (Sembee)ConsultantCommented:
You cannot defrag a database with a DAG involved.
Therefore your only options are to move the data around. You could break the DAG and then defrag the single copy. You would then have to completely reseed the database. That is going to take some time.

Your best option is to create new databases, completely replacing what you have. Seed those new smaller databases across.

Simon.
0
 
MaheshArchitectCommented:
You can offline defragment DAG databases but Its to much time consuming and require complete database re-seeding
Please check below article for offline DAG defragmentation.
http://blogs.technet.com/b/rmilne/archive/2013/08/23/offline-defrag-and-dag-databases_2c00_-oh-my_2100_.aspx
0
 
Simon Butler (Sembee)ConsultantCommented:
That is basically the same thing as I said, just without breaking the DAG. Either way a full reseed is involved.
I haven't done an offline defrag since Exchange 2007 was released. It isn't risk free and requires too much downtime. Just move everything in to new databases.

Simon.
0
 
sanjayambreAuthor Commented:
Database size reaches to 700 GB and observed that there is no limit set on mailbox size. some MAC users have more than 20 GB mailbox size.

Can mailbox size effect on performance on mailbox server. what is defualt size of per mailbox.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.