Skip to main content

How to offline defrag Exchange server 2010 database

When working with exchange, it happen sometimes that the exchange database is using high disk space and even you and users are deleting/archived some mails but the size is not getting low.

In that scenario, You an exchange administrator or system administrator must perform offline defragmentation of database.

There are some points which you must be follow before starting the offline defragmentation:-

1) During the offline defragmentation exchange service would be stopped. So no mail access would be working during that time

2) Before making some free disk space for the drive in which exchange database present, you need approx 1.1x of database size somewhere in your network. 
First you need to check how much white space you have in your exchange database. White space means the space which will be free once you run the defrag utility.
to check it you can open Exchange management shell and type.
Get-MailboxDatabase -Status | ft name,databasesize,availablenewmailboxspace -auto
[PS] C:\>Get-MailboxDatabase -Status | ft name,databasesize,availablenewmailboxspace -auto

Name             DatabaseSize                    AvailableNewMailboxSpace
----             ------------                    ------------------------
MB-HO-01         18.26 GB (19,604,766,720 bytes) 9.544 GB (10,247,766,016 bytes)
MB-HO-02         15.63 GB (16,785,670,144 bytes) 3.696 GB (3,968,761,856 bytes)
MB-HO-Archive-01 648.1 MB (679,542,784 bytes)    134.6 MB (141,164,544 bytes)
In the example above the database MB-HO-01 is 18.26Gb in size but has 9.544Gb white space due to archiving that has ocurred.
So to plan for an Exchange 2010 mailbox database defrag you need an amount of free space equivalent to 1.1x the predicted size of the new file.

In this example that would be:
18.26 – 9.544 = 8.7
8.7 x 1.1 = 9.57

1. Start--->Run--->services.msc and then STOP Microsoft Exchange Information Store service
2. Open up a command line utility and execute the following command:

eseutil /d "C:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database 0305499990\Mailbox Database 0305499990.edb" /t \\\temp.edb

Where: "C:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database 0305499990\Mailbox Database 0305499990.edb" is the path to the exchange server database that needs to be defragmented and \\\temp.edb is any temporary location that has adequate space (minimum the size of the database+10%) to store the temporary defraged database, until completion of the defrag.

Finally once the process is complete you need to START the Microsoft Exchange Information Store service and check that the database has been mounted correctly via the Exchange Management Console. I always give the server a restrat to check that all relevant services do start up automatically after the defrag procedure.

If you want to verify that the available new mailbox free space has been increased after the defragment procedure all you need to do is execute the following command in Exchange Management Shell:

Get-MailboxDatabase -Status | ft name,databasesize,availablenewmailboxspace -auto

Popular posts from this blog

How to schedule an Automatic Reboot of WatchGuard Firebox?

We have a Customer who having some issues with the WatchGuard Firewall,
We want to schedule a Reboot of the Firebox Each morning at 04:30AM so that when customer arrive in the office he would not face any problem.
For this :
1) Click on WatchGuard Firebox ICON (You may be having a Shortcut on your Desktop)
2) Give the Password to connect to Concern Firewall
3) Once you Connected, Go to File > Connect to Device > Choose the Firewall IP and Click on Connect. It may ask for the password, Please provide that.
4) Once you connected it will show you the Firewall with all the configuration.
5) Right Click on it and Go to Policy manager > When Policy manager Open, Click on "Setup" and then "Global Settings", At the Last you will found an option to define the time when you want a Schedule Reboot.

After making the change, Don't forget to make it Save in the Firewall Config File.

Unable to install AVG, Error code:0xC0070643, Solved...!!

We want to install AVG Business edition for one of our Server having Windows Server 2008 R2.
Whenever we trying to install getting the "Error Code:0xC0070643. Installing 3rd parties redistributables.,MSI action failed.".
I tried to run the AVg Remover, Still not resolved. Chcked and found that OS is updated with latest Hotfixes, So there is no issue with Windows Updates.Rebooted the Server, Still not resolved.Finally I found one Link from AVG Support center, Fix for 0xC0070643, I run the tool and its Showing me that Error not solved, But Still I tried to run the Installer.exe again. And finally its installed successfully.
Let me know if you have any questions..!!

"Options" option not working on OWA (Outlook Web Access)

When we opening a OWA and Going to options to change the password/Configure the Out of Office or something else, We are getting logged out.


To resolve this you must have to connect to your Exchange Server.
Go to EMC > Server Configuration > Exchange Control Panel > ECP > Properties. Made the change the ECP Settings (changed from Use Form based authentication to Basic Authentication). It will work now.