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

x
?
Solved

Defragmentation of Exchange Database

Posted on 2013-11-17
10
Medium Priority
?
261 Views
Last Modified: 2013-12-09
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.
0
Comment
Question by:sanjayambre
  • 4
  • 2
  • 2
10 Comments
 
LVL 38

Expert Comment

by:Mahesh
ID: 39654689
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
 

Author Comment

by:sanjayambre
ID: 39654814
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
 
LVL 38

Expert Comment

by:Mahesh
ID: 39654825
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
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
LVL 63

Assisted Solution

by:Simon Butler (Sembee)
Simon Butler (Sembee) earned 332 total points
ID: 39656351
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
 
LVL 38

Assisted Solution

by:Mahesh
Mahesh earned 668 total points
ID: 39656505
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
 
LVL 63

Expert Comment

by:Simon Butler (Sembee)
ID: 39656925
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
 

Author Comment

by:sanjayambre
ID: 39671629
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
 
LVL 38

Accepted Solution

by:
Mahesh earned 668 total points
ID: 39671664
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

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

Are you an Exchange administrator employed with an organization? And, have you encountered a corrupt Exchange database due to which you are not able to open its EDB file. This article will explain all the steps to repair corrupt Exchange database.
On September 18, Experts Exchange launched the first installment of the Help Bell, a new feature for Premium Members, Team Accounts, and Qualified Experts. The Help Bell will serve as an additional tool to help teams increase question visibility.
how to add IIS SMTP to handle application/Scanner relays into office 365.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
Suggested Courses

886 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