Solved

deleting mailbox problem in exchange 2007

Posted on 2010-09-21
12
427 Views
Last Modified: 2012-05-10
its a general question..but i have a reason

I deleted a mailbox and it end up going into the dissconnected mailbox...i removed it by using this command:

Get-MailboxStatistics -database “MyServer\Mailbox Database” | where {$_.Disconnectdate -ne $null} | foreach {Remove-mailbox -Database $_.database -StoreMailboxIdentity $_.MailboxGuid}

which works fine

the problem is that am running out of disk space and am cleaning up all the mailboxes that are not in use...my hdd is 1TB in size and used space is 900GB...which leaves me with 89GB left of free space...so my question is when am deleted the unused mailboxes should I see more free space...or do i have to do something with the mailbox database to regain the hdd space?

thanks
0
Comment
Question by:mdswireless
  • 5
  • 5
  • 2
12 Comments
 
LVL 9

Expert Comment

by:vanbarsoun
Comment Utility
Did you do a purge by running mailbox cleanup? I'm speaking from Exchange2003 so ignore if that doesn't apply.
0
 
LVL 9

Expert Comment

by:vanbarsoun
Comment Utility
You might also have to do an offline-defrag of the exchange database to get that space back.
0
 
LVL 12

Expert Comment

by:jjmartineziii
Comment Utility
Deleting mailboxes does not clear the space. It's whitespace.

You can see the amount of whitespace in a db by using this command:
Get-MailboxDatabase Database1 -Status | FT Name,AvailableNewMailboxSpace

If you have tons of whitespace, you can reclaim it by using ESEUTIl but it requires you to take your DB offline.

When your database grows, it starts by using whitespace.
0
 

Author Comment

by:mdswireless
Comment Utility
@jjmartineziii

i tried running the command you said but i get an error

my database name is
Name
----
Mailbox Database


so am i to type
Get-MailboxDatabase Mailbox Database -Status | FT Name,AvailableNewMailboxSpace ?
0
 
LVL 12

Expert Comment

by:jjmartineziii
Comment Utility
yes, but you'll probably have to put the full database name in quotations
0
 

Author Comment

by:mdswireless
Comment Utility
ok this is the output

[PS] C:\>Get-MailboxDatabase "Mailbox Database" -Status | FT Name,AvailableNewMa
ilboxSpace

Name                                            AvailableNewMailboxSpace
----                                                   ------------------------
Mailbox Database



doesnt show space
0
Don't lose your head updating email signatures!

Do your end users still have the wrong email signature? Do email signature updates bore you or fill you with a sense of dread? You can make this a whole lot easier on yourself by trusting an Exclaimer email signature management solution. Over 50 million users do...so should you!

 
LVL 12

Expert Comment

by:jjmartineziii
Comment Utility
My apologies. It might only work in 2010.

Do you have Event 1221 in your eventlog on the server that's hosting the database?

That event should show the free space also.

0
 

Author Comment

by:mdswireless
Comment Utility
yep it shows

The database "First Storage Group\Mailbox Database" has 19 megabytes of free space after online defragmentation has terminated.

but thats impossabile becuase i deleted 20 accounts and 1 account had to been over 1GB in size
0
 
LVL 12

Expert Comment

by:jjmartineziii
Comment Utility
when did you delete those accounts? that event should happen after defragmentation which happens overnight. So if you deleted them today, you should see a new event tomorrow
0
 

Author Comment

by:mdswireless
Comment Utility
ok i deleted 15 mins ago...so it i run  ESEUTIl /D...this will force a defrag and regain my space? and i am guessing I have to offline the database before I do this correct?
0
 
LVL 12

Accepted Solution

by:
jjmartineziii earned 125 total points
Comment Utility
yes, assuming you have enough space to do the defrag, you will have to dismount it and run it offline using the /D switch.

Like i said, unless you are reclaiming alot of space, its best not to do that. It may also take a long time depending on the db size.

Read more about whitespace: http://restartis.wordpress.com/2009/05/26/does-exchange-2007always-use-whitespace-available-in-a-database/
0
 

Author Closing Comment

by:mdswireless
Comment Utility
thanks for the help
0

Featured Post

Do email signature updates give you a headache?

Constantly trying to correctly format email signatures? Spending all of your time at every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

Join & Write a Comment

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now