Exchange 2010 - True mailbox Size
Why does the Exchange mailbox show different sizes when I run 2 different commands on the same mailbox?
For example I'm reorganizing the mailboxes and databases and I run this command below and it shows the mailbox size 4.357GB
>Get-MailboxStatistics auser | ft DisplayName,Database,TotalItemSize,ItemCount,storagelimitstatus
DisplayName Database TotalItemSize
ItemCount
----------- -------- -------------
---------
auser Legal Database 4.357 GB (4,678,566,166 bytes)
57605
So being that it's 4.357 GB I moved it to the 5 GB limit database as shown below, but the size comes up as 5.759 GB.
>New-MoveRequest -Identity auser@domain.com -TargetDatabase "Mailbox 01 Limit Database"
DisplayName Status TotalMailboxSize
TotalArchiveSize
----------- ------ ----------------
----------------
auser Queued 5.759 GB (6,183,689,279
bytes)
So now the user is already over the limit before even being fully copied over to the new database. Which number is true?
March 16th, 2012 4:38pm
Add TotalDeletedItemSize to your Get-MailboxStatistics call:
Get-MailboxStatistics auser | ft DisplayName,Database,TotalItemSize,TotalDeletedItemSize,ItemCount,storagelimitstatus
KarlWhen you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer
My Blog: http://unlockpowershell.wordpress.com
My Book:
Windows PowerShell 2.0 Bible
My E-mail: -join ("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})
Free Windows Admin Tool Kit Click here and download it now
March 16th, 2012 4:46pm
is that what's making the difference of the numbers? Are those the items that havent been deleted from the users deleted items folder or items that have been deleted from the users deleted items folder but are in the "keep items until X days" option?
March 16th, 2012 4:51pm
The deleted items folder.
Items in the "dumpster" are not counted against the quota.Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.
Free Windows Admin Tool Kit Click here and download it now
March 16th, 2012 5:56pm
how do you define the "dumpster"?
March 16th, 2012 5:59pm
The dumpster is the place the deleted items are stored for X days after you empty the deleted items folder.
Nice summary - and underlines improvements in E2K10:
http://email-museum.com/2010/04/12/exchange-2010-archiving-dumpster-revealed-2/
Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.
Free Windows Admin Tool Kit Click here and download it now
March 16th, 2012 6:06pm
Add TotalDeletedItemSize to your Get-MailboxStatistics call:
Get-MailboxStatistics auser | ft DisplayName,Database,TotalItemSize,TotalDeletedItemSize,ItemCount,storagelimitstatus
KarlWhen you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer
My Blog: http://unlockpowershell.wordpress.com
My Book:
Windows PowerShell 2.0 Bible
My E-mail: -join ("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})
March 16th, 2012 11:39pm
Hi,
From your output, the TotalItemSize value doesn't match the TotalMailboxSize value and the TotalMailboxSize value is larger than another, which situation is not strange.
The Get-MailboxStatistics cmdlet can obtain information about a mailbox, for example, the TotalItemSize parameter is to obtain the total mailbox size. Howerer, the TotalMailboxSize value is the user's total mailbox size in database.
As per my knowledge, this situation maybe result from the following:
There will be fragmentation in databse. So you can run ESEUTIL /D switch to defragment and compact a database offline.Usually, Admin will set Delete Retention Time of mailbox in Exchange server. So, you can check the setting.
Hope it helps.
ThanksSophia Xu
TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
March 19th, 2012 3:47am
Hi,
From your output, the TotalItemSize value doesn't match the TotalMailboxSize value and the TotalMailboxSize value is larger than another, which situation is not strange.
The Get-MailboxStatistics cmdlet can obtain information about a mailbox, for example, the TotalItemSize parameter is to obtain the total mailbox size. Howerer, the TotalMailboxSize value is the user's total mailbox size in database.
As per my knowledge, this situation maybe result from the following:
There will be fragmentation in databse. So you can run ESEUTIL /D switch to defragment and compact a database offline.Usually, Admin will set Delete Retention Time of mailbox in Exchange server. So, you can check the setting.
Hope it helps.
ThanksSophia Xu
TechNet Community Support
March 19th, 2012 10:44am