Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

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

Old mailbox appears in Disconnected Mailbox and cannot be deleted ?

Hi People,

I got Exchange Server 2007 SP3 and I wonder as to why some of the old mailboxes still appears in the Disconnected Mailbox console ?

I have already right click and remove all of my Exchange Server mailboxes but somehow in the Disconnected Mailbox I cannot remove it completely.

Is there any fast way to delete those mailboxes to reclaim the disk space in the Exchange database ?
0
Senior IT System Engineer
Asked:
Senior IT System Engineer
  • 3
  • 2
  • 2
3 Solutions
 
Adam FarageEnterprise ArchCommented:
For Exchange 2007 its a bit of a pain, since the Remove-StoreMailbox command isnt until Exchange 2010 SP1. You can follow these directions: http://theucguy.net/task-3-delete-all-disconnected/

I would like to comment on this though..

Is there any fast way to delete those mailboxes to reclaim the disk space in the Exchange database ?

Mailboxes that are soft deleted (e.g: disconnected) delete during the online maintenance after the default tombstone period occurs (which should be either 7 or 14 days from the date of disconnection). Even if you remove these mailboxes, the .EDB file size does not shrink and what is called "whitespace" is created. This is space within the database that is non-allocated to any mailbox, and is used when a new mailbox is create OR when a current mailbox needs to expand. Since the .EDB file does not need to expand, it requires less IOPS to perform the actions thus better performance for the user and the server.

If you want to reclaim "white space" you should create a new database / storage group and then move all users from the old database / storage group to the new one, then remove the old database / storage group.
0
 
SteveCommented:
exchange has a retention period built in and configured on each mailbox database. by default the mailboxes will remain in the 'disconnected' state until this period expires.

once they have been removed the space they occupied in the DB is then free for other mailboxes to use. if youre hoping to use the disk space elsewhere you'll need to run a defrag of the db or move the mailboxes to a new DB and remove the old one.
0
 
Senior IT System EngineerIT ProfessionalAuthor Commented:
Ah ok, how can I view the existing and set the expiry period of this disconnected mailbox into 7 days ?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
SteveCommented:
go into the DB properties in exchange. the retention periods are in there.

http://technet.microsoft.com/en-GB/library/bb125047(v=exchg.80).aspx
0
 
Adam FarageEnterprise ArchCommented:
Do not run an offline defrag (ESEUTIL /D) as it is no longer recommended for Exchange 2007 +. Move the mailboxes to a separate mailbox database and storage group, as this would also reclaim the whitespace while not causing any of the possible issues an ESEUTIL /D switch might cause.

As for the retention, run the following to get it for all mailbox databases:

Get-MailboxDatabase | Select Name,MailboxRetention 

Open in new window


This will let you know which database has what set for the mailbox retention.
0
 
Senior IT System EngineerIT ProfessionalAuthor Commented:
Thanks man,

so in this case I can just run the following command:

Get-mailboxServer | Set-MailboxDatabase -MailboxRetention 7.00:00:00

Open in new window

so thatafter 1 week the deleted / disconnected mailboxes are all deleted thus giving me lots of white spaces on each mailbox DB ?
0
 
Adam FarageEnterprise ArchCommented:
That is correct, that would set the tombstone to 7 days, so when online maintenance (OLM) runs it would flush out those disconnected mailboxes.
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

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