kb

Microsoft Exchange 2010 | Shell | Offline Defragment

First of all!

! BACKUP ALL DATABASES !

1.) Get Whitespace –> Microsoft Exchange 2010 | Shell | Whitspace usage

MailboxDB:Get-MailboxDatabase -Status | ft name,databasesize,availablenewmailboxspace -auto
PublicFolderDB:Get-PublicFolderDatabase -Status | ft name,databasesize,availablenewmailboxspace -auto

2.) Unmount Datenbank

– Go into the directory from the database

Dismount-Database DATENBANKNAME

3.) Check database of proper shutdown

– Go into the directory from the database

eseutil /MH "DATABASENAME.EDB"

– State should be “Clean Shutdown”

4.) Database defragment

z.B.

I:\Gruppe>eseutil /d Gruppe.edb /t\\testserver\defrag\temp.edb

– After /t NO SPACE!

– /d = Defragment

– /t = Defragmented Database will be moved automatically to source place

5.) Database mount

– Go into the directory from the database

mount-Database DATABASENAME

6.) BACKUP DATABASES because DB contains a news signature!