?
Solved

deleting mailbox problem in exchange 2007

Posted on 2010-09-21
12
Medium Priority
?
435 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
[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
  • 5
  • 5
  • 2
12 Comments
 
LVL 9

Expert Comment

by:vanbarsoun
ID: 33730444
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
ID: 33730449
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
ID: 33730451
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:mdswireless
ID: 33730501
@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
ID: 33730509
yes, but you'll probably have to put the full database name in quotations
0
 

Author Comment

by:mdswireless
ID: 33730526
ok this is the output

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

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



doesnt show space
0
 
LVL 12

Expert Comment

by:jjmartineziii
ID: 33730559
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
ID: 33730576
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
ID: 33730585
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
ID: 33730597
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 500 total points
ID: 33730618
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
ID: 33730629
thanks for the help
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

777 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