Solved

Data base shrink

Posted on 2014-01-19
6
196 Views
Last Modified: 2014-01-19
Db size before archiving was around 70 GB.
After archiving and using ESEUtil /d  50GB.

The following command gives me around 17GB total of all user mailboxes.

Get-MailboxDatabase "db1" | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount

But next command shows no white space , 50 GB total.

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

What the h.. is taking 33 GB?

Thank you.
0
Comment
Question by:D_Batona
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 13

Accepted Solution

by:
imkottees earned 500 total points
ID: 39793237
Hi,

Though you have deleted from mailboxes it will be there in the dumpster. you will be able to see those spaces after the retention period.

Use the below command to get the size of mailbox including dumpster.

Get-MailboxStatistics -Database "Database Name"| Sort-Object {$_.TotalItemSize.Value.ToMB()} -Descending | FT DisplayName, {$_.TotalItemSize.Value.ToMB()}, {$_.TotalDeletedItemSize.Value.ToMB()}
0
 

Author Comment

by:D_Batona
ID: 39793274
Y,
looks you are right.

Can I use this command to speed up the process?

Search-mailbox -identity <alias> -SearchDumpsterOnly -DeleteContent
0
 
LVL 13

Expert Comment

by:imkottees
ID: 39793303
Yes you can do that. even you can reduce the deleted items retention to achieve this.

Remember you cannot get back those emails.
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

Author Comment

by:D_Batona
ID: 39793322
The problem is those items were not deleted but properly archived using Outlook.
Why they went to dumpster after being archived?
Never seen that on Exchange 2007 we used before moving to Exchange 2010.
Thank you.
0
 
LVL 13

Expert Comment

by:imkottees
ID: 39793331
Not only archiving, even if you are moving emails to PST other copy of emails will be moved to dumpster (deleted items). outlook thinks that they have been deleted.
0
 

Author Comment

by:D_Batona
ID: 39793333
Yes,
Actually saying archiving I meant archiving to pst file that was done.
Good to know.
Thank you very much!!!
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
Suggested Courses

617 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