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

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

Data base shrink

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
D_Batona
Asked:
D_Batona
  • 3
  • 3
1 Solution
 
imkotteesCommented:
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
 
D_BatonaAuthor Commented:
Y,
looks you are right.

Can I use this command to speed up the process?

Search-mailbox -identity <alias> -SearchDumpsterOnly -DeleteContent
0
 
imkotteesCommented:
Yes you can do that. even you can reduce the deleted items retention to achieve this.

Remember you cannot get back those emails.
0
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
D_BatonaAuthor Commented:
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
 
imkotteesCommented:
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
 
D_BatonaAuthor Commented:
Yes,
Actually saying archiving I meant archiving to pst file that was done.
Good to know.
Thank you very much!!!
0

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now